shlwapi: Fix prototype for SHGetShellKey and extend trace.
[wine/multimedia.git] / configure
blob74610963e26934e5f66175b026a927f8cb99c003
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_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBMPG123
615 PNGINCL
616 FONTCONFIGINCL
617 CUPSINCL
618 AUDIOIOLIBS
619 ALSALIBS
620 ESDLIBS
621 ESDINCL
622 ESDCONFIG
623 ZLIB
624 FREETYPEINCL
625 FREETYPELIBS
626 ft_devel
627 LCMSLIBS
628 RESOLVLIBS
629 GPHOTO2INCL
630 GPHOTO2LIBS
631 gphoto2port_devel
632 gphoto2_devel
633 SANEINCL
634 sane_devel
635 GNUTLSINCL
636 HALINCL
637 XSLTINCL
638 XML2INCL
639 XML2LIBS
640 NASLIBS
641 X_EXTRA_LIBS
642 X_LIBS
643 X_PRE_LIBS
644 X_CFLAGS
645 XMKMF
646 LIBPTHREAD
647 CROSSTARGET
648 CROSSTEST
649 CROSSCC
650 CARBONLIB
651 LIBOPENAL
652 COREAUDIO
653 DISKARBITRATIONLIB
654 LDEXECFLAGS
655 IOKITLIB
656 COREFOUNDATIONLIB
657 SECURITYLIB
658 DLLWRAP
659 DLLTOOL
661 LDRPATH_LOCAL
662 LDRPATH_INSTALL
663 IMPLIBEXT
664 LIBEXT
665 LDDLLFLAGS
666 LDSHARED
667 DLLFLAGS
668 DLLEXT
670 OPENGL_LIBS
671 XLIB
672 PRELINK
673 ICOTOOL
674 RSVG
675 PKG_CONFIG
676 FONTFORGE
677 LINTFLAGS
678 LINT
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 LDCONFIG
683 EGREP
684 GREP
685 LN_S
686 STRIP
687 RANLIB
688 ARFLAGS
689 ac_ct_AR
691 BISON
692 FLEX
693 TOOLSDIR
694 WOW64_DISABLE
695 TARGETFLAGS
696 CPPBIN
697 ac_ct_CXX
698 CXXFLAGS
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
707 SET_MAKE
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 MAINTAINER_MODE
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files='MAKE_RULES
756 MAKE_TEST_RULES
757 MAKE_DLL_RULES
758 MAKE_IMPLIB_RULES
759 MAKE_PROG_RULES'
760 ac_user_opts='
761 enable_option_checking
762 enable_win16
763 enable_win64
764 enable_tests
765 enable_maintainer_mode
766 with_alsa
767 with_audioio
768 with_capi
769 with_cms
770 with_coreaudio
771 with_cups
772 with_curses
773 with_esd
774 with_fontconfig
775 with_freetype
776 with_gphoto
777 with_glu
778 with_gnutls
779 with_gsm
780 with_hal
781 with_jack
782 with_jpeg
783 with_ldap
784 with_mpg123
785 with_nas
786 with_openal
787 with_opengl
788 with_openssl
789 with_oss
790 with_png
791 with_pthread
792 with_sane
793 with_tiff
794 with_v4l
795 with_xcomposite
796 with_xcursor
797 with_xinerama
798 with_xinput
799 with_xml
800 with_xrandr
801 with_xrender
802 with_xshape
803 with_xshm
804 with_xslt
805 with_xxf86vm
806 with_wine_tools
807 with_wine64
808 enable_largefile
809 with_x
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 CXXFLAGS
823 XMKMF'
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
874 ac_prev=
875 ac_dashdash=
876 for ac_option
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
894 ac_dashdash=yes ;;
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
913 --config-cache | -C)
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 esac
1231 done
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1317 /^X\(\/\/\)$/{
1318 s//\1/
1321 /^X\(\/\).*/{
1322 s//\1/
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1330 else
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340 pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1359 # Report the --help message.
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
1365 \`configure' configures Wine 1.1.41 to adapt to many kinds of systems.
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1372 Defaults for the options are specified in brackets.
1374 Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1396 For better control, use the options below.
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418 _ACEOF
1420 cat <<\_ACEOF
1422 X features:
1423 --x-includes=DIR X include files are in DIR
1424 --x-libraries=DIR X library files are in DIR
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 _ACEOF
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of Wine 1.1.41:";;
1435 esac
1436 cat <<\_ACEOF
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --disable-win16 do not include Win16 support
1443 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1444 binaries)
1445 --disable-tests do not build the regression tests
1446 --enable-maintainer-mode
1447 enable maintainer-specific build rules
1448 --disable-largefile omit support for large files
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --without-alsa do not use the Alsa sound support
1454 --without-audioio do not use the AudioIO sound support
1455 --without-capi do not use CAPI (ISDN support)
1456 --without-cms do not use CMS (color management support)
1457 --without-coreaudio do not use the CoreAudio sound support
1458 --without-cups do not use CUPS
1459 --without-curses do not use (n)curses
1460 --without-esd do not use the EsounD sound support
1461 --without-fontconfig do not use fontconfig
1462 --without-freetype do not use the FreeType library
1463 --without-gphoto do not use gphoto (Digital Camera support)
1464 --without-glu do not use the GLU library
1465 --without-gnutls do not use GnuTLS (schannel support)
1466 --without-gsm do not use libgsm (GSM 06.10 codec support)
1467 --without-hal do not use HAL (dynamic device support)
1468 --without-jack do not use the Jack sound support
1469 --without-jpeg do not use JPEG
1470 --without-ldap do not use LDAP
1471 --without-mpg123 do not use the mpg123 library
1472 --without-nas do not use the NAS sound support
1473 --without-openal do not use OpenAL
1474 --without-opengl do not use OpenGL
1475 --without-openssl do not use OpenSSL
1476 --without-oss do not use the OSS sound support
1477 --without-png do not use PNG
1478 --without-pthread do not use the pthread library
1479 --without-sane do not use SANE (scanner support)
1480 --without-tiff do not use TIFF
1481 --without-v4l do not use v4l1 (v4l support)
1482 --without-xcomposite do not use the Xcomposite extension
1483 --without-xcursor do not use the Xcursor extension
1484 --without-xinerama do not use Xinerama (multi-monitor support)
1485 --without-xinput do not use the Xinput extension
1486 --without-xml do not use XML
1487 --without-xrandr do not use Xrandr (resolution changes)
1488 --without-xrender do not use the Xrender extension
1489 --without-xshape do not use the Xshape extension
1490 --without-xshm do not use XShm (shared memory extension)
1491 --without-xslt do not use XSLT
1492 --without-xxf86vm do not use XFree video mode extension
1493 --with-wine-tools=DIR use Wine tools from directory DIR
1494 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1495 --with-x use the X Window System
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CPP C preprocessor
1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to <wine-devel@winehq.org>.
1514 Wine home page: <http://www.winehq.org>.
1515 _ACEOF
1516 ac_status=$?
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 Wine configure 1.1.41
1578 generated by GNU Autoconf 2.65
1580 Copyright (C) 2009 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=1
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_compile
1629 # ac_fn_cxx_try_compile LINENO
1630 # ----------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_cxx_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_cxx_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1660 ac_retval=1
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_cxx_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=1
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev/null && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_cpp
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 $as_echo_n "(cached) " >&6
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1778 else
1779 ac_header_compiler=no
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1794 else
1795 ac_header_preproc=no
1797 rm -f conftest.err conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803 yes:no: )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 no:yes:* )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ( cat <<\_ASBOX
1821 ## ------------------------------------ ##
1822 ## Report this to wine-devel@winehq.org ##
1823 ## ------------------------------------ ##
1824 _ASBOX
1825 ) | sed "s/^/$as_me: WARNING: /" >&2
1827 esac
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 eval "$3=\$ac_header_compiler"
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 } # ac_fn_c_check_header_mongrel
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=$ac_status
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_run
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_c_check_header_compile
1916 # ac_fn_c_check_func LINENO FUNC VAR
1917 # ----------------------------------
1918 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1919 ac_fn_c_check_func ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1931 #define $2 innocuous_$2
1933 /* System header to define __stub macros and hopefully few prototypes,
1934 which can conflict with char $2 (); below.
1935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936 <limits.h> exists even on freestanding compilers. */
1938 #ifdef __STDC__
1939 # include <limits.h>
1940 #else
1941 # include <assert.h>
1942 #endif
1944 #undef $2
1946 /* Override any GCC internal prototype to avoid an error.
1947 Use char because int might match the return type of a GCC
1948 builtin and then its argument prototype would still apply. */
1949 #ifdef __cplusplus
1950 extern "C"
1951 #endif
1952 char $2 ();
1953 /* The GNU C library defines this for functions which it implements
1954 to always fail with ENOSYS. Some functions are actually named
1955 something starting with __ and the normal name is an alias. */
1956 #if defined __stub_$2 || defined __stub___$2
1957 choke me
1958 #endif
1961 main ()
1963 return $2 ();
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_link "$LINENO"; then :
1969 eval "$3=yes"
1970 else
1971 eval "$3=no"
1973 rm -f core conftest.err conftest.$ac_objext \
1974 conftest$ac_exeext conftest.$ac_ext
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 } # ac_fn_c_check_func
1983 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1984 # ----------------------------------------------------
1985 # Tries to find if the field MEMBER exists in type AGGR, after including
1986 # INCLUDES, setting cache variable VAR accordingly.
1987 ac_fn_c_check_member ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1991 $as_echo_n "checking for $2.$3... " >&6; }
1992 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 main ()
2001 static $2 ac_aggr;
2002 if (ac_aggr.$3)
2003 return 0;
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$4=yes"
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 static $2 ac_aggr;
2018 if (sizeof ac_aggr.$3)
2019 return 0;
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 eval "$4=no"
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 eval ac_res=\$$4
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_member
2040 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041 # -------------------------------------------
2042 # Tests whether TYPE exists after having included INCLUDES, setting cache
2043 # variable VAR accordingly.
2044 ac_fn_c_check_type ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=no"
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 if (sizeof ($2))
2060 return 0;
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
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 :
2080 else
2081 eval "$3=yes"
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092 } # ac_fn_c_check_type
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2097 It was created by Wine $as_me 1.1.41, which was
2098 generated by GNU Autoconf 2.65. Invocation command line was
2100 $ $0 $@
2102 _ACEOF
2103 exec 5>>config.log
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127 _ASUNAME
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2138 } >&5
2140 cat >&5 <<_ACEOF
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2147 _ACEOF
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2161 for ac_arg
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2190 as_fn_append ac_configure_args " '$ac_arg'"
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2206 echo
2208 cat <<\_ASBOX
2209 ## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##
2212 _ASBOX
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
2231 (set) 2>&1 |
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2234 sed -n \
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 esac |
2242 sort
2244 echo
2246 cat <<\_ASBOX
2247 ## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##
2250 _ASBOX
2251 echo
2252 for ac_var in $ac_subst_vars
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2262 if test -n "$ac_subst_files"; then
2263 cat <<\_ASBOX
2264 ## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##
2267 _ASBOX
2268 echo
2269 for ac_var in $ac_subst_files
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2280 if test -s confdefs.h; then
2281 cat <<\_ASBOX
2282 ## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##
2285 _ASBOX
2286 echo
2287 cat confdefs.h
2288 echo
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2306 $as_echo "/* confdefs.h */" > confdefs.h
2308 # Predefined preprocessor variables.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 ac_site_file1=$CONFIG_SITE
2341 elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344 else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350 test "x$ac_site_file" = xNONE && continue
2351 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file"
2357 done
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2425 done
2426 if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445 ac_config_headers="$ac_config_headers include/config.h"
2447 ac_aux_dir=
2448 for ac_dir in tools "$srcdir"/tools; do
2449 for ac_t in install-sh install.sh shtool; do
2450 if test -f "$ac_dir/$ac_t"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/$ac_t -c"
2453 break 2
2455 done
2456 done
2457 if test -z "$ac_aux_dir"; then
2458 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2473 # Check whether --enable-win16 was given.
2474 if test "${enable_win16+set}" = set; then :
2475 enableval=$enable_win16;
2478 # Check whether --enable-win64 was given.
2479 if test "${enable_win64+set}" = set; then :
2480 enableval=$enable_win64;
2483 # Check whether --enable-tests was given.
2484 if test "${enable_tests+set}" = set; then :
2485 enableval=$enable_tests;
2488 # Check whether --enable-maintainer-mode was given.
2489 if test "${enable_maintainer_mode+set}" = set; then :
2490 enableval=$enable_maintainer_mode;
2491 else
2492 MAINTAINER_MODE=\#
2498 # Check whether --with-alsa was given.
2499 if test "${with_alsa+set}" = set; then :
2500 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2504 # Check whether --with-audioio was given.
2505 if test "${with_audioio+set}" = set; then :
2506 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2510 # Check whether --with-capi was given.
2511 if test "${with_capi+set}" = set; then :
2512 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2516 # Check whether --with-cms was given.
2517 if test "${with_cms+set}" = set; then :
2518 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2522 # Check whether --with-coreaudio was given.
2523 if test "${with_coreaudio+set}" = set; then :
2524 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2528 # Check whether --with-cups was given.
2529 if test "${with_cups+set}" = set; then :
2530 withval=$with_cups;
2534 # Check whether --with-curses was given.
2535 if test "${with_curses+set}" = set; then :
2536 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2540 # Check whether --with-esd was given.
2541 if test "${with_esd+set}" = set; then :
2542 withval=$with_esd;
2546 # Check whether --with-fontconfig was given.
2547 if test "${with_fontconfig+set}" = set; then :
2548 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2552 # Check whether --with-freetype was given.
2553 if test "${with_freetype+set}" = set; then :
2554 withval=$with_freetype;
2558 # Check whether --with-gphoto was given.
2559 if test "${with_gphoto+set}" = set; then :
2560 withval=$with_gphoto;
2564 # Check whether --with-glu was given.
2565 if test "${with_glu+set}" = set; then :
2566 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2570 # Check whether --with-gnutls was given.
2571 if test "${with_gnutls+set}" = set; then :
2572 withval=$with_gnutls;
2576 # Check whether --with-gsm was given.
2577 if test "${with_gsm+set}" = set; then :
2578 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2582 # Check whether --with-hal was given.
2583 if test "${with_hal+set}" = set; then :
2584 withval=$with_hal;
2588 # Check whether --with-jack was given.
2589 if test "${with_jack+set}" = set; then :
2590 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2594 # Check whether --with-jpeg was given.
2595 if test "${with_jpeg+set}" = set; then :
2596 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2600 # Check whether --with-ldap was given.
2601 if test "${with_ldap+set}" = set; then :
2602 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2606 # Check whether --with-mpg123 was given.
2607 if test "${with_mpg123+set}" = set; then :
2608 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2612 # Check whether --with-nas was given.
2613 if test "${with_nas+set}" = set; then :
2614 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2618 # Check whether --with-openal was given.
2619 if test "${with_openal+set}" = set; then :
2620 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2624 # Check whether --with-opengl was given.
2625 if test "${with_opengl+set}" = set; then :
2626 withval=$with_opengl;
2630 # Check whether --with-openssl was given.
2631 if test "${with_openssl+set}" = set; then :
2632 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2636 # Check whether --with-oss was given.
2637 if test "${with_oss+set}" = set; then :
2638 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
2642 # Check whether --with-png was given.
2643 if test "${with_png+set}" = set; then :
2644 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2648 # Check whether --with-pthread was given.
2649 if test "${with_pthread+set}" = set; then :
2650 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2654 # Check whether --with-sane was given.
2655 if test "${with_sane+set}" = set; then :
2656 withval=$with_sane;
2660 # Check whether --with-tiff was given.
2661 if test "${with_tiff+set}" = set; then :
2662 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2666 # Check whether --with-v4l was given.
2667 if test "${with_v4l+set}" = set; then :
2668 withval=$with_v4l;
2672 # Check whether --with-xcomposite was given.
2673 if test "${with_xcomposite+set}" = set; then :
2674 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2678 # Check whether --with-xcursor was given.
2679 if test "${with_xcursor+set}" = set; then :
2680 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2684 # Check whether --with-xinerama was given.
2685 if test "${with_xinerama+set}" = set; then :
2686 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2690 # Check whether --with-xinput was given.
2691 if test "${with_xinput+set}" = set; then :
2692 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2696 # Check whether --with-xml was given.
2697 if test "${with_xml+set}" = set; then :
2698 withval=$with_xml;
2702 # Check whether --with-xrandr was given.
2703 if test "${with_xrandr+set}" = set; then :
2704 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2708 # Check whether --with-xrender was given.
2709 if test "${with_xrender+set}" = set; then :
2710 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2714 # Check whether --with-xshape was given.
2715 if test "${with_xshape+set}" = set; then :
2716 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2720 # Check whether --with-xshm was given.
2721 if test "${with_xshm+set}" = set; then :
2722 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2726 # Check whether --with-xslt was given.
2727 if test "${with_xslt+set}" = set; then :
2728 withval=$with_xslt;
2732 # Check whether --with-xxf86vm was given.
2733 if test "${with_xxf86vm+set}" = set; then :
2734 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
2739 # Check whether --with-wine-tools was given.
2740 if test "${with_wine_tools+set}" = set; then :
2741 withval=$with_wine_tools;
2745 # Check whether --with-wine64 was given.
2746 if test "${with_wine64+set}" = set; then :
2747 withval=$with_wine64;
2751 # Make sure we can run config.sub.
2752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2753 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2756 $as_echo_n "checking build system type... " >&6; }
2757 if test "${ac_cv_build+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 ac_build_alias=$build_alias
2761 test "x$ac_build_alias" = x &&
2762 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2763 test "x$ac_build_alias" = x &&
2764 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2765 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2766 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2770 $as_echo "$ac_cv_build" >&6; }
2771 case $ac_cv_build in
2772 *-*-*) ;;
2773 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2774 esac
2775 build=$ac_cv_build
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_build
2778 shift
2779 build_cpu=$1
2780 build_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 build_os=$*
2785 IFS=$ac_save_IFS
2786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2790 $as_echo_n "checking host system type... " >&6; }
2791 if test "${ac_cv_host+set}" = set; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test "x$host_alias" = x; then
2795 ac_cv_host=$ac_cv_build
2796 else
2797 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2798 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2803 $as_echo "$ac_cv_host" >&6; }
2804 case $ac_cv_host in
2805 *-*-*) ;;
2806 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2807 esac
2808 host=$ac_cv_host
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_host
2811 shift
2812 host_cpu=$1
2813 host_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 host_os=$*
2818 IFS=$ac_save_IFS
2819 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2823 case "$srcdir" in
2824 .) ;;
2825 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2826 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2827 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2828 fi ;;
2829 esac
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2833 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2834 set x ${MAKE-make}
2835 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2836 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 cat >conftest.make <<\_ACEOF
2840 SHELL = /bin/sh
2841 all:
2842 @echo '@@@%%%=$(MAKE)=@@@%%%'
2843 _ACEOF
2844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2845 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2846 *@@@%%%=?*=@@@%%%*)
2847 eval ac_cv_prog_make_${ac_make}_set=yes;;
2849 eval ac_cv_prog_make_${ac_make}_set=no;;
2850 esac
2851 rm -f conftest.make
2853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2855 $as_echo "yes" >&6; }
2856 SET_MAKE=
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 SET_MAKE="MAKE=${MAKE-make}"
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2892 IFS=$as_save_IFS
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2908 ac_ct_CC=$CC
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2956 else
2957 CC="$ac_cv_prog_CC"
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3024 ac_cv_prog_CC="cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3035 shift
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3040 shift
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3084 IFS=$as_save_IFS
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CC" && break
3099 done
3101 if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CC" && break
3143 done
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details." "$LINENO" 5; }
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 ac_status=$?
3180 if test -s conftest.err; then
3181 sed '10a\
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 done
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3195 main ()
3199 return 0;
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 esac
3221 done
3222 rm -f $ac_rmfiles
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3267 else
3268 ac_file=''
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { as_fn_set_status 77
3279 as_fn_error "C compiler cannot create executables
3280 See \`config.log' for more details." "$LINENO" 5; }; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 break;;
3316 * ) break;;
3317 esac
3318 done
3319 else
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." "$LINENO" 5; }
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 #include <stdio.h>
3336 main ()
3338 FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3342 return 0;
3344 _ACEOF
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351 { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 if { ac_try='./conftest$ac_cv_exeext'
3363 { { case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_try") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; }; then
3373 cross_compiling=no
3374 else
3375 if test "$cross_compiling" = maybe; then
3376 cross_compiling=yes
3377 else
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details." "$LINENO" 5; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if test "${ac_cv_objext+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 main ()
3404 return 0;
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details." "$LINENO" 5; }
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3453 #ifndef __GNUC__
3454 choke me
3455 #endif
3458 return 0;
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_compiler_gnu=yes
3463 else
3464 ac_compiler_gnu=no
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if test "${ac_cv_prog_cc_g+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3492 main ()
3496 return 0;
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 else
3502 CFLAGS=""
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 main ()
3511 return 0;
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3516 else
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3546 CFLAGS="-g -O2"
3547 else
3548 CFLAGS="-g"
3550 else
3551 if test "$GCC" = yes; then
3552 CFLAGS="-O2"
3553 else
3554 CFLAGS=
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 #include <sys/types.h>
3569 #include <sys/stat.h>
3570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3571 struct buf { int x; };
3572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3573 static char *e (p, i)
3574 char **p;
3575 int i;
3577 return p[i];
3579 static char *f (char * (*g) (char **, int), char **p, ...)
3581 char *s;
3582 va_list v;
3583 va_start (v,p);
3584 s = g (p, va_arg (v,int));
3585 va_end (v);
3586 return s;
3589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3590 function prototypes and stuff, but not '\xHH' hex character constants.
3591 These don't provoke an error unfortunately, instead are silently treated
3592 as 'x'. The following induces an error, until -std is added to get
3593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3594 array size at least. It's necessary to write '\x00'==0 to get something
3595 that's true only with -std. */
3596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3599 inside strings and character constants. */
3600 #define FOO(x) 'x'
3601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603 int test (int i, double x);
3604 struct s1 {int (*f) (int a);};
3605 struct s2 {int (*f) (double a);};
3606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3607 int argc;
3608 char **argv;
3610 main ()
3612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 return 0;
3616 _ACEOF
3617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3618 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3620 CC="$ac_save_CC $ac_arg"
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_cv_prog_cc_c89=$ac_arg
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3635 $as_echo "none needed" >&6; } ;;
3636 xno)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3638 $as_echo "unsupported" >&6; } ;;
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644 if test "x$ac_cv_prog_cc_c89" != xno; then :
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 ac_ext=cpp
3655 ac_cpp='$CXXCPP $CPPFLAGS'
3656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3659 if test -z "$CXX"; then
3660 if test -n "$CCC"; then
3661 CXX=$CCC
3662 else
3663 if test -n "$ac_tool_prefix"; then
3664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CXX+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$CXX"; then
3674 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3689 IFS=$as_save_IFS
3693 CXX=$ac_cv_prog_CXX
3694 if test -n "$CXX"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3696 $as_echo "$CXX" >&6; }
3697 else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3703 test -n "$CXX" && break
3704 done
3706 if test -z "$CXX"; then
3707 ac_ct_CXX=$CXX
3708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3710 # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$ac_ct_CXX"; then
3718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_ac_ct_CXX="$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3738 if test -n "$ac_ct_CXX"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3740 $as_echo "$ac_ct_CXX" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$ac_ct_CXX" && break
3748 done
3750 if test "x$ac_ct_CXX" = x; then
3751 CXX="g++"
3752 else
3753 case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759 CXX=$ac_ct_CXX
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3767 set X $ac_compile
3768 ac_compiler=$2
3769 for ac_option in --version -v -V -qversion; do
3770 { { ac_try="$ac_compiler $ac_option >&5"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3778 ac_status=$?
3779 if test -s conftest.err; then
3780 sed '10a\
3781 ... rest of stderr output deleted ...
3782 10q' conftest.err >conftest.er1
3783 cat conftest.er1 >&5
3785 rm -f conftest.er1 conftest.err
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 done
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3791 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3792 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 main ()
3801 #ifndef __GNUC__
3802 choke me
3803 #endif
3806 return 0;
3808 _ACEOF
3809 if ac_fn_cxx_try_compile "$LINENO"; then :
3810 ac_compiler_gnu=yes
3811 else
3812 ac_compiler_gnu=no
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3819 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3820 if test $ac_compiler_gnu = yes; then
3821 GXX=yes
3822 else
3823 GXX=
3825 ac_test_CXXFLAGS=${CXXFLAGS+set}
3826 ac_save_CXXFLAGS=$CXXFLAGS
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3828 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3829 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3833 ac_cxx_werror_flag=yes
3834 ac_cv_prog_cxx_g=no
3835 CXXFLAGS="-g"
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 if ac_fn_cxx_try_compile "$LINENO"; then :
3848 ac_cv_prog_cxx_g=yes
3849 else
3850 CXXFLAGS=""
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 if ac_fn_cxx_try_compile "$LINENO"; then :
3864 else
3865 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3866 CXXFLAGS="-g"
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3871 main ()
3875 return 0;
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879 ac_cv_prog_cxx_g=yes
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3889 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3890 if test "$ac_test_CXXFLAGS" = set; then
3891 CXXFLAGS=$ac_save_CXXFLAGS
3892 elif test $ac_cv_prog_cxx_g = yes; then
3893 if test "$GXX" = yes; then
3894 CXXFLAGS="-g -O2"
3895 else
3896 CXXFLAGS="-g"
3898 else
3899 if test "$GXX" = yes; then
3900 CXXFLAGS="-O2"
3901 else
3902 CXXFLAGS=
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$CPPBIN"; then
3920 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 CPPBIN=$ac_cv_prog_CPPBIN
3940 if test -n "$CPPBIN"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3942 $as_echo "$CPPBIN" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test -z "$ac_cv_prog_CPPBIN"; then
3951 ac_ct_CPPBIN=$CPPBIN
3952 # Extract the first word of "cpp", so it can be a program name with args.
3953 set dummy cpp; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$ac_ct_CPPBIN"; then
3960 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_prog_ac_ct_CPPBIN="cpp"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3975 IFS=$as_save_IFS
3979 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3980 if test -n "$ac_ct_CPPBIN"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3982 $as_echo "$ac_ct_CPPBIN" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3988 if test "x$ac_ct_CPPBIN" = x; then
3989 CPPBIN="cpp"
3990 else
3991 case $cross_compiling:$ac_tool_warned in
3992 yes:)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995 ac_tool_warned=yes ;;
3996 esac
3997 CPPBIN=$ac_ct_CPPBIN
3999 else
4000 CPPBIN="$ac_cv_prog_CPPBIN"
4004 cat >>confdefs.h <<_ACEOF
4005 #define EXEEXT "$ac_exeext"
4006 _ACEOF
4009 case $host in
4010 *-darwin*)
4011 if test "x$enable_win64" = "xyes"
4012 then
4013 CC="$CC -m64"
4014 CXX="$CXX -m64"
4015 LD="${LD:-ld} -arch x86_64"
4016 AS="${AS:-as} -arch x86_64"
4017 host_cpu="x86_64"
4018 notice_platform="64-bit "
4019 TARGETFLAGS="-m64"
4021 else
4022 CC="$CC -m32"
4023 CXX="$CXX -m32"
4024 LD="${LD:-ld} -arch i386"
4025 AS="${AS:-as} -arch i386"
4026 host_cpu="i386"
4027 notice_platform="32-bit "
4028 TARGETFLAGS="-m32"
4030 enable_win16=${enable_win16:-yes}
4033 x86_64*)
4034 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4035 then
4036 CC="$CC -m32"
4037 CXX="$CXX -m32"
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4039 $as_echo_n "checking whether $CC works... " >&6; }
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 if ac_fn_c_try_link "$LINENO"; then :
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4060 rm -f core conftest.err conftest.$ac_objext \
4061 conftest$ac_exeext conftest.$ac_ext
4062 LD="${LD:-ld} -m elf_i386"
4063 AS="${AS:-as} --32"
4064 host_cpu="i386"
4065 notice_platform="32-bit "
4066 TARGETFLAGS="-m32"
4068 enable_win16=${enable_win16:-yes}
4069 else
4070 if test "x${GCC}" = "xyes"
4071 then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4073 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <stdarg.h>
4078 main ()
4080 void func(__builtin_ms_va_list *args);
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 TARGETFLAGS="-m64"
4099 *-mingw32*|*-cygwin*)
4100 enable_win16=${enable_win16:-no}
4101 CFLAGS="$CFLAGS -D_WIN32"
4103 i[3456789]86*)
4104 enable_win16=${enable_win16:-yes}
4106 esac
4108 enable_win16=${enable_win16:-no}
4110 enable_winetest=${enable_winetest:-$enable_tests}
4112 if test -n "$with_wine64"
4113 then
4114 if test "x$enable_win64" = "xyes"
4115 then
4116 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4117 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4119 WOW64_DISABLE=\#
4121 enable_fonts=${enable_fonts:-no}
4122 enable_include=${enable_include:-no}
4123 enable_server=${enable_server:-no}
4124 enable_tools=${enable_tools:-no}
4125 enable_wineboot=${enable_wineboot:-no}
4126 enable_winedbg=${enable_winedbg:-no}
4127 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4131 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4132 if test "${wine_cv_toolsdir+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 wine_cv_toolsdir="$with_wine_tools"
4136 if test -z "$with_wine_tools"; then
4137 if test "$cross_compiling" = "yes"; then
4138 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4139 elif test -n "$with_wine64"; then
4140 wine_cv_toolsdir="$with_wine64"
4143 if test -z "$wine_cv_toolsdir"; then
4144 wine_cv_toolsdir="\$(TOPOBJDIR)"
4145 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4146 case "$wine_cv_toolsdir" in
4147 /*) ;;
4148 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4149 esac
4150 else
4151 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4155 $as_echo "$wine_cv_toolsdir" >&6; }
4156 TOOLSDIR=$wine_cv_toolsdir
4158 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4159 then
4160 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4164 for ac_prog in flex
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy $ac_prog; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if test "${ac_cv_prog_FLEX+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 if test -n "$FLEX"; then
4174 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_FLEX="$ac_prog"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 FLEX=$ac_cv_prog_FLEX
4194 if test -n "$FLEX"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4196 $as_echo "$FLEX" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4203 test -n "$FLEX" && break
4204 done
4205 test -n "$FLEX" || FLEX="none"
4207 if test "$FLEX" = "none"
4208 then
4209 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4212 $as_echo_n "checking whether flex is recent enough... " >&6; }
4213 cat >conftest.l <<EOF
4214 %top{
4215 #include "prediluvian.h"
4219 if $FLEX -t conftest.l >/dev/null 2>&1
4220 then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222 $as_echo "yes" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4226 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4229 for ac_prog in bison
4231 # Extract the first word of "$ac_prog", so it can be a program name with args.
4232 set dummy $ac_prog; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if test "${ac_cv_prog_BISON+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$BISON"; then
4239 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_BISON="$ac_prog"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 BISON=$ac_cv_prog_BISON
4259 if test -n "$BISON"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4261 $as_echo "$BISON" >&6; }
4262 else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4268 test -n "$BISON" && break
4269 done
4270 test -n "$BISON" || BISON="none"
4272 if test "$BISON" = "none"
4273 then
4274 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4277 if test -n "$ac_tool_prefix"; then
4278 for ac_prog in ar gar
4280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_AR+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$AR"; then
4288 ac_cv_prog_AR="$AR" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4307 AR=$ac_cv_prog_AR
4308 if test -n "$AR"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4310 $as_echo "$AR" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4317 test -n "$AR" && break
4318 done
4320 if test -z "$AR"; then
4321 ac_ct_AR=$AR
4322 for ac_prog in ar gar
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_AR"; then
4332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_AR="$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4352 if test -n "$ac_ct_AR"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4354 $as_echo "$ac_ct_AR" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$ac_ct_AR" && break
4362 done
4364 if test "x$ac_ct_AR" = x; then
4365 AR="ar"
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373 AR=$ac_ct_AR
4377 ARFLAGS=rc
4379 if test -n "$ac_tool_prefix"; then
4380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$RANLIB"; then
4388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4403 IFS=$as_save_IFS
4407 RANLIB=$ac_cv_prog_RANLIB
4408 if test -n "$RANLIB"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4410 $as_echo "$RANLIB" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4418 if test -z "$ac_cv_prog_RANLIB"; then
4419 ac_ct_RANLIB=$RANLIB
4420 # Extract the first word of "ranlib", so it can be a program name with args.
4421 set dummy ranlib; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$ac_ct_RANLIB"; then
4428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_ac_ct_RANLIB="ranlib"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4448 if test -n "$ac_ct_RANLIB"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4450 $as_echo "$ac_ct_RANLIB" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4456 if test "x$ac_ct_RANLIB" = x; then
4457 RANLIB=":"
4458 else
4459 case $cross_compiling:$ac_tool_warned in
4460 yes:)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4464 esac
4465 RANLIB=$ac_ct_RANLIB
4467 else
4468 RANLIB="$ac_cv_prog_RANLIB"
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}strip; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_STRIP+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$STRIP"; then
4480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4495 IFS=$as_save_IFS
4499 STRIP=$ac_cv_prog_STRIP
4500 if test -n "$STRIP"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4502 $as_echo "$STRIP" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4510 if test -z "$ac_cv_prog_STRIP"; then
4511 ac_ct_STRIP=$STRIP
4512 # Extract the first word of "strip", so it can be a program name with args.
4513 set dummy strip; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$ac_ct_STRIP"; then
4520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_STRIP="strip"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4533 done
4534 done
4535 IFS=$as_save_IFS
4539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4540 if test -n "$ac_ct_STRIP"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4542 $as_echo "$ac_ct_STRIP" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4548 if test "x$ac_ct_STRIP" = x; then
4549 STRIP="strip"
4550 else
4551 case $cross_compiling:$ac_tool_warned in
4552 yes:)
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555 ac_tool_warned=yes ;;
4556 esac
4557 STRIP=$ac_ct_STRIP
4559 else
4560 STRIP="$ac_cv_prog_STRIP"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4564 $as_echo_n "checking whether ln -s works... " >&6; }
4565 LN_S=$as_ln_s
4566 if test "$LN_S" = "ln -s"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568 $as_echo "yes" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4571 $as_echo "no, using $LN_S" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4575 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4576 if test "${ac_cv_path_GREP+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -z "$GREP"; then
4580 ac_path_GREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in grep ggrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4591 # Check for GNU ac_path_GREP and select it if it is found.
4592 # Check for GNU $ac_path_GREP
4593 case `"$ac_path_GREP" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo 'GREP' >> "conftest.nl"
4605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_GREP="$ac_path_GREP"
4611 ac_path_GREP_max=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4619 $ac_path_GREP_found && break 3
4620 done
4621 done
4622 done
4623 IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_GREP"; then
4625 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 else
4628 ac_cv_path_GREP=$GREP
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4633 $as_echo "$ac_cv_path_GREP" >&6; }
4634 GREP="$ac_cv_path_GREP"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4638 $as_echo_n "checking for egrep... " >&6; }
4639 if test "${ac_cv_path_EGREP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4643 then ac_cv_path_EGREP="$GREP -E"
4644 else
4645 if test -z "$EGREP"; then
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657 # Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659 case `"$ac_path_EGREP" --version 2>&1` in
4660 *GNU*)
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683 esac
4685 $ac_path_EGREP_found && break 3
4686 done
4687 done
4688 done
4689 IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_EGREP"; then
4691 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4693 else
4694 ac_cv_path_EGREP=$EGREP
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4700 $as_echo "$ac_cv_path_EGREP" >&6; }
4701 EGREP="$ac_cv_path_EGREP"
4704 # Extract the first word of "ldconfig", so it can be a program name with args.
4705 set dummy ldconfig; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 case $LDCONFIG in
4712 [\\/]* | ?:[\\/]*)
4713 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in /sbin /usr/sbin $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4729 IFS=$as_save_IFS
4731 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4733 esac
4735 LDCONFIG=$ac_cv_path_LDCONFIG
4736 if test -n "$LDCONFIG"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4738 $as_echo "$LDCONFIG" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4745 # Find a good install program. We prefer a C program (faster),
4746 # so one script is as good as another. But avoid the broken or
4747 # incompatible versions:
4748 # SysV /etc/install, /usr/sbin/install
4749 # SunOS /usr/etc/install
4750 # IRIX /sbin/install
4751 # AIX /bin/install
4752 # AmigaOS /C/install, which installs bootblocks on floppy discs
4753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4756 # OS/2's system install, which has a completely different semantic
4757 # ./install, which can be erroneously created by make from ./install.sh.
4758 # Reject install programs that cannot install multiple files.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4760 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4761 if test -z "$INSTALL"; then
4762 if test "${ac_cv_path_install+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 # Account for people who put trailing slashes in PATH elements.
4771 case $as_dir/ in #((
4772 ./ | .// | /[cC]/* | \
4773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4774 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4775 /usr/ucb/* ) ;;
4777 # OSF1 and SCO ODT 3.0 have their own names for install.
4778 # Don't use installbsd from OSF since it installs stuff as root
4779 # by default.
4780 for ac_prog in ginstall scoinst install; do
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4783 if test $ac_prog = install &&
4784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4785 # AIX install. It has an incompatible calling convention.
4787 elif test $ac_prog = install &&
4788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4789 # program-specific install script used by HP pwplus--don't use.
4791 else
4792 rm -rf conftest.one conftest.two conftest.dir
4793 echo one > conftest.one
4794 echo two > conftest.two
4795 mkdir conftest.dir
4796 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4797 test -s conftest.one && test -s conftest.two &&
4798 test -s conftest.dir/conftest.one &&
4799 test -s conftest.dir/conftest.two
4800 then
4801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4802 break 3
4806 done
4807 done
4809 esac
4811 done
4812 IFS=$as_save_IFS
4814 rm -rf conftest.one conftest.two conftest.dir
4817 if test "${ac_cv_path_install+set}" = set; then
4818 INSTALL=$ac_cv_path_install
4819 else
4820 # As a last resort, use the slow shell script. Don't cache a
4821 # value for INSTALL within a source directory, because that will
4822 # break other packages using the cache if that directory is
4823 # removed, or if the value is a relative name.
4824 INSTALL=$ac_install_sh
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4828 $as_echo "$INSTALL" >&6; }
4830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4831 # It thinks the first close brace ends the variable substitution.
4832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4836 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4838 case "$INSTALL" in
4839 [\\/$]* | ?:[\\/]* ) ;;
4840 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4841 esac
4843 for ac_prog in lclint lint
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_LINT+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$LINT"; then
4853 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_LINT="$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 LINT=$ac_cv_prog_LINT
4873 if test -n "$LINT"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4875 $as_echo "$LINT" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 test -n "$LINT" && break
4883 done
4885 if test "$LINT" = "lint"
4886 then
4887 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4892 for ac_prog in fontforge
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$FONTFORGE"; then
4902 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_FONTFORGE="$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 FONTFORGE=$ac_cv_prog_FONTFORGE
4922 if test -n "$FONTFORGE"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4924 $as_echo "$FONTFORGE" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 test -n "$FONTFORGE" && break
4932 done
4933 test -n "$FONTFORGE" || FONTFORGE="false"
4935 for ac_prog in pkg-config
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$PKG_CONFIG"; then
4945 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_PKG_CONFIG="$ac_prog"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4965 if test -n "$PKG_CONFIG"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4967 $as_echo "$PKG_CONFIG" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 test -n "$PKG_CONFIG" && break
4975 done
4976 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4978 for ac_prog in rsvg
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if test "${ac_cv_prog_RSVG+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$RSVG"; then
4988 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_RSVG="$ac_prog"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 RSVG=$ac_cv_prog_RSVG
5008 if test -n "$RSVG"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5010 $as_echo "$RSVG" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 test -n "$RSVG" && break
5018 done
5019 test -n "$RSVG" || RSVG="false"
5021 for ac_prog in icotool
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$ICOTOOL"; then
5031 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ICOTOOL="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 ICOTOOL=$ac_cv_prog_ICOTOOL
5051 if test -n "$ICOTOOL"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5053 $as_echo "$ICOTOOL" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 test -n "$ICOTOOL" && break
5061 done
5062 test -n "$ICOTOOL" || ICOTOOL="false"
5065 if test "${enable_maintainer_mode+set}" = set
5066 then
5067 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5068 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5069 if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5072 case $host_cpu in
5073 *i[3456789]86*)
5074 # Extract the first word of "prelink", so it can be a program name with args.
5075 set dummy prelink; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_path_PRELINK+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 case $PRELINK in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in /sbin /usr/sbin $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5101 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5103 esac
5105 PRELINK=$ac_cv_path_PRELINK
5106 if test -n "$PRELINK"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5108 $as_echo "$PRELINK" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5116 esac
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5120 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5121 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 ac_check_lib_save_LIBS=$LIBS
5125 LIBS="-li386 $LIBS"
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5129 /* Override any GCC internal prototype to avoid an error.
5130 Use char because int might match the return type of a GCC
5131 builtin and then its argument prototype would still apply. */
5132 #ifdef __cplusplus
5133 extern "C"
5134 #endif
5135 char i386_set_ldt ();
5137 main ()
5139 return i386_set_ldt ();
5141 return 0;
5143 _ACEOF
5144 if ac_fn_c_try_link "$LINENO"; then :
5145 ac_cv_lib_i386_i386_set_ldt=yes
5146 else
5147 ac_cv_lib_i386_i386_set_ldt=no
5149 rm -f core conftest.err conftest.$ac_objext \
5150 conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5154 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5155 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5156 cat >>confdefs.h <<_ACEOF
5157 #define HAVE_LIBI386 1
5158 _ACEOF
5160 LIBS="-li386 $LIBS"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5165 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5166 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 ac_check_lib_save_LIBS=$LIBS
5170 LIBS="-lossaudio $LIBS"
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5174 /* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
5177 #ifdef __cplusplus
5178 extern "C"
5179 #endif
5180 char _oss_ioctl ();
5182 main ()
5184 return _oss_ioctl ();
5186 return 0;
5188 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
5190 ac_cv_lib_ossaudio__oss_ioctl=yes
5191 else
5192 ac_cv_lib_ossaudio__oss_ioctl=no
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5199 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5200 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5201 cat >>confdefs.h <<_ACEOF
5202 #define HAVE_LIBOSSAUDIO 1
5203 _ACEOF
5205 LIBS="-lossaudio $LIBS"
5210 XLIB=""
5212 OPENGL_LIBS=""
5216 # Check whether --enable-largefile was given.
5217 if test "${enable_largefile+set}" = set; then :
5218 enableval=$enable_largefile;
5221 if test "$enable_largefile" != no; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5224 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5225 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 ac_cv_sys_largefile_CC=no
5229 if test "$GCC" != yes; then
5230 ac_save_CC=$CC
5231 while :; do
5232 # IRIX 6.2 and later do not support large files by default,
5233 # so use the C compiler's -n32 option if that helps.
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 #include <sys/types.h>
5237 /* Check that off_t can represent 2**63 - 1 correctly.
5238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5239 since some C++ compilers masquerading as C compilers
5240 incorrectly reject 9223372036854775807. */
5241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5243 && LARGE_OFF_T % 2147483647 == 1)
5244 ? 1 : -1];
5246 main ()
5250 return 0;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 break
5256 rm -f core conftest.err conftest.$ac_objext
5257 CC="$CC -n32"
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_sys_largefile_CC=' -n32'; break
5261 rm -f core conftest.err conftest.$ac_objext
5262 break
5263 done
5264 CC=$ac_save_CC
5265 rm -f conftest.$ac_ext
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5269 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5270 if test "$ac_cv_sys_largefile_CC" != no; then
5271 CC=$CC$ac_cv_sys_largefile_CC
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5275 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5276 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 while :; do
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 #include <sys/types.h>
5283 /* Check that off_t can represent 2**63 - 1 correctly.
5284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5285 since some C++ compilers masquerading as C compilers
5286 incorrectly reject 9223372036854775807. */
5287 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5289 && LARGE_OFF_T % 2147483647 == 1)
5290 ? 1 : -1];
5292 main ()
5296 return 0;
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 ac_cv_sys_file_offset_bits=no; break
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #define _FILE_OFFSET_BITS 64
5306 #include <sys/types.h>
5307 /* Check that off_t can represent 2**63 - 1 correctly.
5308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5309 since some C++ compilers masquerading as C compilers
5310 incorrectly reject 9223372036854775807. */
5311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5313 && LARGE_OFF_T % 2147483647 == 1)
5314 ? 1 : -1];
5316 main ()
5320 return 0;
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_cv_sys_file_offset_bits=64; break
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 ac_cv_sys_file_offset_bits=unknown
5328 break
5329 done
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5332 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5333 case $ac_cv_sys_file_offset_bits in #(
5334 no | unknown) ;;
5336 cat >>confdefs.h <<_ACEOF
5337 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5338 _ACEOF
5340 esac
5341 rm -rf conftest*
5342 if test $ac_cv_sys_file_offset_bits = unknown; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5344 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5345 if test "${ac_cv_sys_large_files+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 while :; do
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <sys/types.h>
5352 /* Check that off_t can represent 2**63 - 1 correctly.
5353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5354 since some C++ compilers masquerading as C compilers
5355 incorrectly reject 9223372036854775807. */
5356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5358 && LARGE_OFF_T % 2147483647 == 1)
5359 ? 1 : -1];
5361 main ()
5365 return 0;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_sys_large_files=no; break
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 #define _LARGE_FILES 1
5375 #include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5383 ? 1 : -1];
5385 main ()
5389 return 0;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_sys_large_files=1; break
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 ac_cv_sys_large_files=unknown
5397 break
5398 done
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5401 $as_echo "$ac_cv_sys_large_files" >&6; }
5402 case $ac_cv_sys_large_files in #(
5403 no | unknown) ;;
5405 cat >>confdefs.h <<_ACEOF
5406 #define _LARGE_FILES $ac_cv_sys_large_files
5407 _ACEOF
5409 esac
5410 rm -rf conftest*
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5422 # On Suns, sometimes $CPP names a directory.
5423 if test -n "$CPP" && test -d "$CPP"; then
5424 CPP=
5426 if test -z "$CPP"; then
5427 if test "${ac_cv_prog_CPP+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 # Double quotes because CPP needs to be expanded
5431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5433 ac_preproc_ok=false
5434 for ac_c_preproc_warn_flag in '' yes
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449 Syntax error
5450 _ACEOF
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5453 else
5454 # Broken: fails on valid input.
5455 continue
5457 rm -f conftest.err conftest.$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466 # Broken: success on invalid input.
5467 continue
5468 else
5469 # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5473 rm -f conftest.err conftest.$ac_ext
5475 done
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then :
5479 break
5482 done
5483 ac_cv_prog_CPP=$CPP
5486 CPP=$ac_cv_prog_CPP
5487 else
5488 ac_cv_prog_CPP=$CPP
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5491 $as_echo "$CPP" >&6; }
5492 ac_preproc_ok=false
5493 for ac_c_preproc_warn_flag in '' yes
5495 # Use a header file that comes with gcc, so configuring glibc
5496 # with a fresh cross-compiler works.
5497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498 # <limits.h> exists even on freestanding compilers.
5499 # On the NeXT, cc -E runs the code through the compiler's parser,
5500 # not just through cpp. "Syntax error" is here to catch this case.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508 Syntax error
5509 _ACEOF
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5512 else
5513 # Broken: fails on valid input.
5514 continue
5516 rm -f conftest.err conftest.$ac_ext
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <ac_nonexistent.h>
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525 # Broken: success on invalid input.
5526 continue
5527 else
5528 # Passes both tests.
5529 ac_preproc_ok=:
5530 break
5532 rm -f conftest.err conftest.$ac_ext
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then :
5539 else
5540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5543 See \`config.log' for more details." "$LINENO" 5; }
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5554 $as_echo_n "checking for ANSI C header files... " >&6; }
5555 if test "${ac_cv_header_stdc+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 #include <stdlib.h>
5561 #include <stdarg.h>
5562 #include <string.h>
5563 #include <float.h>
5566 main ()
5570 return 0;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_header_stdc=yes
5575 else
5576 ac_cv_header_stdc=no
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 if test $ac_cv_header_stdc = yes; then
5581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <string.h>
5586 _ACEOF
5587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588 $EGREP "memchr" >/dev/null 2>&1; then :
5590 else
5591 ac_cv_header_stdc=no
5593 rm -f conftest*
5597 if test $ac_cv_header_stdc = yes; then
5598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include <stdlib.h>
5603 _ACEOF
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605 $EGREP "free" >/dev/null 2>&1; then :
5607 else
5608 ac_cv_header_stdc=no
5610 rm -f conftest*
5614 if test $ac_cv_header_stdc = yes; then
5615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5616 if test "$cross_compiling" = yes; then :
5618 else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <ctype.h>
5622 #include <stdlib.h>
5623 #if ((' ' & 0x0FF) == 0x020)
5624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5626 #else
5627 # define ISLOWER(c) \
5628 (('a' <= (c) && (c) <= 'i') \
5629 || ('j' <= (c) && (c) <= 'r') \
5630 || ('s' <= (c) && (c) <= 'z'))
5631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5632 #endif
5634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5636 main ()
5638 int i;
5639 for (i = 0; i < 256; i++)
5640 if (XOR (islower (i), ISLOWER (i))
5641 || toupper (i) != TOUPPER (i))
5642 return 2;
5643 return 0;
5645 _ACEOF
5646 if ac_fn_c_try_run "$LINENO"; then :
5648 else
5649 ac_cv_header_stdc=no
5651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5652 conftest.$ac_objext conftest.beam conftest.$ac_ext
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5658 $as_echo "$ac_cv_header_stdc" >&6; }
5659 if test $ac_cv_header_stdc = yes; then
5661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5667 inttypes.h stdint.h unistd.h
5668 do :
5669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5672 eval as_val=\$$as_ac_Header
5673 if test "x$as_val" = x""yes; then :
5674 cat >>confdefs.h <<_ACEOF
5675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676 _ACEOF
5680 done
5683 for ac_header in \
5684 AL/al.h \
5685 AudioToolbox/AudioConverter.h \
5686 AudioToolbox/AudioFile.h \
5687 AudioToolbox/AudioFileStream.h \
5688 AudioUnit/AudioUnit.h \
5689 Carbon/Carbon.h \
5690 CoreAudio/CoreAudio.h \
5691 DiskArbitration/DiskArbitration.h \
5692 IOKit/IOKitLib.h \
5693 IOKit/hid/IOHIDLib.h \
5694 OpenAL/al.h \
5695 alias.h \
5696 alsa/asoundlib.h \
5697 arpa/inet.h \
5698 arpa/nameser.h \
5699 asm/types.h \
5700 capi20.h \
5701 curses.h \
5702 direct.h \
5703 dirent.h \
5704 dlfcn.h \
5705 elf.h \
5706 float.h \
5707 fnmatch.h \
5708 fontconfig/fontconfig.h \
5709 getopt.h \
5710 grp.h \
5711 gsm.h \
5712 gsm/gsm.h \
5713 ieeefp.h \
5714 inet/mib2.h \
5715 io.h \
5716 jack/jack.h \
5717 jpeglib.h \
5718 kstat.h \
5719 lber.h \
5720 lcms.h \
5721 lcms/lcms.h \
5722 ldap.h \
5723 libaudioio.h \
5724 link.h \
5725 linux/cdrom.h \
5726 linux/compiler.h \
5727 linux/hdreg.h \
5728 linux/input.h \
5729 linux/ioctl.h \
5730 linux/joystick.h \
5731 linux/major.h \
5732 linux/param.h \
5733 linux/serial.h \
5734 linux/types.h \
5735 linux/ucdrom.h \
5736 mach-o/nlist.h \
5737 mach/mach.h \
5738 mach/machine.h \
5739 machine/cpu.h \
5740 machine/limits.h \
5741 machine/soundcard.h \
5742 mntent.h \
5743 mpg123.h \
5744 ncurses.h \
5745 netdb.h \
5746 netinet/in.h \
5747 netinet/in_systm.h \
5748 netinet/tcp.h \
5749 netinet/tcp_fsm.h \
5750 openssl/err.h \
5751 openssl/ssl.h \
5752 png.h \
5753 poll.h \
5754 port.h \
5755 process.h \
5756 pthread.h \
5757 pwd.h \
5758 regex.h \
5759 sched.h \
5760 scsi/scsi.h \
5761 scsi/scsi_ioctl.h \
5762 scsi/sg.h \
5763 soundcard.h \
5764 stdbool.h \
5765 stdint.h \
5766 strings.h \
5767 stropts.h \
5768 sys/asoundlib.h \
5769 sys/cdio.h \
5770 sys/elf32.h \
5771 sys/epoll.h \
5772 sys/errno.h \
5773 sys/event.h \
5774 sys/exec_elf.h \
5775 sys/filio.h \
5776 sys/inotify.h \
5777 sys/ioctl.h \
5778 sys/ipc.h \
5779 sys/limits.h \
5780 sys/link.h \
5781 sys/mman.h \
5782 sys/modem.h \
5783 sys/msg.h \
5784 sys/mtio.h \
5785 sys/param.h \
5786 sys/poll.h \
5787 sys/prctl.h \
5788 sys/protosw.h \
5789 sys/ptrace.h \
5790 sys/resource.h \
5791 sys/scsiio.h \
5792 sys/shm.h \
5793 sys/signal.h \
5794 sys/socket.h \
5795 sys/socketvar.h \
5796 sys/sockio.h \
5797 sys/soundcard.h \
5798 sys/statvfs.h \
5799 sys/strtio.h \
5800 sys/syscall.h \
5801 sys/tihdr.h \
5802 sys/time.h \
5803 sys/timeout.h \
5804 sys/times.h \
5805 sys/uio.h \
5806 sys/un.h \
5807 sys/utsname.h \
5808 sys/vm86.h \
5809 sys/wait.h \
5810 syscall.h \
5811 termios.h \
5812 tiffio.h \
5813 unistd.h \
5814 utime.h \
5815 valgrind/memcheck.h \
5816 valgrind/valgrind.h \
5817 zlib.h
5819 do :
5820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5822 eval as_val=\$$as_ac_Header
5823 if test "x$as_val" = x""yes; then :
5824 cat >>confdefs.h <<_ACEOF
5825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 _ACEOF
5830 done
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5833 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5834 if test "${ac_cv_header_stat_broken+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <sys/types.h>
5840 #include <sys/stat.h>
5842 #if defined S_ISBLK && defined S_IFDIR
5843 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5844 #endif
5846 #if defined S_ISBLK && defined S_IFCHR
5847 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5848 #endif
5850 #if defined S_ISLNK && defined S_IFREG
5851 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5852 #endif
5854 #if defined S_ISSOCK && defined S_IFREG
5855 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5856 #endif
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 ac_cv_header_stat_broken=no
5861 else
5862 ac_cv_header_stat_broken=yes
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5867 $as_echo "$ac_cv_header_stat_broken" >&6; }
5868 if test $ac_cv_header_stat_broken = yes; then
5870 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5876 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5877 do :
5878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5880 #ifdef HAVE_SYS_PARAM_H
5881 # include <sys/param.h>
5882 #endif
5884 eval as_val=\$$as_ac_Header
5885 if test "x$as_val" = x""yes; then :
5886 cat >>confdefs.h <<_ACEOF
5887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888 _ACEOF
5892 done
5895 for ac_header in \
5896 netinet/ip.h \
5897 net/if.h \
5898 net/if_arp.h \
5899 net/if_dl.h \
5900 net/if_types.h \
5901 net/route.h \
5902 netinet/if_ether.h \
5903 netinet/if_inarp.h \
5904 netinet/in_pcb.h \
5905 netinet/ip_icmp.h \
5906 netinet/ip_var.h \
5907 netinet/udp.h \
5908 netipx/ipx.h \
5910 do :
5911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5913 #ifdef HAVE_SYS_SOCKET_H
5914 # include <sys/socket.h>
5915 #endif
5916 #ifdef HAVE_SYS_SOCKETVAR_H
5917 # include <sys/socketvar.h>
5918 #endif
5919 #ifdef HAVE_NET_ROUTE_H
5920 # include <net/route.h>
5921 #endif
5922 #ifdef HAVE_NETINET_IN_H
5923 # include <netinet/in.h>
5924 #endif
5925 #ifdef HAVE_NETINET_IN_SYSTM_H
5926 # include <netinet/in_systm.h>
5927 #endif
5928 #ifdef HAVE_NET_IF_H
5929 # include <net/if.h>
5930 #endif
5931 #ifdef HAVE_NETINET_IP_H
5932 # include <netinet/ip.h>
5933 #endif
5935 eval as_val=\$$as_ac_Header
5936 if test "x$as_val" = x""yes; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5943 done
5946 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5947 do :
5948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5950 #ifdef HAVE_ALIAS_H
5951 # include <alias.h>
5952 #endif
5953 #ifdef HAVE_SYS_SOCKET_H
5954 # include <sys/socket.h>
5955 #endif
5956 #ifdef HAVE_SYS_SOCKETVAR_H
5957 # include <sys/socketvar.h>
5958 #endif
5959 #ifdef HAVE_SYS_TIMEOUT_H
5960 # include <sys/timeout.h>
5961 #endif
5962 #ifdef HAVE_NETINET_IN_H
5963 # include <netinet/in.h>
5964 #endif
5965 #ifdef HAVE_NETINET_IN_SYSTM_H
5966 # include <netinet/in_systm.h>
5967 #endif
5968 #ifdef HAVE_NETINET_IP_H
5969 # include <netinet/ip.h>
5970 #endif
5971 #ifdef HAVE_NETINET_IP_VAR_H
5972 # include <netinet/ip_var.h>
5973 #endif
5974 #ifdef HAVE_NETINET_IP_ICMP_H
5975 # include <netinet/ip_icmp.h>
5976 #endif
5977 #ifdef HAVE_NETINET_UDP_H
5978 # include <netinet/udp.h>
5979 #endif
5980 #ifdef HAVE_NETINET_TCP_H
5981 # include <netinet/tcp.h>
5982 #endif
5983 #ifdef HAVE_NETINET_TCP_TIMER_H
5984 #include <netinet/tcp_timer.h>
5985 #endif
5987 eval as_val=\$$as_ac_Header
5988 if test "x$as_val" = x""yes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5991 _ACEOF
5995 done
5998 for ac_header in linux/ipx.h linux/irda.h
5999 do :
6000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6001 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6002 #ifdef HAVE_ASM_TYPES_H
6003 # include <asm/types.h>
6004 #endif
6005 #ifdef HAVE_SYS_SOCKET_H
6006 # include <sys/socket.h>
6007 #endif
6008 #ifdef HAVE_LINUX_TYPES_H
6009 # include <linux/types.h>
6010 #endif
6012 eval as_val=\$$as_ac_Header
6013 if test "x$as_val" = x""yes; then :
6014 cat >>confdefs.h <<_ACEOF
6015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 _ACEOF
6020 done
6023 for ac_header in mach-o/dyld_images.h
6024 do :
6025 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6026 # include <stdbool.h>
6027 #endif
6028 #ifdef HAVE_STDINT_H
6029 # include <stdint.h>
6030 #endif
6032 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6033 cat >>confdefs.h <<_ACEOF
6034 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6035 _ACEOF
6039 done
6042 for ac_header in resolv.h
6043 do :
6044 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6045 #ifdef HAVE_SYS_SOCKET_H
6046 # include <sys/socket.h>
6047 #endif
6048 #ifdef HAVE_NETINET_IN_H
6049 # include <netinet/in.h>
6050 #endif
6051 #ifdef HAVE_ARPA_NAMESER_H
6052 # include <arpa/nameser.h>
6053 #endif
6055 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6056 cat >>confdefs.h <<_ACEOF
6057 #define HAVE_RESOLV_H 1
6058 _ACEOF
6062 done
6065 for ac_header in ifaddrs.h
6066 do :
6067 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6069 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_IFADDRS_H 1
6072 _ACEOF
6076 done
6079 for ac_header in ucontext.h
6080 do :
6081 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6083 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6084 cat >>confdefs.h <<_ACEOF
6085 #define HAVE_UCONTEXT_H 1
6086 _ACEOF
6090 done
6093 for ac_header in sys/thr.h
6094 do :
6095 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6096 #ifdef HAVE_UCONTEXT_H
6097 #include <ucontext.h>
6098 #endif
6100 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6101 cat >>confdefs.h <<_ACEOF
6102 #define HAVE_SYS_THR_H 1
6103 _ACEOF
6107 done
6110 for ac_header in pthread_np.h
6111 do :
6112 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6113 #include <pthread.h>
6114 #endif
6116 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_PTHREAD_NP_H 1
6119 _ACEOF
6123 done
6126 for ac_header in linux/videodev.h
6127 do :
6128 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6129 #include <sys/time.h>
6130 #endif
6131 #include <sys/types.h>
6132 #ifdef HAVE_ASM_TYPES_H
6133 #include <asm/types.h>
6134 #endif
6136 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define HAVE_LINUX_VIDEODEV_H 1
6139 _ACEOF
6143 done
6146 for ac_header in linux/capi.h
6147 do :
6148 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6150 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6151 cat >>confdefs.h <<_ACEOF
6152 #define HAVE_LINUX_CAPI_H 1
6153 _ACEOF
6157 done
6161 DLLEXT=""
6163 DLLFLAGS="-D_REENTRANT"
6165 LDSHARED=""
6167 LDDLLFLAGS=""
6169 LIBEXT="so"
6171 IMPLIBEXT="def"
6173 LDRPATH_INSTALL=""
6175 LDRPATH_LOCAL=""
6177 STATIC_IMPLIBEXT="def.a"
6178 # Extract the first word of "ldd", so it can be a program name with args.
6179 set dummy ldd; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_path_LDD+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 case $LDD in
6186 [\\/]* | ?:[\\/]*)
6187 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 as_dummy="/sbin:/usr/sbin:$PATH"
6192 for as_dir in $as_dummy
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6202 done
6203 done
6204 IFS=$as_save_IFS
6206 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6208 esac
6210 LDD=$ac_cv_path_LDD
6211 if test -n "$LDD"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6213 $as_echo "$LDD" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6221 case $host_os in
6222 cygwin*|mingw32*)
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$DLLTOOL"; then
6232 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 DLLTOOL=$ac_cv_prog_DLLTOOL
6252 if test -n "$DLLTOOL"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6254 $as_echo "$DLLTOOL" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6262 if test -z "$ac_cv_prog_DLLTOOL"; then
6263 ac_ct_DLLTOOL=$DLLTOOL
6264 # Extract the first word of "dlltool", so it can be a program name with args.
6265 set dummy dlltool; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$ac_ct_DLLTOOL"; then
6272 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6292 if test -n "$ac_ct_DLLTOOL"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6294 $as_echo "$ac_ct_DLLTOOL" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6300 if test "x$ac_ct_DLLTOOL" = x; then
6301 DLLTOOL="false"
6302 else
6303 case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309 DLLTOOL=$ac_ct_DLLTOOL
6311 else
6312 DLLTOOL="$ac_cv_prog_DLLTOOL"
6315 if test -n "$ac_tool_prefix"; then
6316 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6317 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$DLLWRAP"; then
6324 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6337 done
6338 done
6339 IFS=$as_save_IFS
6343 DLLWRAP=$ac_cv_prog_DLLWRAP
6344 if test -n "$DLLWRAP"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6346 $as_echo "$DLLWRAP" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6354 if test -z "$ac_cv_prog_DLLWRAP"; then
6355 ac_ct_DLLWRAP=$DLLWRAP
6356 # Extract the first word of "dllwrap", so it can be a program name with args.
6357 set dummy dllwrap; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$ac_ct_DLLWRAP"; then
6364 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6384 if test -n "$ac_ct_DLLWRAP"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6386 $as_echo "$ac_ct_DLLWRAP" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6392 if test "x$ac_ct_DLLWRAP" = x; then
6393 DLLWRAP="false"
6394 else
6395 case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401 DLLWRAP=$ac_ct_DLLWRAP
6403 else
6404 DLLWRAP="$ac_cv_prog_DLLWRAP"
6407 if test "$DLLWRAP" = "false"; then
6408 LIBEXT="a"
6409 else
6410 LIBEXT="dll"
6412 IMPLIBEXT="a"
6413 STATIC_IMPLIBEXT="a"
6414 enable_iphlpapi=${enable_iphlpapi:-no}
6415 enable_kernel32=${enable_kernel32:-no}
6416 enable_msvcrt=${enable_msvcrt:-no}
6417 enable_ntdll=${enable_ntdll:-no}
6418 enable_ws2_32=${enable_ws2_32:-no}
6419 enable_loader=${enable_loader:-no}
6420 enable_server=${enable_server:-no}
6421 with_x=${with_x:-no}
6422 with_pthread=${with_pthread:-no}
6424 darwin*|macosx*)
6425 DLLEXT=".so"
6426 LIBEXT="dylib"
6427 DLLFLAGS="$DLLFLAGS -fPIC"
6428 LDDLLFLAGS="-bundle -multiply_defined suppress"
6429 LIBWINE_LDFLAGS="-multiply_defined suppress"
6430 LDSHARED="\$(CC) -dynamiclib"
6431 STRIP="$STRIP -x"
6432 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6433 SECURITYLIB="-framework Security -framework CoreFoundation"
6435 COREFOUNDATIONLIB="-framework CoreFoundation"
6437 IOKITLIB="-framework IOKit -framework CoreFoundation"
6439 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6441 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6442 then
6443 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6446 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6447 then
6448 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6450 ac_save_LIBS="$LIBS"
6451 if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6452 then
6453 LIBS="$LIBS $COREAUDIO"
6454 for ac_func in AudioFileStreamOpen
6455 do :
6456 ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6457 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6458 cat >>confdefs.h <<_ACEOF
6459 #define HAVE_AUDIOFILESTREAMOPEN 1
6460 _ACEOF
6463 done
6465 LIBS="$ac_save_LIBS"
6467 test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6469 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6470 then
6471 LIBOPENAL="-framework OpenAL"
6473 ac_cv_lib_openal_alGetSource3i=yes
6475 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6476 then
6477 ac_save_LIBS="$LIBS"
6478 LIBS="$LIBS $IOKITLIB"
6479 for ac_func in IOHIDManagerCreate
6480 do :
6481 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6482 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6483 cat >>confdefs.h <<_ACEOF
6484 #define HAVE_IOHIDMANAGERCREATE 1
6485 _ACEOF
6488 done
6490 LIBS="$ac_save_LIBS"
6492 case $host_cpu in
6493 *powerpc*)
6494 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6495 esac
6496 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6497 then
6498 CARBONLIB="-framework Carbon"
6500 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6502 if test "x$enable_win16" = "xyes"
6503 then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6505 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6506 if test "$cross_compiling" = yes; then :
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6508 $as_echo "cross-compiling, assuming yes" >&6; }
6509 else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 asm(".text\n"
6513 "bad:\tnop;nop\n"
6514 "good:\tnop;nop\n\t"
6515 ".globl _testfunc\n"
6516 "_testfunc:\tcallw good");
6517 extern void testfunc();
6519 main ()
6521 unsigned short *p = (unsigned short *)testfunc;
6522 return p[0] != 0xe866 || p[1] != 0xfffa
6524 return 0;
6526 _ACEOF
6527 if ac_fn_c_try_run "$LINENO"; then :
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529 $as_echo "yes" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 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
6535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6536 conftest.$ac_objext conftest.beam conftest.$ac_ext
6542 DLLFLAGS="$DLLFLAGS -fPIC"
6543 DLLEXT=".so"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6545 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6546 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 ac_wine_try_cflags_saved=$CFLAGS
6550 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 void myfunc() {}
6554 _ACEOF
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 ac_cv_c_dll_gnuelf="yes"
6557 else
6558 ac_cv_c_dll_gnuelf="no"
6560 rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 CFLAGS=$ac_wine_try_cflags_saved
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6565 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6566 if test "$ac_cv_c_dll_gnuelf" = "yes"
6567 then
6568 LDSHARED="\$(CC) -shared"
6569 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6571 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6572 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 ac_wine_try_cflags_saved=$CFLAGS
6576 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int main(int argc, char **argv) { return 0; }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6583 else
6584 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6586 rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 CFLAGS=$ac_wine_try_cflags_saved
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6591 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6592 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6593 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6596 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6597 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 ac_wine_try_cflags_saved=$CFLAGS
6601 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int main(int argc, char **argv) { return 0; }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6608 else
6609 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 CFLAGS=$ac_wine_try_cflags_saved
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6616 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6617 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6618 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6623 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6624 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 ac_wine_try_cflags_saved=$CFLAGS
6628 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int main(int argc, char **argv) { return 0; }
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"; then :
6634 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6635 else
6636 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 CFLAGS=$ac_wine_try_cflags_saved
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6643 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6644 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6645 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6648 { $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
6649 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6650 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 ac_wine_try_cflags_saved=$CFLAGS
6654 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 int main(int argc, char **argv) { return 0; }
6658 _ACEOF
6659 if ac_fn_c_try_link "$LINENO"; then :
6660 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6661 else
6662 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6664 rm -f core conftest.err conftest.$ac_objext \
6665 conftest$ac_exeext conftest.$ac_ext
6666 CFLAGS=$ac_wine_try_cflags_saved
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6669 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6670 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6671 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6674 echo '{ global: *; };' >conftest.map
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6676 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6677 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 ac_wine_try_cflags_saved=$CFLAGS
6681 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int main(int argc, char **argv) { return 0; }
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6688 else
6689 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6691 rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6693 CFLAGS=$ac_wine_try_cflags_saved
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6696 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6697 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6698 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6700 rm -f conftest.map
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6703 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6704 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 ac_wine_try_cflags_saved=$CFLAGS
6708 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 int main(int argc, char **argv) { return 0; }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6715 else
6716 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS=$ac_wine_try_cflags_saved
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6723 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6724 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6725 LDEXECFLAGS="-Wl,--export-dynamic"
6729 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6731 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 ac_wine_try_cflags_saved=$CFLAGS
6736 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 int main(int argc, char **argv) { return 0; }
6740 _ACEOF
6741 if ac_fn_c_try_link "$LINENO"; then :
6742 eval "$as_ac_var=yes"
6743 else
6744 eval "$as_ac_var=no"
6746 rm -f core conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6748 CFLAGS=$ac_wine_try_cflags_saved
6750 eval ac_res=\$$as_ac_var
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6752 $as_echo "$ac_res" >&6; }
6753 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6754 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6755 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6756 else
6757 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6759 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 ac_wine_try_cflags_saved=$CFLAGS
6764 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 int main(int argc, char **argv) { return 0; }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 eval "$as_ac_var=yes"
6771 else
6772 eval "$as_ac_var=no"
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 CFLAGS=$ac_wine_try_cflags_saved
6778 eval ac_res=\$$as_ac_var
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6780 $as_echo "$ac_res" >&6; }
6781 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6782 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6783 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6788 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6789 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 ac_wine_try_cflags_saved=$CFLAGS
6793 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796 int main(int argc, char **argv) { return 0; }
6797 _ACEOF
6798 if ac_fn_c_try_link "$LINENO"; then :
6799 ac_cv_cflags__Wl___enable_new_dtags=yes
6800 else
6801 ac_cv_cflags__Wl___enable_new_dtags=no
6803 rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 CFLAGS=$ac_wine_try_cflags_saved
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6808 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6809 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6810 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6813 case $host_cpu in
6814 *i[3456789]86* | x86_64)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6816 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6817 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_wine_try_cflags_saved=$CFLAGS
6821 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int main(int argc, char **argv) { return 0; }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6828 else
6829 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 CFLAGS=$ac_wine_try_cflags_saved
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6836 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6837 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6838 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6841 esac
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6845 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6846 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 ac_wine_try_cflags_saved=$CFLAGS
6850 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 void myfunc() {}
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_c_dll_unixware="yes"
6857 else
6858 ac_cv_c_dll_unixware="no"
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 CFLAGS=$ac_wine_try_cflags_saved
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6865 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6866 if test "$ac_cv_c_dll_unixware" = "yes"
6867 then
6868 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6869 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6873 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6874 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 ac_wine_try_cflags_saved=$CFLAGS
6878 CFLAGS="$CFLAGS -shared"
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 void myfunc() {}
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"; then :
6884 ac_cv_c_dll_hpux="yes"
6885 else
6886 ac_cv_c_dll_hpux="no"
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 CFLAGS=$ac_wine_try_cflags_saved
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6893 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6894 if test "$ac_cv_c_dll_hpux" = "yes"
6895 then
6896 LIBEXT="sl"
6897 DLLEXT=".sl"
6898 LDDLLFLAGS="-shared -fPIC"
6899 LDSHARED="\$(CC) -shared"
6904 esac
6906 enable_winequartz_drv=${enable_winequartz_drv:-no}
6908 if test "$LIBEXT" = "a"; then
6909 as_fn_error "could not find a way to build shared libraries.
6910 It is currently not possible to build Wine without shared library
6911 (.so) support to allow transparent switch between .so and .dll files.
6912 If you are using Linux, you will need a newer binutils.
6913 " "$LINENO" 5
6916 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6917 then
6918 case "$host_cpu" in
6919 i[3456789]86*)
6920 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 " ;;
6921 x86_64)
6922 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6924 ac_prefix_list="" ;;
6925 esac
6926 for ac_prog in $ac_prefix_list
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$CROSSCC"; then
6936 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_CROSSCC="$ac_prog"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6955 CROSSCC=$ac_cv_prog_CROSSCC
6956 if test -n "$CROSSCC"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6958 $as_echo "$CROSSCC" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6965 test -n "$CROSSCC" && break
6966 done
6967 test -n "$CROSSCC" || CROSSCC="false"
6969 if test "$CROSSCC" != "false"
6970 then
6971 CROSSTEST="\$(CROSSTEST)"
6973 set x $CROSSCC
6974 shift
6975 target=""
6976 while test $# -ge 1
6978 case "$1" in
6979 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6980 esac
6981 shift
6982 done
6983 if test -n "$target"
6984 then
6985 CROSSTARGET="$target"
6992 if test "$ac_cv_header_pthread_h" = "yes"
6993 then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6995 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6996 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 ac_check_lib_save_LIBS=$LIBS
7000 LIBS="-lpthread $LIBS"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 char pthread_create ();
7012 main ()
7014 return pthread_create ();
7016 return 0;
7018 _ACEOF
7019 if ac_fn_c_try_link "$LINENO"; then :
7020 ac_cv_lib_pthread_pthread_create=yes
7021 else
7022 ac_cv_lib_pthread_pthread_create=no
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 LIBS=$ac_check_lib_save_LIBS
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7029 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7030 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7031 LIBPTHREAD="-lpthread"
7036 if test "x$LIBPTHREAD" = "x"; then :
7037 case "x$with_pthread" in
7038 xno) ;;
7039 *) as_fn_error "pthread ${notice_platform}development files not found.
7040 Wine cannot support threads without libpthread.
7041 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7042 esac
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7047 $as_echo_n "checking for X... " >&6; }
7050 # Check whether --with-x was given.
7051 if test "${with_x+set}" = set; then :
7052 withval=$with_x;
7055 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7056 if test "x$with_x" = xno; then
7057 # The user explicitly disabled X.
7058 have_x=disabled
7059 else
7060 case $x_includes,$x_libraries in #(
7061 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7062 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 # One or both of the vars are not set, and there is no cached value.
7066 ac_x_includes=no ac_x_libraries=no
7067 rm -f -r conftest.dir
7068 if mkdir conftest.dir; then
7069 cd conftest.dir
7070 cat >Imakefile <<'_ACEOF'
7071 incroot:
7072 @echo incroot='${INCROOT}'
7073 usrlibdir:
7074 @echo usrlibdir='${USRLIBDIR}'
7075 libdir:
7076 @echo libdir='${LIBDIR}'
7077 _ACEOF
7078 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7080 for ac_var in incroot usrlibdir libdir; do
7081 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7082 done
7083 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7084 for ac_extension in a so sl dylib la dll; do
7085 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7086 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7087 ac_im_usrlibdir=$ac_im_libdir; break
7089 done
7090 # Screen out bogus values from the imake configuration. They are
7091 # bogus both because they are the default anyway, and because
7092 # using them would break gcc on systems where it needs fixed includes.
7093 case $ac_im_incroot in
7094 /usr/include) ac_x_includes= ;;
7095 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7096 esac
7097 case $ac_im_usrlibdir in
7098 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7099 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7100 esac
7102 cd ..
7103 rm -f -r conftest.dir
7106 # Standard set of common directories for X headers.
7107 # Check X11 before X11Rn because it is often a symlink to the current release.
7108 ac_x_header_dirs='
7109 /usr/X11/include
7110 /usr/X11R7/include
7111 /usr/X11R6/include
7112 /usr/X11R5/include
7113 /usr/X11R4/include
7115 /usr/include/X11
7116 /usr/include/X11R7
7117 /usr/include/X11R6
7118 /usr/include/X11R5
7119 /usr/include/X11R4
7121 /usr/local/X11/include
7122 /usr/local/X11R7/include
7123 /usr/local/X11R6/include
7124 /usr/local/X11R5/include
7125 /usr/local/X11R4/include
7127 /usr/local/include/X11
7128 /usr/local/include/X11R7
7129 /usr/local/include/X11R6
7130 /usr/local/include/X11R5
7131 /usr/local/include/X11R4
7133 /usr/X386/include
7134 /usr/x386/include
7135 /usr/XFree86/include/X11
7137 /usr/include
7138 /usr/local/include
7139 /usr/unsupported/include
7140 /usr/athena/include
7141 /usr/local/x11r5/include
7142 /usr/lpp/Xamples/include
7144 /usr/openwin/include
7145 /usr/openwin/share/include'
7147 if test "$ac_x_includes" = no; then
7148 # Guess where to find include files, by looking for Xlib.h.
7149 # First, try using that file with no special directory specified.
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <X11/Xlib.h>
7153 _ACEOF
7154 if ac_fn_c_try_cpp "$LINENO"; then :
7155 # We can compile using X headers with no special include directory.
7156 ac_x_includes=
7157 else
7158 for ac_dir in $ac_x_header_dirs; do
7159 if test -r "$ac_dir/X11/Xlib.h"; then
7160 ac_x_includes=$ac_dir
7161 break
7163 done
7165 rm -f conftest.err conftest.$ac_ext
7166 fi # $ac_x_includes = no
7168 if test "$ac_x_libraries" = no; then
7169 # Check for the libraries.
7170 # See if we find them without any special options.
7171 # Don't add to $LIBS permanently.
7172 ac_save_LIBS=$LIBS
7173 LIBS="-lX11 $LIBS"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #include <X11/Xlib.h>
7178 main ()
7180 XrmInitialize ()
7182 return 0;
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"; then :
7186 LIBS=$ac_save_LIBS
7187 # We can link X programs with no special library path.
7188 ac_x_libraries=
7189 else
7190 LIBS=$ac_save_LIBS
7191 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7193 # Don't even attempt the hair of trying to link an X program!
7194 for ac_extension in a so sl dylib la dll; do
7195 if test -r "$ac_dir/libX11.$ac_extension"; then
7196 ac_x_libraries=$ac_dir
7197 break 2
7199 done
7200 done
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 fi # $ac_x_libraries = no
7206 case $ac_x_includes,$ac_x_libraries in #(
7207 no,* | *,no | *\'*)
7208 # Didn't find X, or a directory has "'" in its name.
7209 ac_cv_have_x="have_x=no";; #(
7211 # Record where we found X for the cache.
7212 ac_cv_have_x="have_x=yes\
7213 ac_x_includes='$ac_x_includes'\
7214 ac_x_libraries='$ac_x_libraries'"
7215 esac
7217 ;; #(
7218 *) have_x=yes;;
7219 esac
7220 eval "$ac_cv_have_x"
7221 fi # $with_x != no
7223 if test "$have_x" != yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7225 $as_echo "$have_x" >&6; }
7226 no_x=yes
7227 else
7228 # If each of the values was on the command line, it overrides each guess.
7229 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7230 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7231 # Update the cache value to reflect the command line values.
7232 ac_cv_have_x="have_x=yes\
7233 ac_x_includes='$x_includes'\
7234 ac_x_libraries='$x_libraries'"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7236 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7239 if test "$no_x" = yes; then
7240 # Not all programs may use this symbol, but it does not hurt to define it.
7242 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7244 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7245 else
7246 if test -n "$x_includes"; then
7247 X_CFLAGS="$X_CFLAGS -I$x_includes"
7250 # It would also be nice to do this for all -L options, not just this one.
7251 if test -n "$x_libraries"; then
7252 X_LIBS="$X_LIBS -L$x_libraries"
7253 # For Solaris; some versions of Sun CC require a space after -R and
7254 # others require no space. Words are not sufficient . . . .
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7256 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7257 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7258 ac_xsave_c_werror_flag=$ac_c_werror_flag
7259 ac_c_werror_flag=yes
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7264 main ()
7268 return 0;
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 X_LIBS="$X_LIBS -R$x_libraries"
7275 else
7276 LIBS="$ac_xsave_LIBS -R $x_libraries"
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7281 main ()
7285 return 0;
7287 _ACEOF
7288 if ac_fn_c_try_link "$LINENO"; then :
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290 $as_echo "yes" >&6; }
7291 X_LIBS="$X_LIBS -R $x_libraries"
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7294 $as_echo "neither works" >&6; }
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7299 rm -f core conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
7301 ac_c_werror_flag=$ac_xsave_c_werror_flag
7302 LIBS=$ac_xsave_LIBS
7305 # Check for system-dependent libraries X programs must link with.
7306 # Do this before checking for the system-independent R6 libraries
7307 # (-lICE), since we may need -lsocket or whatever for X linking.
7309 if test "$ISC" = yes; then
7310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7311 else
7312 # Martyn Johnson says this is needed for Ultrix, if the X
7313 # libraries were built with DECnet support. And Karl Berry says
7314 # the Alpha needs dnet_stub (dnet does not exist).
7315 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7319 /* Override any GCC internal prototype to avoid an error.
7320 Use char because int might match the return type of a GCC
7321 builtin and then its argument prototype would still apply. */
7322 #ifdef __cplusplus
7323 extern "C"
7324 #endif
7325 char XOpenDisplay ();
7327 main ()
7329 return XOpenDisplay ();
7331 return 0;
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"; then :
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7338 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7339 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 ac_check_lib_save_LIBS=$LIBS
7343 LIBS="-ldnet $LIBS"
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7347 /* Override any GCC internal prototype to avoid an error.
7348 Use char because int might match the return type of a GCC
7349 builtin and then its argument prototype would still apply. */
7350 #ifdef __cplusplus
7351 extern "C"
7352 #endif
7353 char dnet_ntoa ();
7355 main ()
7357 return dnet_ntoa ();
7359 return 0;
7361 _ACEOF
7362 if ac_fn_c_try_link "$LINENO"; then :
7363 ac_cv_lib_dnet_dnet_ntoa=yes
7364 else
7365 ac_cv_lib_dnet_dnet_ntoa=no
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 LIBS=$ac_check_lib_save_LIBS
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7372 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7373 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7374 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7377 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7379 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7380 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 ac_check_lib_save_LIBS=$LIBS
7384 LIBS="-ldnet_stub $LIBS"
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char dnet_ntoa ();
7396 main ()
7398 return dnet_ntoa ();
7400 return 0;
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7405 else
7406 ac_cv_lib_dnet_stub_dnet_ntoa=no
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LIBS=$ac_check_lib_save_LIBS
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7413 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7414 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7415 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7420 rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422 LIBS="$ac_xsave_LIBS"
7424 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7425 # to get the SysV transport functions.
7426 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7427 # needs -lnsl.
7428 # The nsl library prevents programs from opening the X display
7429 # on Irix 5.2, according to T.E. Dickey.
7430 # The functions gethostbyname, getservbyname, and inet_addr are
7431 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7432 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7433 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7437 if test $ac_cv_func_gethostbyname = no; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7439 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7440 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 ac_check_lib_save_LIBS=$LIBS
7444 LIBS="-lnsl $LIBS"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7448 /* Override any GCC internal prototype to avoid an error.
7449 Use char because int might match the return type of a GCC
7450 builtin and then its argument prototype would still apply. */
7451 #ifdef __cplusplus
7452 extern "C"
7453 #endif
7454 char gethostbyname ();
7456 main ()
7458 return gethostbyname ();
7460 return 0;
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 ac_cv_lib_nsl_gethostbyname=yes
7465 else
7466 ac_cv_lib_nsl_gethostbyname=no
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7470 LIBS=$ac_check_lib_save_LIBS
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7473 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7474 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7478 if test $ac_cv_lib_nsl_gethostbyname = no; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7480 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7481 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lbsd $LIBS"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7489 /* Override any GCC internal prototype to avoid an error.
7490 Use char because int might match the return type of a GCC
7491 builtin and then its argument prototype would still apply. */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 char gethostbyname ();
7497 main ()
7499 return gethostbyname ();
7501 return 0;
7503 _ACEOF
7504 if ac_fn_c_try_link "$LINENO"; then :
7505 ac_cv_lib_bsd_gethostbyname=yes
7506 else
7507 ac_cv_lib_bsd_gethostbyname=no
7509 rm -f core conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 LIBS=$ac_check_lib_save_LIBS
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7514 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7515 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7516 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7522 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7523 # socket/setsockopt and other routines are undefined under SCO ODT
7524 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7525 # on later versions), says Simon Leinen: it contains gethostby*
7526 # variants that don't use the name server (or something). -lsocket
7527 # must be given before -lnsl if both are needed. We assume that
7528 # if connect needs -lnsl, so does gethostbyname.
7529 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7530 if test "x$ac_cv_func_connect" = x""yes; then :
7534 if test $ac_cv_func_connect = no; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7536 $as_echo_n "checking for connect in -lsocket... " >&6; }
7537 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char connect ();
7553 main ()
7555 return connect ();
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_lib_socket_connect=yes
7562 else
7563 ac_cv_lib_socket_connect=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7570 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7571 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7572 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7577 # Guillermo Gomez says -lposix is necessary on A/UX.
7578 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7579 if test "x$ac_cv_func_remove" = x""yes; then :
7583 if test $ac_cv_func_remove = no; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7585 $as_echo_n "checking for remove in -lposix... " >&6; }
7586 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 ac_check_lib_save_LIBS=$LIBS
7590 LIBS="-lposix $LIBS"
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7594 /* Override any GCC internal prototype to avoid an error.
7595 Use char because int might match the return type of a GCC
7596 builtin and then its argument prototype would still apply. */
7597 #ifdef __cplusplus
7598 extern "C"
7599 #endif
7600 char remove ();
7602 main ()
7604 return remove ();
7606 return 0;
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"; then :
7610 ac_cv_lib_posix_remove=yes
7611 else
7612 ac_cv_lib_posix_remove=no
7614 rm -f core conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7619 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7620 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7626 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7627 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7628 if test "x$ac_cv_func_shmat" = x""yes; then :
7632 if test $ac_cv_func_shmat = no; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7634 $as_echo_n "checking for shmat in -lipc... " >&6; }
7635 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lipc $LIBS"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char shmat ();
7651 main ()
7653 return shmat ();
7655 return 0;
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 ac_cv_lib_ipc_shmat=yes
7660 else
7661 ac_cv_lib_ipc_shmat=no
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7668 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7669 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7676 # Check for libraries that X11R6 Xt/Xaw programs need.
7677 ac_save_LDFLAGS=$LDFLAGS
7678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7680 # check for ICE first), but we must link in the order -lSM -lICE or
7681 # we get undefined symbols. So assume we have SM if we have ICE.
7682 # These have to be linked with before -lX11, unlike the other
7683 # libraries we check for below, so use a different variable.
7684 # John Interrante, Karl Berry
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7686 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7687 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 ac_check_lib_save_LIBS=$LIBS
7691 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7695 /* Override any GCC internal prototype to avoid an error.
7696 Use char because int might match the return type of a GCC
7697 builtin and then its argument prototype would still apply. */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 char IceConnectionNumber ();
7703 main ()
7705 return IceConnectionNumber ();
7707 return 0;
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 ac_cv_lib_ICE_IceConnectionNumber=yes
7712 else
7713 ac_cv_lib_ICE_IceConnectionNumber=no
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 LIBS=$ac_check_lib_save_LIBS
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7720 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7721 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7722 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7725 LDFLAGS=$ac_save_LDFLAGS
7730 if test "$have_x" = "yes"
7731 then
7732 XLIB="-lX11"
7733 ac_save_CPPFLAGS="$CPPFLAGS"
7734 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7737 $as_echo_n "checking for -lX11... " >&6; }
7738 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 ac_check_soname_save_LIBS=$LIBS
7742 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 char XCreateWindow ();
7754 main ()
7756 return XCreateWindow ();
7758 return 0;
7760 _ACEOF
7761 if ac_fn_c_try_link "$LINENO"; then :
7762 case "$LIBEXT" in
7763 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7764 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'` ;;
7765 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7766 esac
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_soname_save_LIBS
7772 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7774 $as_echo "not found" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7778 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7780 cat >>confdefs.h <<_ACEOF
7781 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7782 _ACEOF
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7787 $as_echo_n "checking for -lXext... " >&6; }
7788 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 ac_check_soname_save_LIBS=$LIBS
7792 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7796 /* Override any GCC internal prototype to avoid an error.
7797 Use char because int might match the return type of a GCC
7798 builtin and then its argument prototype would still apply. */
7799 #ifdef __cplusplus
7800 extern "C"
7801 #endif
7802 char XextCreateExtension ();
7804 main ()
7806 return XextCreateExtension ();
7808 return 0;
7810 _ACEOF
7811 if ac_fn_c_try_link "$LINENO"; then :
7812 case "$LIBEXT" in
7813 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7814 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'` ;;
7815 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7816 esac
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_soname_save_LIBS
7822 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7824 $as_echo "not found" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7828 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7830 cat >>confdefs.h <<_ACEOF
7831 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7832 _ACEOF
7834 XLIB="-lXext $XLIB"
7837 for ac_header in X11/Xlib.h \
7838 X11/XKBlib.h \
7839 X11/Xutil.h \
7840 X11/Xcursor/Xcursor.h \
7841 X11/extensions/shape.h \
7842 X11/extensions/XInput.h \
7843 X11/extensions/XShm.h \
7844 X11/extensions/Xcomposite.h \
7845 X11/extensions/Xinerama.h \
7846 X11/extensions/Xrandr.h \
7847 X11/extensions/Xrender.h \
7848 X11/extensions/xf86vmode.h \
7849 X11/extensions/xf86vmproto.h
7850 do :
7851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7853 # include <X11/Xlib.h>
7854 #endif
7855 #ifdef HAVE_X11_XUTIL_H
7856 # include <X11/Xutil.h>
7857 #endif
7859 eval as_val=\$$as_ac_Header
7860 if test "x$as_val" = x""yes; then :
7861 cat >>confdefs.h <<_ACEOF
7862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7863 _ACEOF
7867 done
7870 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7871 then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7873 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7874 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7882 /* Override any GCC internal prototype to avoid an error.
7883 Use char because int might match the return type of a GCC
7884 builtin and then its argument prototype would still apply. */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 char XkbQueryExtension ();
7890 main ()
7892 return XkbQueryExtension ();
7894 return 0;
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 ac_cv_lib_X11_XkbQueryExtension=yes
7899 else
7900 ac_cv_lib_X11_XkbQueryExtension=no
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7907 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7908 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7910 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7916 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7917 then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7919 $as_echo_n "checking for -lXcursor... " >&6; }
7920 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_check_soname_save_LIBS=$LIBS
7924 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7928 /* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7931 #ifdef __cplusplus
7932 extern "C"
7933 #endif
7934 char XcursorImageLoadCursor ();
7936 main ()
7938 return XcursorImageLoadCursor ();
7940 return 0;
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 case "$LIBEXT" in
7945 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7946 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'` ;;
7947 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7948 esac
7950 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_soname_save_LIBS
7954 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7956 $as_echo "not found" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7960 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7962 cat >>confdefs.h <<_ACEOF
7963 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7964 _ACEOF
7969 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7970 case "x$with_xcursor" in
7971 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7972 xno) ;;
7973 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7974 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7975 esac
7978 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7979 then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7981 $as_echo_n "checking for -lXi... " >&6; }
7982 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 ac_check_soname_save_LIBS=$LIBS
7986 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7990 /* Override any GCC internal prototype to avoid an error.
7991 Use char because int might match the return type of a GCC
7992 builtin and then its argument prototype would still apply. */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 char XOpenDevice ();
7998 main ()
8000 return XOpenDevice ();
8002 return 0;
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"; then :
8006 case "$LIBEXT" in
8007 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8008 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'` ;;
8009 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8010 esac
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_soname_save_LIBS
8016 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8018 $as_echo "not found" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8022 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8024 cat >>confdefs.h <<_ACEOF
8025 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8026 _ACEOF
8031 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8032 case "x$with_xinput" in
8033 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8034 xno) ;;
8035 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8036 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8037 esac
8040 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8041 then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8043 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8044 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 ac_check_lib_save_LIBS=$LIBS
8048 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8052 /* Override any GCC internal prototype to avoid an error.
8053 Use char because int might match the return type of a GCC
8054 builtin and then its argument prototype would still apply. */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 char XShmQueryExtension ();
8060 main ()
8062 return XShmQueryExtension ();
8064 return 0;
8066 _ACEOF
8067 if ac_fn_c_try_link "$LINENO"; then :
8068 ac_cv_lib_Xext_XShmQueryExtension=yes
8069 else
8070 ac_cv_lib_Xext_XShmQueryExtension=no
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 LIBS=$ac_check_lib_save_LIBS
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8077 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8078 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8080 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8085 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8086 case "x$with_xshm" in
8087 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8088 xno) ;;
8089 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8090 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8091 esac
8094 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8095 then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8097 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8098 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 ac_check_lib_save_LIBS=$LIBS
8102 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8106 /* Override any GCC internal prototype to avoid an error.
8107 Use char because int might match the return type of a GCC
8108 builtin and then its argument prototype would still apply. */
8109 #ifdef __cplusplus
8110 extern "C"
8111 #endif
8112 char XShapeQueryExtension ();
8114 main ()
8116 return XShapeQueryExtension ();
8118 return 0;
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 ac_cv_lib_Xext_XShapeQueryExtension=yes
8123 else
8124 ac_cv_lib_Xext_XShapeQueryExtension=no
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 LIBS=$ac_check_lib_save_LIBS
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8131 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8132 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8134 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8139 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8140 case "x$with_xshape" in
8141 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8142 xno) ;;
8143 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8144 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8145 esac
8148 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8149 then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8151 $as_echo_n "checking for -lXxf86vm... " >&6; }
8152 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 ac_check_soname_save_LIBS=$LIBS
8156 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 char XF86VidModeQueryExtension ();
8168 main ()
8170 return XF86VidModeQueryExtension ();
8172 return 0;
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 case "$LIBEXT" in
8177 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8178 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'` ;;
8179 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8180 esac
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_check_soname_save_LIBS
8186 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8188 $as_echo "not found" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8192 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8194 cat >>confdefs.h <<_ACEOF
8195 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8196 _ACEOF
8201 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8202 case "x$with_xxf86vm" in
8203 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8204 xno) ;;
8205 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8206 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8207 esac
8210 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"
8211 then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8213 $as_echo_n "checking for -lXrender... " >&6; }
8214 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 ac_check_soname_save_LIBS=$LIBS
8218 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8222 /* Override any GCC internal prototype to avoid an error.
8223 Use char because int might match the return type of a GCC
8224 builtin and then its argument prototype would still apply. */
8225 #ifdef __cplusplus
8226 extern "C"
8227 #endif
8228 char XRenderQueryExtension ();
8230 main ()
8232 return XRenderQueryExtension ();
8234 return 0;
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 case "$LIBEXT" in
8239 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8240 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'` ;;
8241 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8242 esac
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_soname_save_LIBS
8248 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8250 $as_echo "not found" >&6; }
8252 else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8254 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8256 cat >>confdefs.h <<_ACEOF
8257 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8258 _ACEOF
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8261 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8262 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 ac_check_lib_save_LIBS=$LIBS
8266 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char XRenderSetPictureTransform ();
8278 main ()
8280 return XRenderSetPictureTransform ();
8282 return 0;
8284 _ACEOF
8285 if ac_fn_c_try_link "$LINENO"; then :
8286 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8287 else
8288 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8290 rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8295 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8296 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8298 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8305 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8306 case "x$with_xrender" in
8307 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8308 xno) ;;
8309 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8310 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8311 esac
8314 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8315 then
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #include <X11/Xlib.h>
8319 #include <X11/extensions/Xrandr.h>
8321 main ()
8323 static typeof(XRRSetScreenConfigAndRate) * func;
8325 return 0;
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8330 $as_echo_n "checking for -lXrandr... " >&6; }
8331 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 ac_check_soname_save_LIBS=$LIBS
8335 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8339 /* Override any GCC internal prototype to avoid an error.
8340 Use char because int might match the return type of a GCC
8341 builtin and then its argument prototype would still apply. */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 char XRRQueryExtension ();
8347 main ()
8349 return XRRQueryExtension ();
8351 return 0;
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 case "$LIBEXT" in
8356 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8357 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'` ;;
8358 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8359 esac
8361 rm -f core conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363 LIBS=$ac_check_soname_save_LIBS
8365 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8367 $as_echo "not found" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8371 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8373 cat >>confdefs.h <<_ACEOF
8374 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8375 _ACEOF
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8383 case "x$with_xrandr" in
8384 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8385 xno) ;;
8386 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8387 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8388 esac
8391 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8392 then
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <X11/Xlib.h>
8396 #include <X11/extensions/Xinerama.h>
8398 main ()
8400 static typeof(XineramaQueryScreens) * func;
8402 return 0;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8407 $as_echo_n "checking for -lXinerama... " >&6; }
8408 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 ac_check_soname_save_LIBS=$LIBS
8412 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char XineramaQueryScreens ();
8424 main ()
8426 return XineramaQueryScreens ();
8428 return 0;
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"; then :
8432 case "$LIBEXT" in
8433 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8434 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'` ;;
8435 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8436 esac
8438 rm -f core conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_soname_save_LIBS
8442 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8444 $as_echo "not found" >&6; }
8446 else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8448 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8450 cat >>confdefs.h <<_ACEOF
8451 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8452 _ACEOF
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8460 case "x$with_xinerama" in
8461 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8462 xno) ;;
8463 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8464 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8465 esac
8468 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8469 then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8471 $as_echo_n "checking for -lXcomposite... " >&6; }
8472 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 ac_check_soname_save_LIBS=$LIBS
8476 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8480 /* Override any GCC internal prototype to avoid an error.
8481 Use char because int might match the return type of a GCC
8482 builtin and then its argument prototype would still apply. */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 char XCompositeRedirectWindow ();
8488 main ()
8490 return XCompositeRedirectWindow ();
8492 return 0;
8494 _ACEOF
8495 if ac_fn_c_try_link "$LINENO"; then :
8496 case "$LIBEXT" in
8497 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8498 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'` ;;
8499 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8500 esac
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_soname_save_LIBS
8506 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8508 $as_echo "not found" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8512 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8514 cat >>confdefs.h <<_ACEOF
8515 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8516 _ACEOF
8521 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8522 case "x$with_xcomposite" in
8523 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8524 xno) ;;
8525 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8526 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8527 esac
8530 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8531 #include <X11/Xlib.h>
8532 #endif
8534 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8536 cat >>confdefs.h <<_ACEOF
8537 #define HAVE_XICCALLBACK_CALLBACK 1
8538 _ACEOF
8545 opengl_msg=""
8546 if test "x$with_opengl" != "xno"
8547 then
8548 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8549 do :
8550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8552 # include <GL/glx.h>
8553 #endif
8555 eval as_val=\$$as_ac_Header
8556 if test "x$as_val" = x""yes; then :
8557 cat >>confdefs.h <<_ACEOF
8558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8559 _ACEOF
8563 done
8565 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8566 then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8568 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8569 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #include <GL/gl.h>
8576 main ()
8578 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8580 return 0;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 wine_cv_opengl_header_version_OK="yes"
8585 else
8586 wine_cv_opengl_header_version_OK="no"
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8591 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8593 if test "$wine_cv_opengl_header_version_OK" = "yes"
8594 then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8596 $as_echo_n "checking for -lGL... " >&6; }
8597 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 ac_check_soname_save_LIBS=$LIBS
8601 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 /* Override any GCC internal prototype to avoid an error.
8606 Use char because int might match the return type of a GCC
8607 builtin and then its argument prototype would still apply. */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 char glXCreateContext ();
8613 main ()
8615 return glXCreateContext ();
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_link "$LINENO"; then :
8621 case "$LIBEXT" in
8622 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8623 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'` ;;
8624 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8625 esac
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_soname_save_LIBS
8631 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8633 $as_echo "not found" >&6; }
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8635 $as_echo_n "checking for -lGL... " >&6; }
8636 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 ac_check_soname_save_LIBS=$LIBS
8640 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"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char glXCreateContext ();
8652 main ()
8654 return glXCreateContext ();
8656 return 0;
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 case "$LIBEXT" in
8661 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8662 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'` ;;
8663 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8664 esac
8666 rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668 LIBS=$ac_check_soname_save_LIBS
8670 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8673 if test -f /usr/X11R6/lib/libGL.a
8674 then
8675 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8676 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8677 else
8678 opengl_msg="No OpenGL library found on this system."
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8682 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8686 _ACEOF
8688 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"
8690 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
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="-lGL"
8703 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8706 if test "$ac_cv_header_GL_glu_h" = "yes"
8707 then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8709 $as_echo_n "checking for -lGLU... " >&6; }
8710 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 ac_check_soname_save_LIBS=$LIBS
8714 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8718 /* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply. */
8721 #ifdef __cplusplus
8722 extern "C"
8723 #endif
8724 char gluLookAt ();
8726 main ()
8728 return gluLookAt ();
8730 return 0;
8732 _ACEOF
8733 if ac_fn_c_try_link "$LINENO"; then :
8734 case "$LIBEXT" in
8735 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8736 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'` ;;
8737 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8738 esac
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LIBS=$ac_check_soname_save_LIBS
8744 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8746 $as_echo "not found" >&6; }
8748 else
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8750 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8752 cat >>confdefs.h <<_ACEOF
8753 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8754 _ACEOF
8759 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8760 case "x$with_glu" in
8761 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8762 xno) ;;
8763 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8764 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8765 esac
8767 else
8768 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8770 else
8771 opengl_msg="OpenGL development headers not found."
8773 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8774 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8775 else
8776 enable_opengl32=${enable_opengl32:-no}
8777 enable_glu32=${enable_glu32:-no}
8779 if test -n "$opengl_msg"; then :
8780 case "x$with_opengl" in
8781 x) as_fn_append wine_warnings "|$opengl_msg
8782 OpenGL and Direct3D won't be supported." ;;
8783 xno) ;;
8784 *) as_fn_error "$opengl_msg
8785 OpenGL and Direct3D won't be supported.
8786 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8787 esac
8790 NASLIBS=""
8792 for ac_header in audio/audiolib.h
8793 do :
8794 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8795 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8796 cat >>confdefs.h <<_ACEOF
8797 #define HAVE_AUDIO_AUDIOLIB_H 1
8798 _ACEOF
8799 for ac_header in audio/soundlib.h
8800 do :
8801 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8803 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8804 cat >>confdefs.h <<_ACEOF
8805 #define HAVE_AUDIO_SOUNDLIB_H 1
8806 _ACEOF
8810 done
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8813 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8814 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char AuCreateFlow ();
8830 main ()
8832 return AuCreateFlow ();
8834 return 0;
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838 ac_cv_lib_audio_AuCreateFlow=yes
8839 else
8840 ac_cv_lib_audio_AuCreateFlow=no
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 LIBS=$ac_check_lib_save_LIBS
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8847 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8848 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8850 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8853 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8854 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-lXau $X_LIBS $LIBS"
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 char XauGetBestAuthByAddr ();
8870 main ()
8872 return XauGetBestAuthByAddr ();
8874 return 0;
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8879 else
8880 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8887 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8888 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8889 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8890 else
8891 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8899 done
8902 CPPFLAGS="$ac_save_CPPFLAGS"
8903 else
8904 XLIB=""
8905 X_CFLAGS=""
8906 X_LIBS=""
8907 enable_winex11_drv=${enable_winex11_drv:-no}
8908 enable_opengl32=${enable_opengl32:-no}
8909 enable_glu32=${enable_glu32:-no}
8911 if test "x$XLIB" = "x"; then :
8912 case "x$with_x" in
8913 xno) ;;
8914 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
8915 without X support, which probably isn't what you want. You will need to install
8916 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8917 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8918 esac
8922 XML2LIBS=""
8924 XML2INCL=""
8926 XSLTINCL=""
8928 if test "x$with_xml" != "xno"
8929 then
8930 ac_save_CPPFLAGS="$CPPFLAGS"
8931 if test "$PKG_CONFIG" != "false"
8932 then
8933 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8934 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8935 else
8936 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8937 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8939 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8940 for ac_header in libxml/parser.h
8941 do :
8942 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8943 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8944 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_LIBXML_PARSER_H 1
8946 _ACEOF
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8948 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8949 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lxml2 $ac_xml_libs $LIBS"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char xmlParseMemory ();
8965 main ()
8967 return xmlParseMemory ();
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973 ac_cv_lib_xml2_xmlParseMemory=yes
8974 else
8975 ac_cv_lib_xml2_xmlParseMemory=no
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 LIBS=$ac_check_lib_save_LIBS
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8982 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8983 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8985 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8987 XML2LIBS="$ac_xml_libs"
8988 XML2INCL="$ac_xml_cflags"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
8992 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
8993 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-lxml2 $ac_xml_libs $LIBS"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char xmlReadMemory ();
9009 main ()
9011 return xmlReadMemory ();
9013 return 0;
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_xml2_xmlReadMemory=yes
9018 else
9019 ac_cv_lib_xml2_xmlReadMemory=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9026 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9027 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9029 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9034 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9035 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lxml2 $ac_xml_libs $LIBS"
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9043 /* Override any GCC internal prototype to avoid an error.
9044 Use char because int might match the return type of a GCC
9045 builtin and then its argument prototype would still apply. */
9046 #ifdef __cplusplus
9047 extern "C"
9048 #endif
9049 char xmlNewDocPI ();
9051 main ()
9053 return xmlNewDocPI ();
9055 return 0;
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"; then :
9059 ac_cv_lib_xml2_xmlNewDocPI=yes
9060 else
9061 ac_cv_lib_xml2_xmlNewDocPI=no
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9068 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9069 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9071 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9078 done
9080 CPPFLAGS="$ac_save_CPPFLAGS"
9082 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9083 case "x$with_xml" in
9084 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9085 xno) ;;
9086 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9087 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9088 esac
9091 if test "x$with_xslt" != "xno"
9092 then
9093 if test "$PKG_CONFIG" != "false"
9094 then
9095 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9096 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9097 else
9098 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9099 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9101 ac_save_CPPFLAGS="$CPPFLAGS"
9102 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9103 for ac_header in libxslt/pattern.h libxslt/transform.h
9104 do :
9105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9107 # include <libxslt/pattern.h>
9108 #endif
9110 eval as_val=\$$as_ac_Header
9111 if test "x$as_val" = x""yes; then :
9112 cat >>confdefs.h <<_ACEOF
9113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114 _ACEOF
9118 done
9120 CPPFLAGS="$ac_save_CPPFLAGS"
9121 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9122 then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9124 $as_echo_n "checking for -lxslt... " >&6; }
9125 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 ac_check_soname_save_LIBS=$LIBS
9129 LIBS="-lxslt $ac_xslt_libs $LIBS"
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9133 /* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9136 #ifdef __cplusplus
9137 extern "C"
9138 #endif
9139 char xsltCompilePattern ();
9141 main ()
9143 return xsltCompilePattern ();
9145 return 0;
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 case "$LIBEXT" in
9150 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9151 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'` ;;
9152 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9153 esac
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_soname_save_LIBS
9159 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9161 $as_echo "not found" >&6; }
9163 else
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9165 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9167 cat >>confdefs.h <<_ACEOF
9168 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9169 _ACEOF
9171 XSLTINCL="$ac_xslt_cflags"
9175 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9176 case "x$with_xslt" in
9177 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9178 xno) ;;
9179 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9180 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9181 esac
9184 HALINCL=""
9186 if test "x$with_hal" != "xno"
9187 then
9188 ac_save_CPPFLAGS="$CPPFLAGS"
9189 if test "$PKG_CONFIG" != "false"
9190 then
9191 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9192 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9193 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9195 for ac_header in dbus/dbus.h hal/libhal.h
9196 do :
9197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9198 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9199 eval as_val=\$$as_ac_Header
9200 if test "x$as_val" = x""yes; then :
9201 cat >>confdefs.h <<_ACEOF
9202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9203 _ACEOF
9207 done
9209 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9210 then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9212 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9213 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 ac_check_lib_save_LIBS=$LIBS
9217 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char dbus_connection_close ();
9229 main ()
9231 return dbus_connection_close ();
9233 return 0;
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 ac_cv_lib_dbus_1_dbus_connection_close=yes
9238 else
9239 ac_cv_lib_dbus_1_dbus_connection_close=no
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9246 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9247 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9249 $as_echo_n "checking for -lhal... " >&6; }
9250 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 ac_check_soname_save_LIBS=$LIBS
9254 LIBS="-lhal $ac_hal_libs $LIBS"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 char libhal_ctx_new ();
9266 main ()
9268 return libhal_ctx_new ();
9270 return 0;
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 case "$LIBEXT" in
9275 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9276 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'` ;;
9277 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9278 esac
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_soname_save_LIBS
9284 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9286 $as_echo "not found" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9290 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9292 cat >>confdefs.h <<_ACEOF
9293 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9294 _ACEOF
9296 HALINCL="$ac_hal_cflags"
9301 CPPFLAGS="$ac_save_CPPFLAGS"
9303 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9304 case "x$with_hal" in
9305 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9306 xno) ;;
9307 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9308 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9309 esac
9312 if test "x$with_gnutls" != "xno"
9313 then
9314 ac_save_CPPFLAGS="$CPPFLAGS"
9315 if test "$PKG_CONFIG" != "false"
9316 then
9317 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9318 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9319 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9321 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9322 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <gnutls/gnutls.h>
9327 main ()
9329 typeof(gnutls_mac_get_key_size) *pfunc;
9331 return 0;
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9336 $as_echo_n "checking for -lgnutls... " >&6; }
9337 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 ac_check_soname_save_LIBS=$LIBS
9341 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char gnutls_global_init ();
9353 main ()
9355 return gnutls_global_init ();
9357 return 0;
9359 _ACEOF
9360 if ac_fn_c_try_link "$LINENO"; then :
9361 case "$LIBEXT" in
9362 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9363 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'` ;;
9364 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9365 esac
9367 rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_soname_save_LIBS
9371 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9373 $as_echo "not found" >&6; }
9375 else
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9377 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9379 cat >>confdefs.h <<_ACEOF
9380 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9381 _ACEOF
9383 GNUTLSINCL="$ac_gnutls_cflags"
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 CPPFLAGS="$ac_save_CPPFLAGS"
9393 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9394 case "x$with_gnutls" in
9395 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9396 xno) ;;
9397 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9398 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9399 esac
9402 CURSESLIBS=""
9403 if test "$ac_cv_header_ncurses_h" = "yes"
9404 then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9406 $as_echo_n "checking for -lncurses... " >&6; }
9407 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 ac_check_soname_save_LIBS=$LIBS
9411 LIBS="-lncurses $LIBS"
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 char waddch ();
9423 main ()
9425 return waddch ();
9427 return 0;
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 case "$LIBEXT" in
9432 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9433 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'` ;;
9434 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9435 esac
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_soname_save_LIBS
9441 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9443 $as_echo "not found" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9447 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9449 cat >>confdefs.h <<_ACEOF
9450 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9451 _ACEOF
9453 CURSESLIBS="-lncurses"
9455 elif test "$ac_cv_header_curses_h" = "yes"
9456 then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9458 $as_echo_n "checking for -lcurses... " >&6; }
9459 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 ac_check_soname_save_LIBS=$LIBS
9463 LIBS="-lcurses $LIBS"
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9467 /* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9470 #ifdef __cplusplus
9471 extern "C"
9472 #endif
9473 char waddch ();
9475 main ()
9477 return waddch ();
9479 return 0;
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 case "$LIBEXT" in
9484 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9485 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'` ;;
9486 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9487 esac
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_check_soname_save_LIBS
9493 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9495 $as_echo "not found" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9499 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9501 cat >>confdefs.h <<_ACEOF
9502 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9503 _ACEOF
9505 CURSESLIBS="-lcurses"
9508 ac_save_LIBS="$LIBS"
9509 LIBS="$LIBS $CURSESLIBS"
9510 for ac_func in mousemask
9511 do :
9512 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9513 if test "x$ac_cv_func_mousemask" = x""yes; then :
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_MOUSEMASK 1
9516 _ACEOF
9519 done
9521 LIBS="$ac_save_LIBS"
9522 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9523 case "x$with_curses" in
9524 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9525 xno) ;;
9526 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9527 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9528 esac
9531 if test "x$with_sane" != "xno"
9532 then
9533 ac_save_CPPFLAGS="$CPPFLAGS"
9534 # Extract the first word of "sane-config", so it can be a program name with args.
9535 set dummy sane-config; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 if test -n "$sane_devel"; then
9542 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_sane_devel="sane-config"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9559 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9562 sane_devel=$ac_cv_prog_sane_devel
9563 if test -n "$sane_devel"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9565 $as_echo "$sane_devel" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9572 if test "$sane_devel" != "no"
9573 then
9574 ac_sane_incl="`$sane_devel --cflags`"
9575 ac_sane_libs="`$sane_devel --ldflags`"
9576 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9578 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9579 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9581 $as_echo_n "checking for -lsane... " >&6; }
9582 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 ac_check_soname_save_LIBS=$LIBS
9586 LIBS="-lsane $ac_sane_libs $LIBS"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char sane_init ();
9598 main ()
9600 return sane_init ();
9602 return 0;
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 case "$LIBEXT" in
9607 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9608 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'` ;;
9609 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9610 esac
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_soname_save_LIBS
9616 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9618 $as_echo "not found" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9622 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9624 cat >>confdefs.h <<_ACEOF
9625 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9626 _ACEOF
9628 SANEINCL="$ac_sane_incl"
9634 CPPFLAGS="$ac_save_CPPFLAGS"
9636 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9637 case "x$with_sane" in
9638 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9639 xno) ;;
9640 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9641 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9642 esac
9645 if test "x$with_v4l" != "xno"
9646 then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9648 $as_echo_n "checking for -lv4l1... " >&6; }
9649 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 ac_check_soname_save_LIBS=$LIBS
9653 LIBS="-lv4l1 $LIBS"
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char v4l1_open ();
9665 main ()
9667 return v4l1_open ();
9669 return 0;
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673 case "$LIBEXT" in
9674 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9675 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'` ;;
9676 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9677 esac
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_soname_save_LIBS
9683 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9685 $as_echo "not found" >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9689 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9691 cat >>confdefs.h <<_ACEOF
9692 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9693 _ACEOF
9698 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9699 case "x$with_v4l" in
9700 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9701 xno) ;;
9702 *) as_fn_error "libv4l ${notice_platform}development files not found.
9703 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9704 esac
9707 if test "x$with_gphoto" != "xno"
9708 then
9709 ac_save_CPPFLAGS="$CPPFLAGS"
9710 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9711 set dummy gphoto2-config; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$gphoto2_devel"; then
9718 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_gphoto2_devel="gphoto2-config"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9735 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9738 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9739 if test -n "$gphoto2_devel"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9741 $as_echo "$gphoto2_devel" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9748 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9749 set dummy gphoto2-port-config; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 if test -n "$gphoto2port_devel"; then
9756 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9769 done
9770 done
9771 IFS=$as_save_IFS
9773 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9776 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9777 if test -n "$gphoto2port_devel"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9779 $as_echo "$gphoto2port_devel" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9786 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9787 then
9788 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9789 ac_gphoto2_libs=""
9790 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9792 case "$i" in
9793 -L/usr/lib|-L/usr/lib64) ;;
9794 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9795 esac
9796 done
9797 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9799 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9800 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9801 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9803 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9804 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 ac_check_lib_save_LIBS=$LIBS
9808 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 char gp_camera_new ();
9820 main ()
9822 return gp_camera_new ();
9824 return 0;
9826 _ACEOF
9827 if ac_fn_c_try_link "$LINENO"; then :
9828 ac_cv_lib_gphoto2_gp_camera_new=yes
9829 else
9830 ac_cv_lib_gphoto2_gp_camera_new=no
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9837 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9838 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9840 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9842 GPHOTO2LIBS="$ac_gphoto2_libs"
9844 GPHOTO2INCL="$ac_gphoto2_incl"
9851 CPPFLAGS="$ac_save_CPPFLAGS"
9853 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9854 case "x$with_gphoto" in
9855 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9856 xno) ;;
9857 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9858 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9859 esac
9863 RESOLVLIBS=""
9865 if test "$ac_cv_header_resolv_h" = "yes"
9866 then
9867 ac_save_LIBS="$LIBS"
9868 LIBS="$LIBS -lresolv"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 #ifdef HAVE_NETINET_IN_H
9872 #include <netinet/in.h>
9873 #endif
9874 #include <resolv.h>
9876 main ()
9878 res_init();
9880 return 0;
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9885 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9887 RESOLVLIBS="-lresolv"
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS="$ac_save_LIBS"
9894 LCMSLIBS=""
9896 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9897 then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9899 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9900 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-llcms $LIBS"
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char cmsOpenProfileFromFile ();
9916 main ()
9918 return cmsOpenProfileFromFile ();
9920 return 0;
9922 _ACEOF
9923 if ac_fn_c_try_link "$LINENO"; then :
9924 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9925 else
9926 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9928 rm -f core conftest.err conftest.$ac_objext \
9929 conftest$ac_exeext conftest.$ac_ext
9930 LIBS=$ac_check_lib_save_LIBS
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9933 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9934 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9936 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9938 LCMSLIBS="-llcms"
9942 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9943 case "x$with_cms" in
9944 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9945 xno) ;;
9946 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9947 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9948 esac
9951 if test "x$with_freetype" != "xno"
9952 then
9953 for ac_prog in freetype-config freetype2-config
9955 # Extract the first word of "$ac_prog", so it can be a program name with args.
9956 set dummy $ac_prog; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 if test -n "$ft_devel"; then
9963 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_ft_devel="$ac_prog"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9982 ft_devel=$ac_cv_prog_ft_devel
9983 if test -n "$ft_devel"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9985 $as_echo "$ft_devel" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9992 test -n "$ft_devel" && break
9993 done
9994 test -n "$ft_devel" || ft_devel="no"
9996 if test "$ft_devel" != "no"
9997 then
9998 ac_freetype_incl=`$ft_devel --cflags`
9999 ac_freetype_libs=`$ft_devel --libs`
10001 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10003 $as_echo_n "checking for -lfreetype... " >&6; }
10004 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 ac_check_soname_save_LIBS=$LIBS
10008 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char FT_Init_FreeType ();
10020 main ()
10022 return FT_Init_FreeType ();
10024 return 0;
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028 case "$LIBEXT" in
10029 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10030 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'` ;;
10031 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10032 esac
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_soname_save_LIBS
10038 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10040 $as_echo "not found" >&6; }
10041 ft_lib=no
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10044 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10046 cat >>confdefs.h <<_ACEOF
10047 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10048 _ACEOF
10050 ft_lib=yes
10052 if test "$ft_lib" = "yes"
10053 then
10054 ac_save_CPPFLAGS="$CPPFLAGS"
10055 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10056 for ac_header in ft2build.h \
10057 freetype/freetype.h \
10058 freetype/ftglyph.h \
10059 freetype/fttypes.h \
10060 freetype/tttables.h \
10061 freetype/ftsnames.h \
10062 freetype/ttnameid.h \
10063 freetype/ftoutln.h \
10064 freetype/ftwinfnt.h \
10065 freetype/ftmodapi.h \
10066 freetype/ftlcdfil.h \
10067 freetype/internal/sfnt.h
10068 do :
10069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10071 # include <ft2build.h>
10072 #endif
10074 eval as_val=\$$as_ac_Header
10075 if test "x$as_val" = x""yes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 _ACEOF
10082 done
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <ft2build.h>
10087 #include <freetype/fttrigon.h>
10088 _ACEOF
10089 if ac_fn_c_try_cpp "$LINENO"; then :
10091 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10093 wine_cv_fttrigon=yes
10094 else
10095 wine_cv_fttrigon=no
10097 rm -f conftest.err conftest.$ac_ext
10098 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10100 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10102 cat >>confdefs.h <<_ACEOF
10103 #define HAVE_FT_TRUETYPEENGINETYPE 1
10104 _ACEOF
10109 ac_save_CFLAGS="$CFLAGS"
10110 CFLAGS="$CFLAGS $ac_freetype_libs"
10111 for ac_func in FT_Load_Sfnt_Table
10112 do :
10113 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10114 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_FT_LOAD_SFNT_TABLE 1
10117 _ACEOF
10120 done
10122 CFLAGS="$ac_save_CFLAGS"
10123 CPPFLAGS="$ac_save_CPPFLAGS"
10124 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10125 then
10127 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10129 FREETYPELIBS="$ac_freetype_libs"
10131 FREETYPEINCL="$ac_freetype_incl"
10136 if test "x$FREETYPELIBS" = "x"; then :
10137 case "x$with_freetype" in
10138 xno) ;;
10139 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10140 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10141 esac
10143 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10146 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10147 if test "${ac_cv_c_ppdev+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 #ifdef HAVE_SYS_IOCTL_H
10153 # include <sys/ioctl.h>
10154 #endif
10155 #include <linux/ppdev.h>
10157 main ()
10159 ioctl (1,PPCLAIM,0)
10161 return 0;
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"; then :
10165 ac_cv_c_ppdev="yes"
10166 else
10167 ac_cv_c_ppdev="no"
10169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10172 $as_echo "$ac_cv_c_ppdev" >&6; }
10173 if test "$ac_cv_c_ppdev" = "yes"
10174 then
10176 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10180 ac_wine_check_funcs_save_LIBS="$LIBS"
10181 LIBS="$LIBS $LIBPTHREAD"
10182 for ac_func in \
10183 pthread_attr_get_np \
10184 pthread_getattr_np \
10185 pthread_get_stackaddr_np \
10186 pthread_get_stacksize_np
10187 do :
10188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10190 eval as_val=\$$as_ac_var
10191 if test "x$as_val" = x""yes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194 _ACEOF
10197 done
10199 LIBS="$ac_wine_check_funcs_save_LIBS"
10201 if test "$ac_cv_header_zlib_h" = "yes"
10202 then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10204 $as_echo_n "checking for inflate in -lz... " >&6; }
10205 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-lz $LIBS"
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char inflate ();
10221 main ()
10223 return inflate ();
10225 return 0;
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229 ac_cv_lib_z_inflate=yes
10230 else
10231 ac_cv_lib_z_inflate=no
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10238 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10239 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10241 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10243 ZLIB="-lz"
10249 if test "x$with_esd" != xno
10250 then
10251 save_CFLAGS="$CFLAGS"
10252 # Extract the first word of "esd-config", so it can be a program name with args.
10253 set dummy esd-config; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 case $ESDCONFIG in
10260 [\\/]* | ?:[\\/]*)
10261 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10279 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10281 esac
10283 ESDCONFIG=$ac_cv_path_ESDCONFIG
10284 if test -n "$ESDCONFIG"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10286 $as_echo "$ESDCONFIG" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10293 if test "x$ESDCONFIG" != "xno"
10294 then
10295 ac_esd_incl=""
10296 for i in `$ESDCONFIG --cflags`
10298 case "$i" in
10299 -I*) ac_esd_incl="$ac_esd_incl $i";;
10300 esac
10301 done
10302 ac_esd_libs=`$ESDCONFIG --libs`
10303 CFLAGS="$CFLAGS $ac_esd_incl"
10305 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10306 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10307 if test "x$ac_cv_header_esd_h" = x""yes; then :
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10309 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10310 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-lesd $ac_esd_libs $LIBS"
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char esd_open_sound ();
10326 main ()
10328 return esd_open_sound ();
10330 return 0;
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 ac_cv_lib_esd_esd_open_sound=yes
10335 else
10336 ac_cv_lib_esd_esd_open_sound=no
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10343 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10344 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10345 ESDINCL="$ac_esd_incl"
10347 ESDLIBS="$ac_esd_libs"
10350 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10357 CFLAGS="$save_CFLAGS"
10360 ALSALIBS=""
10362 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10363 then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10365 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10366 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 ac_check_lib_save_LIBS=$LIBS
10370 LIBS="-lasound $LIBS"
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char snd_pcm_hw_params_get_access ();
10382 main ()
10384 return snd_pcm_hw_params_get_access ();
10386 return 0;
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10391 else
10392 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10399 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10400 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 #ifdef HAVE_ALSA_ASOUNDLIB_H
10404 #include <alsa/asoundlib.h>
10405 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10406 #include <sys/asoundlib.h>
10407 #endif
10409 main ()
10411 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10418 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10420 ALSALIBS="-lasound"
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 AUDIOIOLIBS=""
10429 if test "$ac_cv_header_libaudioio_h" = "yes"
10430 then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10432 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10433 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-laudioio $LIBS"
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char AudioIOGetVersion ();
10449 main ()
10451 return AudioIOGetVersion ();
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 ac_cv_lib_audioio_AudioIOGetVersion=yes
10458 else
10459 ac_cv_lib_audioio_AudioIOGetVersion=no
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10466 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10467 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10468 AUDIOIOLIBS="-laudioio"
10470 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10477 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10478 then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10480 $as_echo_n "checking for -lcapi20... " >&6; }
10481 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 ac_check_soname_save_LIBS=$LIBS
10485 LIBS="-lcapi20 $LIBS"
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char capi20_register ();
10497 main ()
10499 return capi20_register ();
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 case "$LIBEXT" in
10506 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10507 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'` ;;
10508 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10509 esac
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_soname_save_LIBS
10515 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10517 $as_echo "not found" >&6; }
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10521 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10523 cat >>confdefs.h <<_ACEOF
10524 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10525 _ACEOF
10530 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10531 case "x$with_capi" in
10532 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10533 xno) ;;
10534 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10535 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10536 esac
10539 CUPSINCL=""
10541 if test "x$with_cups" != "xno"
10542 then
10543 ac_save_CPPFLAGS="$CPPFLAGS"
10544 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10545 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10546 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10547 for ac_header in cups/cups.h
10548 do :
10549 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10550 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10551 cat >>confdefs.h <<_ACEOF
10552 #define HAVE_CUPS_CUPS_H 1
10553 _ACEOF
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10555 $as_echo_n "checking for -lcups... " >&6; }
10556 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_soname_save_LIBS=$LIBS
10560 LIBS="-lcups $ac_cups_libs $LIBS"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char cupsGetDefault ();
10572 main ()
10574 return cupsGetDefault ();
10576 return 0;
10578 _ACEOF
10579 if ac_fn_c_try_link "$LINENO"; then :
10580 case "$LIBEXT" in
10581 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10582 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'` ;;
10583 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10584 esac
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_soname_save_LIBS
10590 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10592 $as_echo "not found" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10596 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10598 cat >>confdefs.h <<_ACEOF
10599 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10600 _ACEOF
10602 CUPSINCL="$ac_cups_cflags"
10606 done
10608 CPPFLAGS="$ac_save_CPPFLAGS"
10610 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10611 case "x$with_cups" in
10612 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10613 xno) ;;
10614 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10615 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10616 esac
10619 if test "$ac_cv_header_jack_jack_h" = "yes"
10620 then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10622 $as_echo_n "checking for -ljack... " >&6; }
10623 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 ac_check_soname_save_LIBS=$LIBS
10627 LIBS="-ljack $LIBS"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char jack_client_new ();
10639 main ()
10641 return jack_client_new ();
10643 return 0;
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647 case "$LIBEXT" in
10648 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10649 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'` ;;
10650 *) 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'` ;;
10651 esac
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_soname_save_LIBS
10657 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10659 $as_echo "not found" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10663 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10665 cat >>confdefs.h <<_ACEOF
10666 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10667 _ACEOF
10673 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10674 then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10676 $as_echo_n "checking for -lfontconfig... " >&6; }
10677 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_soname_save_LIBS=$LIBS
10681 LIBS="-lfontconfig $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char FcInit ();
10693 main ()
10695 return FcInit ();
10697 return 0;
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 case "$LIBEXT" in
10702 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10703 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'` ;;
10704 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10705 esac
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_soname_save_LIBS
10711 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10713 $as_echo "not found" >&6; }
10715 else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10717 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10719 cat >>confdefs.h <<_ACEOF
10720 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10721 _ACEOF
10725 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10726 then
10727 ac_save_CPPFLAGS="$CPPFLAGS"
10728 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10729 $as_unset ac_cv_header_fontconfig_fontconfig_h
10730 for ac_header in fontconfig/fontconfig.h
10731 do :
10732 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10733 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10734 cat >>confdefs.h <<_ACEOF
10735 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10736 _ACEOF
10740 done
10742 CPPFLAGS="$ac_save_CPPFLAGS"
10743 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10744 then
10745 FONTCONFIGINCL="$X_CFLAGS"
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10748 $as_echo_n "checking for -lfontconfig... " >&6; }
10749 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 ac_check_soname_save_LIBS=$LIBS
10753 LIBS="-lfontconfig $X_LIBS $LIBS"
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char FcInit ();
10765 main ()
10767 return FcInit ();
10769 return 0;
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 case "$LIBEXT" in
10774 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10775 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'` ;;
10776 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10777 esac
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_soname_save_LIBS
10783 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10785 $as_echo "not found" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10789 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10791 cat >>confdefs.h <<_ACEOF
10792 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10793 _ACEOF
10799 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10800 case "x$with_fontconfig" in
10801 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10802 xno) ;;
10803 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10804 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10805 esac
10808 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10809 then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10811 $as_echo_n "checking for -lssl... " >&6; }
10812 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_soname_save_LIBS=$LIBS
10816 LIBS="-lssl $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char SSL_library_init ();
10828 main ()
10830 return SSL_library_init ();
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 case "$LIBEXT" in
10837 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10838 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'` ;;
10839 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10840 esac
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_soname_save_LIBS
10846 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10848 $as_echo "not found" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10852 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10854 cat >>confdefs.h <<_ACEOF
10855 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10856 _ACEOF
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10861 $as_echo_n "checking for -lcrypto... " >&6; }
10862 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 ac_check_soname_save_LIBS=$LIBS
10866 LIBS="-lcrypto $LIBS"
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10870 /* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 char BIO_new_socket ();
10878 main ()
10880 return BIO_new_socket ();
10882 return 0;
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 case "$LIBEXT" in
10887 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10888 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'` ;;
10889 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10890 esac
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_soname_save_LIBS
10896 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10898 $as_echo "not found" >&6; }
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10902 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10904 cat >>confdefs.h <<_ACEOF
10905 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10906 _ACEOF
10911 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10912 case "x$with_openssl" in
10913 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10914 xno) ;;
10915 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10916 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10917 esac
10920 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10921 then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10923 $as_echo_n "checking for -lgsm... " >&6; }
10924 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_soname_save_LIBS=$LIBS
10928 LIBS="-lgsm $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char gsm_create ();
10940 main ()
10942 return gsm_create ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 case "$LIBEXT" in
10949 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10950 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'` ;;
10951 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10952 esac
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_soname_save_LIBS
10958 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10960 $as_echo "not found" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10964 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10966 cat >>confdefs.h <<_ACEOF
10967 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10968 _ACEOF
10973 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10974 case "x$with_gsm" in
10975 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10976 xno) ;;
10977 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10978 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10979 esac
10982 if test "$ac_cv_header_jpeglib_h" = "yes"
10983 then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10985 $as_echo_n "checking for -ljpeg... " >&6; }
10986 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_soname_save_LIBS=$LIBS
10990 LIBS="-ljpeg $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char jpeg_start_decompress ();
11002 main ()
11004 return jpeg_start_decompress ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 case "$LIBEXT" in
11011 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11012 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'` ;;
11013 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11014 esac
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_soname_save_LIBS
11020 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11022 $as_echo "not found" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11026 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11028 cat >>confdefs.h <<_ACEOF
11029 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11030 _ACEOF
11035 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11036 case "x$with_jpeg" in
11037 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11038 xno) ;;
11039 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11040 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11041 esac
11044 if test "$ac_cv_header_png_h" = "yes"
11045 then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11047 $as_echo_n "checking for -lpng... " >&6; }
11048 if test "${ac_cv_lib_soname_png+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_soname_save_LIBS=$LIBS
11052 LIBS="-lpng -lm -lz $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char png_create_read_struct ();
11064 main ()
11066 return png_create_read_struct ();
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 case "$LIBEXT" in
11073 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11074 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'` ;;
11075 *) 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'` ;;
11076 esac
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_soname_save_LIBS
11082 if test "x$ac_cv_lib_soname_png" = "x"; then :
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11084 $as_echo "not found" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11088 $as_echo "$ac_cv_lib_soname_png" >&6; }
11090 cat >>confdefs.h <<_ACEOF
11091 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11092 _ACEOF
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11097 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11098 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 ac_check_lib_save_LIBS=$LIBS
11102 LIBS="-lpng -lm -lz $LIBS"
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char png_set_expand_gray_1_2_4_to_8 ();
11114 main ()
11116 return png_set_expand_gray_1_2_4_to_8 ();
11118 return 0;
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11123 else
11124 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11131 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11132 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11134 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11139 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11140 then
11141 ac_save_CPPFLAGS="$CPPFLAGS"
11142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11143 $as_unset ac_cv_header_png_h
11144 for ac_header in png.h
11145 do :
11146 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11147 if test "x$ac_cv_header_png_h" = x""yes; then :
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_PNG_H 1
11150 _ACEOF
11154 done
11156 CPPFLAGS="$ac_save_CPPFLAGS"
11157 if test "$ac_cv_header_png_h" = "yes"
11158 then
11159 PNGINCL="$X_CFLAGS"
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11162 $as_echo_n "checking for -lpng... " >&6; }
11163 if test "${ac_cv_lib_soname_png+set}" = set; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 ac_check_soname_save_LIBS=$LIBS
11167 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11171 /* Override any GCC internal prototype to avoid an error.
11172 Use char because int might match the return type of a GCC
11173 builtin and then its argument prototype would still apply. */
11174 #ifdef __cplusplus
11175 extern "C"
11176 #endif
11177 char png_create_read_struct ();
11179 main ()
11181 return png_create_read_struct ();
11183 return 0;
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"; then :
11187 case "$LIBEXT" in
11188 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11189 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'` ;;
11190 *) 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'` ;;
11191 esac
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_soname_save_LIBS
11197 if test "x$ac_cv_lib_soname_png" = "x"; then :
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11199 $as_echo "not found" >&6; }
11201 else
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11203 $as_echo "$ac_cv_lib_soname_png" >&6; }
11205 cat >>confdefs.h <<_ACEOF
11206 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11207 _ACEOF
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11212 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11213 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char png_set_expand_gray_1_2_4_to_8 ();
11229 main ()
11231 return png_set_expand_gray_1_2_4_to_8 ();
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11238 else
11239 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11246 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11247 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11248 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11254 if test "x$ac_cv_lib_soname_png" = "x"; then :
11255 case "x$with_png" in
11256 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11257 xno) ;;
11258 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11259 This is an error since --with-png was requested." "$LINENO" 5 ;;
11260 esac
11263 if test "$ac_cv_header_tiffio_h" = "yes"
11264 then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11266 $as_echo_n "checking for -ltiff... " >&6; }
11267 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 ac_check_soname_save_LIBS=$LIBS
11271 LIBS="-ltiff $LIBS"
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11275 /* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278 #ifdef __cplusplus
11279 extern "C"
11280 #endif
11281 char TIFFClientOpen ();
11283 main ()
11285 return TIFFClientOpen ();
11287 return 0;
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"; then :
11291 case "$LIBEXT" in
11292 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11293 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'` ;;
11294 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11295 esac
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_soname_save_LIBS
11301 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11303 $as_echo "not found" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11307 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11309 cat >>confdefs.h <<_ACEOF
11310 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11311 _ACEOF
11316 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11317 case "x$with_tiff" in
11318 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11319 xno) ;;
11320 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11321 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11322 esac
11325 if test "$ac_cv_header_mpg123_h" = "yes"
11326 then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11328 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11329 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-lmpg123 $LIBS"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 /* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340 #ifdef __cplusplus
11341 extern "C"
11342 #endif
11343 char mpg123_feed ();
11345 main ()
11347 return mpg123_feed ();
11349 return 0;
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11353 ac_cv_lib_mpg123_mpg123_feed=yes
11354 else
11355 ac_cv_lib_mpg123_mpg123_feed=no
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11359 LIBS=$ac_check_lib_save_LIBS
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11362 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11363 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11364 LIBMPG123="-lmpg123"
11369 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11370 case "x$with_mpg123" in
11371 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11372 xno) ;;
11373 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11374 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11375 esac
11377 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11379 if test "$ac_cv_header_AL_al_h" = "yes"
11380 then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetSource3i in -lopenal" >&5
11382 $as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
11383 if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lopenal $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char alGetSource3i ();
11399 main ()
11401 return alGetSource3i ();
11403 return 0;
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_openal_alGetSource3i=yes
11408 else
11409 ac_cv_lib_openal_alGetSource3i=no
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetSource3i" >&5
11416 $as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
11417 if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then :
11418 LIBOPENAL="-lopenal"
11423 if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then :
11424 case "x$with_openal" in
11425 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11426 xno) ;;
11427 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11428 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11429 esac
11431 test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
11433 if test "$ac_cv_header_kstat_h" = "yes"
11434 then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11436 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11437 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-lkstat $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char kstat_open ();
11453 main ()
11455 return kstat_open ();
11457 return 0;
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_lib_kstat_kstat_open=yes
11462 else
11463 ac_cv_lib_kstat_kstat_open=no
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11470 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11471 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11473 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11475 LIBKSTAT="-lkstat"
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11482 $as_echo_n "checking for -lodbc... " >&6; }
11483 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_soname_save_LIBS=$LIBS
11487 LIBS="-lodbc $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char SQLConnect ();
11499 main ()
11501 return SQLConnect ();
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 case "$LIBEXT" in
11508 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11509 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'` ;;
11510 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11511 esac
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_soname_save_LIBS
11517 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11519 $as_echo "not found" >&6; }
11520 cat >>confdefs.h <<_ACEOF
11521 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11522 _ACEOF
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11526 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11528 cat >>confdefs.h <<_ACEOF
11529 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11530 _ACEOF
11535 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11536 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11537 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11538 "$ac_cv_header_soundcard_h" != "yes" -a \
11539 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11540 then
11541 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11545 EXTRACFLAGS=""
11547 if test "x${GCC}" = "xyes"
11548 then
11549 EXTRACFLAGS="-Wall -pipe"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11552 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11553 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 if test "$cross_compiling" = yes; then :
11557 ac_cv_c_gcc_strength_bug="yes"
11558 else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 int L[4] = {0,1,2,3};
11563 main ()
11565 static int Array[3];
11566 unsigned int B = 3;
11567 int i;
11568 for(i=0; i<B; i++) Array[i] = i - 3;
11569 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11570 L[i] = 4;
11571 return (Array[1] != -2 || L[2] != 3)
11573 return 0;
11575 _ACEOF
11576 if ac_fn_c_try_run "$LINENO"; then :
11577 ac_cv_c_gcc_strength_bug="no"
11578 else
11579 ac_cv_c_gcc_strength_bug="yes"
11581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11582 conftest.$ac_objext conftest.beam conftest.$ac_ext
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11587 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11588 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11589 then
11590 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11594 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11595 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_wine_try_cflags_saved=$CFLAGS
11599 CFLAGS="$CFLAGS -fno-builtin"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11602 int main(int argc, char **argv) { return 0; }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_cflags__fno_builtin=yes
11606 else
11607 ac_cv_cflags__fno_builtin=no
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 CFLAGS=$ac_wine_try_cflags_saved
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11614 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11615 if test $ac_cv_cflags__fno_builtin = yes; then :
11616 BUILTINFLAG="-fno-builtin"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11620 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11621 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 ac_wine_try_cflags_saved=$CFLAGS
11625 CFLAGS="$CFLAGS -fno-strict-aliasing"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 int main(int argc, char **argv) { return 0; }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_cflags__fno_strict_aliasing=yes
11632 else
11633 ac_cv_cflags__fno_strict_aliasing=no
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 CFLAGS=$ac_wine_try_cflags_saved
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11640 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11641 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11642 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11645 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11646 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_wine_try_cflags_saved=$CFLAGS
11650 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653 int main(int argc, char **argv) { return 0; }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_cflags__Wdeclaration_after_statement=yes
11657 else
11658 ac_cv_cflags__Wdeclaration_after_statement=no
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 CFLAGS=$ac_wine_try_cflags_saved
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11665 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11666 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11667 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11670 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11671 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 ac_wine_try_cflags_saved=$CFLAGS
11675 CFLAGS="$CFLAGS -Wstrict-prototypes"
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11678 int main(int argc, char **argv) { return 0; }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_cflags__Wstrict_prototypes=yes
11682 else
11683 ac_cv_cflags__Wstrict_prototypes=no
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 CFLAGS=$ac_wine_try_cflags_saved
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11690 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11691 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11692 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11695 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11696 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_wine_try_cflags_saved=$CFLAGS
11700 CFLAGS="$CFLAGS -Wtype-limits"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 int main(int argc, char **argv) { return 0; }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_cflags__Wtype_limits=yes
11707 else
11708 ac_cv_cflags__Wtype_limits=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 CFLAGS=$ac_wine_try_cflags_saved
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11715 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11716 if test $ac_cv_cflags__Wtype_limits = yes; then :
11717 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11720 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11721 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 ac_wine_try_cflags_saved=$CFLAGS
11725 CFLAGS="$CFLAGS -Wwrite-strings"
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 int main(int argc, char **argv) { return 0; }
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_cflags__Wwrite_strings=yes
11732 else
11733 ac_cv_cflags__Wwrite_strings=no
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 CFLAGS=$ac_wine_try_cflags_saved
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11740 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11741 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11742 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11745 saved_CFLAGS="$CFLAGS"
11746 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11748 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11749 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <string.h>
11756 main ()
11760 return 0;
11762 _ACEOF
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 ac_cv_c_string_h_warnings=no
11765 else
11766 ac_cv_c_string_h_warnings=yes
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11771 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11772 CFLAGS="$saved_CFLAGS"
11773 if test "$ac_cv_c_string_h_warnings" = "no"
11774 then
11775 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11778 if test "${enable_maintainer_mode+set}" = set
11779 then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11781 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11782 if test "${ac_cv_cflags__Werror+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 ac_wine_try_cflags_saved=$CFLAGS
11786 CFLAGS="$CFLAGS -Werror"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 int main(int argc, char **argv) { return 0; }
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_cflags__Werror=yes
11793 else
11794 ac_cv_cflags__Werror=no
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 CFLAGS=$ac_wine_try_cflags_saved
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11801 $as_echo "$ac_cv_cflags__Werror" >&6; }
11802 if test $ac_cv_cflags__Werror = yes; then :
11803 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11807 saved_CFLAGS="$CFLAGS"
11808 CFLAGS="$CFLAGS -Werror"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11810 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11811 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11818 main ()
11822 return 0;
11824 _ACEOF
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826 ac_cv_have_ms_hook_prologue="yes"
11827 else
11828 ac_cv_have_ms_hook_prologue="no"
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11833 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11834 CFLAGS="$saved_CFLAGS"
11835 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11836 then
11838 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11840 else
11841 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11848 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11849 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 extern int ac_test;
11856 main ()
11858 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11860 return 0;
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11864 ac_cv_c_extern_prefix="yes"
11865 else
11866 ac_cv_c_extern_prefix="no"
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11872 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11874 case $host_cpu in
11875 *i[3456789]86*)
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11877 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11878 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #ifndef _MSC_VER
11884 #define __stdcall __attribute__((__stdcall__))
11885 #endif
11886 int __stdcall ac_test(int i) { return i; }
11888 main ()
11890 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11892 return 0;
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_c_stdcall_suffix="yes"
11897 else
11898 ac_cv_c_stdcall_suffix="no"
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11904 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11905 *) ac_cv_c_stdcall_suffix="no" ;;
11906 esac
11909 if test "$ac_cv_c_extern_prefix" = "yes"
11910 then
11911 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11913 asm_name_prefix="_"
11914 else
11915 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11917 asm_name_prefix=""
11921 if test "$ac_cv_c_stdcall_suffix" = "yes"
11922 then
11923 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11925 else
11926 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11932 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11933 if test "${ac_cv_asm_func_def+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11940 main ()
11942 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11944 return 0;
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 ac_cv_asm_func_def=".def"
11949 else
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11954 main ()
11956 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11958 return 0;
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962 ac_cv_asm_func_def=".type @function"
11963 else
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11968 main ()
11970 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11972 return 0;
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_asm_func_def=".type 2"
11977 else
11978 ac_cv_asm_func_def="unknown"
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
11990 $as_echo "$ac_cv_asm_func_def" >&6; }
11993 case "$ac_cv_asm_func_def" in
11994 ".def")
11995 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
11997 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
11998 ".type @function")
11999 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12001 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12002 ".type 2")
12003 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12005 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12007 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12009 asm_func_header="" ;;
12010 esac
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12013 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12014 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 asm(".text\n\t.long 0");
12021 main ()
12025 return 0;
12027 _ACEOF
12028 if ac_fn_c_try_compile "$LINENO"; then :
12029 ac_cv_c_asm_outside_funcs="yes"
12030 else
12031 ac_cv_c_asm_outside_funcs="no"
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12036 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12039 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12040 if test "${ac_cv_c_dot_previous+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12047 main ()
12049 asm(".text\nac_test:\t.long 0\n\t.previous");
12051 return 0;
12053 _ACEOF
12054 if ac_fn_c_try_link "$LINENO"; then :
12055 ac_cv_c_dot_previous="yes"
12056 else
12057 ac_cv_c_dot_previous="no"
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12063 $as_echo "$ac_cv_c_dot_previous" >&6; }
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12066 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12067 if test "${ac_cv_c_cfi_support+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12074 main ()
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 ac_cv_c_cfi_support="yes"
12083 else
12084 ac_cv_c_cfi_support="no"
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12089 $as_echo "$ac_cv_c_cfi_support" >&6; }
12091 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12092 asm_func_trailer=""
12093 if test "$ac_cv_c_dot_previous" = "yes"
12094 then
12095 asm_func_trailer="\\n\\t.previous"
12097 if test "$ac_cv_c_cfi_support" = "yes"
12098 then
12099 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12100 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12102 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12104 else
12105 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12109 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12112 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12113 then
12114 cat >>confdefs.h <<_ACEOF
12115 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12116 _ACEOF
12118 else
12119 cat >>confdefs.h <<_ACEOF
12120 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12121 _ACEOF
12125 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12128 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12132 LDPATH=""
12134 case $build_os in
12135 cygwin*|mingw32*)
12136 TOOLSEXT=".exe"
12138 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12140 darwin*|macosx*)
12143 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12145 esac
12147 case $host_os in
12148 mingw32*)
12149 CRTLIBS="-lmsvcrt"
12151 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12154 esac
12156 MAIN_BINARY="wine"
12158 test -z "$with_wine64" || MAIN_BINARY="wine32"
12160 case $host_cpu in
12161 *i[3456789]86*)
12162 case $host_os in
12163 linux*)
12164 EXTRA_BINARIES="wine-preloader"
12166 esac
12168 esac
12171 ac_save_CFLAGS="$CFLAGS"
12172 CFLAGS="$CFLAGS $BUILTINFLAG"
12173 for ac_func in \
12174 _pclose \
12175 _popen \
12176 _snprintf \
12177 _spawnvp \
12178 _strdup \
12179 _stricmp \
12180 _strnicmp \
12181 _strtoi64 \
12182 _strtoui64 \
12183 _vsnprintf \
12184 asctime_r \
12185 chsize \
12186 dlopen \
12187 epoll_create \
12188 ffs \
12189 finite \
12190 fnmatch \
12191 fork \
12192 fpclass \
12193 fstatfs \
12194 fstatvfs \
12195 ftruncate \
12196 futimes \
12197 futimesat \
12198 getdirentries \
12199 getopt_long \
12200 getpagesize \
12201 getpwuid \
12202 gettid \
12203 gettimeofday \
12204 getuid \
12205 kqueue \
12206 lstat \
12207 memmove \
12208 mmap \
12209 pclose \
12210 pipe2 \
12211 poll \
12212 popen \
12213 port_create \
12214 prctl \
12215 pread \
12216 pwrite \
12217 readdir \
12218 readlink \
12219 sched_setaffinity \
12220 sched_yield \
12221 select \
12222 setproctitle \
12223 setrlimit \
12224 settimeofday \
12225 sigaltstack \
12226 sigprocmask \
12227 snprintf \
12228 spawnvp \
12229 statfs \
12230 statvfs \
12231 strcasecmp \
12232 strdup \
12233 strerror \
12234 strncasecmp \
12235 strtold \
12236 strtoll \
12237 strtoull \
12238 symlink \
12239 tcgetattr \
12240 thr_kill2 \
12241 timegm \
12242 usleep \
12243 vsnprintf \
12244 wait4 \
12245 waitpid \
12247 do :
12248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12250 eval as_val=\$$as_ac_var
12251 if test "x$as_val" = x""yes; then :
12252 cat >>confdefs.h <<_ACEOF
12253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254 _ACEOF
12257 done
12259 CFLAGS="$ac_save_CFLAGS"
12261 if test "$ac_cv_func_dlopen" = no
12262 then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-ldl $LIBS"
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 char dlopen ();
12281 main ()
12283 return dlopen ();
12285 return 0;
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_lib_dl_dlopen=yes
12290 else
12291 ac_cv_lib_dl_dlopen=no
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12299 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12300 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12301 LIBDL="-ldl"
12306 ac_wine_check_funcs_save_LIBS="$LIBS"
12307 LIBS="$LIBS $LIBDL"
12308 for ac_func in dladdr
12309 do :
12310 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12311 if test "x$ac_cv_func_dladdr" = x""yes; then :
12312 cat >>confdefs.h <<_ACEOF
12313 #define HAVE_DLADDR 1
12314 _ACEOF
12317 done
12319 LIBS="$ac_wine_check_funcs_save_LIBS"
12321 if test "$ac_cv_func_poll" = no
12322 then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12324 $as_echo_n "checking for poll in -lpoll... " >&6; }
12325 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lpoll $LIBS"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 char poll ();
12341 main ()
12343 return poll ();
12345 return 0;
12347 _ACEOF
12348 if ac_fn_c_try_link "$LINENO"; then :
12349 ac_cv_lib_poll_poll=yes
12350 else
12351 ac_cv_lib_poll_poll=no
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355 LIBS=$ac_check_lib_save_LIBS
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12358 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12359 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12360 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12361 LIBPOLL="-lpoll"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12368 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12369 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 ac_func_search_save_LIBS=$LIBS
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char gethostbyname ();
12384 main ()
12386 return gethostbyname ();
12388 return 0;
12390 _ACEOF
12391 for ac_lib in '' nsl; do
12392 if test -z "$ac_lib"; then
12393 ac_res="none required"
12394 else
12395 ac_res=-l$ac_lib
12396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 ac_cv_search_gethostbyname=$ac_res
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext
12403 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12404 break
12406 done
12407 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12409 else
12410 ac_cv_search_gethostbyname=no
12412 rm conftest.$ac_ext
12413 LIBS=$ac_func_search_save_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12416 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12417 ac_res=$ac_cv_search_gethostbyname
12418 if test "$ac_res" != no; then :
12419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12425 $as_echo_n "checking for library containing connect... " >&6; }
12426 if test "${ac_cv_search_connect+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 ac_func_search_save_LIBS=$LIBS
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char connect ();
12441 main ()
12443 return connect ();
12445 return 0;
12447 _ACEOF
12448 for ac_lib in '' socket; do
12449 if test -z "$ac_lib"; then
12450 ac_res="none required"
12451 else
12452 ac_res=-l$ac_lib
12453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_search_connect=$ac_res
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext
12460 if test "${ac_cv_search_connect+set}" = set; then :
12461 break
12463 done
12464 if test "${ac_cv_search_connect+set}" = set; then :
12466 else
12467 ac_cv_search_connect=no
12469 rm conftest.$ac_ext
12470 LIBS=$ac_func_search_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12473 $as_echo "$ac_cv_search_connect" >&6; }
12474 ac_res=$ac_cv_search_connect
12475 if test "$ac_res" != no; then :
12476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12482 $as_echo_n "checking for library containing inet_aton... " >&6; }
12483 if test "${ac_cv_search_inet_aton+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char inet_aton ();
12498 main ()
12500 return inet_aton ();
12502 return 0;
12504 _ACEOF
12505 for ac_lib in '' resolv; do
12506 if test -z "$ac_lib"; then
12507 ac_res="none required"
12508 else
12509 ac_res=-l$ac_lib
12510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12512 if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_search_inet_aton=$ac_res
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext
12517 if test "${ac_cv_search_inet_aton+set}" = set; then :
12518 break
12520 done
12521 if test "${ac_cv_search_inet_aton+set}" = set; then :
12523 else
12524 ac_cv_search_inet_aton=no
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12530 $as_echo "$ac_cv_search_inet_aton" >&6; }
12531 ac_res=$ac_cv_search_inet_aton
12532 if test "$ac_res" != no; then :
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12538 for ac_func in \
12539 getaddrinfo \
12540 getnameinfo \
12541 getnetbyname \
12542 getprotobyname \
12543 getprotobynumber \
12544 getservbyport \
12545 inet_network \
12546 inet_ntop \
12547 inet_pton \
12548 sendmsg \
12549 socketpair \
12551 do :
12552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12554 eval as_val=\$$as_ac_var
12555 if test "x$as_val" = x""yes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 _ACEOF
12561 done
12564 LDAPLIBS=""
12566 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12567 then
12568 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12570 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12572 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12573 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char ldap_initialize ();
12589 main ()
12591 return ldap_initialize ();
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_ldap_r_ldap_initialize=yes
12598 else
12599 ac_cv_lib_ldap_r_ldap_initialize=no
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12606 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12607 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12609 $as_echo_n "checking for ber_init in -llber... " >&6; }
12610 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 ac_check_lib_save_LIBS=$LIBS
12614 LIBS="-llber $LIBPTHREAD $LIBS"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char ber_init ();
12626 main ()
12628 return ber_init ();
12630 return 0;
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 ac_cv_lib_lber_ber_init=yes
12635 else
12636 ac_cv_lib_lber_ber_init=no
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12643 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12644 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12646 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12648 LDAPLIBS="-lldap_r -llber"
12655 ac_wine_check_funcs_save_LIBS="$LIBS"
12656 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12657 for ac_func in \
12658 ldap_count_references \
12659 ldap_first_reference \
12660 ldap_next_reference \
12661 ldap_parse_reference \
12662 ldap_parse_sort_control \
12663 ldap_parse_sortresponse_control \
12664 ldap_parse_vlv_control \
12665 ldap_parse_vlvresponse_control
12666 do :
12667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12669 eval as_val=\$$as_ac_var
12670 if test "x$as_val" = x""yes; then :
12671 cat >>confdefs.h <<_ACEOF
12672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12673 _ACEOF
12676 done
12678 LIBS="$ac_wine_check_funcs_save_LIBS"
12680 if test "x$LDAPLIBS" = "x"; then :
12681 case "x$with_ldap" in
12682 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12683 xno) ;;
12684 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12685 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12686 esac
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12690 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12691 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696 #include <sys/stat.h>
12698 main ()
12700 mkdir("foo");
12702 return 0;
12704 _ACEOF
12705 if ac_fn_c_try_compile "$LINENO"; then :
12706 wine_cv_one_arg_mkdir=yes
12707 else
12708 wine_cv_one_arg_mkdir=no
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12713 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12714 if test "$wine_cv_one_arg_mkdir" = "yes"
12715 then
12717 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12723 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12724 if test "${ac_cv_c_const+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12731 main ()
12733 /* FIXME: Include the comments suggested by Paul. */
12734 #ifndef __cplusplus
12735 /* Ultrix mips cc rejects this. */
12736 typedef int charset[2];
12737 const charset cs;
12738 /* SunOS 4.1.1 cc rejects this. */
12739 char const *const *pcpcc;
12740 char **ppc;
12741 /* NEC SVR4.0.2 mips cc rejects this. */
12742 struct point {int x, y;};
12743 static struct point const zero = {0,0};
12744 /* AIX XL C 1.02.0.0 rejects this.
12745 It does not let you subtract one const X* pointer from another in
12746 an arm of an if-expression whose if-part is not a constant
12747 expression */
12748 const char *g = "string";
12749 pcpcc = &g + (g ? g-g : 0);
12750 /* HPUX 7.0 cc rejects these. */
12751 ++pcpcc;
12752 ppc = (char**) pcpcc;
12753 pcpcc = (char const *const *) ppc;
12754 { /* SCO 3.2v4 cc rejects this. */
12755 char *t;
12756 char const *s = 0 ? (char *) 0 : (char const *) 0;
12758 *t++ = 0;
12759 if (s) return 0;
12761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12762 int x[] = {25, 17};
12763 const int *foo = &x[0];
12764 ++foo;
12766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12767 typedef const int *iptr;
12768 iptr p = 0;
12769 ++p;
12771 { /* AIX XL C 1.02.0.0 rejects this saying
12772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12773 struct s { int j; const int *ap[3]; };
12774 struct s *b; b->j = 5;
12776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12777 const int foo = 10;
12778 if (!foo) return 0;
12780 return !cs[0] && !zero.x;
12781 #endif
12784 return 0;
12786 _ACEOF
12787 if ac_fn_c_try_compile "$LINENO"; then :
12788 ac_cv_c_const=yes
12789 else
12790 ac_cv_c_const=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12795 $as_echo "$ac_cv_c_const" >&6; }
12796 if test $ac_cv_c_const = no; then
12798 $as_echo "#define const /**/" >>confdefs.h
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12803 $as_echo_n "checking for inline... " >&6; }
12804 if test "${ac_cv_c_inline+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_cv_c_inline=no
12808 for ac_kw in inline __inline__ __inline; do
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #ifndef __cplusplus
12812 typedef int foo_t;
12813 static $ac_kw foo_t static_foo () {return 0; }
12814 $ac_kw foo_t foo () {return 0; }
12815 #endif
12817 _ACEOF
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819 ac_cv_c_inline=$ac_kw
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 test "$ac_cv_c_inline" != no && break
12823 done
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12827 $as_echo "$ac_cv_c_inline" >&6; }
12829 case $ac_cv_c_inline in
12830 inline | yes) ;;
12832 case $ac_cv_c_inline in
12833 no) ac_val=;;
12834 *) ac_val=$ac_cv_c_inline;;
12835 esac
12836 cat >>confdefs.h <<_ACEOF
12837 #ifndef __cplusplus
12838 #define inline $ac_val
12839 #endif
12840 _ACEOF
12842 esac
12844 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12845 if test "x$ac_cv_type_mode_t" = x""yes; then :
12847 cat >>confdefs.h <<_ACEOF
12848 #define HAVE_MODE_T 1
12849 _ACEOF
12853 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12854 if test "x$ac_cv_type_off_t" = x""yes; then :
12856 cat >>confdefs.h <<_ACEOF
12857 #define HAVE_OFF_T 1
12858 _ACEOF
12862 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12863 if test "x$ac_cv_type_pid_t" = x""yes; then :
12865 cat >>confdefs.h <<_ACEOF
12866 #define HAVE_PID_T 1
12867 _ACEOF
12871 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12872 if test "x$ac_cv_type_size_t" = x""yes; then :
12874 cat >>confdefs.h <<_ACEOF
12875 #define HAVE_SIZE_T 1
12876 _ACEOF
12880 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12881 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12883 cat >>confdefs.h <<_ACEOF
12884 #define HAVE_SSIZE_T 1
12885 _ACEOF
12889 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12890 if test "x$ac_cv_type_long_long" = x""yes; then :
12892 cat >>confdefs.h <<_ACEOF
12893 #define HAVE_LONG_LONG 1
12894 _ACEOF
12898 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12899 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12901 cat >>confdefs.h <<_ACEOF
12902 #define HAVE_FSBLKCNT_T 1
12903 _ACEOF
12907 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12908 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_FSFILCNT_T 1
12912 _ACEOF
12917 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12918 #include <signal.h>
12920 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12922 cat >>confdefs.h <<_ACEOF
12923 #define HAVE_SIGSET_T 1
12924 _ACEOF
12929 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12931 if test "x$ac_cv_type_request_sense" = x""yes; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_REQUEST_SENSE 1
12935 _ACEOF
12941 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12942 #ifdef HAVE_SYS_SOCKET_H
12943 #include <sys/socket.h>
12944 #endif
12945 #ifdef HAVE_SYS_SOCKETVAR_H
12946 #include <sys/socketvar.h>
12947 #endif
12948 #ifdef HAVE_NET_ROUTE_H
12949 #include <net/route.h>
12950 #endif
12951 #ifdef HAVE_NETINET_IN_H
12952 #include <netinet/in.h>
12953 #endif
12954 #ifdef HAVE_NETINET_IN_SYSTM_H
12955 #include <netinet/in_systm.h>
12956 #endif
12957 #ifdef HAVE_NETINET_IP_H
12958 #include <netinet/ip.h>
12959 #endif
12960 #ifdef HAVE_NETINET_IN_PCB_H
12961 #include <netinet/in_pcb.h>
12962 #endif
12964 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_STRUCT_XINPGEN 1
12968 _ACEOF
12974 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12975 #include <linux/input.h>
12976 #endif
12978 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
12982 _ACEOF
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
12989 $as_echo_n "checking for sigaddset... " >&6; }
12990 if test "${wine_cv_have_sigaddset+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 #include <signal.h>
12997 main ()
12999 sigset_t set; sigaddset(&set,SIGTERM);
13001 return 0;
13003 _ACEOF
13004 if ac_fn_c_try_link "$LINENO"; then :
13005 wine_cv_have_sigaddset=yes
13006 else
13007 wine_cv_have_sigaddset=no
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13013 $as_echo "$wine_cv_have_sigaddset" >&6; }
13014 if test "$wine_cv_have_sigaddset" = "yes"
13015 then
13017 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13023 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13024 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <netdb.h>
13031 main ()
13034 char *name=0;
13035 struct hostent he;
13036 struct hostent *result;
13037 char *buf=0;
13038 int bufsize=0;
13039 int res,errnr;
13040 char *addr=0;
13041 int addrlen=0;
13042 int addrtype=0;
13043 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13044 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13047 return 0;
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 wine_cv_linux_gethostbyname_r_6=yes
13052 else
13053 wine_cv_linux_gethostbyname_r_6=no
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13061 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13062 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13063 then
13065 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13069 if test "$ac_cv_header_linux_joystick_h" = "yes"
13070 then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13072 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13073 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13079 #include <sys/ioctl.h>
13080 #include <sys/types.h>
13081 #include <linux/joystick.h>
13083 struct js_event blub;
13084 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13085 #error "no 2.2 header"
13086 #endif
13089 main ()
13091 /*empty*/
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097 wine_cv_linux_joystick_22_api=yes
13098 else
13099 wine_cv_linux_joystick_22_api=no
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13105 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13106 if test "$wine_cv_linux_joystick_22_api" = "yes"
13107 then
13109 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13115 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13116 #ifdef HAVE_SYS_PARAM_H
13117 # include <sys/param.h>
13118 #endif
13119 #ifdef HAVE_SYS_MOUNT_H
13120 # include <sys/mount.h>
13121 #endif
13122 #ifdef HAVE_SYS_VFS_H
13123 # include <sys/vfs.h>
13124 #endif
13125 #ifdef HAVE_SYS_STATFS_H
13126 # include <sys/statfs.h>
13127 #endif
13129 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_STRUCT_STATFS_F_BFREE 1
13133 _ACEOF
13137 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13138 #ifdef HAVE_SYS_PARAM_H
13139 # include <sys/param.h>
13140 #endif
13141 #ifdef HAVE_SYS_MOUNT_H
13142 # include <sys/mount.h>
13143 #endif
13144 #ifdef HAVE_SYS_VFS_H
13145 # include <sys/vfs.h>
13146 #endif
13147 #ifdef HAVE_SYS_STATFS_H
13148 # include <sys/statfs.h>
13149 #endif
13151 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13155 _ACEOF
13159 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13160 #ifdef HAVE_SYS_PARAM_H
13161 # include <sys/param.h>
13162 #endif
13163 #ifdef HAVE_SYS_MOUNT_H
13164 # include <sys/mount.h>
13165 #endif
13166 #ifdef HAVE_SYS_VFS_H
13167 # include <sys/vfs.h>
13168 #endif
13169 #ifdef HAVE_SYS_STATFS_H
13170 # include <sys/statfs.h>
13171 #endif
13173 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13177 _ACEOF
13181 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13182 #ifdef HAVE_SYS_PARAM_H
13183 # include <sys/param.h>
13184 #endif
13185 #ifdef HAVE_SYS_MOUNT_H
13186 # include <sys/mount.h>
13187 #endif
13188 #ifdef HAVE_SYS_VFS_H
13189 # include <sys/vfs.h>
13190 #endif
13191 #ifdef HAVE_SYS_STATFS_H
13192 # include <sys/statfs.h>
13193 #endif
13195 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13197 cat >>confdefs.h <<_ACEOF
13198 #define HAVE_STRUCT_STATFS_F_FFREE 1
13199 _ACEOF
13203 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13204 #ifdef HAVE_SYS_PARAM_H
13205 # include <sys/param.h>
13206 #endif
13207 #ifdef HAVE_SYS_MOUNT_H
13208 # include <sys/mount.h>
13209 #endif
13210 #ifdef HAVE_SYS_VFS_H
13211 # include <sys/vfs.h>
13212 #endif
13213 #ifdef HAVE_SYS_STATFS_H
13214 # include <sys/statfs.h>
13215 #endif
13217 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13221 _ACEOF
13225 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13226 #ifdef HAVE_SYS_PARAM_H
13227 # include <sys/param.h>
13228 #endif
13229 #ifdef HAVE_SYS_MOUNT_H
13230 # include <sys/mount.h>
13231 #endif
13232 #ifdef HAVE_SYS_VFS_H
13233 # include <sys/vfs.h>
13234 #endif
13235 #ifdef HAVE_SYS_STATFS_H
13236 # include <sys/statfs.h>
13237 #endif
13239 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13243 _ACEOF
13249 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13250 #include <sys/statvfs.h>
13251 #endif
13253 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13255 cat >>confdefs.h <<_ACEOF
13256 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13257 _ACEOF
13263 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13264 #ifdef HAVE_SYS_SOCKET_H
13265 # include <sys/socket.h>
13266 #endif
13267 #ifdef HAVE_SYS_UN_H
13268 # include <sys/un.h>
13269 #endif
13271 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13275 _ACEOF
13279 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13280 #ifdef HAVE_SYS_SOCKET_H
13281 # include <sys/socket.h>
13282 #endif
13283 #ifdef HAVE_SYS_UN_H
13284 # include <sys/un.h>
13285 #endif
13287 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13291 _ACEOF
13295 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13296 #ifdef HAVE_SYS_SOCKET_H
13297 # include <sys/socket.h>
13298 #endif
13299 #ifdef HAVE_SYS_UN_H
13300 # include <sys/un.h>
13301 #endif
13303 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13307 _ACEOF
13313 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13314 #ifdef HAVE_SCSI_SG_H
13315 #include <scsi/sg.h>
13316 #endif
13318 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13320 cat >>confdefs.h <<_ACEOF
13321 #define HAVE_SCSIREQ_T_CMD 1
13322 _ACEOF
13326 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>
13327 #ifdef HAVE_SCSI_SG_H
13328 #include <scsi/sg.h>
13329 #endif
13331 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13335 _ACEOF
13341 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13343 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_SIGINFO_T_SI_FD 1
13347 _ACEOF
13353 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13354 #ifdef HAVE_SYS_MTIO_H
13355 #include <sys/mtio.h>
13356 #endif
13358 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13360 cat >>confdefs.h <<_ACEOF
13361 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13362 _ACEOF
13366 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#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_gstat" = x""yes; then :
13373 cat >>confdefs.h <<_ACEOF
13374 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13375 _ACEOF
13379 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#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_blkno" = x""yes; then :
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13388 _ACEOF
13394 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13395 #include <getopt.h>
13396 #endif
13398 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_STRUCT_OPTION_NAME 1
13402 _ACEOF
13408 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13409 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13413 _ACEOF
13417 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13418 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_STRUCT_STAT_ST_MTIM 1
13422 _ACEOF
13426 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13427 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13429 cat >>confdefs.h <<_ACEOF
13430 #define HAVE_STRUCT_STAT_ST_CTIM 1
13431 _ACEOF
13435 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13436 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_STRUCT_STAT_ST_ATIM 1
13440 _ACEOF
13446 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
13447 #include <sys/types.h>
13448 #endif
13449 #ifdef HAVE_NETINET_IN_H
13450 #include <netinet/in.h>
13451 #endif
13453 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13457 _ACEOF
13463 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13464 #include <sys/types.h>
13465 #endif
13466 #ifdef HAVE_NETINET_IN_H
13467 # include <netinet/in.h>
13468 #endif
13469 #ifdef HAVE_ARPA_NAMESER_H
13470 # include <arpa/nameser.h>
13471 #endif
13473 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13475 cat >>confdefs.h <<_ACEOF
13476 #define HAVE_NS_MSG__MSG_PTR 1
13477 _ACEOF
13483 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13484 #include <sys/types.h>
13485 #endif
13486 #ifdef HAVE_ALIAS_H
13487 #include <alias.h>
13488 #endif
13489 #ifdef HAVE_SYS_SOCKET_H
13490 #include <sys/socket.h>
13491 #endif
13492 #ifdef HAVE_SYS_SOCKETVAR_H
13493 #include <sys/socketvar.h>
13494 #endif
13495 #ifdef HAVE_SYS_TIMEOUT_H
13496 #include <sys/timeout.h>
13497 #endif
13498 #ifdef HAVE_NETINET_IN_H
13499 #include <netinet/in.h>
13500 #endif
13501 #ifdef HAVE_NETINET_IN_SYSTM_H
13502 #include <netinet/in_systm.h>
13503 #endif
13504 #ifdef HAVE_NETINET_IP_H
13505 #include <netinet/ip.h>
13506 #endif
13507 #ifdef HAVE_NETINET_IP_VAR_H
13508 #include <netinet/ip_var.h>
13509 #endif
13510 #ifdef HAVE_NETINET_IP_ICMP_H
13511 #include <netinet/ip_icmp.h>
13512 #endif
13513 #ifdef HAVE_NETINET_ICMP_VAR
13514 #include <netinet/icmp_var.h>
13515 #endif
13517 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13519 cat >>confdefs.h <<_ACEOF
13520 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13521 _ACEOF
13527 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13528 #include <sys/types.h>
13529 #endif
13530 #ifdef HAVE_NET_IF_H
13531 # include <net/if.h>
13532 #endif
13534 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13538 _ACEOF
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13545 $as_echo_n "checking for timezone variable... " >&6; }
13546 if test "${ac_cv_have_timezone+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 #include <time.h>
13553 main ()
13555 timezone = 1
13557 return 0;
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561 ac_cv_have_timezone="yes"
13562 else
13563 ac_cv_have_timezone="no"
13565 rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13569 $as_echo "$ac_cv_have_timezone" >&6; }
13570 if test "$ac_cv_have_timezone" = "yes"
13571 then
13573 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13577 $as_echo_n "checking for daylight variable... " >&6; }
13578 if test "${ac_cv_have_daylight+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 #include <time.h>
13585 main ()
13587 daylight = 1
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_have_daylight="yes"
13594 else
13595 ac_cv_have_daylight="no"
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13601 $as_echo "$ac_cv_have_daylight" >&6; }
13602 if test "$ac_cv_have_daylight" = "yes"
13603 then
13605 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13610 $as_echo_n "checking for isinf... " >&6; }
13611 if test "${ac_cv_have_isinf+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include <math.h>
13618 main ()
13620 float f = 0.0; int i=isinf(f)
13622 return 0;
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_have_isinf="yes"
13627 else
13628 ac_cv_have_isinf="no"
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13634 $as_echo "$ac_cv_have_isinf" >&6; }
13635 if test "$ac_cv_have_isinf" = "yes"
13636 then
13638 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13643 $as_echo_n "checking for isnan... " >&6; }
13644 if test "${ac_cv_have_isnan+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <math.h>
13651 main ()
13653 float f = 0.0; int i=isnan(f)
13655 return 0;
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659 ac_cv_have_isnan="yes"
13660 else
13661 ac_cv_have_isnan="no"
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13667 $as_echo "$ac_cv_have_isnan" >&6; }
13668 if test "$ac_cv_have_isnan" = "yes"
13669 then
13671 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13676 case $host_cpu in
13677 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13678 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13679 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 #ifndef __i386__
13686 #endif
13687 _ACEOF
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "yes" >/dev/null 2>&1; then :
13690 ac_cv_cpp_def___i386__=yes
13691 else
13692 ac_cv_cpp_def___i386__=no
13694 rm -f conftest*
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13698 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13699 if test $ac_cv_cpp_def___i386__ = yes; then :
13700 CFLAGS="$CFLAGS -D__i386__"
13701 LINTFLAGS="$LINTFLAGS -D__i386__"
13702 fi ;;
13703 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13704 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13705 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #ifndef __x86_64__
13712 #endif
13713 _ACEOF
13714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13715 $EGREP "yes" >/dev/null 2>&1; then :
13716 ac_cv_cpp_def___x86_64__=yes
13717 else
13718 ac_cv_cpp_def___x86_64__=no
13720 rm -f conftest*
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13724 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13725 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13726 CFLAGS="$CFLAGS -D__x86_64__"
13727 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13728 fi ;;
13729 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13730 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13731 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 #ifndef __ALPHA__
13738 #endif
13739 _ACEOF
13740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13741 $EGREP "yes" >/dev/null 2>&1; then :
13742 ac_cv_cpp_def___ALPHA__=yes
13743 else
13744 ac_cv_cpp_def___ALPHA__=no
13746 rm -f conftest*
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13750 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13751 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13752 CFLAGS="$CFLAGS -D__ALPHA__"
13753 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13754 fi ;;
13755 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13756 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13757 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 #ifndef __sparc__
13764 #endif
13765 _ACEOF
13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13767 $EGREP "yes" >/dev/null 2>&1; then :
13768 ac_cv_cpp_def___sparc__=yes
13769 else
13770 ac_cv_cpp_def___sparc__=no
13772 rm -f conftest*
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13776 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13777 if test $ac_cv_cpp_def___sparc__ = yes; then :
13778 CFLAGS="$CFLAGS -D__sparc__"
13779 LINTFLAGS="$LINTFLAGS -D__sparc__"
13780 fi ;;
13781 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13782 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13783 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #ifndef __powerpc__
13790 #endif
13791 _ACEOF
13792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13793 $EGREP "yes" >/dev/null 2>&1; then :
13794 ac_cv_cpp_def___powerpc__=yes
13795 else
13796 ac_cv_cpp_def___powerpc__=no
13798 rm -f conftest*
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13802 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13803 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13804 CFLAGS="$CFLAGS -D__powerpc__"
13805 LINTFLAGS="$LINTFLAGS -D__powerpc__"
13806 fi ;;
13807 esac
13809 case $host_vendor in
13810 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13811 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13812 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 #ifndef __sun__
13819 #endif
13820 _ACEOF
13821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13822 $EGREP "yes" >/dev/null 2>&1; then :
13823 ac_cv_cpp_def___sun__=yes
13824 else
13825 ac_cv_cpp_def___sun__=no
13827 rm -f conftest*
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13831 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13832 if test $ac_cv_cpp_def___sun__ = yes; then :
13833 CFLAGS="$CFLAGS -D__sun__"
13834 LINTFLAGS="$LINTFLAGS -D__sun__"
13835 fi ;;
13836 esac
13841 ac_config_commands="$ac_config_commands include/stamp-h"
13844 ALL_MAKEFILE_DEPENDS="
13845 # Rules automatically generated by configure
13847 .INIT: Makefile
13848 .BEGIN: Makefile
13849 .MAKEFILEDEPS:
13850 Makefile: Makefile.in Make.rules config.status
13851 @./config.status Make.tmp Makefile"
13853 ALL_WINETEST_DEPENDS="# Test binaries"
13855 ALL_TEST_BINARIES=""
13857 ALL_PROGRAM_BIN_INSTALL_DIRS=""
13860 wine_fn_append_file ()
13862 as_fn_append $1 " \\$as_nl $2"
13865 wine_fn_append_rule ()
13867 as_fn_append $1 "$as_nl$2"
13870 wine_fn_all_dir_rules ()
13872 wine_fn_append_file ALL_DIRS $1
13873 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13874 "__clean__ .PHONY: $1/__clean__
13875 $1/__clean__: $1/Makefile
13876 @cd $1 && \$(MAKE) clean
13877 \$(RM) $1/Makefile
13878 $1/Makefile: $1/Makefile.in config.status $2
13879 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
13880 depend .PHONY: $1/__depend__
13881 $1/__depend__: \$(MAKEDEP) dummy
13882 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
13885 wine_fn_config_makefile ()
13887 ac_dir=$1
13888 ac_enable=$2
13889 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
13891 eval as_val=\$$ac_enable
13892 if test "x$as_val" = x""no; then :
13894 else
13895 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13896 "all .PHONY: $ac_dir
13897 $ac_dir: $ac_dir/Makefile dummy
13898 @cd $ac_dir && \$(MAKE)
13899 install:: $ac_dir
13900 @cd $ac_dir && \$(MAKE) install
13901 install-lib:: $ac_dir
13902 @cd $ac_dir && \$(MAKE) install-lib
13903 install-dev:: $ac_dir
13904 @cd $ac_dir && \$(MAKE) install-dev
13905 uninstall:: $ac_dir/Makefile
13906 @cd $ac_dir && \$(MAKE) uninstall"
13910 wine_fn_config_lib ()
13912 ac_name=$1
13913 ac_dir=dlls/$ac_name
13914 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
13915 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13916 "all __builddeps__: $ac_dir
13917 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
13918 $ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
13919 $ac_dir: dummy
13920 @cd $ac_dir && \$(MAKE)
13921 $ac_dir/lib$ac_name.cross.a: dummy
13922 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13923 install install-dev:: $ac_dir
13924 @cd $ac_dir && \$(MAKE) install
13925 uninstall:: $ac_dir/Makefile
13926 @cd $ac_dir && \$(MAKE) uninstall"
13929 wine_fn_config_dll ()
13931 ac_dir=$1
13932 ac_enable=$2
13933 ac_implib=$3
13934 ac_implibsrc=$4
13935 ac_file="dlls/$ac_dir/lib$ac_implib"
13936 ac_deps="tools/widl tools/winebuild tools/winegcc include"
13938 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
13940 eval as_val=\$$ac_enable
13941 if test "x$as_val" = x""no; then :
13942 test "$ac_enable" != enable_win16 || return 0
13943 else
13944 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13945 "all .PHONY: dlls/$ac_dir
13946 dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
13947 @cd dlls/$ac_dir && \$(MAKE)
13948 install:: dlls/$ac_dir/Makefile __builddeps__
13949 @cd dlls/$ac_dir && \$(MAKE) install
13950 install-lib:: dlls/$ac_dir/Makefile __builddeps__
13951 @cd dlls/$ac_dir && \$(MAKE) install-lib
13952 uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
13953 @cd dlls/$ac_dir && \$(MAKE) \$@"
13956 if test -n "$ac_implibsrc"
13957 then
13958 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13959 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
13960 __buildcrossdeps__: $ac_file.cross.a
13961 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13962 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13963 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13964 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13965 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13966 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13967 @cd dlls/$ac_dir && \$(MAKE) install-dev"
13968 elif test -n "$ac_implib"
13969 then
13970 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13971 "__builddeps__: $ac_file.$IMPLIBEXT
13972 __buildcrossdeps__: $ac_file.cross.a
13973 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
13974 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13975 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13976 @cd dlls/$ac_dir && \$(MAKE) install-dev"
13978 if test "$ac_dir" != "$ac_implib"
13979 then
13980 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13981 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
13982 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
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_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
14000 eval as_val=\$$ac_enable
14001 if test "x$as_val" = x""no; then :
14003 else
14004 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14005 "all .PHONY: programs/$ac_dir
14006 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14007 @cd programs/$ac_dir && \$(MAKE)"
14009 if test -n "$ac_install"
14010 then
14011 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14012 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14013 @cd programs/$ac_dir && \$(MAKE) install
14014 uninstall:: programs/$ac_dir/Makefile
14015 @cd programs/$ac_dir && \$(MAKE) uninstall"
14016 test "$ac_install" != installbin || wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir
14021 wine_fn_config_test ()
14023 ac_dir=$1
14024 ac_name=$2
14025 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14026 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14027 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14028 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14029 $ac_name.rc:
14030 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14031 $ac_name.res: $ac_name.rc $ac_name.exe"
14032 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
14034 if test "x$enable_tests" = x""no; then :
14036 else
14037 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14038 "all programs/winetest .PHONY: $ac_dir
14039 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14040 @cd $ac_dir && \$(MAKE)
14041 crosstest .PHONY: $ac_dir/__crosstest__
14042 $ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
14043 @cd $ac_dir && \$(MAKE) crosstest
14044 test .PHONY: $ac_dir/__test__
14045 $ac_dir/__test__: dummy
14046 @cd $ac_dir && \$(MAKE) test
14047 testclean::
14048 \$(RM) $ac_dir/*.ok"
14052 wine_fn_config_tool ()
14054 ac_dir=$1
14055 ac_deps="Make.rules"
14056 if test "$ac_dir" != tools
14057 then
14058 ac_deps="$ac_deps \$(MAKEDEP)"
14060 wine_fn_all_dir_rules $ac_dir "$ac_deps"
14062 if test "x$enable_tools" = x""no; then :
14064 else
14065 case $ac_dir in
14066 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14067 "install:: $ac_dir
14068 @cd $ac_dir && \$(MAKE) install
14069 install-lib:: $ac_dir
14070 @cd $ac_dir && \$(MAKE) install-lib
14071 install-dev:: $ac_dir
14072 @cd $ac_dir && \$(MAKE) install-dev" ;;
14073 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14074 "install install-dev:: $ac_dir
14075 @cd $ac_dir && \$(MAKE) install" ;;
14076 esac
14077 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14078 "uninstall:: $ac_dir/Makefile
14079 @cd $ac_dir && \$(MAKE) uninstall
14080 all __tooldeps__ .PHONY: $ac_dir
14081 $ac_dir: $ac_dir/Makefile libs/port dummy
14082 @cd $ac_dir && \$(MAKE)"
14086 wine_fn_config_makerules ()
14088 ac_rules=$1
14089 ac_deps=$2
14090 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14091 "$ac_rules: $ac_rules.in $ac_deps config.status
14092 @./config.status $ac_rules
14093 distclean::
14094 \$(RM) $ac_rules"
14097 wine_fn_config_symlink ()
14099 ac_link=$1
14100 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14101 "$ac_link:
14102 @./config.status $ac_link
14103 distclean::
14104 \$(RM) $ac_link"
14106 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14107 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14108 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14109 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14110 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14111 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14112 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14113 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14114 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14115 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14116 ac_config_links="$ac_config_links wine:tools/winewrapper"
14117 wine_fn_config_symlink wine
14119 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14121 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14123 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14125 ac_config_commands="$ac_config_commands dlls/user32/resources"
14127 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14129 ac_config_commands="$ac_config_commands include/wine"
14132 wine_fn_config_makerules Make.rules
14133 MAKE_RULES=Make.rules
14134 ac_config_files="$ac_config_files Make.rules"
14136 wine_fn_config_makerules Maketest.rules Make.rules
14137 MAKE_TEST_RULES=Maketest.rules
14138 ac_config_files="$ac_config_files Maketest.rules"
14140 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14141 MAKE_DLL_RULES=dlls/Makedll.rules
14142 ac_config_files="$ac_config_files dlls/Makedll.rules"
14144 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14145 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14146 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14148 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14149 MAKE_PROG_RULES=programs/Makeprog.rules
14150 ac_config_files="$ac_config_files programs/Makeprog.rules"
14153 wine_fn_config_dll acledit enable_acledit
14154 wine_fn_config_dll aclui enable_aclui aclui
14155 wine_fn_config_dll activeds enable_activeds activeds
14156 wine_fn_config_dll actxprxy enable_actxprxy
14157 wine_fn_config_lib adsiid
14158 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14159 wine_fn_config_test dlls/advapi32/tests advapi32_test
14160 wine_fn_config_dll advpack enable_advpack advpack
14161 wine_fn_config_test dlls/advpack/tests advpack_test
14162 wine_fn_config_dll amstream enable_amstream
14163 wine_fn_config_test dlls/amstream/tests amstream_test
14164 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14165 wine_fn_config_dll atl enable_atl atl
14166 wine_fn_config_dll authz enable_authz
14167 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14168 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14169 wine_fn_config_test dlls/avifil32/tests avifil32_test
14170 wine_fn_config_dll avifile.dll16 enable_win16
14171 wine_fn_config_dll avrt enable_avrt avrt
14172 wine_fn_config_dll bcrypt enable_bcrypt
14173 wine_fn_config_dll browseui enable_browseui
14174 wine_fn_config_test dlls/browseui/tests browseui_test
14175 wine_fn_config_dll cabinet enable_cabinet cabinet
14176 wine_fn_config_test dlls/cabinet/tests cabinet_test
14177 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14178 wine_fn_config_dll cards enable_cards cards
14179 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14180 wine_fn_config_dll clusapi enable_clusapi clusapi
14181 wine_fn_config_dll comcat enable_comcat
14182 wine_fn_config_test dlls/comcat/tests comcat_test
14183 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14184 wine_fn_config_test dlls/comctl32/tests comctl32_test
14185 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14186 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14187 wine_fn_config_dll comm.drv16 enable_win16
14188 wine_fn_config_dll commdlg.dll16 enable_win16
14189 wine_fn_config_dll compobj.dll16 enable_win16
14190 wine_fn_config_dll compstui enable_compstui compstui
14191 wine_fn_config_dll credui enable_credui credui
14192 wine_fn_config_test dlls/credui/tests credui_test
14193 wine_fn_config_dll crtdll enable_crtdll crtdll
14194 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14195 wine_fn_config_test dlls/crypt32/tests crypt32_test
14196 wine_fn_config_dll cryptdlg enable_cryptdlg
14197 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14198 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14199 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14200 wine_fn_config_dll cryptui enable_cryptui cryptui
14201 wine_fn_config_test dlls/cryptui/tests cryptui_test
14202 wine_fn_config_dll ctapi32 enable_ctapi32
14203 wine_fn_config_dll ctl3d.dll16 enable_win16
14204 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14205 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14206 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14207 wine_fn_config_test dlls/d3d10/tests d3d10_test
14208 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14209 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14210 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14211 wine_fn_config_test dlls/d3d8/tests d3d8_test
14212 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14213 wine_fn_config_test dlls/d3d9/tests d3d9_test
14214 wine_fn_config_dll d3dim enable_d3dim d3dim
14215 wine_fn_config_dll d3drm enable_d3drm d3drm
14216 wine_fn_config_test dlls/d3drm/tests d3drm_test
14217 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14218 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14219 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14220 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14221 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14222 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14223 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14224 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14225 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14226 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14227 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14228 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14229 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14230 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14231 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14232 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14233 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14234 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14235 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14236 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14237 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14238 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14239 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14240 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14241 wine_fn_config_dll ddeml.dll16 enable_win16
14242 wine_fn_config_dll ddraw enable_ddraw ddraw
14243 wine_fn_config_test dlls/ddraw/tests ddraw_test
14244 wine_fn_config_dll ddrawex enable_ddrawex
14245 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14246 wine_fn_config_dll devenum enable_devenum
14247 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14248 wine_fn_config_test dlls/dinput/tests dinput_test
14249 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14250 wine_fn_config_dll dispdib.dll16 enable_win16
14251 wine_fn_config_dll dispex enable_dispex
14252 wine_fn_config_test dlls/dispex/tests dispex_test
14253 wine_fn_config_dll display.drv16 enable_win16
14254 wine_fn_config_dll dmband enable_dmband
14255 wine_fn_config_dll dmcompos enable_dmcompos
14256 wine_fn_config_dll dmime enable_dmime
14257 wine_fn_config_dll dmloader enable_dmloader
14258 wine_fn_config_test dlls/dmloader/tests dmloader_test
14259 wine_fn_config_dll dmscript enable_dmscript
14260 wine_fn_config_dll dmstyle enable_dmstyle
14261 wine_fn_config_dll dmsynth enable_dmsynth
14262 wine_fn_config_dll dmusic enable_dmusic
14263 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14264 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14265 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14266 wine_fn_config_dll dplay enable_dplay dplay
14267 wine_fn_config_dll dplayx enable_dplayx dplayx
14268 wine_fn_config_test dlls/dplayx/tests dplayx_test
14269 wine_fn_config_dll dpnaddr enable_dpnaddr
14270 wine_fn_config_dll dpnet enable_dpnet dpnet
14271 wine_fn_config_dll dpnhpast enable_dpnhpast
14272 wine_fn_config_dll dpnlobby enable_dpnlobby
14273 wine_fn_config_dll dpwsockx enable_dpwsockx
14274 wine_fn_config_dll drmclien enable_drmclien
14275 wine_fn_config_dll dsound enable_dsound dsound
14276 wine_fn_config_test dlls/dsound/tests dsound_test
14277 wine_fn_config_dll dssenh enable_dssenh
14278 wine_fn_config_dll dswave enable_dswave
14279 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14280 wine_fn_config_dll dxdiagn enable_dxdiagn
14281 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14282 wine_fn_config_lib dxerr8
14283 wine_fn_config_lib dxerr9
14284 wine_fn_config_dll dxgi enable_dxgi dxgi
14285 wine_fn_config_test dlls/dxgi/tests dxgi_test
14286 wine_fn_config_lib dxguid
14287 wine_fn_config_dll faultrep enable_faultrep
14288 wine_fn_config_dll fltlib enable_fltlib
14289 wine_fn_config_dll fusion enable_fusion
14290 wine_fn_config_test dlls/fusion/tests fusion_test
14291 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14292 wine_fn_config_dll gdi.exe16 enable_win16
14293 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14294 wine_fn_config_test dlls/gdi32/tests gdi32_test
14295 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14296 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14297 wine_fn_config_dll glu32 enable_glu32 glu32
14298 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14299 wine_fn_config_dll gpkcsp enable_gpkcsp
14300 wine_fn_config_dll hal enable_hal
14301 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14302 wine_fn_config_dll hid enable_hid hid
14303 wine_fn_config_dll hlink enable_hlink hlink
14304 wine_fn_config_test dlls/hlink/tests hlink_test
14305 wine_fn_config_dll hnetcfg enable_hnetcfg
14306 wine_fn_config_dll httpapi enable_httpapi
14307 wine_fn_config_dll iccvid enable_iccvid
14308 wine_fn_config_dll icmp enable_icmp
14309 wine_fn_config_dll ifsmgr.vxd enable_win16
14310 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14311 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14312 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14313 wine_fn_config_dll imm.dll16 enable_win16
14314 wine_fn_config_dll imm32 enable_imm32 imm32
14315 wine_fn_config_test dlls/imm32/tests imm32_test
14316 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14317 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14318 wine_fn_config_dll inetmib1 enable_inetmib1
14319 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14320 wine_fn_config_dll infosoft enable_infosoft
14321 wine_fn_config_test dlls/infosoft/tests infosoft_test
14322 wine_fn_config_dll initpki enable_initpki
14323 wine_fn_config_dll inkobj enable_inkobj
14324 wine_fn_config_dll inseng enable_inseng
14325 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14326 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14327 wine_fn_config_dll itircl enable_itircl
14328 wine_fn_config_dll itss enable_itss
14329 wine_fn_config_test dlls/itss/tests itss_test
14330 wine_fn_config_dll jscript enable_jscript
14331 wine_fn_config_test dlls/jscript/tests jscript_test
14332 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14333 wine_fn_config_test dlls/kernel32/tests kernel32_test
14334 wine_fn_config_dll keyboard.drv16 enable_win16
14335 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14336 wine_fn_config_dll loadperf enable_loadperf loadperf
14337 wine_fn_config_dll localspl enable_localspl
14338 wine_fn_config_test dlls/localspl/tests localspl_test
14339 wine_fn_config_dll localui enable_localui
14340 wine_fn_config_test dlls/localui/tests localui_test
14341 wine_fn_config_dll lz32 enable_lz32 lz32
14342 wine_fn_config_test dlls/lz32/tests lz32_test
14343 wine_fn_config_dll lzexpand.dll16 enable_win16
14344 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14345 wine_fn_config_test dlls/mapi32/tests mapi32_test
14346 wine_fn_config_dll mapistub enable_mapistub
14347 wine_fn_config_dll mciavi32 enable_mciavi32
14348 wine_fn_config_dll mcicda enable_mcicda
14349 wine_fn_config_dll mciqtz32 enable_mciqtz32
14350 wine_fn_config_dll mciseq enable_mciseq
14351 wine_fn_config_dll mciwave enable_mciwave
14352 wine_fn_config_dll midimap enable_midimap
14353 wine_fn_config_dll mlang enable_mlang mlang
14354 wine_fn_config_test dlls/mlang/tests mlang_test
14355 wine_fn_config_dll mmdevapi enable_mmdevapi
14356 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14357 wine_fn_config_dll mmdevldr.vxd enable_win16
14358 wine_fn_config_dll mmsystem.dll16 enable_win16
14359 wine_fn_config_dll monodebg.vxd enable_win16
14360 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14361 wine_fn_config_dll mouse.drv16 enable_win16
14362 wine_fn_config_dll mpr enable_mpr mpr
14363 wine_fn_config_dll mprapi enable_mprapi mprapi
14364 wine_fn_config_dll msacm.dll16 enable_win16
14365 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14366 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14367 wine_fn_config_test dlls/msacm32/tests msacm32_test
14368 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14369 wine_fn_config_dll mscat32 enable_mscat32
14370 wine_fn_config_dll mscms enable_mscms mscms
14371 wine_fn_config_test dlls/mscms/tests mscms_test
14372 wine_fn_config_dll mscoree enable_mscoree
14373 wine_fn_config_dll msctf enable_msctf
14374 wine_fn_config_test dlls/msctf/tests msctf_test
14375 wine_fn_config_dll msdaps enable_msdaps
14376 wine_fn_config_dll msdmo enable_msdmo msdmo
14377 wine_fn_config_dll msftedit enable_msftedit
14378 wine_fn_config_dll msg711.acm enable_msg711_acm
14379 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14380 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14381 wine_fn_config_dll mshtml enable_mshtml mshtml
14382 wine_fn_config_test dlls/mshtml/tests mshtml_test
14383 wine_fn_config_dll msi enable_msi msi
14384 wine_fn_config_test dlls/msi/tests msi_test
14385 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14386 wine_fn_config_dll msimtf enable_msimtf
14387 wine_fn_config_dll msisip enable_msisip
14388 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14389 wine_fn_config_dll msnet32 enable_msnet32
14390 wine_fn_config_dll msrle32 enable_msrle32
14391 wine_fn_config_dll mssign32 enable_mssign32
14392 wine_fn_config_dll mssip32 enable_mssip32
14393 wine_fn_config_dll mstask enable_mstask
14394 wine_fn_config_test dlls/mstask/tests mstask_test
14395 wine_fn_config_dll msvcirt enable_msvcirt
14396 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14397 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14398 wine_fn_config_dll msvcr80 enable_msvcr80
14399 wine_fn_config_dll msvcr90 enable_msvcr90
14400 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14401 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14402 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14403 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14404 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14405 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14406 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14407 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14408 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14409 wine_fn_config_dll msvidc32 enable_msvidc32
14410 wine_fn_config_dll msvideo.dll16 enable_win16
14411 wine_fn_config_dll mswsock enable_mswsock mswsock
14412 wine_fn_config_dll msxml3 enable_msxml3
14413 wine_fn_config_test dlls/msxml3/tests msxml3_test
14414 wine_fn_config_dll msxml4 enable_msxml4
14415 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14416 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14417 wine_fn_config_test dlls/netapi32/tests netapi32_test
14418 wine_fn_config_dll newdev enable_newdev newdev
14419 wine_fn_config_dll ntdll enable_ntdll ntdll
14420 wine_fn_config_test dlls/ntdll/tests ntdll_test
14421 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14422 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14423 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14424 wine_fn_config_dll ntprint enable_ntprint
14425 wine_fn_config_test dlls/ntprint/tests ntprint_test
14426 wine_fn_config_dll objsel enable_objsel
14427 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14428 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14429 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14430 wine_fn_config_dll ole2.dll16 enable_win16
14431 wine_fn_config_dll ole2conv.dll16 enable_win16
14432 wine_fn_config_dll ole2disp.dll16 enable_win16
14433 wine_fn_config_dll ole2nls.dll16 enable_win16
14434 wine_fn_config_dll ole2prox.dll16 enable_win16
14435 wine_fn_config_dll ole2thk.dll16 enable_win16
14436 wine_fn_config_dll ole32 enable_ole32 ole32
14437 wine_fn_config_test dlls/ole32/tests ole32_test
14438 wine_fn_config_dll oleacc enable_oleacc oleacc
14439 wine_fn_config_test dlls/oleacc/tests oleacc_test
14440 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14441 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14442 wine_fn_config_dll olecli.dll16 enable_win16
14443 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14444 wine_fn_config_dll oledb32 enable_oledb32
14445 wine_fn_config_test dlls/oledb32/tests oledb32_test
14446 wine_fn_config_dll oledlg enable_oledlg oledlg
14447 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14448 wine_fn_config_dll olesvr.dll16 enable_win16
14449 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14450 wine_fn_config_dll olethk32 enable_olethk32
14451 wine_fn_config_dll openal32 enable_openal32
14452 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14453 wine_fn_config_test dlls/opengl32/tests opengl32_test
14454 wine_fn_config_dll pdh enable_pdh pdh
14455 wine_fn_config_test dlls/pdh/tests pdh_test
14456 wine_fn_config_dll pidgen enable_pidgen
14457 wine_fn_config_dll powrprof enable_powrprof powrprof
14458 wine_fn_config_dll printui enable_printui
14459 wine_fn_config_dll propsys enable_propsys
14460 wine_fn_config_dll psapi enable_psapi psapi
14461 wine_fn_config_test dlls/psapi/tests psapi_test
14462 wine_fn_config_dll pstorec enable_pstorec
14463 wine_fn_config_dll qcap enable_qcap
14464 wine_fn_config_dll qedit enable_qedit
14465 wine_fn_config_test dlls/qedit/tests qedit_test
14466 wine_fn_config_dll qmgr enable_qmgr
14467 wine_fn_config_test dlls/qmgr/tests qmgr_test
14468 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14469 wine_fn_config_dll quartz enable_quartz quartz
14470 wine_fn_config_test dlls/quartz/tests quartz_test
14471 wine_fn_config_dll query enable_query
14472 wine_fn_config_dll rasapi16.dll16 enable_win16
14473 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14474 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14475 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14476 wine_fn_config_dll resutils enable_resutils resutils
14477 wine_fn_config_dll riched20 enable_riched20 riched20
14478 wine_fn_config_test dlls/riched20/tests riched20_test
14479 wine_fn_config_dll riched32 enable_riched32
14480 wine_fn_config_test dlls/riched32/tests riched32_test
14481 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14482 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14483 wine_fn_config_dll rsabase enable_rsabase
14484 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14485 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14486 wine_fn_config_dll rtutils enable_rtutils rtutils
14487 wine_fn_config_dll sane.ds enable_sane_ds
14488 wine_fn_config_dll sccbase enable_sccbase
14489 wine_fn_config_dll schannel enable_schannel
14490 wine_fn_config_test dlls/schannel/tests schannel_test
14491 wine_fn_config_dll secur32 enable_secur32 secur32
14492 wine_fn_config_test dlls/secur32/tests secur32_test
14493 wine_fn_config_dll security enable_security
14494 wine_fn_config_dll sensapi enable_sensapi sensapi
14495 wine_fn_config_dll serialui enable_serialui serialui
14496 wine_fn_config_test dlls/serialui/tests serialui_test
14497 wine_fn_config_dll setupapi enable_setupapi setupapi
14498 wine_fn_config_test dlls/setupapi/tests setupapi_test
14499 wine_fn_config_dll setupx.dll16 enable_win16
14500 wine_fn_config_dll sfc enable_sfc sfc
14501 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14502 wine_fn_config_dll shdoclc enable_shdoclc
14503 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14504 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14505 wine_fn_config_dll shell.dll16 enable_win16
14506 wine_fn_config_dll shell32 enable_shell32 shell32
14507 wine_fn_config_test dlls/shell32/tests shell32_test
14508 wine_fn_config_dll shfolder enable_shfolder shfolder
14509 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14510 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14511 wine_fn_config_dll slbcsp enable_slbcsp
14512 wine_fn_config_dll slc enable_slc slc
14513 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14514 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14515 wine_fn_config_dll softpub enable_softpub
14516 wine_fn_config_dll sound.drv16 enable_win16
14517 wine_fn_config_dll spoolss enable_spoolss spoolss
14518 wine_fn_config_test dlls/spoolss/tests spoolss_test
14519 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14520 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14521 wine_fn_config_dll sti enable_sti sti
14522 wine_fn_config_test dlls/sti/tests sti_test
14523 wine_fn_config_dll storage.dll16 enable_win16
14524 wine_fn_config_dll stress.dll16 enable_win16
14525 wine_fn_config_lib strmiids
14526 wine_fn_config_dll svrapi enable_svrapi
14527 wine_fn_config_dll sxs enable_sxs
14528 wine_fn_config_dll system.drv16 enable_win16
14529 wine_fn_config_dll t2embed enable_t2embed
14530 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14531 wine_fn_config_dll toolhelp.dll16 enable_win16
14532 wine_fn_config_dll traffic enable_traffic
14533 wine_fn_config_dll twain.dll16 enable_win16
14534 wine_fn_config_dll twain_32 enable_twain_32
14535 wine_fn_config_test dlls/twain_32/tests twain_32_test
14536 wine_fn_config_dll typelib.dll16 enable_win16
14537 wine_fn_config_dll unicows enable_unicows unicows
14538 wine_fn_config_dll updspapi enable_updspapi
14539 wine_fn_config_dll url enable_url url
14540 wine_fn_config_dll urlmon enable_urlmon urlmon
14541 wine_fn_config_test dlls/urlmon/tests urlmon_test
14542 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14543 wine_fn_config_dll user.exe16 enable_win16
14544 wine_fn_config_dll user32 enable_user32 user32
14545 wine_fn_config_test dlls/user32/tests user32_test
14546 wine_fn_config_dll userenv enable_userenv userenv
14547 wine_fn_config_test dlls/userenv/tests userenv_test
14548 wine_fn_config_dll usp10 enable_usp10 usp10
14549 wine_fn_config_test dlls/usp10/tests usp10_test
14550 wine_fn_config_lib uuid
14551 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14552 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14553 wine_fn_config_dll vdhcp.vxd enable_win16
14554 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14555 wine_fn_config_dll ver.dll16 enable_win16
14556 wine_fn_config_dll version enable_version version
14557 wine_fn_config_test dlls/version/tests version_test
14558 wine_fn_config_dll vmm.vxd enable_win16
14559 wine_fn_config_dll vnbt.vxd enable_win16
14560 wine_fn_config_dll vnetbios.vxd enable_win16
14561 wine_fn_config_dll vtdapi.vxd enable_win16
14562 wine_fn_config_dll vwin32.vxd enable_win16
14563 wine_fn_config_dll w32skrnl enable_win16
14564 wine_fn_config_dll w32sys.dll16 enable_win16
14565 wine_fn_config_dll wbemprox enable_wbemprox
14566 wine_fn_config_dll wiaservc enable_wiaservc
14567 wine_fn_config_dll win32s16.dll16 enable_win16
14568 wine_fn_config_dll win87em.dll16 enable_win16
14569 wine_fn_config_dll winaspi.dll16 enable_win16
14570 wine_fn_config_dll windebug.dll16 enable_win16
14571 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14572 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14573 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14574 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14575 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14576 wine_fn_config_lib winecrt0
14577 wine_fn_config_dll wined3d enable_wined3d wined3d
14578 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14579 wine_fn_config_dll winejack.drv enable_winejack_drv
14580 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14581 wine_fn_config_dll winemapi enable_winemapi
14582 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14583 wine_fn_config_dll winenas.drv enable_winenas_drv
14584 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14585 wine_fn_config_dll wineps.drv enable_wineps_drv
14586 wine_fn_config_dll wineps16.drv16 enable_win16
14587 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14588 wine_fn_config_dll winex11.drv enable_winex11_drv
14589 wine_fn_config_dll wing.dll16 enable_win16
14590 wine_fn_config_dll wing32 enable_wing32
14591 wine_fn_config_dll winhttp enable_winhttp winhttp
14592 wine_fn_config_test dlls/winhttp/tests winhttp_test
14593 wine_fn_config_dll wininet enable_wininet wininet
14594 wine_fn_config_test dlls/wininet/tests wininet_test
14595 wine_fn_config_dll winmm enable_winmm winmm
14596 wine_fn_config_test dlls/winmm/tests winmm_test
14597 wine_fn_config_dll winnls.dll16 enable_win16
14598 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14599 wine_fn_config_dll winscard enable_winscard winscard
14600 wine_fn_config_dll winsock.dll16 enable_win16
14601 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14602 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14603 wine_fn_config_dll wintab.dll16 enable_win16
14604 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14605 wine_fn_config_test dlls/wintab32/tests wintab32_test
14606 wine_fn_config_dll wintrust enable_wintrust wintrust
14607 wine_fn_config_test dlls/wintrust/tests wintrust_test
14608 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14609 wine_fn_config_test dlls/wldap32/tests wldap32_test
14610 wine_fn_config_dll wmi enable_wmi
14611 wine_fn_config_dll wmiutils enable_wmiutils
14612 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14613 wine_fn_config_dll wow32 enable_win16 wow32
14614 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14615 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14616 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14617 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14618 wine_fn_config_dll wuapi enable_wuapi
14619 wine_fn_config_dll wuaueng enable_wuaueng
14620 wine_fn_config_dll xinput1_1 enable_xinput1_1
14621 wine_fn_config_dll xinput1_2 enable_xinput1_2
14622 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14623 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14624 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14625 wine_fn_config_dll xmllite enable_xmllite
14626 wine_fn_config_test dlls/xmllite/tests xmllite_test
14627 wine_fn_config_makefile documentation enable_documentation
14628 wine_fn_config_makefile fonts enable_fonts
14629 wine_fn_config_makefile include enable_include
14630 wine_fn_config_makefile libs/port enable_libs_port
14631 wine_fn_config_makefile libs/wine enable_libs_wine
14632 wine_fn_config_makefile libs/wpp enable_libs_wpp
14633 wine_fn_config_makefile loader enable_loader
14634 wine_fn_config_makefile programs enable_programs
14635 wine_fn_config_program attrib enable_attrib install
14636 wine_fn_config_program cacls enable_cacls install
14637 wine_fn_config_program clock enable_clock install
14638 wine_fn_config_program cmd enable_cmd install
14639 wine_fn_config_test programs/cmd/tests cmd.exe_test
14640 wine_fn_config_program cmdlgtst enable_cmdlgtst
14641 wine_fn_config_program control enable_control install
14642 wine_fn_config_program dxdiag enable_dxdiag install
14643 wine_fn_config_program eject enable_eject install
14644 wine_fn_config_program expand enable_expand install
14645 wine_fn_config_program explorer enable_explorer install
14646 wine_fn_config_program extrac32 enable_extrac32 install
14647 wine_fn_config_program hh enable_hh install
14648 wine_fn_config_program icinfo enable_icinfo install
14649 wine_fn_config_program iexplore enable_iexplore install
14650 wine_fn_config_program lodctr enable_lodctr install
14651 wine_fn_config_program mshta enable_mshta install
14652 wine_fn_config_program msiexec enable_msiexec installbin
14653 wine_fn_config_program net enable_net install
14654 wine_fn_config_program notepad enable_notepad installbin
14655 wine_fn_config_program oleview enable_oleview install
14656 wine_fn_config_program ping enable_ping install
14657 wine_fn_config_program progman enable_progman install
14658 wine_fn_config_program reg enable_reg install
14659 wine_fn_config_program regedit enable_regedit installbin
14660 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14661 wine_fn_config_program rpcss enable_rpcss install
14662 wine_fn_config_program rundll32 enable_rundll32 install
14663 wine_fn_config_program secedit enable_secedit install
14664 wine_fn_config_program services enable_services install
14665 wine_fn_config_program spoolsv enable_spoolsv install
14666 wine_fn_config_program start enable_start install
14667 wine_fn_config_program svchost enable_svchost install
14668 wine_fn_config_program taskmgr enable_taskmgr install
14669 wine_fn_config_program termsv enable_termsv install
14670 wine_fn_config_program uninstaller enable_uninstaller install
14671 wine_fn_config_program unlodctr enable_unlodctr install
14672 wine_fn_config_program view enable_view
14673 wine_fn_config_program wineboot enable_wineboot installbin
14674 wine_fn_config_program winebrowser enable_winebrowser install
14675 wine_fn_config_program winecfg enable_winecfg installbin
14676 wine_fn_config_program wineconsole enable_wineconsole installbin
14677 wine_fn_config_program winedbg enable_winedbg installbin
14678 wine_fn_config_program winedevice enable_winedevice install
14679 wine_fn_config_program winefile enable_winefile installbin
14680 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14681 wine_fn_config_program winemine enable_winemine installbin
14682 wine_fn_config_program winepath enable_winepath installbin
14683 wine_fn_config_program winetest enable_winetest
14684 wine_fn_config_program winevdm enable_win16 install
14685 wine_fn_config_program winhelp.exe16 enable_win16 install
14686 wine_fn_config_program winhlp32 enable_winhlp32 install
14687 wine_fn_config_program winoldap.mod16 enable_win16 install
14688 wine_fn_config_program winver enable_winver install
14689 wine_fn_config_program wordpad enable_wordpad install
14690 wine_fn_config_program write enable_write install
14691 wine_fn_config_program xcopy enable_xcopy install
14692 wine_fn_config_makefile server enable_server
14693 wine_fn_config_tool tools
14694 wine_fn_config_tool tools/widl
14695 wine_fn_config_tool tools/winebuild
14696 wine_fn_config_tool tools/winedump
14697 wine_fn_config_tool tools/winegcc
14698 wine_fn_config_tool tools/wmc
14699 wine_fn_config_tool tools/wrc
14701 ac_config_commands="$ac_config_commands Makefile"
14704 ac_config_files="$ac_config_files Make.tmp:Makefile.in"
14707 test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
14709 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14710 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14712 cat >confcache <<\_ACEOF
14713 # This file is a shell script that caches the results of configure
14714 # tests run on this system so they can be shared between configure
14715 # scripts and configure runs, see configure's option --config-cache.
14716 # It is not useful on other systems. If it contains results you don't
14717 # want to keep, you may remove or edit it.
14719 # config.status only pays attention to the cache file if you give it
14720 # the --recheck option to rerun configure.
14722 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14723 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14724 # following values.
14726 _ACEOF
14728 # The following way of writing the cache mishandles newlines in values,
14729 # but we know of no workaround that is simple, portable, and efficient.
14730 # So, we kill variables containing newlines.
14731 # Ultrix sh set writes to stderr and can't be redirected directly,
14732 # and sets the high bit in the cache file unless we assign to the vars.
14734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14735 eval ac_val=\$$ac_var
14736 case $ac_val in #(
14737 *${as_nl}*)
14738 case $ac_var in #(
14739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14741 esac
14742 case $ac_var in #(
14743 _ | IFS | as_nl) ;; #(
14744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14745 *) { eval $ac_var=; unset $ac_var;} ;;
14746 esac ;;
14747 esac
14748 done
14750 (set) 2>&1 |
14751 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14752 *${as_nl}ac_space=\ *)
14753 # `set' does not quote correctly, so add quotes: double-quote
14754 # substitution turns \\\\ into \\, and sed turns \\ into \.
14755 sed -n \
14756 "s/'/'\\\\''/g;
14757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14758 ;; #(
14760 # `set' quotes correctly as required by POSIX, so do not add quotes.
14761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14763 esac |
14764 sort
14766 sed '
14767 /^ac_cv_env_/b end
14768 t clear
14769 :clear
14770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14771 t end
14772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14773 :end' >>confcache
14774 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14775 if test -w "$cache_file"; then
14776 test "x$cache_file" != "x/dev/null" &&
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14778 $as_echo "$as_me: updating cache $cache_file" >&6;}
14779 cat confcache >$cache_file
14780 else
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14785 rm -f confcache
14787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14788 # Let make expand exec_prefix.
14789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14791 DEFS=-DHAVE_CONFIG_H
14793 ac_libobjs=
14794 ac_ltlibobjs=
14795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14796 # 1. Remove the extension, and $U if already installed.
14797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14800 # will be set to the directory where LIBOBJS objects are built.
14801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14803 done
14804 LIBOBJS=$ac_libobjs
14806 LTLIBOBJS=$ac_ltlibobjs
14810 : ${CONFIG_STATUS=./config.status}
14811 ac_write_fail=0
14812 ac_clean_files_save=$ac_clean_files
14813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14816 as_write_fail=0
14817 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14818 #! $SHELL
14819 # Generated by $as_me.
14820 # Run this file to recreate the current configuration.
14821 # Compiler output produced by configure, useful for debugging
14822 # configure, is in config.log if it exists.
14824 debug=false
14825 ac_cs_recheck=false
14826 ac_cs_silent=false
14828 SHELL=\${CONFIG_SHELL-$SHELL}
14829 export SHELL
14830 _ASEOF
14831 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14832 ## -------------------- ##
14833 ## M4sh Initialization. ##
14834 ## -------------------- ##
14836 # Be more Bourne compatible
14837 DUALCASE=1; export DUALCASE # for MKS sh
14838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14839 emulate sh
14840 NULLCMD=:
14841 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14842 # is contrary to our usage. Disable this feature.
14843 alias -g '${1+"$@"}'='"$@"'
14844 setopt NO_GLOB_SUBST
14845 else
14846 case `(set -o) 2>/dev/null` in #(
14847 *posix*) :
14848 set -o posix ;; #(
14849 *) :
14851 esac
14855 as_nl='
14857 export as_nl
14858 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14859 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14862 # Prefer a ksh shell builtin over an external printf program on Solaris,
14863 # but without wasting forks for bash or zsh.
14864 if test -z "$BASH_VERSION$ZSH_VERSION" \
14865 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14866 as_echo='print -r --'
14867 as_echo_n='print -rn --'
14868 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='printf %s\n'
14870 as_echo_n='printf %s'
14871 else
14872 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14873 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14874 as_echo_n='/usr/ucb/echo -n'
14875 else
14876 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14877 as_echo_n_body='eval
14878 arg=$1;
14879 case $arg in #(
14880 *"$as_nl"*)
14881 expr "X$arg" : "X\\(.*\\)$as_nl";
14882 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14883 esac;
14884 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14886 export as_echo_n_body
14887 as_echo_n='sh -c $as_echo_n_body as_echo'
14889 export as_echo_body
14890 as_echo='sh -c $as_echo_body as_echo'
14893 # The user is always right.
14894 if test "${PATH_SEPARATOR+set}" != set; then
14895 PATH_SEPARATOR=:
14896 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14897 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14898 PATH_SEPARATOR=';'
14903 # IFS
14904 # We need space, tab and new line, in precisely that order. Quoting is
14905 # there to prevent editors from complaining about space-tab.
14906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14907 # splitting by setting IFS to empty value.)
14908 IFS=" "" $as_nl"
14910 # Find who we are. Look in the path if we contain no directory separator.
14911 case $0 in #((
14912 *[\\/]* ) as_myself=$0 ;;
14913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
14918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14919 done
14920 IFS=$as_save_IFS
14923 esac
14924 # We did not find ourselves, most probably we were run as `sh COMMAND'
14925 # in which case we are not to be found in the path.
14926 if test "x$as_myself" = x; then
14927 as_myself=$0
14929 if test ! -f "$as_myself"; then
14930 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14931 exit 1
14934 # Unset variables that we do not need and which cause bugs (e.g. in
14935 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14936 # suppresses any "Segmentation fault" message there. '((' could
14937 # trigger a bug in pdksh 5.2.14.
14938 for as_var in BASH_ENV ENV MAIL MAILPATH
14939 do eval test x\${$as_var+set} = xset \
14940 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14941 done
14942 PS1='$ '
14943 PS2='> '
14944 PS4='+ '
14946 # NLS nuisances.
14947 LC_ALL=C
14948 export LC_ALL
14949 LANGUAGE=C
14950 export LANGUAGE
14952 # CDPATH.
14953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14956 # as_fn_error ERROR [LINENO LOG_FD]
14957 # ---------------------------------
14958 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14959 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14960 # script with status $?, using 1 if that was 0.
14961 as_fn_error ()
14963 as_status=$?; test $as_status -eq 0 && as_status=1
14964 if test "$3"; then
14965 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14966 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14968 $as_echo "$as_me: error: $1" >&2
14969 as_fn_exit $as_status
14970 } # as_fn_error
14973 # as_fn_set_status STATUS
14974 # -----------------------
14975 # Set $? to STATUS, without forking.
14976 as_fn_set_status ()
14978 return $1
14979 } # as_fn_set_status
14981 # as_fn_exit STATUS
14982 # -----------------
14983 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14984 as_fn_exit ()
14986 set +e
14987 as_fn_set_status $1
14988 exit $1
14989 } # as_fn_exit
14991 # as_fn_unset VAR
14992 # ---------------
14993 # Portably unset VAR.
14994 as_fn_unset ()
14996 { eval $1=; unset $1;}
14998 as_unset=as_fn_unset
14999 # as_fn_append VAR VALUE
15000 # ----------------------
15001 # Append the text in VALUE to the end of the definition contained in VAR. Take
15002 # advantage of any shell optimizations that allow amortized linear growth over
15003 # repeated appends, instead of the typical quadratic growth present in naive
15004 # implementations.
15005 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15006 eval 'as_fn_append ()
15008 eval $1+=\$2
15010 else
15011 as_fn_append ()
15013 eval $1=\$$1\$2
15015 fi # as_fn_append
15017 # as_fn_arith ARG...
15018 # ------------------
15019 # Perform arithmetic evaluation on the ARGs, and store the result in the
15020 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15021 # must be portable across $(()) and expr.
15022 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15023 eval 'as_fn_arith ()
15025 as_val=$(( $* ))
15027 else
15028 as_fn_arith ()
15030 as_val=`expr "$@" || test $? -eq 1`
15032 fi # as_fn_arith
15035 if expr a : '\(a\)' >/dev/null 2>&1 &&
15036 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15037 as_expr=expr
15038 else
15039 as_expr=false
15042 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15043 as_basename=basename
15044 else
15045 as_basename=false
15048 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15049 as_dirname=dirname
15050 else
15051 as_dirname=false
15054 as_me=`$as_basename -- "$0" ||
15055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15056 X"$0" : 'X\(//\)$' \| \
15057 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15058 $as_echo X/"$0" |
15059 sed '/^.*\/\([^/][^/]*\)\/*$/{
15060 s//\1/
15063 /^X\/\(\/\/\)$/{
15064 s//\1/
15067 /^X\/\(\/\).*/{
15068 s//\1/
15071 s/.*/./; q'`
15073 # Avoid depending upon Character Ranges.
15074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15077 as_cr_digits='0123456789'
15078 as_cr_alnum=$as_cr_Letters$as_cr_digits
15080 ECHO_C= ECHO_N= ECHO_T=
15081 case `echo -n x` in #(((((
15082 -n*)
15083 case `echo 'xy\c'` in
15084 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15085 xy) ECHO_C='\c';;
15086 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15087 ECHO_T=' ';;
15088 esac;;
15090 ECHO_N='-n';;
15091 esac
15093 rm -f conf$$ conf$$.exe conf$$.file
15094 if test -d conf$$.dir; then
15095 rm -f conf$$.dir/conf$$.file
15096 else
15097 rm -f conf$$.dir
15098 mkdir conf$$.dir 2>/dev/null
15100 if (echo >conf$$.file) 2>/dev/null; then
15101 if ln -s conf$$.file conf$$ 2>/dev/null; then
15102 as_ln_s='ln -s'
15103 # ... but there are two gotchas:
15104 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15105 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15106 # In both cases, we have to default to `cp -p'.
15107 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15108 as_ln_s='cp -p'
15109 elif ln conf$$.file conf$$ 2>/dev/null; then
15110 as_ln_s=ln
15111 else
15112 as_ln_s='cp -p'
15114 else
15115 as_ln_s='cp -p'
15117 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15118 rmdir conf$$.dir 2>/dev/null
15121 # as_fn_mkdir_p
15122 # -------------
15123 # Create "$as_dir" as a directory, including parents if necessary.
15124 as_fn_mkdir_p ()
15127 case $as_dir in #(
15128 -*) as_dir=./$as_dir;;
15129 esac
15130 test -d "$as_dir" || eval $as_mkdir_p || {
15131 as_dirs=
15132 while :; do
15133 case $as_dir in #(
15134 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15135 *) as_qdir=$as_dir;;
15136 esac
15137 as_dirs="'$as_qdir' $as_dirs"
15138 as_dir=`$as_dirname -- "$as_dir" ||
15139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15140 X"$as_dir" : 'X\(//\)[^/]' \| \
15141 X"$as_dir" : 'X\(//\)$' \| \
15142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15143 $as_echo X"$as_dir" |
15144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15145 s//\1/
15148 /^X\(\/\/\)[^/].*/{
15149 s//\1/
15152 /^X\(\/\/\)$/{
15153 s//\1/
15156 /^X\(\/\).*/{
15157 s//\1/
15160 s/.*/./; q'`
15161 test -d "$as_dir" && break
15162 done
15163 test -z "$as_dirs" || eval "mkdir $as_dirs"
15164 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15167 } # as_fn_mkdir_p
15168 if mkdir -p . 2>/dev/null; then
15169 as_mkdir_p='mkdir -p "$as_dir"'
15170 else
15171 test -d ./-p && rmdir ./-p
15172 as_mkdir_p=false
15175 if test -x / >/dev/null 2>&1; then
15176 as_test_x='test -x'
15177 else
15178 if ls -dL / >/dev/null 2>&1; then
15179 as_ls_L_option=L
15180 else
15181 as_ls_L_option=
15183 as_test_x='
15184 eval sh -c '\''
15185 if test -d "$1"; then
15186 test -d "$1/.";
15187 else
15188 case $1 in #(
15189 -*)set "./$1";;
15190 esac;
15191 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15192 ???[sx]*):;;*)false;;esac;fi
15193 '\'' sh
15196 as_executable_p=$as_test_x
15198 # Sed expression to map a string onto a valid CPP name.
15199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15201 # Sed expression to map a string onto a valid variable name.
15202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15205 exec 6>&1
15206 ## ----------------------------------- ##
15207 ## Main body of $CONFIG_STATUS script. ##
15208 ## ----------------------------------- ##
15209 _ASEOF
15210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15213 # Save the log message, to keep $0 and so on meaningful, and to
15214 # report actual input values of CONFIG_FILES etc. instead of their
15215 # values after options handling.
15216 ac_log="
15217 This file was extended by Wine $as_me 1.1.41, which was
15218 generated by GNU Autoconf 2.65. Invocation command line was
15220 CONFIG_FILES = $CONFIG_FILES
15221 CONFIG_HEADERS = $CONFIG_HEADERS
15222 CONFIG_LINKS = $CONFIG_LINKS
15223 CONFIG_COMMANDS = $CONFIG_COMMANDS
15224 $ $0 $@
15226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15229 _ACEOF
15231 case $ac_config_files in *"
15232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15233 esac
15235 case $ac_config_headers in *"
15236 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15237 esac
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241 # Files that config.status was made for.
15242 config_files="$ac_config_files"
15243 config_headers="$ac_config_headers"
15244 config_links="$ac_config_links"
15245 config_commands="$ac_config_commands"
15247 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 ac_cs_usage="\
15251 \`$as_me' instantiates files and other configuration actions
15252 from templates according to the current configuration. Unless the files
15253 and actions are specified as TAGs, all are instantiated by default.
15255 Usage: $0 [OPTION]... [TAG]...
15257 -h, --help print this help, then exit
15258 -V, --version print version number and configuration settings, then exit
15259 --config print configuration, then exit
15260 -q, --quiet, --silent
15261 do not print progress messages
15262 -d, --debug don't remove temporary files
15263 --recheck update $as_me by reconfiguring in the same conditions
15264 --file=FILE[:TEMPLATE]
15265 instantiate the configuration file FILE
15266 --header=FILE[:TEMPLATE]
15267 instantiate the configuration header FILE
15269 Configuration files:
15270 $config_files
15272 Configuration headers:
15273 $config_headers
15275 Configuration links:
15276 $config_links
15278 Configuration commands:
15279 $config_commands
15281 Report bugs to <wine-devel@winehq.org>.
15282 Wine home page: <http://www.winehq.org>."
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15287 ac_cs_version="\\
15288 Wine config.status 1.1.41
15289 configured by $0, generated by GNU Autoconf 2.65,
15290 with options \\"\$ac_cs_config\\"
15292 Copyright (C) 2009 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15296 ac_pwd='$ac_pwd'
15297 srcdir='$srcdir'
15298 INSTALL='$INSTALL'
15299 test -n "\$AWK" || AWK=awk
15300 _ACEOF
15302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 # The default lists apply if the user does not specify any file.
15304 ac_need_defaults=:
15305 while test $# != 0
15307 case $1 in
15308 --*=*)
15309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15311 ac_shift=:
15314 ac_option=$1
15315 ac_optarg=$2
15316 ac_shift=shift
15318 esac
15320 case $ac_option in
15321 # Handling of the options.
15322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15323 ac_cs_recheck=: ;;
15324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15325 $as_echo "$ac_cs_version"; exit ;;
15326 --config | --confi | --conf | --con | --co | --c )
15327 $as_echo "$ac_cs_config"; exit ;;
15328 --debug | --debu | --deb | --de | --d | -d )
15329 debug=: ;;
15330 --file | --fil | --fi | --f )
15331 $ac_shift
15332 case $ac_optarg in
15333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15334 esac
15335 as_fn_append CONFIG_FILES " '$ac_optarg'"
15336 ac_need_defaults=false;;
15337 --header | --heade | --head | --hea )
15338 $ac_shift
15339 case $ac_optarg in
15340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15341 esac
15342 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15343 ac_need_defaults=false;;
15344 --he | --h)
15345 # Conflict between --help and --header
15346 as_fn_error "ambiguous option: \`$1'
15347 Try \`$0 --help' for more information.";;
15348 --help | --hel | -h )
15349 $as_echo "$ac_cs_usage"; exit ;;
15350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15352 ac_cs_silent=: ;;
15354 # This is an error.
15355 -*) as_fn_error "unrecognized option: \`$1'
15356 Try \`$0 --help' for more information." ;;
15358 *) as_fn_append ac_config_targets " $1"
15359 ac_need_defaults=false ;;
15361 esac
15362 shift
15363 done
15365 ac_configure_extra_args=
15367 if $ac_cs_silent; then
15368 exec 6>/dev/null
15369 ac_configure_extra_args="$ac_configure_extra_args --silent"
15372 _ACEOF
15373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374 if \$ac_cs_recheck; then
15375 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15376 shift
15377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15378 CONFIG_SHELL='$SHELL'
15379 export CONFIG_SHELL
15380 exec "\$@"
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 exec 5>>config.log
15387 echo
15388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15389 ## Running $as_me. ##
15390 _ASBOX
15391 $as_echo "$ac_log"
15392 } >&5
15394 _ACEOF
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15397 # INIT-COMMANDS
15399 wine_fn_output_makefile ()
15401 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15402 $ALL_MAKEFILE_DEPENDS
15403 _WINE_EOF
15404 as_fn_error "could not create Makefile" "$LINENO" 5
15407 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15411 # Handling of arguments.
15412 for ac_config_target in $ac_config_targets
15414 case $ac_config_target in
15415 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15416 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15417 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15418 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15419 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15420 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15421 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15422 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15423 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15424 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15425 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15426 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15427 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15428 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15429 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15430 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15431 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15432 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15433 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15434 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15435 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
15437 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15438 esac
15439 done
15442 # If the user did not use the arguments to specify the items to instantiate,
15443 # then the envvar interface is used. Set only those that are not.
15444 # We use the long form for the default assignment because of an extremely
15445 # bizarre bug on SunOS 4.1.3.
15446 if $ac_need_defaults; then
15447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15449 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15453 # Have a temporary directory for convenience. Make it in the build tree
15454 # simply because there is no reason against having it here, and in addition,
15455 # creating and moving files from /tmp can sometimes cause problems.
15456 # Hook for its removal unless debugging.
15457 # Note that there is a small window in which the directory will not be cleaned:
15458 # after its creation but before its name has been assigned to `$tmp'.
15459 $debug ||
15461 tmp=
15462 trap 'exit_status=$?
15463 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15465 trap 'as_fn_exit 1' 1 2 13 15
15467 # Create a (secure) tmp directory for tmp files.
15470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15471 test -n "$tmp" && test -d "$tmp"
15472 } ||
15474 tmp=./conf$$-$RANDOM
15475 (umask 077 && mkdir "$tmp")
15476 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15478 # Set up the scripts for CONFIG_FILES section.
15479 # No need to generate them if there are no CONFIG_FILES.
15480 # This happens for instance with `./config.status config.h'.
15481 if test -n "$CONFIG_FILES"; then
15483 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15484 ac_cs_awk_getline=:
15485 ac_cs_awk_pipe_init=
15486 ac_cs_awk_read_file='
15487 while ((getline aline < (F[key])) > 0)
15488 print(aline)
15489 close(F[key])'
15490 ac_cs_awk_pipe_fini=
15491 else
15492 ac_cs_awk_getline=false
15493 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15494 ac_cs_awk_read_file='
15495 print "|#_!!_#|"
15496 print "cat " F[key] " &&"
15497 '$ac_cs_awk_pipe_init
15498 # The final `:' finishes the AND list.
15499 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15501 ac_cr=`echo X | tr X '\015'`
15502 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15503 # But we know of no other shell where ac_cr would be empty at this
15504 # point, so we can use a bashism as a fallback.
15505 if test "x$ac_cr" = x; then
15506 eval ac_cr=\$\'\\r\'
15508 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15509 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15510 ac_cs_awk_cr='\r'
15511 else
15512 ac_cs_awk_cr=$ac_cr
15515 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15516 _ACEOF
15518 # Create commands to substitute file output variables.
15520 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15521 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15522 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15523 echo "_ACAWK" &&
15524 echo "_ACEOF"
15525 } >conf$$files.sh &&
15526 . ./conf$$files.sh ||
15527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15528 rm -f conf$$files.sh
15531 echo "cat >conf$$subs.awk <<_ACEOF" &&
15532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15533 echo "_ACEOF"
15534 } >conf$$subs.sh ||
15535 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15536 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15537 ac_delim='%!_!# '
15538 for ac_last_try in false false false false false :; do
15539 . ./conf$$subs.sh ||
15540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15543 if test $ac_delim_n = $ac_delim_num; then
15544 break
15545 elif $ac_last_try; then
15546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15547 else
15548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15550 done
15551 rm -f conf$$subs.sh
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15555 _ACEOF
15556 sed -n '
15558 s/^/S["/; s/!.*/"]=/
15561 s/^[^!]*!//
15562 :repl
15563 t repl
15564 s/'"$ac_delim"'$//
15565 t delim
15568 s/\(.\{148\}\)..*/\1/
15569 t more1
15570 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15573 b repl
15574 :more1
15575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15578 s/.\{148\}//
15579 t nl
15580 :delim
15582 s/\(.\{148\}\)..*/\1/
15583 t more2
15584 s/["\\]/\\&/g; s/^/"/; s/$/"/
15587 :more2
15588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15591 s/.\{148\}//
15592 t delim
15593 ' <conf$$subs.awk | sed '
15594 /^[^""]/{
15596 s/\n//
15598 ' >>$CONFIG_STATUS || ac_write_fail=1
15599 rm -f conf$$subs.awk
15600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15601 _ACAWK
15602 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15603 for (key in S) S_is_set[key] = 1
15604 FS = "\a"
15605 \$ac_cs_awk_pipe_init
15608 line = $ 0
15609 nfields = split(line, field, "@")
15610 substed = 0
15611 len = length(field[1])
15612 for (i = 2; i < nfields; i++) {
15613 key = field[i]
15614 keylen = length(key)
15615 if (S_is_set[key]) {
15616 value = S[key]
15617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15618 len += length(value) + length(field[++i])
15619 substed = 1
15620 } else
15621 len += 1 + keylen
15623 if (nfields == 3 && !substed) {
15624 key = field[2]
15625 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15626 \$ac_cs_awk_read_file
15627 next
15630 print line
15632 \$ac_cs_awk_pipe_fini
15633 _ACAWK
15634 _ACEOF
15635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15638 else
15640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15641 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15642 _ACEOF
15644 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15646 # trailing colons and then remove the whole line if VPATH becomes empty
15647 # (actually we leave an empty line to preserve line numbers).
15648 if test "x$srcdir" = x.; then
15649 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15650 s/:*\$(srcdir):*/:/
15651 s/:*\${srcdir}:*/:/
15652 s/:*@srcdir@:*/:/
15653 s/^\([^=]*=[ ]*\):*/\1/
15654 s/:*$//
15655 s/^[^=]*=[ ]*$//
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660 fi # test -n "$CONFIG_FILES"
15662 # Set up the scripts for CONFIG_HEADERS section.
15663 # No need to generate them if there are no CONFIG_HEADERS.
15664 # This happens for instance with `./config.status Makefile'.
15665 if test -n "$CONFIG_HEADERS"; then
15666 cat >"$tmp/defines.awk" <<\_ACAWK ||
15667 BEGIN {
15668 _ACEOF
15670 # Transform confdefs.h into an awk script `defines.awk', embedded as
15671 # here-document in config.status, that substitutes the proper values into
15672 # config.h.in to produce config.h.
15674 # Create a delimiter string that does not exist in confdefs.h, to ease
15675 # handling of long lines.
15676 ac_delim='%!_!# '
15677 for ac_last_try in false false :; do
15678 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15679 if test -z "$ac_t"; then
15680 break
15681 elif $ac_last_try; then
15682 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15683 else
15684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15686 done
15688 # For the awk script, D is an array of macro values keyed by name,
15689 # likewise P contains macro parameters if any. Preserve backslash
15690 # newline sequences.
15692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15693 sed -n '
15694 s/.\{148\}/&'"$ac_delim"'/g
15695 t rset
15696 :rset
15697 s/^[ ]*#[ ]*define[ ][ ]*/ /
15698 t def
15700 :def
15701 s/\\$//
15702 t bsnl
15703 s/["\\]/\\&/g
15704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15705 D["\1"]=" \3"/p
15706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15708 :bsnl
15709 s/["\\]/\\&/g
15710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15711 D["\1"]=" \3\\\\\\n"\\/p
15712 t cont
15713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15714 t cont
15716 :cont
15718 s/.\{148\}/&'"$ac_delim"'/g
15719 t clear
15720 :clear
15721 s/\\$//
15722 t bsnlc
15723 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15725 :bsnlc
15726 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15727 b cont
15728 ' <confdefs.h | sed '
15729 s/'"$ac_delim"'/"\\\
15730 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 for (key in D) D_is_set[key] = 1
15734 FS = "\a"
15736 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15737 line = \$ 0
15738 split(line, arg, " ")
15739 if (arg[1] == "#") {
15740 defundef = arg[2]
15741 mac1 = arg[3]
15742 } else {
15743 defundef = substr(arg[1], 2)
15744 mac1 = arg[2]
15746 split(mac1, mac2, "(") #)
15747 macro = mac2[1]
15748 prefix = substr(line, 1, index(line, defundef) - 1)
15749 if (D_is_set[macro]) {
15750 # Preserve the white space surrounding the "#".
15751 print prefix "define", macro P[macro] D[macro]
15752 next
15753 } else {
15754 # Replace #undef with comments. This is necessary, for example,
15755 # in the case of _POSIX_SOURCE, which is predefined and required
15756 # on some systems where configure will not decide to define it.
15757 if (defundef == "undef") {
15758 print "/*", prefix defundef, macro, "*/"
15759 next
15763 { print }
15764 _ACAWK
15765 _ACEOF
15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15768 fi # test -n "$CONFIG_HEADERS"
15771 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15772 shift
15773 for ac_tag
15775 case $ac_tag in
15776 :[FHLC]) ac_mode=$ac_tag; continue;;
15777 esac
15778 case $ac_mode$ac_tag in
15779 :[FHL]*:*);;
15780 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15781 :[FH]-) ac_tag=-:-;;
15782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15783 esac
15784 ac_save_IFS=$IFS
15785 IFS=:
15786 set x $ac_tag
15787 IFS=$ac_save_IFS
15788 shift
15789 ac_file=$1
15790 shift
15792 case $ac_mode in
15793 :L) ac_source=$1;;
15794 :[FH])
15795 ac_file_inputs=
15796 for ac_f
15798 case $ac_f in
15799 -) ac_f="$tmp/stdin";;
15800 *) # Look for the file first in the build tree, then in the source tree
15801 # (if the path is not absolute). The absolute path cannot be DOS-style,
15802 # because $ac_f cannot contain `:'.
15803 test -f "$ac_f" ||
15804 case $ac_f in
15805 [\\/$]*) false;;
15806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15807 esac ||
15808 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15809 esac
15810 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15811 as_fn_append ac_file_inputs " '$ac_f'"
15812 done
15814 # Let's still pretend it is `configure' which instantiates (i.e., don't
15815 # use $as_me), people would be surprised to read:
15816 # /* config.h. Generated by config.status. */
15817 configure_input='Generated from '`
15818 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15819 `' by configure.'
15820 if test x"$ac_file" != x-; then
15821 configure_input="$ac_file. $configure_input"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15823 $as_echo "$as_me: creating $ac_file" >&6;}
15825 # Neutralize special characters interpreted by sed in replacement strings.
15826 case $configure_input in #(
15827 *\&* | *\|* | *\\* )
15828 ac_sed_conf_input=`$as_echo "$configure_input" |
15829 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15830 *) ac_sed_conf_input=$configure_input;;
15831 esac
15833 case $ac_tag in
15834 *:-:* | *:-) cat >"$tmp/stdin" \
15835 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15836 esac
15838 esac
15840 ac_dir=`$as_dirname -- "$ac_file" ||
15841 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15842 X"$ac_file" : 'X\(//\)[^/]' \| \
15843 X"$ac_file" : 'X\(//\)$' \| \
15844 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15845 $as_echo X"$ac_file" |
15846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15847 s//\1/
15850 /^X\(\/\/\)[^/].*/{
15851 s//\1/
15854 /^X\(\/\/\)$/{
15855 s//\1/
15858 /^X\(\/\).*/{
15859 s//\1/
15862 s/.*/./; q'`
15863 as_dir="$ac_dir"; as_fn_mkdir_p
15864 ac_builddir=.
15866 case "$ac_dir" in
15867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15870 # A ".." for each directory in $ac_dir_suffix.
15871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15872 case $ac_top_builddir_sub in
15873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15875 esac ;;
15876 esac
15877 ac_abs_top_builddir=$ac_pwd
15878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15879 # for backward compatibility:
15880 ac_top_builddir=$ac_top_build_prefix
15882 case $srcdir in
15883 .) # We are building in place.
15884 ac_srcdir=.
15885 ac_top_srcdir=$ac_top_builddir_sub
15886 ac_abs_top_srcdir=$ac_pwd ;;
15887 [\\/]* | ?:[\\/]* ) # Absolute name.
15888 ac_srcdir=$srcdir$ac_dir_suffix;
15889 ac_top_srcdir=$srcdir
15890 ac_abs_top_srcdir=$srcdir ;;
15891 *) # Relative name.
15892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15893 ac_top_srcdir=$ac_top_build_prefix$srcdir
15894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15895 esac
15896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15899 case $ac_mode in
15902 # CONFIG_FILE
15905 case $INSTALL in
15906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15908 esac
15909 _ACEOF
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912 # If the template does not know about datarootdir, expand it.
15913 # FIXME: This hack should be removed a few years after 2.60.
15914 ac_datarootdir_hack=; ac_datarootdir_seen=
15915 ac_sed_dataroot='
15916 /datarootdir/ {
15920 /@datadir@/p
15921 /@docdir@/p
15922 /@infodir@/p
15923 /@localedir@/p
15924 /@mandir@/p'
15925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15926 *datarootdir*) ac_datarootdir_seen=yes;;
15927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15930 _ACEOF
15931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15932 ac_datarootdir_hack='
15933 s&@datadir@&$datadir&g
15934 s&@docdir@&$docdir&g
15935 s&@infodir@&$infodir&g
15936 s&@localedir@&$localedir&g
15937 s&@mandir@&$mandir&g
15938 s&\\\${datarootdir}&$datarootdir&g' ;;
15939 esac
15940 _ACEOF
15942 # Neutralize VPATH when `$srcdir' = `.'.
15943 # Shell code in configure.ac might set extrasub.
15944 # FIXME: do we really want to maintain this feature?
15945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15946 ac_sed_extra="$ac_vpsub
15947 $extrasub
15948 _ACEOF
15949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15952 s|@configure_input@|$ac_sed_conf_input|;t t
15953 s&@top_builddir@&$ac_top_builddir_sub&;t t
15954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15955 s&@srcdir@&$ac_srcdir&;t t
15956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15957 s&@top_srcdir@&$ac_top_srcdir&;t t
15958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15959 s&@builddir@&$ac_builddir&;t t
15960 s&@abs_builddir@&$ac_abs_builddir&;t t
15961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15962 s&@INSTALL@&$ac_INSTALL&;t t
15963 $ac_datarootdir_hack
15965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15966 if $ac_cs_awk_getline; then
15967 $AWK -f "$tmp/subs.awk"
15968 else
15969 $AWK -f "$tmp/subs.awk" | $SHELL
15970 fi >$tmp/out \
15971 || as_fn_error "could not create $ac_file" "$LINENO" 5
15973 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15974 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15977 which seems to be undefined. Please make sure it is defined." >&5
15978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15979 which seems to be undefined. Please make sure it is defined." >&2;}
15981 rm -f "$tmp/stdin"
15982 case $ac_file in
15983 -) cat "$tmp/out" && rm -f "$tmp/out";;
15984 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15985 esac \
15986 || as_fn_error "could not create $ac_file" "$LINENO" 5
15990 # CONFIG_HEADER
15992 if test x"$ac_file" != x-; then
15994 $as_echo "/* $configure_input */" \
15995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15996 } >"$tmp/config.h" \
15997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16001 else
16002 rm -f "$ac_file"
16003 mv "$tmp/config.h" "$ac_file" \
16004 || as_fn_error "could not create $ac_file" "$LINENO" 5
16006 else
16007 $as_echo "/* $configure_input */" \
16008 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16009 || as_fn_error "could not create -" "$LINENO" 5
16014 # CONFIG_LINK
16017 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16019 else
16020 # Prefer the file from the source tree if names are identical.
16021 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16022 ac_source=$srcdir/$ac_source
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16026 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16028 if test ! -r "$ac_source"; then
16029 as_fn_error "$ac_source: file not found" "$LINENO" 5
16031 rm -f "$ac_file"
16033 # Try a relative symlink, then a hard link, then a copy.
16034 case $srcdir in
16035 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16036 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16037 esac
16038 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16039 ln "$ac_source" "$ac_file" 2>/dev/null ||
16040 cp -p "$ac_source" "$ac_file" ||
16041 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16044 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16045 $as_echo "$as_me: executing $ac_file commands" >&6;}
16047 esac
16050 case $ac_file$ac_mode in
16051 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16052 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16053 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16054 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16055 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16056 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16057 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16058 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16059 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16060 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16061 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16062 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16063 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16064 "Makefile":C) wine_fn_output_makefile Makefile ;;
16066 esac
16067 done # for ac_tag
16070 as_fn_exit 0
16071 _ACEOF
16072 ac_clean_files=$ac_clean_files_save
16074 test $ac_write_fail = 0 ||
16075 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16078 # configure is writing to config.log, and then calls config.status.
16079 # config.status does its own redirection, appending to config.log.
16080 # Unfortunately, on DOS this fails, as config.log is still kept open
16081 # by configure, so config.status won't be able to write to it; its
16082 # output is simply discarded. So we exec the FD to /dev/null,
16083 # effectively closing config.log, so it can be properly (re)opened and
16084 # appended to by config.status. When coming back to configure, we
16085 # need to make the FD available again.
16086 if test "$no_create" != yes; then
16087 ac_cs_success=:
16088 ac_config_status_args=
16089 test "$silent" = yes &&
16090 ac_config_status_args="$ac_config_status_args --quiet"
16091 exec 5>/dev/null
16092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16093 exec 5>>config.log
16094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16095 # would make configure fail if this is the last instruction.
16096 $ac_cs_success || as_fn_exit $?
16098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16104 if test "$no_create" = "yes"
16105 then
16106 exit 0
16109 ac_save_IFS="$IFS"
16110 if test "x$wine_notices != "x; then
16111 echo >&6
16112 IFS="|"
16113 for msg in $wine_notices; do
16114 IFS="$ac_save_IFS"
16115 if test -n "$msg"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16117 $as_echo "$as_me: $msg" >&6;}
16119 done
16121 IFS="|"
16122 for msg in $wine_warnings; do
16123 IFS="$ac_save_IFS"
16124 if test -n "$msg"; then
16125 echo >&2
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16127 $as_echo "$as_me: WARNING: $msg" >&2;}
16129 done
16130 IFS="$ac_save_IFS"
16132 echo "
16133 $as_me: Finished. Do '${ac_make}' to compile Wine.
16134 " >&6