actxprxy: Add proxies for shldisp.idl.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.11.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
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 ## -------------------- ##
18
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   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
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"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
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=';'
82   }
83 fi
84
85
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"
92
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
98 do
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
104
105      ;;
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
111 fi
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
115 fi
116
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='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
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   *) :
151      ;;
152 esac
153 fi
154 "
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; }
160
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 :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
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
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
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
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
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
202 fi
203 fi
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
213
214
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+"$@"}
224 fi
225
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."
238   fi
239   exit 1
240 fi
241 fi
242 fi
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
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
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 ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
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/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
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"
323
324
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 ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
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 ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS 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 ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
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
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
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
395 fi
396
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/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
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
422
423
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 '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
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; }
446
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
453 }
454
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;;
464 *)
465   ECHO_N='-n';;
466 esac
467
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
474 fi
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'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
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
500 fi
501
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=
509   fi
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
521   '
522 fi
523 as_executable_p=$as_test_x
524
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'"
527
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'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
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=
551
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.11'
556 PACKAGE_STRING='Wine 1.3.11'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
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"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 LINGUAS
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 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 QUICKTIMELIB
657 LIBOPENCL
658 FRAMEWORK_OPENAL
659 COREAUDIO
660 DISKARBITRATIONLIB
661 LDEXECFLAGS
662 APPLICATIONSERVICESLIB
663 IOKITLIB
664 COREFOUNDATIONLIB
665 SECURITYLIB
666 DLLWRAP
667 DLLTOOL
668 LDD
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
677 CPP
678 OPENGL_LIBS
679 XLIB
680 MAINTAINER_MODE
681 ICOTOOL
682 CONVERT
683 RSVG
684 PKG_CONFIG
685 FONTFORGE
686 LINTFLAGS
687 LINT
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LDCONFIG
692 EGREP
693 GREP
694 LN_S
695 STRIP
696 RANLIB
697 ARFLAGS
698 ac_ct_AR
699 AR
700 BISON
701 FLEX
702 TOOLSDIR
703 WOW64_DISABLE
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_capi
776 with_cms
777 with_coreaudio
778 with_cups
779 with_curses
780 with_esd
781 with_fontconfig
782 with_freetype
783 with_gettextpo
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_gstreamer
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_wine_tools
817 with_wine64
818 enable_largefile
819 with_x
820 '
821       ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CXX
830 CXXFLAGS
831 CCC
832 CPP
833 XMKMF'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used" >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures Wine 1.3.11 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 X features:
1434   --x-includes=DIR    X include files are in DIR
1435   --x-libraries=DIR   X library files are in DIR
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of Wine 1.3.11:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --disable-win16         do not include Win16 support
1454   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1455                           binaries)
1456   --disable-tests         do not build the regression tests
1457   --enable-maintainer-mode
1458                           enable maintainer-specific build rules
1459   --disable-largefile     omit support for large files
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --without-alsa          do not use the Alsa sound support
1465   --without-capi          do not use CAPI (ISDN support)
1466   --without-cms           do not use CMS (color management support)
1467   --without-coreaudio     do not use the CoreAudio sound support
1468   --without-cups          do not use CUPS
1469   --without-curses        do not use (n)curses
1470   --without-esd           do not use the EsounD sound support
1471   --without-fontconfig    do not use fontconfig
1472   --without-freetype      do not use the FreeType library
1473   --without-gettextpo     do not use the GetTextPO library
1474   --without-gphoto        do not use gphoto (Digital Camera support)
1475   --without-glu           do not use the GLU library
1476   --without-gnutls        do not use GnuTLS (schannel support)
1477   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1478   --without-gstreamer     do not use GStreamer (codecs support)
1479   --without-hal           do not use HAL (dynamic device support)
1480   --without-jack          do not use the Jack sound support
1481   --without-jpeg          do not use JPEG
1482   --without-ldap          do not use LDAP
1483   --without-mpg123        do not use the mpg123 library
1484   --without-nas           do not use the NAS sound support
1485   --without-openal        do not use OpenAL
1486   --without-opencl        do not use OpenCL
1487   --without-opengl        do not use OpenGL
1488   --without-openssl       do not use OpenSSL
1489   --without-oss           do not use the OSS sound support
1490   --without-png           do not use PNG
1491   --without-pthread       do not use the pthread library
1492   --without-sane          do not use SANE (scanner support)
1493   --without-tiff          do not use TIFF
1494   --without-v4l           do not use v4l1 (v4l support)
1495   --without-xcomposite    do not use the Xcomposite extension
1496   --without-xcursor       do not use the Xcursor extension
1497   --without-xinerama      do not use Xinerama (multi-monitor support)
1498   --without-xinput        do not use the Xinput extension
1499   --without-xml           do not use XML
1500   --without-xrandr        do not use Xrandr (resolution changes)
1501   --without-xrender       do not use the Xrender extension
1502   --without-xshape        do not use the Xshape extension
1503   --without-xshm          do not use XShm (shared memory extension)
1504   --without-xslt          do not use XSLT
1505   --without-xxf86vm       do not use XFree video mode extension
1506   --with-wine-tools=DIR   use Wine tools from directory DIR
1507   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1508   --with-x                use the X Window System
1509
1510 Some influential environment variables:
1511   CC          C compiler command
1512   CFLAGS      C compiler flags
1513   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1514               nonstandard directory <lib dir>
1515   LIBS        libraries to pass to the linker, e.g. -l<library>
1516   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CPP         C preprocessor
1521   XMKMF       Path to xmkmf, Makefile generator for X Window System
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to <wine-devel@winehq.org>.
1527 Wine home page: <http://www.winehq.org>.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533   # If there are subdirs, report their specific --help.
1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535     test -d "$ac_dir" ||
1536       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537       continue
1538     ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544   # A ".." for each directory in $ac_dir_suffix.
1545   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546   case $ac_top_builddir_sub in
1547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549   esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557   .)  # We are building in place.
1558     ac_srcdir=.
1559     ac_top_srcdir=$ac_top_builddir_sub
1560     ac_abs_top_srcdir=$ac_pwd ;;
1561   [\\/]* | ?:[\\/]* )  # Absolute name.
1562     ac_srcdir=$srcdir$ac_dir_suffix;
1563     ac_top_srcdir=$srcdir
1564     ac_abs_top_srcdir=$srcdir ;;
1565   *) # Relative name.
1566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567     ac_top_srcdir=$ac_top_build_prefix$srcdir
1568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572     cd "$ac_dir" || { ac_status=$?; continue; }
1573     # Check for guested configure.
1574     if test -f "$ac_srcdir/configure.gnu"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577     elif test -f "$ac_srcdir/configure"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure" --help=recursive
1580     else
1581       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582     fi || ac_status=$?
1583     cd "$ac_pwd" || { ac_status=$?; break; }
1584   done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589   cat <<\_ACEOF
1590 Wine configure 1.3.11
1591 generated by GNU Autoconf 2.67
1592
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597   exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610   rm -f conftest.$ac_objext
1611   if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618   (eval "$ac_compile") 2>conftest.err
1619   ac_status=$?
1620   if test -s conftest.err; then
1621     grep -v '^ *+' conftest.err >conftest.er1
1622     cat conftest.er1 >&5
1623     mv -f conftest.er1 conftest.err
1624   fi
1625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626   test $ac_status = 0; } && {
1627          test -z "$ac_c_werror_flag" ||
1628          test ! -s conftest.err
1629        } && test -s conftest.$ac_objext; then :
1630   ac_retval=0
1631 else
1632   $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635         ac_retval=1
1636 fi
1637   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_cxx_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_cxx_try_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest$ac_exeext
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest$ac_exeext && {
1706          test "$cross_compiling" = yes ||
1707          $as_test_x conftest$ac_exeext
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718   # interfere with the next link command; also delete a directory that is
1719   # left behind by Apple's compiler.  We do this before executing the actions.
1720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } > conftest.i && {
1748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749          test ! -s conftest.err
1750        }; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756     ac_retval=1
1757 fi
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_cpp
1762
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if eval "test \"\${$3+set}\"" = set; then :
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval "test \"\${$3+set}\"" = set; then :
1775   $as_echo_n "(cached) " >&6
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781   # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   ac_header_compiler=yes
1791 else
1792   ac_header_compiler=no
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1797
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806   ac_header_preproc=yes
1807 else
1808   ac_header_preproc=no
1809 fi
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1813
1814 # So?  What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816   yes:no: )
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821     ;;
1822   no:yes:* )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------ ##
1834 ## Report this to wine-devel@winehq.org ##
1835 ## ------------------------------------ ##"
1836      ) | sed "s/^/$as_me: WARNING:     /" >&2
1837     ;;
1838 esac
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval "test \"\${$3+set}\"" = set; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   eval "$3=\$ac_header_compiler"
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 fi
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852 } # ac_fn_c_check_header_mongrel
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_link") 2>&5
1869   ac_status=$?
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872   { { case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_try") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; }; }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: program exited with status $ac_status" >&5
1885        $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888        ac_retval=$ac_status
1889 fi
1890   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892   as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists and can be compiled using the include files in
1899 # INCLUDES, setting the cache variable VAR accordingly.
1900 ac_fn_c_check_header_compile ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval "test \"\${$3+set}\"" = set; then :
1906   $as_echo_n "(cached) " >&6
1907 else
1908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   eval "$3=yes"
1915 else
1916   eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$3
1921                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924
1925 } # ac_fn_c_check_header_compile
1926
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1931 {
1932   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval "test \"\${$3+set}\"" = set; then :
1936   $as_echo_n "(cached) " >&6
1937 else
1938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h.  */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1942 #define $2 innocuous_$2
1943
1944 /* System header to define __stub macros and hopefully few prototypes,
1945     which can conflict with char $2 (); below.
1946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947     <limits.h> exists even on freestanding compilers.  */
1948
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1954
1955 #undef $2
1956
1957 /* Override any GCC internal prototype to avoid an error.
1958    Use char because int might match the return type of a GCC
1959    builtin and then its argument prototype would still apply.  */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965     to always fail with ENOSYS.  Some functions are actually named
1966     something starting with __ and the normal name is an alias.  */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1970
1971 int
1972 main ()
1973 {
1974 return $2 ();
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980   eval "$3=yes"
1981 else
1982   eval "$3=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext \
1985     conftest$ac_exeext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991
1992 } # ac_fn_c_check_func
1993
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if eval "test \"\${$4+set}\"" = set; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $5
2009 int
2010 main ()
2011 {
2012 static $2 ac_aggr;
2013 if (ac_aggr.$3)
2014 return 0;
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020   eval "$4=yes"
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $5
2025 int
2026 main ()
2027 {
2028 static $2 ac_aggr;
2029 if (sizeof ac_aggr.$3)
2030 return 0;
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036   eval "$4=yes"
2037 else
2038   eval "$4=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$4
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048
2049 } # ac_fn_c_check_member
2050
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2056 {
2057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval "test \"\${$3+set}\"" = set; then :
2061   $as_echo_n "(cached) " >&6
2062 else
2063   eval "$3=no"
2064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 $4
2067 int
2068 main ()
2069 {
2070 if (sizeof ($2))
2071          return 0;
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof (($2)))
2084             return 0;
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090
2091 else
2092   eval "$3=yes"
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$3
2099                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102
2103 } # ac_fn_c_check_type
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2107
2108 It was created by Wine $as_me 1.3.11, which was
2109 generated by GNU Autoconf 2.67.  Invocation command line was
2110
2111   $ $0 $@
2112
2113 _ACEOF
2114 exec 5>>config.log
2115 {
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2120
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2126
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2129
2130 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2131 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2134 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2135 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2136 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2137
2138 _ASUNAME
2139
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145     $as_echo "PATH: $as_dir"
2146   done
2147 IFS=$as_save_IFS
2148
2149 } >&5
2150
2151 cat >&5 <<_ACEOF
2152
2153
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2157
2158 _ACEOF
2159
2160
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2171 do
2172   for ac_arg
2173   do
2174     case $ac_arg in
2175     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177     | -silent | --silent | --silen | --sile | --sil)
2178       continue ;;
2179     *\'*)
2180       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181     esac
2182     case $ac_pass in
2183     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2184     2)
2185       as_fn_append ac_configure_args1 " '$ac_arg'"
2186       if test $ac_must_keep_next = true; then
2187         ac_must_keep_next=false # Got value, back to normal.
2188       else
2189         case $ac_arg in
2190           *=* | --config-cache | -C | -disable-* | --disable-* \
2191           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193           | -with-* | --with-* | -without-* | --without-* | --x)
2194             case "$ac_configure_args0 " in
2195               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196             esac
2197             ;;
2198           -* ) ac_must_keep_next=true ;;
2199         esac
2200       fi
2201       as_fn_append ac_configure_args " '$ac_arg'"
2202       ;;
2203     esac
2204   done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2208
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log.  We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215   # Save into config.log some information that might help in debugging.
2216   {
2217     echo
2218
2219     $as_echo "## ---------------- ##
2220 ## Cache variables. ##
2221 ## ---------------- ##"
2222     echo
2223     # The following way of writing the cache mishandles newlines in values,
2224 (
2225   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2226     eval ac_val=\$$ac_var
2227     case $ac_val in #(
2228     *${as_nl}*)
2229       case $ac_var in #(
2230       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2231 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232       esac
2233       case $ac_var in #(
2234       _ | IFS | as_nl) ;; #(
2235       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2236       *) { eval $ac_var=; unset $ac_var;} ;;
2237       esac ;;
2238     esac
2239   done
2240   (set) 2>&1 |
2241     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2242     *${as_nl}ac_space=\ *)
2243       sed -n \
2244         "s/'\''/'\''\\\\'\'''\''/g;
2245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246       ;; #(
2247     *)
2248       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2249       ;;
2250     esac |
2251     sort
2252 )
2253     echo
2254
2255     $as_echo "## ----------------- ##
2256 ## Output variables. ##
2257 ## ----------------- ##"
2258     echo
2259     for ac_var in $ac_subst_vars
2260     do
2261       eval ac_val=\$$ac_var
2262       case $ac_val in
2263       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264       esac
2265       $as_echo "$ac_var='\''$ac_val'\''"
2266     done | sort
2267     echo
2268
2269     if test -n "$ac_subst_files"; then
2270       $as_echo "## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##"
2273       echo
2274       for ac_var in $ac_subst_files
2275       do
2276         eval ac_val=\$$ac_var
2277         case $ac_val in
2278         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279         esac
2280         $as_echo "$ac_var='\''$ac_val'\''"
2281       done | sort
2282       echo
2283     fi
2284
2285     if test -s confdefs.h; then
2286       $as_echo "## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##"
2289       echo
2290       cat confdefs.h
2291       echo
2292     fi
2293     test "$ac_signal" != 0 &&
2294       $as_echo "$as_me: caught signal $ac_signal"
2295     $as_echo "$as_me: exit $exit_status"
2296   } >&5
2297   rm -f core *.core core.conftest.* &&
2298     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299     exit $exit_status
2300 ' 0
2301 for ac_signal in 1 2 13 15; do
2302   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303 done
2304 ac_signal=0
2305
2306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2307 rm -f -r conftest* confdefs.h
2308
2309 $as_echo "/* confdefs.h */" > confdefs.h
2310
2311 # Predefined preprocessor variables.
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_URL "$PACKAGE_URL"
2335 _ACEOF
2336
2337
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2340 ac_site_file1=NONE
2341 ac_site_file2=NONE
2342 if test -n "$CONFIG_SITE"; then
2343   # We do not want a PATH search for config.site.
2344   case $CONFIG_SITE in #((
2345     -*)  ac_site_file1=./$CONFIG_SITE;;
2346     */*) ac_site_file1=$CONFIG_SITE;;
2347     *)   ac_site_file1=./$CONFIG_SITE;;
2348   esac
2349 elif test "x$prefix" != xNONE; then
2350   ac_site_file1=$prefix/share/config.site
2351   ac_site_file2=$prefix/etc/config.site
2352 else
2353   ac_site_file1=$ac_default_prefix/share/config.site
2354   ac_site_file2=$ac_default_prefix/etc/config.site
2355 fi
2356 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2357 do
2358   test "x$ac_site_file" = xNONE && continue
2359   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2360     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2361 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2362     sed 's/^/| /' "$ac_site_file" >&5
2363     . "$ac_site_file" \
2364       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "failed to load site script $ac_site_file
2367 See \`config.log' for more details" "$LINENO" 5 ; }
2368   fi
2369 done
2370
2371 if test -r "$cache_file"; then
2372   # Some versions of bash will fail to source /dev/null (special files
2373   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2374   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376 $as_echo "$as_me: loading cache $cache_file" >&6;}
2377     case $cache_file in
2378       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379       *)                      . "./$cache_file";;
2380     esac
2381   fi
2382 else
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384 $as_echo "$as_me: creating cache $cache_file" >&6;}
2385   >$cache_file
2386 fi
2387
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393   eval ac_new_set=\$ac_env_${ac_var}_set
2394   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395   eval ac_new_val=\$ac_env_${ac_var}_value
2396   case $ac_old_set,$ac_new_set in
2397     set,)
2398       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400       ac_cache_corrupted=: ;;
2401     ,set)
2402       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404       ac_cache_corrupted=: ;;
2405     ,);;
2406     *)
2407       if test "x$ac_old_val" != "x$ac_new_val"; then
2408         # differences in whitespace do not lead to failure.
2409         ac_old_val_w=`echo x $ac_old_val`
2410         ac_new_val_w=`echo x $ac_new_val`
2411         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414           ac_cache_corrupted=:
2415         else
2416           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418           eval $ac_var=\$ac_old_val
2419         fi
2420         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2421 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2422         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2424       fi;;
2425   esac
2426   # Pass precious variables to config.status.
2427   if test "$ac_new_set" = set; then
2428     case $ac_new_val in
2429     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430     *) ac_arg=$ac_var=$ac_new_val ;;
2431     esac
2432     case " $ac_configure_args " in
2433       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2434       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435     esac
2436   fi
2437 done
2438 if $ac_cache_corrupted; then
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 fi
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2448
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
2455
2456
2457 ac_config_headers="$ac_config_headers include/config.h"
2458
2459 ac_aux_dir=
2460 for ac_dir in tools "$srcdir"/tools; do
2461   if test -f "$ac_dir/install-sh"; then
2462     ac_aux_dir=$ac_dir
2463     ac_install_sh="$ac_aux_dir/install-sh -c"
2464     break
2465   elif test -f "$ac_dir/install.sh"; then
2466     ac_aux_dir=$ac_dir
2467     ac_install_sh="$ac_aux_dir/install.sh -c"
2468     break
2469   elif test -f "$ac_dir/shtool"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/shtool install -c"
2472     break
2473   fi
2474 done
2475 if test -z "$ac_aux_dir"; then
2476   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2477 fi
2478
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2486
2487
2488
2489
2490
2491 # Check whether --enable-win16 was given.
2492 if test "${enable_win16+set}" = set; then :
2493   enableval=$enable_win16;
2494 fi
2495
2496 # Check whether --enable-win64 was given.
2497 if test "${enable_win64+set}" = set; then :
2498   enableval=$enable_win64;
2499 fi
2500
2501 # Check whether --enable-tests was given.
2502 if test "${enable_tests+set}" = set; then :
2503   enableval=$enable_tests;
2504 fi
2505
2506 # Check whether --enable-maintainer-mode was given.
2507 if test "${enable_maintainer_mode+set}" = set; then :
2508   enableval=$enable_maintainer_mode;
2509 fi
2510
2511
2512
2513 # Check whether --with-alsa was given.
2514 if test "${with_alsa+set}" = set; then :
2515   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2516 fi
2517
2518
2519 # Check whether --with-capi was given.
2520 if test "${with_capi+set}" = set; then :
2521   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2522 fi
2523
2524
2525 # Check whether --with-cms was given.
2526 if test "${with_cms+set}" = set; then :
2527   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2528 fi
2529
2530
2531 # Check whether --with-coreaudio was given.
2532 if test "${with_coreaudio+set}" = set; then :
2533   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2534 fi
2535
2536
2537 # Check whether --with-cups was given.
2538 if test "${with_cups+set}" = set; then :
2539   withval=$with_cups;
2540 fi
2541
2542
2543 # Check whether --with-curses was given.
2544 if test "${with_curses+set}" = set; then :
2545   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2546 fi
2547
2548
2549 # Check whether --with-esd was given.
2550 if test "${with_esd+set}" = set; then :
2551   withval=$with_esd;
2552 fi
2553
2554
2555 # Check whether --with-fontconfig was given.
2556 if test "${with_fontconfig+set}" = set; then :
2557   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2558 fi
2559
2560
2561 # Check whether --with-freetype was given.
2562 if test "${with_freetype+set}" = set; then :
2563   withval=$with_freetype;
2564 fi
2565
2566
2567 # Check whether --with-gettextpo was given.
2568 if test "${with_gettextpo+set}" = set; then :
2569   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2570 fi
2571
2572
2573 # Check whether --with-gphoto was given.
2574 if test "${with_gphoto+set}" = set; then :
2575   withval=$with_gphoto;
2576 fi
2577
2578
2579 # Check whether --with-glu was given.
2580 if test "${with_glu+set}" = set; then :
2581   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2582 fi
2583
2584
2585 # Check whether --with-gnutls was given.
2586 if test "${with_gnutls+set}" = set; then :
2587   withval=$with_gnutls;
2588 fi
2589
2590
2591 # Check whether --with-gsm was given.
2592 if test "${with_gsm+set}" = set; then :
2593   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2594 fi
2595
2596
2597 # Check whether --with-gstreamer was given.
2598 if test "${with_gstreamer+set}" = set; then :
2599   withval=$with_gstreamer;
2600 fi
2601
2602
2603 # Check whether --with-hal was given.
2604 if test "${with_hal+set}" = set; then :
2605   withval=$with_hal;
2606 fi
2607
2608
2609 # Check whether --with-jack was given.
2610 if test "${with_jack+set}" = set; then :
2611   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2612 fi
2613
2614
2615 # Check whether --with-jpeg was given.
2616 if test "${with_jpeg+set}" = set; then :
2617   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2618 fi
2619
2620
2621 # Check whether --with-ldap was given.
2622 if test "${with_ldap+set}" = set; then :
2623   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2624 fi
2625
2626
2627 # Check whether --with-mpg123 was given.
2628 if test "${with_mpg123+set}" = set; then :
2629   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2630 fi
2631
2632
2633 # Check whether --with-nas was given.
2634 if test "${with_nas+set}" = set; then :
2635   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2636 fi
2637
2638
2639 # Check whether --with-openal was given.
2640 if test "${with_openal+set}" = set; then :
2641   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2642 fi
2643
2644
2645 # Check whether --with-opencl was given.
2646 if test "${with_opencl+set}" = set; then :
2647   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2648 fi
2649
2650
2651 # Check whether --with-opengl was given.
2652 if test "${with_opengl+set}" = set; then :
2653   withval=$with_opengl;
2654 fi
2655
2656
2657 # Check whether --with-openssl was given.
2658 if test "${with_openssl+set}" = set; then :
2659   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2660 fi
2661
2662
2663 # Check whether --with-oss was given.
2664 if test "${with_oss+set}" = set; then :
2665   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
2666 fi
2667
2668
2669 # Check whether --with-png was given.
2670 if test "${with_png+set}" = set; then :
2671   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2672 fi
2673
2674
2675 # Check whether --with-pthread was given.
2676 if test "${with_pthread+set}" = set; then :
2677   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2678 fi
2679
2680
2681 # Check whether --with-sane was given.
2682 if test "${with_sane+set}" = set; then :
2683   withval=$with_sane;
2684 fi
2685
2686
2687 # Check whether --with-tiff was given.
2688 if test "${with_tiff+set}" = set; then :
2689   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2690 fi
2691
2692
2693 # Check whether --with-v4l was given.
2694 if test "${with_v4l+set}" = set; then :
2695   withval=$with_v4l;
2696 fi
2697
2698
2699 # Check whether --with-xcomposite was given.
2700 if test "${with_xcomposite+set}" = set; then :
2701   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2702 fi
2703
2704
2705 # Check whether --with-xcursor was given.
2706 if test "${with_xcursor+set}" = set; then :
2707   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2708 fi
2709
2710
2711 # Check whether --with-xinerama was given.
2712 if test "${with_xinerama+set}" = set; then :
2713   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2714 fi
2715
2716
2717 # Check whether --with-xinput was given.
2718 if test "${with_xinput+set}" = set; then :
2719   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2720 fi
2721
2722
2723 # Check whether --with-xml was given.
2724 if test "${with_xml+set}" = set; then :
2725   withval=$with_xml;
2726 fi
2727
2728
2729 # Check whether --with-xrandr was given.
2730 if test "${with_xrandr+set}" = set; then :
2731   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2732 fi
2733
2734
2735 # Check whether --with-xrender was given.
2736 if test "${with_xrender+set}" = set; then :
2737   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2738 fi
2739
2740
2741 # Check whether --with-xshape was given.
2742 if test "${with_xshape+set}" = set; then :
2743   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2744 fi
2745
2746
2747 # Check whether --with-xshm was given.
2748 if test "${with_xshm+set}" = set; then :
2749   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2750 fi
2751
2752
2753 # Check whether --with-xslt was given.
2754 if test "${with_xslt+set}" = set; then :
2755   withval=$with_xslt;
2756 fi
2757
2758
2759 # Check whether --with-xxf86vm was given.
2760 if test "${with_xxf86vm+set}" = set; then :
2761   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
2762 fi
2763
2764
2765
2766 # Check whether --with-wine-tools was given.
2767 if test "${with_wine_tools+set}" = set; then :
2768   withval=$with_wine_tools;
2769 fi
2770
2771
2772 # Check whether --with-wine64 was given.
2773 if test "${with_wine64+set}" = set; then :
2774   withval=$with_wine64;
2775 fi
2776
2777
2778 # Make sure we can run config.sub.
2779 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2780   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2781
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2783 $as_echo_n "checking build system type... " >&6; }
2784 if test "${ac_cv_build+set}" = set; then :
2785   $as_echo_n "(cached) " >&6
2786 else
2787   ac_build_alias=$build_alias
2788 test "x$ac_build_alias" = x &&
2789   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2790 test "x$ac_build_alias" = x &&
2791   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2792 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2793   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2794
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2797 $as_echo "$ac_cv_build" >&6; }
2798 case $ac_cv_build in
2799 *-*-*) ;;
2800 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2801 esac
2802 build=$ac_cv_build
2803 ac_save_IFS=$IFS; IFS='-'
2804 set x $ac_cv_build
2805 shift
2806 build_cpu=$1
2807 build_vendor=$2
2808 shift; shift
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2811 build_os=$*
2812 IFS=$ac_save_IFS
2813 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2817 $as_echo_n "checking host system type... " >&6; }
2818 if test "${ac_cv_host+set}" = set; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test "x$host_alias" = x; then
2822   ac_cv_host=$ac_cv_build
2823 else
2824   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2825     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2826 fi
2827
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2830 $as_echo "$ac_cv_host" >&6; }
2831 case $ac_cv_host in
2832 *-*-*) ;;
2833 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2834 esac
2835 host=$ac_cv_host
2836 ac_save_IFS=$IFS; IFS='-'
2837 set x $ac_cv_host
2838 shift
2839 host_cpu=$1
2840 host_vendor=$2
2841 shift; shift
2842 # Remember, the first character of IFS is used to create $*,
2843 # except with old shells:
2844 host_os=$*
2845 IFS=$ac_save_IFS
2846 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2847
2848
2849
2850 case "$srcdir" in
2851  .) ;;
2852  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2853       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2854 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2855     fi ;;
2856 esac
2857
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2860 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 set x ${MAKE-make}
2862 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   cat >conftest.make <<\_ACEOF
2867 SHELL = /bin/sh
2868 all:
2869         @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 _ACEOF
2871 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873   *@@@%%%=?*=@@@%%%*)
2874     eval ac_cv_prog_make_${ac_make}_set=yes;;
2875   *)
2876     eval ac_cv_prog_make_${ac_make}_set=no;;
2877 esac
2878 rm -f conftest.make
2879 fi
2880 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883   SET_MAKE=
2884 else
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887   SET_MAKE="MAKE=${MAKE-make}"
2888 fi
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 if test -n "$ac_tool_prefix"; then
2896   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   if test -n "$CC"; then
2904   ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911     for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918   done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2927 else
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933 fi
2934 if test -z "$ac_cv_prog_CC"; then
2935   ac_ct_CC=$CC
2936   # Extract the first word of "gcc", so it can be a program name with args.
2937 set dummy gcc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   if test -n "$ac_ct_CC"; then
2944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951     for ac_exec_ext in '' $ac_executable_extensions; do
2952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953     ac_cv_prog_ac_ct_CC="gcc"
2954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958   done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966 $as_echo "$ac_ct_CC" >&6; }
2967 else
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 fi
2971
2972   if test "x$ac_ct_CC" = x; then
2973     CC=""
2974   else
2975     case $cross_compiling:$ac_tool_warned in
2976 yes:)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981     CC=$ac_ct_CC
2982   fi
2983 else
2984   CC="$ac_cv_prog_CC"
2985 fi
2986
2987 if test -z "$CC"; then
2988           if test -n "$ac_tool_prefix"; then
2989     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}cc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994   $as_echo_n "(cached) " >&6
2995 else
2996   if test -n "$CC"; then
2997   ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004     for ac_exec_ext in '' $ac_executable_extensions; do
3005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006     ac_cv_prog_CC="${ac_tool_prefix}cc"
3007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011   done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026   fi
3027 fi
3028 if test -z "$CC"; then
3029   # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039   ac_prog_rejected=no
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045     for ac_exec_ext in '' $ac_executable_extensions; do
3046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048        ac_prog_rejected=yes
3049        continue
3050      fi
3051     ac_cv_prog_CC="cc"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 if test $ac_prog_rejected = yes; then
3060   # We found a bogon in the path, so make sure we never use it.
3061   set dummy $ac_cv_prog_CC
3062   shift
3063   if test $# != 0; then
3064     # We chose a different compiler from the bogus one.
3065     # However, it has the same basename, so the bogon will be chosen
3066     # first if we set CC to just the basename; use the full file name.
3067     shift
3068     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3069   fi
3070 fi
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 fi
3084 if test -z "$CC"; then
3085   if test -n "$ac_tool_prefix"; then
3086   for ac_prog in cl.exe
3087   do
3088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125     test -n "$CC" && break
3126   done
3127 fi
3128 if test -z "$CC"; then
3129   ac_ct_CC=$CC
3130   for ac_prog in cl.exe
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$ac_ct_CC"; then
3140   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_ac_ct_CC="$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3162 $as_echo "$ac_ct_CC" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169   test -n "$ac_ct_CC" && break
3170 done
3171
3172   if test "x$ac_ct_CC" = x; then
3173     CC=""
3174   else
3175     case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3180 esac
3181     CC=$ac_ct_CC
3182   fi
3183 fi
3184
3185 fi
3186
3187
3188 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "no acceptable C compiler found in \$PATH
3191 See \`config.log' for more details" "$LINENO" 5 ; }
3192
3193 # Provide some information about the compiler.
3194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3195 set X $ac_compile
3196 ac_compiler=$2
3197 for ac_option in --version -v -V -qversion; do
3198   { { ac_try="$ac_compiler $ac_option >&5"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3206   ac_status=$?
3207   if test -s conftest.err; then
3208     sed '10a\
3209 ... rest of stderr output deleted ...
3210          10q' conftest.err >conftest.er1
3211     cat conftest.er1 >&5
3212   fi
3213   rm -f conftest.er1 conftest.err
3214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215   test $ac_status = 0; }
3216 done
3217
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 ac_clean_files_save=$ac_clean_files
3230 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3231 # Try to create an executable without -o first, disregard a.out.
3232 # It will help us diagnose broken compilers, and finding out an intuition
3233 # of exeext.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3235 $as_echo_n "checking whether the C compiler works... " >&6; }
3236 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237
3238 # The possible output files:
3239 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240
3241 ac_rmfiles=
3242 for ac_file in $ac_files
3243 do
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247   esac
3248 done
3249 rm -f $ac_rmfiles
3250
3251 if { { ac_try="$ac_link_default"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258   (eval "$ac_link_default") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261   test $ac_status = 0; }; then :
3262   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3265 # so that the user can short-circuit this test for compilers unknown to
3266 # Autoconf.
3267 for ac_file in $ac_files ''
3268 do
3269   test -f "$ac_file" || continue
3270   case $ac_file in
3271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3272         ;;
3273     [ab].out )
3274         # We found the default executable, but exeext='' is most
3275         # certainly right.
3276         break;;
3277     *.* )
3278         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279         then :; else
3280            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281         fi
3282         # We set ac_cv_exeext here because the later test for it is not
3283         # safe: cross compilers may not add the suffix if given an `-o'
3284         # argument, so we may need to know it at that point already.
3285         # Even if this section looks crufty: it has the advantage of
3286         # actually working.
3287         break;;
3288     * )
3289         break;;
3290   esac
3291 done
3292 test "$ac_cv_exeext" = no && ac_cv_exeext=
3293
3294 else
3295   ac_file=''
3296 fi
3297 if test -z "$ac_file"; then :
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error 77 "C compiler cannot create executables
3306 See \`config.log' for more details" "$LINENO" 5 ; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3312 $as_echo_n "checking for C compiler default output file name... " >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3314 $as_echo "$ac_file" >&6; }
3315 ac_exeext=$ac_cv_exeext
3316
3317 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3318 ac_clean_files=$ac_clean_files_save
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3320 $as_echo_n "checking for suffix of executables... " >&6; }
3321 if { { ac_try="$ac_link"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328   (eval "$ac_link") 2>&5
3329   ac_status=$?
3330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331   test $ac_status = 0; }; then :
3332   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3333 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3334 # work properly (i.e., refer to `conftest.exe'), while it won't with
3335 # `rm'.
3336 for ac_file in conftest.exe conftest conftest.*; do
3337   test -f "$ac_file" || continue
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341           break;;
3342     * ) break;;
3343   esac
3344 done
3345 else
3346   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3349 See \`config.log' for more details" "$LINENO" 5 ; }
3350 fi
3351 rm -f conftest conftest$ac_cv_exeext
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3353 $as_echo "$ac_cv_exeext" >&6; }
3354
3355 rm -f conftest.$ac_ext
3356 EXEEXT=$ac_cv_exeext
3357 ac_exeext=$EXEEXT
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h.  */
3360 #include <stdio.h>
3361 int
3362 main ()
3363 {
3364 FILE *f = fopen ("conftest.out", "w");
3365  return ferror (f) || fclose (f) != 0;
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 ac_clean_files="$ac_clean_files conftest.out"
3372 # Check that the compiler produces executables we can run.  If not, either
3373 # the compiler is broken, or we cross compile.
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375 $as_echo_n "checking whether we are cross compiling... " >&6; }
3376 if test "$cross_compiling" != yes; then
3377   { { ac_try="$ac_link"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_link") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387   test $ac_status = 0; }
3388   if { ac_try='./conftest$ac_cv_exeext'
3389   { { case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_try") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; }; then
3399     cross_compiling=no
3400   else
3401     if test "$cross_compiling" = maybe; then
3402         cross_compiling=yes
3403     else
3404         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details" "$LINENO" 5 ; }
3409     fi
3410   fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3413 $as_echo "$cross_compiling" >&6; }
3414
3415 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3418 $as_echo_n "checking for suffix of object files... " >&6; }
3419 if test "${ac_cv_objext+set}" = set; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.o conftest.obj
3434 if { { ac_try="$ac_compile"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441   (eval "$ac_compile") 2>&5
3442   ac_status=$?
3443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444   test $ac_status = 0; }; then :
3445   for ac_file in conftest.o conftest.obj conftest.*; do
3446   test -f "$ac_file" || continue;
3447   case $ac_file in
3448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3449     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450        break;;
3451   esac
3452 done
3453 else
3454   $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot compute suffix of object files: cannot compile
3460 See \`config.log' for more details" "$LINENO" 5 ; }
3461 fi
3462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3465 $as_echo "$ac_cv_objext" >&6; }
3466 OBJEXT=$ac_cv_objext
3467 ac_objext=$OBJEXT
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3469 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3470 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479 #ifndef __GNUC__
3480        choke me
3481 #endif
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488   ac_compiler_gnu=yes
3489 else
3490   ac_compiler_gnu=no
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3494
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3497 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3498 if test $ac_compiler_gnu = yes; then
3499   GCC=yes
3500 else
3501   GCC=
3502 fi
3503 ac_test_CFLAGS=${CFLAGS+set}
3504 ac_save_CFLAGS=$CFLAGS
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3506 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3507 if test "${ac_cv_prog_cc_g+set}" = set; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   ac_save_c_werror_flag=$ac_c_werror_flag
3511    ac_c_werror_flag=yes
3512    ac_cv_prog_cc_g=no
3513    CFLAGS="-g"
3514    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main ()
3519 {
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526   ac_cv_prog_cc_g=yes
3527 else
3528   CFLAGS=""
3529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541
3542 else
3543   ac_c_werror_flag=$ac_save_c_werror_flag
3544          CFLAGS="-g"
3545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557   ac_cv_prog_cc_g=yes
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564    ac_c_werror_flag=$ac_save_c_werror_flag
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3567 $as_echo "$ac_cv_prog_cc_g" >&6; }
3568 if test "$ac_test_CFLAGS" = set; then
3569   CFLAGS=$ac_save_CFLAGS
3570 elif test $ac_cv_prog_cc_g = yes; then
3571   if test "$GCC" = yes; then
3572     CFLAGS="-g -O2"
3573   else
3574     CFLAGS="-g"
3575   fi
3576 else
3577   if test "$GCC" = yes; then
3578     CFLAGS="-O2"
3579   else
3580     CFLAGS=
3581   fi
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3584 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3585 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   ac_cv_prog_cc_c89=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592 #include <stdarg.h>
3593 #include <stdio.h>
3594 #include <sys/types.h>
3595 #include <sys/stat.h>
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3600      char **p;
3601      int i;
3602 {
3603   return p[i];
3604 }
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3606 {
3607   char *s;
3608   va_list v;
3609   va_start (v,p);
3610   s = g (p, va_arg (v,int));
3611   va_end (v);
3612   return s;
3613 }
3614
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3616    function prototypes and stuff, but not '\xHH' hex character constants.
3617    These don't provoke an error unfortunately, instead are silently treated
3618    as 'x'.  The following induces an error, until -std is added to get
3619    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3620    array size at least.  It's necessary to write '\x00'==0 to get something
3621    that's true only with -std.  */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625    inside strings and character constants.  */
3626 #define FOO(x) 'x'
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633 int argc;
3634 char **argv;
3635 int
3636 main ()
3637 {
3638 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 do
3646   CC="$ac_save_CC $ac_arg"
3647   if ac_fn_c_try_compile "$LINENO"; then :
3648   ac_cv_prog_cc_c89=$ac_arg
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext
3651   test "x$ac_cv_prog_cc_c89" != "xno" && break
3652 done
3653 rm -f conftest.$ac_ext
3654 CC=$ac_save_CC
3655
3656 fi
3657 # AC_CACHE_VAL
3658 case "x$ac_cv_prog_cc_c89" in
3659   x)
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3662   xno)
3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3665   *)
3666     CC="$CC $ac_cv_prog_cc_c89"
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3669 esac
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3671
3672 fi
3673
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680 ac_ext=cpp
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685 if test -z "$CXX"; then
3686   if test -n "$CCC"; then
3687     CXX=$CCC
3688   else
3689     if test -n "$ac_tool_prefix"; then
3690   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3691   do
3692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_CXX+set}" = set; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   if test -n "$CXX"; then
3700   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707     for ac_exec_ext in '' $ac_executable_extensions; do
3708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711     break 2
3712   fi
3713 done
3714   done
3715 IFS=$as_save_IFS
3716
3717 fi
3718 fi
3719 CXX=$ac_cv_prog_CXX
3720 if test -n "$CXX"; then
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3722 $as_echo "$CXX" >&6; }
3723 else
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728
3729     test -n "$CXX" && break
3730   done
3731 fi
3732 if test -z "$CXX"; then
3733   ac_ct_CXX=$CXX
3734   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3735 do
3736   # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   if test -n "$ac_ct_CXX"; then
3744   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751     for ac_exec_ext in '' $ac_executable_extensions; do
3752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753     ac_cv_prog_ac_ct_CXX="$ac_prog"
3754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758   done
3759 IFS=$as_save_IFS
3760
3761 fi
3762 fi
3763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764 if test -n "$ac_ct_CXX"; then
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3766 $as_echo "$ac_ct_CXX" >&6; }
3767 else
3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 fi
3771
3772
3773   test -n "$ac_ct_CXX" && break
3774 done
3775
3776   if test "x$ac_ct_CXX" = x; then
3777     CXX="g++"
3778   else
3779     case $cross_compiling:$ac_tool_warned in
3780 yes:)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785     CXX=$ac_ct_CXX
3786   fi
3787 fi
3788
3789   fi
3790 fi
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796   { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804   ac_status=$?
3805   if test -s conftest.err; then
3806     sed '10a\
3807 ... rest of stderr output deleted ...
3808          10q' conftest.err >conftest.er1
3809     cat conftest.er1 >&5
3810   fi
3811   rm -f conftest.er1 conftest.err
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }
3814 done
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3817 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3818 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h.  */
3823
3824 int
3825 main ()
3826 {
3827 #ifndef __GNUC__
3828        choke me
3829 #endif
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_cxx_try_compile "$LINENO"; then :
3836   ac_compiler_gnu=yes
3837 else
3838   ac_compiler_gnu=no
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3842
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3845 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3846 if test $ac_compiler_gnu = yes; then
3847   GXX=yes
3848 else
3849   GXX=
3850 fi
3851 ac_test_CXXFLAGS=${CXXFLAGS+set}
3852 ac_save_CXXFLAGS=$CXXFLAGS
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3854 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3855 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3856   $as_echo_n "(cached) " >&6
3857 else
3858   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3859    ac_cxx_werror_flag=yes
3860    ac_cv_prog_cxx_g=no
3861    CXXFLAGS="-g"
3862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864
3865 int
3866 main ()
3867 {
3868
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_cxx_try_compile "$LINENO"; then :
3874   ac_cv_prog_cxx_g=yes
3875 else
3876   CXXFLAGS=""
3877       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 if ac_fn_cxx_try_compile "$LINENO"; then :
3889
3890 else
3891   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3892          CXXFLAGS="-g"
3893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895
3896 int
3897 main ()
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_cxx_try_compile "$LINENO"; then :
3905   ac_cv_prog_cxx_g=yes
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3915 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3916 if test "$ac_test_CXXFLAGS" = set; then
3917   CXXFLAGS=$ac_save_CXXFLAGS
3918 elif test $ac_cv_prog_cxx_g = yes; then
3919   if test "$GXX" = yes; then
3920     CXXFLAGS="-g -O2"
3921   else
3922     CXXFLAGS="-g"
3923   fi
3924 else
3925   if test "$GXX" = yes; then
3926     CXXFLAGS="-O2"
3927   else
3928     CXXFLAGS=
3929   fi
3930 fi
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937 if test -n "$ac_tool_prefix"; then
3938   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   if test -n "$CPPBIN"; then
3946   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953     for ac_exec_ext in '' $ac_executable_extensions; do
3954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960   done
3961 IFS=$as_save_IFS
3962
3963 fi
3964 fi
3965 CPPBIN=$ac_cv_prog_CPPBIN
3966 if test -n "$CPPBIN"; then
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3968 $as_echo "$CPPBIN" >&6; }
3969 else
3970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3972 fi
3973
3974
3975 fi
3976 if test -z "$ac_cv_prog_CPPBIN"; then
3977   ac_ct_CPPBIN=$CPPBIN
3978   # Extract the first word of "cpp", so it can be a program name with args.
3979 set dummy cpp; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   if test -n "$ac_ct_CPPBIN"; then
3986   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993     for ac_exec_ext in '' $ac_executable_extensions; do
3994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995     ac_cv_prog_ac_ct_CPPBIN="cpp"
3996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000   done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4006 if test -n "$ac_ct_CPPBIN"; then
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4008 $as_echo "$ac_ct_CPPBIN" >&6; }
4009 else
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014   if test "x$ac_ct_CPPBIN" = x; then
4015     CPPBIN="cpp"
4016   else
4017     case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023     CPPBIN=$ac_ct_CPPBIN
4024   fi
4025 else
4026   CPPBIN="$ac_cv_prog_CPPBIN"
4027 fi
4028
4029
4030 cat >>confdefs.h <<_ACEOF
4031 #define EXEEXT "$ac_exeext"
4032 _ACEOF
4033
4034
4035 case $host in
4036   *-darwin*)
4037     if test "x$enable_win64" = "xyes"
4038     then
4039       CC="$CC -m64"
4040       CXX="$CXX -m64"
4041       LD="${LD:-ld} -arch x86_64"
4042       AS="${AS:-as} -arch x86_64"
4043       host_cpu="x86_64"
4044       notice_platform="64-bit "
4045       TARGETFLAGS="-m64"
4046
4047     else
4048       CC="$CC -m32"
4049       CXX="$CXX -m32"
4050       LD="${LD:-ld} -arch i386"
4051       AS="${AS:-as} -arch i386"
4052       host_cpu="i386"
4053       notice_platform="32-bit "
4054       TARGETFLAGS="-m32"
4055
4056       enable_win16=${enable_win16:-yes}
4057     fi
4058     ;;
4059   x86_64*)
4060     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4061     then
4062       CC="$CC -m32"
4063       CXX="$CXX -m32"
4064       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4065 $as_echo_n "checking whether $CC works... " >&6; }
4066
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_c_try_link "$LINENO"; then :
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4080 $as_echo "yes" >&6; }
4081 else
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4085 fi
4086 rm -f core conftest.err conftest.$ac_objext \
4087     conftest$ac_exeext conftest.$ac_ext
4088       LD="${LD:-ld} -m elf_i386"
4089       AS="${AS:-as} --32"
4090       host_cpu="i386"
4091       notice_platform="32-bit "
4092       TARGETFLAGS="-m32"
4093
4094       enable_win16=${enable_win16:-yes}
4095     else
4096       if test "x${GCC}" = "xyes"
4097       then
4098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4099 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <stdarg.h>
4103 int
4104 main ()
4105 {
4106 void func(__builtin_ms_va_list *args);
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113 $as_echo "yes" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120       fi
4121       TARGETFLAGS="-m64"
4122
4123     fi
4124     ;;
4125   *-mingw32*|*-cygwin*)
4126     enable_win16=${enable_win16:-no}
4127     CFLAGS="$CFLAGS -D_WIN32"
4128     ;;
4129   i[3456789]86*)
4130     enable_win16=${enable_win16:-yes}
4131     ;;
4132 esac
4133
4134 enable_win16=${enable_win16:-no}
4135
4136 enable_winetest=${enable_winetest:-$enable_tests}
4137
4138 if test -n "$with_wine64"
4139 then
4140     if test "x$enable_win64" = "xyes"
4141     then
4142         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4143 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4144     fi
4145     WOW64_DISABLE=\#
4146
4147     enable_fonts=${enable_fonts:-no}
4148     enable_server=${enable_server:-no}
4149     enable_tools=${enable_tools:-no}
4150 elif test "x$enable_win64" = "xyes"
4151 then
4152     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4153 fi
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4156 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4157 if test "${wine_cv_toolsdir+set}" = set; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   wine_cv_toolsdir="$with_wine_tools"
4161    if test -z "$with_wine_tools"; then
4162      if test "$cross_compiling" = "yes"; then
4163        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4164      elif test -n "$with_wine64"; then
4165        wine_cv_toolsdir="$with_wine64"
4166      fi
4167    fi
4168    if test -z "$wine_cv_toolsdir"; then
4169      wine_cv_toolsdir="\$(top_builddir)"
4170    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4171      case "$wine_cv_toolsdir" in
4172        /*) ;;
4173        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4174      esac
4175    else
4176      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4177    fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4180 $as_echo "$wine_cv_toolsdir" >&6; }
4181 TOOLSDIR=$wine_cv_toolsdir
4182
4183 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4184 then
4185     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4186
4187 fi
4188
4189 for ac_prog in flex
4190 do
4191   # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_FLEX+set}" = set; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -n "$FLEX"; then
4199   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208     ac_cv_prog_FLEX="$ac_prog"
4209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213   done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 FLEX=$ac_cv_prog_FLEX
4219 if test -n "$FLEX"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4221 $as_echo "$FLEX" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228   test -n "$FLEX" && break
4229 done
4230 test -n "$FLEX" || FLEX="none"
4231
4232 if test "$FLEX" = "none"
4233 then
4234   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4237 $as_echo_n "checking whether flex is recent enough... " >&6; }
4238 cat >conftest.l <<EOF
4239 %top{
4240 #include "prediluvian.h"
4241 }
4242 %%
4243 EOF
4244 if $FLEX -t conftest.l >/dev/null 2>&5
4245 then
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4247 $as_echo "yes" >&6; }
4248 else
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4252 fi
4253
4254 for ac_prog in bison
4255 do
4256   # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_BISON+set}" = set; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -n "$BISON"; then
4264   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273     ac_cv_prog_BISON="$ac_prog"
4274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278   done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 BISON=$ac_cv_prog_BISON
4284 if test -n "$BISON"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4286 $as_echo "$BISON" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293   test -n "$BISON" && break
4294 done
4295 test -n "$BISON" || BISON="none"
4296
4297 if test "$BISON" = "none"
4298 then
4299   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4300 fi
4301
4302 if test -n "$ac_tool_prefix"; then
4303   for ac_prog in ar gar
4304   do
4305     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_AR+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test -n "$AR"; then
4313   ac_cv_prog_AR="$AR" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 AR=$ac_cv_prog_AR
4333 if test -n "$AR"; then
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4335 $as_echo "$AR" >&6; }
4336 else
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342     test -n "$AR" && break
4343   done
4344 fi
4345 if test -z "$AR"; then
4346   ac_ct_AR=$AR
4347   for ac_prog in ar gar
4348 do
4349   # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   if test -n "$ac_ct_AR"; then
4357   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364     for ac_exec_ext in '' $ac_executable_extensions; do
4365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366     ac_cv_prog_ac_ct_AR="$ac_prog"
4367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371   done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377 if test -n "$ac_ct_AR"; then
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4379 $as_echo "$ac_ct_AR" >&6; }
4380 else
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386   test -n "$ac_ct_AR" && break
4387 done
4388
4389   if test "x$ac_ct_AR" = x; then
4390     AR="ar"
4391   else
4392     case $cross_compiling:$ac_tool_warned in
4393 yes:)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398     AR=$ac_ct_AR
4399   fi
4400 fi
4401
4402 ARFLAGS=rc
4403
4404 if test -n "$ac_tool_prefix"; then
4405   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4410   $as_echo_n "(cached) " >&6
4411 else
4412   if test -n "$RANLIB"; then
4413   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420     for ac_exec_ext in '' $ac_executable_extensions; do
4421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427   done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 RANLIB=$ac_cv_prog_RANLIB
4433 if test -n "$RANLIB"; then
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4435 $as_echo "$RANLIB" >&6; }
4436 else
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 fi
4443 if test -z "$ac_cv_prog_RANLIB"; then
4444   ac_ct_RANLIB=$RANLIB
4445   # Extract the first word of "ranlib", so it can be a program name with args.
4446 set dummy ranlib; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test -n "$ac_ct_RANLIB"; then
4453   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_ac_ct_RANLIB="ranlib"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4473 if test -n "$ac_ct_RANLIB"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4475 $as_echo "$ac_ct_RANLIB" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481   if test "x$ac_ct_RANLIB" = x; then
4482     RANLIB=":"
4483   else
4484     case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490     RANLIB=$ac_ct_RANLIB
4491   fi
4492 else
4493   RANLIB="$ac_cv_prog_RANLIB"
4494 fi
4495
4496 if test -n "$ac_tool_prefix"; then
4497   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}strip; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_STRIP+set}" = set; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -n "$STRIP"; then
4505   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 STRIP=$ac_cv_prog_STRIP
4525 if test -n "$STRIP"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4527 $as_echo "$STRIP" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534 fi
4535 if test -z "$ac_cv_prog_STRIP"; then
4536   ac_ct_STRIP=$STRIP
4537   # Extract the first word of "strip", so it can be a program name with args.
4538 set dummy strip; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   if test -n "$ac_ct_STRIP"; then
4545   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552     for ac_exec_ext in '' $ac_executable_extensions; do
4553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554     ac_cv_prog_ac_ct_STRIP="strip"
4555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559   done
4560 IFS=$as_save_IFS
4561
4562 fi
4563 fi
4564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4565 if test -n "$ac_ct_STRIP"; then
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4567 $as_echo "$ac_ct_STRIP" >&6; }
4568 else
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4571 fi
4572
4573   if test "x$ac_ct_STRIP" = x; then
4574     STRIP="strip"
4575   else
4576     case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4581 esac
4582     STRIP=$ac_ct_STRIP
4583   fi
4584 else
4585   STRIP="$ac_cv_prog_STRIP"
4586 fi
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4589 $as_echo_n "checking whether ln -s works... " >&6; }
4590 LN_S=$as_ln_s
4591 if test "$LN_S" = "ln -s"; then
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594 else
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4596 $as_echo "no, using $LN_S" >&6; }
4597 fi
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4601 if test "${ac_cv_path_GREP+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if test -z "$GREP"; then
4605   ac_path_GREP_found=false
4606   # Loop through the user's path and test for each of PROGNAME-LIST
4607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612     for ac_prog in grep ggrep; do
4613     for ac_exec_ext in '' $ac_executable_extensions; do
4614       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4616 # Check for GNU ac_path_GREP and select it if it is found.
4617   # Check for GNU $ac_path_GREP
4618 case `"$ac_path_GREP" --version 2>&1` in
4619 *GNU*)
4620   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621 *)
4622   ac_count=0
4623   $as_echo_n 0123456789 >"conftest.in"
4624   while :
4625   do
4626     cat "conftest.in" "conftest.in" >"conftest.tmp"
4627     mv "conftest.tmp" "conftest.in"
4628     cp "conftest.in" "conftest.nl"
4629     $as_echo 'GREP' >> "conftest.nl"
4630     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632     as_fn_arith $ac_count + 1 && ac_count=$as_val
4633     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634       # Best one so far, save it but keep looking for a better one
4635       ac_cv_path_GREP="$ac_path_GREP"
4636       ac_path_GREP_max=$ac_count
4637     fi
4638     # 10*(2^10) chars as input seems more than enough
4639     test $ac_count -gt 10 && break
4640   done
4641   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4643
4644       $ac_path_GREP_found && break 3
4645     done
4646   done
4647   done
4648 IFS=$as_save_IFS
4649   if test -z "$ac_cv_path_GREP"; then
4650     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651   fi
4652 else
4653   ac_cv_path_GREP=$GREP
4654 fi
4655
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4658 $as_echo "$ac_cv_path_GREP" >&6; }
4659  GREP="$ac_cv_path_GREP"
4660
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4663 $as_echo_n "checking for egrep... " >&6; }
4664 if test "${ac_cv_path_EGREP+set}" = set; then :
4665   $as_echo_n "(cached) " >&6
4666 else
4667   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668    then ac_cv_path_EGREP="$GREP -E"
4669    else
4670      if test -z "$EGREP"; then
4671   ac_path_EGREP_found=false
4672   # Loop through the user's path and test for each of PROGNAME-LIST
4673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678     for ac_prog in egrep; do
4679     for ac_exec_ext in '' $ac_executable_extensions; do
4680       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683   # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687 *)
4688   ac_count=0
4689   $as_echo_n 0123456789 >"conftest.in"
4690   while :
4691   do
4692     cat "conftest.in" "conftest.in" >"conftest.tmp"
4693     mv "conftest.tmp" "conftest.in"
4694     cp "conftest.in" "conftest.nl"
4695     $as_echo 'EGREP' >> "conftest.nl"
4696     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698     as_fn_arith $ac_count + 1 && ac_count=$as_val
4699     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700       # Best one so far, save it but keep looking for a better one
4701       ac_cv_path_EGREP="$ac_path_EGREP"
4702       ac_path_EGREP_max=$ac_count
4703     fi
4704     # 10*(2^10) chars as input seems more than enough
4705     test $ac_count -gt 10 && break
4706   done
4707   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710       $ac_path_EGREP_found && break 3
4711     done
4712   done
4713   done
4714 IFS=$as_save_IFS
4715   if test -z "$ac_cv_path_EGREP"; then
4716     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4717   fi
4718 else
4719   ac_cv_path_EGREP=$EGREP
4720 fi
4721
4722    fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4725 $as_echo "$ac_cv_path_EGREP" >&6; }
4726  EGREP="$ac_cv_path_EGREP"
4727
4728
4729 # Extract the first word of "ldconfig", so it can be a program name with args.
4730 set dummy ldconfig; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   case $LDCONFIG in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in /sbin /usr/sbin $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753   done
4754 IFS=$as_save_IFS
4755
4756   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4757   ;;
4758 esac
4759 fi
4760 LDCONFIG=$ac_cv_path_LDCONFIG
4761 if test -n "$LDCONFIG"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4763 $as_echo "$LDCONFIG" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 # Find a good install program.  We prefer a C program (faster),
4771 # so one script is as good as another.  But avoid the broken or
4772 # incompatible versions:
4773 # SysV /etc/install, /usr/sbin/install
4774 # SunOS /usr/etc/install
4775 # IRIX /sbin/install
4776 # AIX /bin/install
4777 # AmigaOS /C/install, which installs bootblocks on floppy discs
4778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4781 # OS/2's system install, which has a completely different semantic
4782 # ./install, which can be erroneously created by make from ./install.sh.
4783 # Reject install programs that cannot install multiple files.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4786 if test -z "$INSTALL"; then
4787 if test "${ac_cv_path_install+set}" = set; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     # Account for people who put trailing slashes in PATH elements.
4796 case $as_dir/ in #((
4797   ./ | .// | /[cC]/* | \
4798   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4799   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4800   /usr/ucb/* ) ;;
4801   *)
4802     # OSF1 and SCO ODT 3.0 have their own names for install.
4803     # Don't use installbsd from OSF since it installs stuff as root
4804     # by default.
4805     for ac_prog in ginstall scoinst install; do
4806       for ac_exec_ext in '' $ac_executable_extensions; do
4807         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4808           if test $ac_prog = install &&
4809             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810             # AIX install.  It has an incompatible calling convention.
4811             :
4812           elif test $ac_prog = install &&
4813             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4814             # program-specific install script used by HP pwplus--don't use.
4815             :
4816           else
4817             rm -rf conftest.one conftest.two conftest.dir
4818             echo one > conftest.one
4819             echo two > conftest.two
4820             mkdir conftest.dir
4821             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4822               test -s conftest.one && test -s conftest.two &&
4823               test -s conftest.dir/conftest.one &&
4824               test -s conftest.dir/conftest.two
4825             then
4826               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4827               break 3
4828             fi
4829           fi
4830         fi
4831       done
4832     done
4833     ;;
4834 esac
4835
4836   done
4837 IFS=$as_save_IFS
4838
4839 rm -rf conftest.one conftest.two conftest.dir
4840
4841 fi
4842   if test "${ac_cv_path_install+set}" = set; then
4843     INSTALL=$ac_cv_path_install
4844   else
4845     # As a last resort, use the slow shell script.  Don't cache a
4846     # value for INSTALL within a source directory, because that will
4847     # break other packages using the cache if that directory is
4848     # removed, or if the value is a relative name.
4849     INSTALL=$ac_install_sh
4850   fi
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4853 $as_echo "$INSTALL" >&6; }
4854
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4858
4859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4860
4861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4862
4863 case "$INSTALL" in
4864   [\\/$]* | ?:[\\/]* ) ;;
4865   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4866 esac
4867
4868 for ac_prog in lclint lint
4869 do
4870   # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy $ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_LINT+set}" = set; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if test -n "$LINT"; then
4878   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_LINT="$ac_prog"
4888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892   done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 LINT=$ac_cv_prog_LINT
4898 if test -n "$LINT"; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4900 $as_echo "$LINT" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907   test -n "$LINT" && break
4908 done
4909
4910 if test "$LINT" = "lint"
4911 then
4912   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4913   fi
4914
4915
4916
4917 for ac_prog in fontforge
4918 do
4919   # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -n "$FONTFORGE"; then
4927   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_prog_FONTFORGE="$ac_prog"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 FONTFORGE=$ac_cv_prog_FONTFORGE
4947 if test -n "$FONTFORGE"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4949 $as_echo "$FONTFORGE" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956   test -n "$FONTFORGE" && break
4957 done
4958 test -n "$FONTFORGE" || FONTFORGE="false"
4959
4960 for ac_prog in pkg-config
4961 do
4962   # Extract the first word of "$ac_prog", so it can be a program name with args.
4963 set dummy $ac_prog; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$PKG_CONFIG"; then
4970   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_PKG_CONFIG="$ac_prog"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4990 if test -n "$PKG_CONFIG"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4992 $as_echo "$PKG_CONFIG" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999   test -n "$PKG_CONFIG" && break
5000 done
5001 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5002
5003 for ac_prog in rsvg
5004 do
5005   # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy $ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_RSVG+set}" = set; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if test -n "$RSVG"; then
5013   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_prog_RSVG="$ac_prog"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 RSVG=$ac_cv_prog_RSVG
5033 if test -n "$RSVG"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5035 $as_echo "$RSVG" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042   test -n "$RSVG" && break
5043 done
5044 test -n "$RSVG" || RSVG="false"
5045
5046 for ac_prog in convert
5047 do
5048   # Extract the first word of "$ac_prog", so it can be a program name with args.
5049 set dummy $ac_prog; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$CONVERT"; then
5056   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     ac_cv_prog_CONVERT="$ac_prog"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 CONVERT=$ac_cv_prog_CONVERT
5076 if test -n "$CONVERT"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5078 $as_echo "$CONVERT" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085   test -n "$CONVERT" && break
5086 done
5087 test -n "$CONVERT" || CONVERT="false"
5088
5089 for ac_prog in icotool
5090 do
5091   # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if test -n "$ICOTOOL"; then
5099   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106     for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_prog_ICOTOOL="$ac_prog"
5109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113   done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 ICOTOOL=$ac_cv_prog_ICOTOOL
5119 if test -n "$ICOTOOL"; then
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5121 $as_echo "$ICOTOOL" >&6; }
5122 else
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126
5127
5128   test -n "$ICOTOOL" && break
5129 done
5130 test -n "$ICOTOOL" || ICOTOOL="false"
5131
5132
5133 if test "x$enable_maintainer_mode" != "xyes"
5134 then
5135   MAINTAINER_MODE=\#
5136
5137 else
5138   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5139   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5140
5141     if test "$CONVERT" = false
5142   then
5143     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5144   else
5145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5146 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5147     convert_version=`convert --version | head -n1`
5148     if test "x$convert_version" != "x"
5149     then
5150       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5151       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5152       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5153       then
5154         CONVERT=false
5155       fi
5156     fi
5157     if test "$CONVERT" = false
5158     then
5159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5160 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5161       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5162     else
5163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5164 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5165     fi
5166   fi
5167
5168     if test "$ICOTOOL" = false
5169   then
5170     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5171   else
5172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5173 $as_echo_n "checking for recent enough icotool... " >&6; }
5174     icotool_version=`icotool --version | head -n1`
5175     if test "x$icotool_version" != "x"
5176     then
5177       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5178       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5179       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5180       then
5181         ICOTOOL=false
5182         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5183       fi
5184     fi
5185     if test "$ICOTOOL" = false
5186     then
5187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5188 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5189       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5190     else
5191       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5192 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5193     fi
5194   fi
5195
5196 fi
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5200 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5201 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   ac_check_lib_save_LIBS=$LIBS
5205 LIBS="-li386  $LIBS"
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208
5209 /* Override any GCC internal prototype to avoid an error.
5210    Use char because int might match the return type of a GCC
5211    builtin and then its argument prototype would still apply.  */
5212 #ifdef __cplusplus
5213 extern "C"
5214 #endif
5215 char i386_set_ldt ();
5216 int
5217 main ()
5218 {
5219 return i386_set_ldt ();
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_c_try_link "$LINENO"; then :
5225   ac_cv_lib_i386_i386_set_ldt=yes
5226 else
5227   ac_cv_lib_i386_i386_set_ldt=no
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext \
5230     conftest$ac_exeext conftest.$ac_ext
5231 LIBS=$ac_check_lib_save_LIBS
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5234 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5235 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5236   cat >>confdefs.h <<_ACEOF
5237 #define HAVE_LIBI386 1
5238 _ACEOF
5239
5240   LIBS="-li386 $LIBS"
5241
5242 fi
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5245 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5246 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lossaudio  $LIBS"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253
5254 /* Override any GCC internal prototype to avoid an error.
5255    Use char because int might match the return type of a GCC
5256    builtin and then its argument prototype would still apply.  */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 char _oss_ioctl ();
5261 int
5262 main ()
5263 {
5264 return _oss_ioctl ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_link "$LINENO"; then :
5270   ac_cv_lib_ossaudio__oss_ioctl=yes
5271 else
5272   ac_cv_lib_ossaudio__oss_ioctl=no
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext \
5275     conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5279 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5280 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5281   cat >>confdefs.h <<_ACEOF
5282 #define HAVE_LIBOSSAUDIO 1
5283 _ACEOF
5284
5285   LIBS="-lossaudio $LIBS"
5286
5287 fi
5288
5289
5290 XLIB=""
5291
5292 OPENGL_LIBS=""
5293
5294
5295
5296 # Check whether --enable-largefile was given.
5297 if test "${enable_largefile+set}" = set; then :
5298   enableval=$enable_largefile;
5299 fi
5300
5301 if test "$enable_largefile" != no; then
5302
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5304 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5305 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   ac_cv_sys_largefile_CC=no
5309      if test "$GCC" != yes; then
5310        ac_save_CC=$CC
5311        while :; do
5312          # IRIX 6.2 and later do not support large files by default,
5313          # so use the C compiler's -n32 option if that helps.
5314          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h.  */
5316 #include <sys/types.h>
5317  /* Check that off_t can represent 2**63 - 1 correctly.
5318     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319     since some C++ compilers masquerading as C compilers
5320     incorrectly reject 9223372036854775807.  */
5321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323                        && LARGE_OFF_T % 2147483647 == 1)
5324                       ? 1 : -1];
5325 int
5326 main ()
5327 {
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333          if ac_fn_c_try_compile "$LINENO"; then :
5334   break
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext
5337          CC="$CC -n32"
5338          if ac_fn_c_try_compile "$LINENO"; then :
5339   ac_cv_sys_largefile_CC=' -n32'; break
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext
5342          break
5343        done
5344        CC=$ac_save_CC
5345        rm -f conftest.$ac_ext
5346     fi
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5349 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5350   if test "$ac_cv_sys_largefile_CC" != no; then
5351     CC=$CC$ac_cv_sys_largefile_CC
5352   fi
5353
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5355 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5356 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   while :; do
5360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362 #include <sys/types.h>
5363  /* Check that off_t can represent 2**63 - 1 correctly.
5364     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365     since some C++ compilers masquerading as C compilers
5366     incorrectly reject 9223372036854775807.  */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369                        && LARGE_OFF_T % 2147483647 == 1)
5370                       ? 1 : -1];
5371 int
5372 main ()
5373 {
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380   ac_cv_sys_file_offset_bits=no; break
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h.  */
5385 #define _FILE_OFFSET_BITS 64
5386 #include <sys/types.h>
5387  /* Check that off_t can represent 2**63 - 1 correctly.
5388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389     since some C++ compilers masquerading as C compilers
5390     incorrectly reject 9223372036854775807.  */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393                        && LARGE_OFF_T % 2147483647 == 1)
5394                       ? 1 : -1];
5395 int
5396 main ()
5397 {
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404   ac_cv_sys_file_offset_bits=64; break
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407   ac_cv_sys_file_offset_bits=unknown
5408   break
5409 done
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5412 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5413 case $ac_cv_sys_file_offset_bits in #(
5414   no | unknown) ;;
5415   *)
5416 cat >>confdefs.h <<_ACEOF
5417 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5418 _ACEOF
5419 ;;
5420 esac
5421 rm -rf conftest*
5422   if test $ac_cv_sys_file_offset_bits = unknown; then
5423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5424 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5425 if test "${ac_cv_sys_large_files+set}" = set; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   while :; do
5429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h.  */
5431 #include <sys/types.h>
5432  /* Check that off_t can represent 2**63 - 1 correctly.
5433     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434     since some C++ compilers masquerading as C compilers
5435     incorrectly reject 9223372036854775807.  */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438                        && LARGE_OFF_T % 2147483647 == 1)
5439                       ? 1 : -1];
5440 int
5441 main ()
5442 {
5443
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449   ac_cv_sys_large_files=no; break
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h.  */
5454 #define _LARGE_FILES 1
5455 #include <sys/types.h>
5456  /* Check that off_t can represent 2**63 - 1 correctly.
5457     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458     since some C++ compilers masquerading as C compilers
5459     incorrectly reject 9223372036854775807.  */
5460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462                        && LARGE_OFF_T % 2147483647 == 1)
5463                       ? 1 : -1];
5464 int
5465 main ()
5466 {
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473   ac_cv_sys_large_files=1; break
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476   ac_cv_sys_large_files=unknown
5477   break
5478 done
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5481 $as_echo "$ac_cv_sys_large_files" >&6; }
5482 case $ac_cv_sys_large_files in #(
5483   no | unknown) ;;
5484   *)
5485 cat >>confdefs.h <<_ACEOF
5486 #define _LARGE_FILES $ac_cv_sys_large_files
5487 _ACEOF
5488 ;;
5489 esac
5490 rm -rf conftest*
5491   fi
5492 fi
5493
5494
5495 ac_ext=c
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5502 # On Suns, sometimes $CPP names a directory.
5503 if test -n "$CPP" && test -d "$CPP"; then
5504   CPP=
5505 fi
5506 if test -z "$CPP"; then
5507   if test "${ac_cv_prog_CPP+set}" = set; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510       # Double quotes because CPP needs to be expanded
5511     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5512     do
5513       ac_preproc_ok=false
5514 for ac_c_preproc_warn_flag in '' yes
5515 do
5516   # Use a header file that comes with gcc, so configuring glibc
5517   # with a fresh cross-compiler works.
5518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519   # <limits.h> exists even on freestanding compilers.
5520   # On the NeXT, cc -E runs the code through the compiler's parser,
5521   # not just through cpp. "Syntax error" is here to catch this case.
5522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524 #ifdef __STDC__
5525 # include <limits.h>
5526 #else
5527 # include <assert.h>
5528 #endif
5529                      Syntax error
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5532
5533 else
5534   # Broken: fails on valid input.
5535 continue
5536 fi
5537 rm -f conftest.err conftest.i conftest.$ac_ext
5538
5539   # OK, works on sane cases.  Now check whether nonexistent headers
5540   # can be detected and how.
5541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h.  */
5543 #include <ac_nonexistent.h>
5544 _ACEOF
5545 if ac_fn_c_try_cpp "$LINENO"; then :
5546   # Broken: success on invalid input.
5547 continue
5548 else
5549   # Passes both tests.
5550 ac_preproc_ok=:
5551 break
5552 fi
5553 rm -f conftest.err conftest.i conftest.$ac_ext
5554
5555 done
5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5557 rm -f conftest.i conftest.err conftest.$ac_ext
5558 if $ac_preproc_ok; then :
5559   break
5560 fi
5561
5562     done
5563     ac_cv_prog_CPP=$CPP
5564
5565 fi
5566   CPP=$ac_cv_prog_CPP
5567 else
5568   ac_cv_prog_CPP=$CPP
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5571 $as_echo "$CPP" >&6; }
5572 ac_preproc_ok=false
5573 for ac_c_preproc_warn_flag in '' yes
5574 do
5575   # Use a header file that comes with gcc, so configuring glibc
5576   # with a fresh cross-compiler works.
5577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578   # <limits.h> exists even on freestanding compilers.
5579   # On the NeXT, cc -E runs the code through the compiler's parser,
5580   # not just through cpp. "Syntax error" is here to catch this case.
5581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h.  */
5583 #ifdef __STDC__
5584 # include <limits.h>
5585 #else
5586 # include <assert.h>
5587 #endif
5588                      Syntax error
5589 _ACEOF
5590 if ac_fn_c_try_cpp "$LINENO"; then :
5591
5592 else
5593   # Broken: fails on valid input.
5594 continue
5595 fi
5596 rm -f conftest.err conftest.i conftest.$ac_ext
5597
5598   # OK, works on sane cases.  Now check whether nonexistent headers
5599   # can be detected and how.
5600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #include <ac_nonexistent.h>
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5605   # Broken: success on invalid input.
5606 continue
5607 else
5608   # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5611 fi
5612 rm -f conftest.err conftest.i conftest.$ac_ext
5613
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.i conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then :
5618
5619 else
5620   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5623 See \`config.log' for more details" "$LINENO" 5 ; }
5624 fi
5625
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5634 $as_echo_n "checking for ANSI C header files... " >&6; }
5635 if test "${ac_cv_header_stdc+set}" = set; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 #include <stdlib.h>
5641 #include <stdarg.h>
5642 #include <string.h>
5643 #include <float.h>
5644
5645 int
5646 main ()
5647 {
5648
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654   ac_cv_header_stdc=yes
5655 else
5656   ac_cv_header_stdc=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659
5660 if test $ac_cv_header_stdc = yes; then
5661   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h.  */
5664 #include <string.h>
5665
5666 _ACEOF
5667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668   $EGREP "memchr" >/dev/null 2>&1; then :
5669
5670 else
5671   ac_cv_header_stdc=no
5672 fi
5673 rm -f conftest*
5674
5675 fi
5676
5677 if test $ac_cv_header_stdc = yes; then
5678   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h.  */
5681 #include <stdlib.h>
5682
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685   $EGREP "free" >/dev/null 2>&1; then :
5686
5687 else
5688   ac_cv_header_stdc=no
5689 fi
5690 rm -f conftest*
5691
5692 fi
5693
5694 if test $ac_cv_header_stdc = yes; then
5695   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5696   if test "$cross_compiling" = yes; then :
5697   :
5698 else
5699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h.  */
5701 #include <ctype.h>
5702 #include <stdlib.h>
5703 #if ((' ' & 0x0FF) == 0x020)
5704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5706 #else
5707 # define ISLOWER(c) \
5708                    (('a' <= (c) && (c) <= 'i') \
5709                      || ('j' <= (c) && (c) <= 'r') \
5710                      || ('s' <= (c) && (c) <= 'z'))
5711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5712 #endif
5713
5714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5715 int
5716 main ()
5717 {
5718   int i;
5719   for (i = 0; i < 256; i++)
5720     if (XOR (islower (i), ISLOWER (i))
5721         || toupper (i) != TOUPPER (i))
5722       return 2;
5723   return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_c_try_run "$LINENO"; then :
5727
5728 else
5729   ac_cv_header_stdc=no
5730 fi
5731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732   conftest.$ac_objext conftest.beam conftest.$ac_ext
5733 fi
5734
5735 fi
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5738 $as_echo "$ac_cv_header_stdc" >&6; }
5739 if test $ac_cv_header_stdc = yes; then
5740
5741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5742
5743 fi
5744
5745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5747                   inttypes.h stdint.h unistd.h
5748 do :
5749   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5751 "
5752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5753   cat >>confdefs.h <<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755 _ACEOF
5756
5757 fi
5758
5759 done
5760
5761
5762 for ac_header in \
5763         AL/al.h \
5764         ApplicationServices/ApplicationServices.h \
5765         AudioToolbox/AudioConverter.h \
5766         AudioUnit/AudioUnit.h \
5767         CL/cl.h \
5768         Carbon/Carbon.h \
5769         CoreAudio/CoreAudio.h \
5770         DiskArbitration/DiskArbitration.h \
5771         IOKit/IOKitLib.h \
5772         IOKit/hid/IOHIDLib.h \
5773         OpenAL/al.h \
5774         OpenCL/opencl.h \
5775         QuickTime/ImageCompression.h \
5776         alias.h \
5777         alsa/asoundlib.h \
5778         arpa/inet.h \
5779         arpa/nameser.h \
5780         asm/types.h \
5781         capi20.h \
5782         curses.h \
5783         direct.h \
5784         dirent.h \
5785         dlfcn.h \
5786         elf.h \
5787         float.h \
5788         fnmatch.h \
5789         fontconfig/fontconfig.h \
5790         getopt.h \
5791         gettext-po.h \
5792         grp.h \
5793         gsm.h \
5794         gsm/gsm.h \
5795         ieeefp.h \
5796         inet/mib2.h \
5797         io.h \
5798         jack/jack.h \
5799         jpeglib.h \
5800         kstat.h \
5801         lber.h \
5802         lcms.h \
5803         lcms/lcms.h \
5804         ldap.h \
5805         link.h \
5806         linux/cdrom.h \
5807         linux/compiler.h \
5808         linux/hdreg.h \
5809         linux/input.h \
5810         linux/ioctl.h \
5811         linux/joystick.h \
5812         linux/major.h \
5813         linux/param.h \
5814         linux/serial.h \
5815         linux/types.h \
5816         linux/ucdrom.h \
5817         mach-o/nlist.h \
5818         mach-o/loader.h \
5819         mach/mach.h \
5820         mach/machine.h \
5821         machine/cpu.h \
5822         machine/limits.h \
5823         machine/soundcard.h \
5824         machine/sysarch.h \
5825         mntent.h \
5826         mpg123.h \
5827         ncurses.h \
5828         netdb.h \
5829         netinet/in.h \
5830         netinet/in_systm.h \
5831         netinet/tcp.h \
5832         netinet/tcp_fsm.h \
5833         openssl/err.h \
5834         openssl/ssl.h \
5835         png.h \
5836         poll.h \
5837         port.h \
5838         process.h \
5839         pthread.h \
5840         pwd.h \
5841         regex.h \
5842         sched.h \
5843         scsi/scsi.h \
5844         scsi/scsi_ioctl.h \
5845         scsi/sg.h \
5846         soundcard.h \
5847         stdbool.h \
5848         stdint.h \
5849         strings.h \
5850         stropts.h \
5851         sys/asoundlib.h \
5852         sys/cdio.h \
5853         sys/elf32.h \
5854         sys/epoll.h \
5855         sys/errno.h \
5856         sys/event.h \
5857         sys/exec_elf.h \
5858         sys/filio.h \
5859         sys/inotify.h \
5860         sys/ioctl.h \
5861         sys/ipc.h \
5862         sys/limits.h \
5863         sys/link.h \
5864         sys/mman.h \
5865         sys/modem.h \
5866         sys/msg.h \
5867         sys/mtio.h \
5868         sys/param.h \
5869         sys/poll.h \
5870         sys/prctl.h \
5871         sys/protosw.h \
5872         sys/ptrace.h \
5873         sys/resource.h \
5874         sys/scsiio.h \
5875         sys/shm.h \
5876         sys/signal.h \
5877         sys/socket.h \
5878         sys/socketvar.h \
5879         sys/sockio.h \
5880         sys/soundcard.h \
5881         sys/statvfs.h \
5882         sys/strtio.h \
5883         sys/syscall.h \
5884         sys/tihdr.h \
5885         sys/time.h \
5886         sys/timeout.h \
5887         sys/times.h \
5888         sys/uio.h \
5889         sys/un.h \
5890         sys/utsname.h \
5891         sys/vm86.h \
5892         sys/wait.h \
5893         syscall.h \
5894         termios.h \
5895         tiffio.h \
5896         unistd.h \
5897         utime.h \
5898         valgrind/memcheck.h \
5899         valgrind/valgrind.h \
5900         zlib.h
5901
5902 do :
5903   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5906   cat >>confdefs.h <<_ACEOF
5907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5908 _ACEOF
5909
5910 fi
5911
5912 done
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5915 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5916 if test "${ac_cv_header_stat_broken+set}" = set; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h.  */
5921 #include <sys/types.h>
5922 #include <sys/stat.h>
5923
5924 #if defined S_ISBLK && defined S_IFDIR
5925 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5926 #endif
5927
5928 #if defined S_ISBLK && defined S_IFCHR
5929 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5930 #endif
5931
5932 #if defined S_ISLNK && defined S_IFREG
5933 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5934 #endif
5935
5936 #if defined S_ISSOCK && defined S_IFREG
5937 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5938 #endif
5939
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942   ac_cv_header_stat_broken=no
5943 else
5944   ac_cv_header_stat_broken=yes
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5949 $as_echo "$ac_cv_header_stat_broken" >&6; }
5950 if test $ac_cv_header_stat_broken = yes; then
5951
5952 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5953
5954 fi
5955
5956
5957
5958 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5959 do :
5960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5962      #ifdef HAVE_SYS_PARAM_H
5963      # include <sys/param.h>
5964      #endif
5965 "
5966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5967   cat >>confdefs.h <<_ACEOF
5968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5970
5971 fi
5972
5973 done
5974
5975
5976 for ac_header in \
5977         netinet/ip.h \
5978         net/if.h \
5979         net/if_arp.h \
5980         net/if_dl.h \
5981         net/if_types.h \
5982         net/route.h \
5983         netinet/if_ether.h \
5984         netinet/if_inarp.h \
5985         netinet/in_pcb.h \
5986         netinet/ip_icmp.h \
5987         netinet/ip_var.h \
5988         netinet/udp.h \
5989         netipx/ipx.h \
5990
5991 do :
5992   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5994      #ifdef HAVE_SYS_SOCKET_H
5995      # include <sys/socket.h>
5996      #endif
5997      #ifdef HAVE_SYS_SOCKETVAR_H
5998      # include <sys/socketvar.h>
5999      #endif
6000      #ifdef HAVE_NET_ROUTE_H
6001      # include <net/route.h>
6002      #endif
6003      #ifdef HAVE_NETINET_IN_H
6004      # include <netinet/in.h>
6005      #endif
6006      #ifdef HAVE_NETINET_IN_SYSTM_H
6007      # include <netinet/in_systm.h>
6008      #endif
6009      #ifdef HAVE_NET_IF_H
6010      # include <net/if.h>
6011      #endif
6012      #ifdef HAVE_NETINET_IP_H
6013      # include <netinet/ip.h>
6014      #endif
6015 "
6016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6017   cat >>confdefs.h <<_ACEOF
6018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019 _ACEOF
6020
6021 fi
6022
6023 done
6024
6025
6026 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6027 do :
6028   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6030      #ifdef HAVE_ALIAS_H
6031      # include <alias.h>
6032      #endif
6033      #ifdef HAVE_SYS_SOCKET_H
6034      # include <sys/socket.h>
6035      #endif
6036      #ifdef HAVE_SYS_SOCKETVAR_H
6037      # include <sys/socketvar.h>
6038      #endif
6039      #ifdef HAVE_SYS_TIMEOUT_H
6040      # include <sys/timeout.h>
6041      #endif
6042      #ifdef HAVE_NETINET_IN_H
6043      # include <netinet/in.h>
6044      #endif
6045      #ifdef HAVE_NETINET_IN_SYSTM_H
6046      # include <netinet/in_systm.h>
6047      #endif
6048      #ifdef HAVE_NETINET_IP_H
6049      # include <netinet/ip.h>
6050      #endif
6051      #ifdef HAVE_NETINET_IP_VAR_H
6052      # include <netinet/ip_var.h>
6053      #endif
6054      #ifdef HAVE_NETINET_IP_ICMP_H
6055      # include <netinet/ip_icmp.h>
6056      #endif
6057      #ifdef HAVE_NETINET_UDP_H
6058      # include <netinet/udp.h>
6059      #endif
6060      #ifdef HAVE_NETINET_TCP_H
6061      # include <netinet/tcp.h>
6062      #endif
6063      #ifdef HAVE_NETINET_TCP_TIMER_H
6064      #include <netinet/tcp_timer.h>
6065      #endif
6066 "
6067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6068   cat >>confdefs.h <<_ACEOF
6069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 _ACEOF
6071
6072 fi
6073
6074 done
6075
6076
6077 for ac_header in linux/ipx.h linux/irda.h
6078 do :
6079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6081      #ifdef HAVE_ASM_TYPES_H
6082      # include <asm/types.h>
6083      #endif
6084      #ifdef HAVE_SYS_SOCKET_H
6085      # include <sys/socket.h>
6086      #endif
6087      #ifdef HAVE_LINUX_TYPES_H
6088      # include <linux/types.h>
6089      #endif
6090 "
6091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6092   cat >>confdefs.h <<_ACEOF
6093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6094 _ACEOF
6095
6096 fi
6097
6098 done
6099
6100
6101 for ac_header in mach-o/dyld_images.h
6102 do :
6103   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6104      # include <stdbool.h>
6105      #endif
6106      #ifdef HAVE_STDINT_H
6107      # include <stdint.h>
6108      #endif
6109 "
6110 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6111   cat >>confdefs.h <<_ACEOF
6112 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6113 _ACEOF
6114
6115 fi
6116
6117 done
6118
6119
6120 for ac_header in resolv.h
6121 do :
6122   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6123      #ifdef HAVE_SYS_SOCKET_H
6124      # include <sys/socket.h>
6125      #endif
6126      #ifdef HAVE_NETINET_IN_H
6127      # include <netinet/in.h>
6128      #endif
6129      #ifdef HAVE_ARPA_NAMESER_H
6130      # include <arpa/nameser.h>
6131      #endif
6132 "
6133 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6134   cat >>confdefs.h <<_ACEOF
6135 #define HAVE_RESOLV_H 1
6136 _ACEOF
6137
6138 fi
6139
6140 done
6141
6142
6143 for ac_header in ifaddrs.h
6144 do :
6145   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6146 "
6147 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6148   cat >>confdefs.h <<_ACEOF
6149 #define HAVE_IFADDRS_H 1
6150 _ACEOF
6151
6152 fi
6153
6154 done
6155
6156
6157 for ac_header in ucontext.h
6158 do :
6159   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6160 "
6161 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6162   cat >>confdefs.h <<_ACEOF
6163 #define HAVE_UCONTEXT_H 1
6164 _ACEOF
6165
6166 fi
6167
6168 done
6169
6170
6171 for ac_header in sys/thr.h
6172 do :
6173   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6174 #ifdef HAVE_UCONTEXT_H
6175 #include <ucontext.h>
6176 #endif
6177 "
6178 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6179   cat >>confdefs.h <<_ACEOF
6180 #define HAVE_SYS_THR_H 1
6181 _ACEOF
6182
6183 fi
6184
6185 done
6186
6187
6188 for ac_header in pthread_np.h
6189 do :
6190   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6191 #include <pthread.h>
6192 #endif
6193 "
6194 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6195   cat >>confdefs.h <<_ACEOF
6196 #define HAVE_PTHREAD_NP_H 1
6197 _ACEOF
6198
6199 fi
6200
6201 done
6202
6203
6204 for ac_header in linux/videodev.h
6205 do :
6206   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6207 #include <sys/time.h>
6208 #endif
6209 #include <sys/types.h>
6210 #ifdef HAVE_ASM_TYPES_H
6211 #include <asm/types.h>
6212 #endif
6213 "
6214 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6215   cat >>confdefs.h <<_ACEOF
6216 #define HAVE_LINUX_VIDEODEV_H 1
6217 _ACEOF
6218
6219 fi
6220
6221 done
6222
6223
6224 for ac_header in linux/capi.h
6225 do :
6226   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6227 "
6228 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6229   cat >>confdefs.h <<_ACEOF
6230 #define HAVE_LINUX_CAPI_H 1
6231 _ACEOF
6232
6233 fi
6234
6235 done
6236
6237
6238
6239 DLLEXT=""
6240
6241 DLLFLAGS="-D_REENTRANT"
6242
6243 LDSHARED=""
6244
6245 LDDLLFLAGS=""
6246
6247 LIBEXT="so"
6248
6249 IMPLIBEXT="def"
6250
6251 LDRPATH_INSTALL=""
6252
6253 LDRPATH_LOCAL=""
6254
6255 STATIC_IMPLIBEXT="def.a"
6256 # Extract the first word of "ldd", so it can be a program name with args.
6257 set dummy ldd; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_path_LDD+set}" = set; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   case $LDD in
6264   [\\/]* | ?:[\\/]*)
6265   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6266   ;;
6267   *)
6268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 as_dummy="/sbin:/usr/sbin:$PATH"
6270 for as_dir in $as_dummy
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6285   ;;
6286 esac
6287 fi
6288 LDD=$ac_cv_path_LDD
6289 if test -n "$LDD"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6291 $as_echo "$LDD" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297
6298
6299 case $host_os in
6300   cygwin*|mingw32*)
6301     if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$DLLTOOL"; then
6310   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 DLLTOOL=$ac_cv_prog_DLLTOOL
6330 if test -n "$DLLTOOL"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6332 $as_echo "$DLLTOOL" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_DLLTOOL"; then
6341   ac_ct_DLLTOOL=$DLLTOOL
6342   # Extract the first word of "dlltool", so it can be a program name with args.
6343 set dummy dlltool; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$ac_ct_DLLTOOL"; then
6350   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6370 if test -n "$ac_ct_DLLTOOL"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6372 $as_echo "$ac_ct_DLLTOOL" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378   if test "x$ac_ct_DLLTOOL" = x; then
6379     DLLTOOL="false"
6380   else
6381     case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387     DLLTOOL=$ac_ct_DLLTOOL
6388   fi
6389 else
6390   DLLTOOL="$ac_cv_prog_DLLTOOL"
6391 fi
6392
6393     if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$DLLWRAP"; then
6402   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 DLLWRAP=$ac_cv_prog_DLLWRAP
6422 if test -n "$DLLWRAP"; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6424 $as_echo "$DLLWRAP" >&6; }
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_DLLWRAP"; then
6433   ac_ct_DLLWRAP=$DLLWRAP
6434   # Extract the first word of "dllwrap", so it can be a program name with args.
6435 set dummy dllwrap; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_DLLWRAP"; then
6442   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449     for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456   done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6462 if test -n "$ac_ct_DLLWRAP"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6464 $as_echo "$ac_ct_DLLWRAP" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_DLLWRAP" = x; then
6471     DLLWRAP="false"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     DLLWRAP=$ac_ct_DLLWRAP
6480   fi
6481 else
6482   DLLWRAP="$ac_cv_prog_DLLWRAP"
6483 fi
6484
6485     if test "$DLLWRAP" = "false"; then
6486       LIBEXT="a"
6487     else
6488             LIBEXT="dll"
6489     fi
6490     IMPLIBEXT="a"
6491     STATIC_IMPLIBEXT="a"
6492         enable_iphlpapi=${enable_iphlpapi:-no}
6493     enable_kernel32=${enable_kernel32:-no}
6494     enable_msvcrt=${enable_msvcrt:-no}
6495     enable_ntdll=${enable_ntdll:-no}
6496     enable_ws2_32=${enable_ws2_32:-no}
6497     enable_loader=${enable_loader:-no}
6498     enable_server=${enable_server:-no}
6499         with_x=${with_x:-no}
6500     with_pthread=${with_pthread:-no}
6501     ;;
6502   darwin*|macosx*)
6503     DLLEXT=".so"
6504     LIBEXT="dylib"
6505     DLLFLAGS="$DLLFLAGS -fPIC"
6506     LDDLLFLAGS="-bundle -multiply_defined suppress"
6507     LIBWINE_LDFLAGS="-multiply_defined suppress"
6508     LDSHARED="\$(CC) -dynamiclib"
6509     STRIP="$STRIP -x"
6510     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6511         SECURITYLIB="-framework Security -framework CoreFoundation"
6512
6513     COREFOUNDATIONLIB="-framework CoreFoundation"
6514
6515     IOKITLIB="-framework IOKit -framework CoreFoundation"
6516
6517     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6518
6519     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6520
6521     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6522     then
6523                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6524
6525     fi
6526     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6527     then
6528                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6529
6530     fi
6531     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6532     then
6533         FRAMEWORK_OPENAL="-framework OpenAL"
6534
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define HAVE_OPENAL 1
6538 _ACEOF
6539
6540         ac_cv_lib_openal=yes
6541     fi
6542     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6543     then
6544         LIBOPENCL="-framework OpenCL"
6545
6546         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6547     fi
6548     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6549     then
6550         ac_save_LIBS="$LIBS"
6551         LIBS="$LIBS $IOKITLIB"
6552         for ac_func in IOHIDManagerCreate
6553 do :
6554   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6555 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6556   cat >>confdefs.h <<_ACEOF
6557 #define HAVE_IOHIDMANAGERCREATE 1
6558 _ACEOF
6559
6560 fi
6561 done
6562
6563         LIBS="$ac_save_LIBS"
6564     fi
6565     case $host_cpu in
6566       *powerpc*)
6567         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6568     esac
6569     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6570     then
6571         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6572
6573         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6574     else
6575         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6576     fi
6577         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6578     then
6579         CARBONLIB="-framework Carbon"
6580
6581         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6582     fi
6583         if test "x$enable_win16" = "xyes"
6584     then
6585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6586 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6587         if test "$cross_compiling" = yes; then :
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6589 $as_echo "cross-compiling, assuming yes" >&6; }
6590 else
6591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h.  */
6593 asm(".text\n"
6594                                             "bad:\tnop;nop\n"
6595                                             "good:\tnop;nop\n\t"
6596                                             ".globl _testfunc\n"
6597                                             "_testfunc:\tcallw good");
6598                                         extern void testfunc();
6599 int
6600 main ()
6601 {
6602 unsigned short *p = (unsigned short *)testfunc;
6603                                         return p[0] != 0xe866 || p[1] != 0xfffa
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_run "$LINENO"; then :
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6610 $as_echo "yes" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614                                        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
6615 fi
6616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6617   conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 fi
6619
6620     fi
6621     ;;
6622   *)
6623     DLLFLAGS="$DLLFLAGS -fPIC"
6624     DLLEXT=".so"
6625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6626 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6627 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   ac_wine_try_cflags_saved=$CFLAGS
6631 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h.  */
6634 void myfunc() {}
6635 _ACEOF
6636 if ac_fn_c_try_link "$LINENO"; then :
6637   ac_cv_c_dll_gnuelf="yes"
6638 else
6639   ac_cv_c_dll_gnuelf="no"
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext \
6642     conftest$ac_exeext conftest.$ac_ext
6643 CFLAGS=$ac_wine_try_cflags_saved
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6646 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6647     if test "$ac_cv_c_dll_gnuelf" = "yes"
6648     then
6649       LDSHARED="\$(CC) -shared"
6650       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6651       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6652 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6653 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   ac_wine_try_cflags_saved=$CFLAGS
6657 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h.  */
6660 int main(int argc, char **argv) { return 0; }
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6664 else
6665   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext \
6668     conftest$ac_exeext conftest.$ac_ext
6669 CFLAGS=$ac_wine_try_cflags_saved
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6672 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6673 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6674   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6675 else
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6677 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6678 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   ac_wine_try_cflags_saved=$CFLAGS
6682 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 int main(int argc, char **argv) { return 0; }
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"; then :
6688   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6689 else
6690   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext \
6693     conftest$ac_exeext conftest.$ac_ext
6694 CFLAGS=$ac_wine_try_cflags_saved
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6697 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6698 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6699   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6700 fi
6701 fi
6702
6703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6704 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6705 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   ac_wine_try_cflags_saved=$CFLAGS
6709 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712 int main(int argc, char **argv) { return 0; }
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6716 else
6717   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext \
6720     conftest$ac_exeext conftest.$ac_ext
6721 CFLAGS=$ac_wine_try_cflags_saved
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6724 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6725 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6726   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6727 fi
6728
6729       { $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
6730 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6731 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   ac_wine_try_cflags_saved=$CFLAGS
6735 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h.  */
6738 int main(int argc, char **argv) { return 0; }
6739 _ACEOF
6740 if ac_fn_c_try_link "$LINENO"; then :
6741   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6742 else
6743   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext \
6746     conftest$ac_exeext conftest.$ac_ext
6747 CFLAGS=$ac_wine_try_cflags_saved
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6750 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6751 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6752   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6753 fi
6754
6755       echo '{ global: *; };' >conftest.map
6756       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6758 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6759 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   ac_wine_try_cflags_saved=$CFLAGS
6763 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h.  */
6766 int main(int argc, char **argv) { return 0; }
6767 _ACEOF
6768 if ac_fn_c_try_link "$LINENO"; then :
6769   eval "$as_ac_var=yes"
6770 else
6771   eval "$as_ac_var=no"
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext \
6774     conftest$ac_exeext conftest.$ac_ext
6775 CFLAGS=$ac_wine_try_cflags_saved
6776 fi
6777 eval ac_res=\$$as_ac_var
6778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6781   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6782 fi
6783       rm -f conftest.map
6784
6785       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6786 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6787 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   ac_wine_try_cflags_saved=$CFLAGS
6791 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h.  */
6794 int main(int argc, char **argv) { return 0; }
6795 _ACEOF
6796 if ac_fn_c_try_link "$LINENO"; then :
6797   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6798 else
6799   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext \
6802     conftest$ac_exeext conftest.$ac_ext
6803 CFLAGS=$ac_wine_try_cflags_saved
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6806 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6807 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6808   LDEXECFLAGS="-Wl,--export-dynamic"
6809
6810 fi
6811
6812       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6814 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6815 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   ac_wine_try_cflags_saved=$CFLAGS
6819 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h.  */
6822 int main(int argc, char **argv) { return 0; }
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825   eval "$as_ac_var=yes"
6826 else
6827   eval "$as_ac_var=no"
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext \
6830     conftest$ac_exeext conftest.$ac_ext
6831 CFLAGS=$ac_wine_try_cflags_saved
6832 fi
6833 eval ac_res=\$$as_ac_var
6834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6836 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6837   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6838                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6839 else
6840   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6842 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6843 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   ac_wine_try_cflags_saved=$CFLAGS
6847 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 int main(int argc, char **argv) { return 0; }
6851 _ACEOF
6852 if ac_fn_c_try_link "$LINENO"; then :
6853   eval "$as_ac_var=yes"
6854 else
6855   eval "$as_ac_var=no"
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext \
6858     conftest$ac_exeext conftest.$ac_ext
6859 CFLAGS=$ac_wine_try_cflags_saved
6860 fi
6861 eval ac_res=\$$as_ac_var
6862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6865   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6866                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6867 fi
6868 fi
6869
6870       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6871 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6872 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   ac_wine_try_cflags_saved=$CFLAGS
6876 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879 int main(int argc, char **argv) { return 0; }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882   ac_cv_cflags__Wl___enable_new_dtags=yes
6883 else
6884   ac_cv_cflags__Wl___enable_new_dtags=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext \
6887     conftest$ac_exeext conftest.$ac_ext
6888 CFLAGS=$ac_wine_try_cflags_saved
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6891 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6892 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6893   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6894 fi
6895
6896       case $host_cpu in
6897         *i[3456789]86* | x86_64)
6898           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6900 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6901 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   ac_wine_try_cflags_saved=$CFLAGS
6905 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h.  */
6908 int main(int argc, char **argv) { return 0; }
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911   eval "$as_ac_var=yes"
6912 else
6913   eval "$as_ac_var=no"
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext \
6916     conftest$ac_exeext conftest.$ac_ext
6917 CFLAGS=$ac_wine_try_cflags_saved
6918 fi
6919 eval ac_res=\$$as_ac_var
6920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6921 $as_echo "$ac_res" >&6; }
6922 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6923   case $host_os in
6924                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6925                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6926                            esac
6927
6928 fi
6929           # Extract the first word of "prelink", so it can be a program name with args.
6930 set dummy prelink; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_path_PRELINK+set}" = set; then :
6934   $as_echo_n "(cached) " >&6
6935 else
6936   case $PRELINK in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in /sbin /usr/sbin $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6957   ;;
6958 esac
6959 fi
6960 PRELINK=$ac_cv_path_PRELINK
6961 if test -n "$PRELINK"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6963 $as_echo "$PRELINK" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969
6970           if test "x$PRELINK" = xfalse
6971           then
6972               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6973           fi
6974           ;;
6975       esac
6976
6977     else
6978       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6979 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6980 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   ac_wine_try_cflags_saved=$CFLAGS
6984 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h.  */
6987 void myfunc() {}
6988 _ACEOF
6989 if ac_fn_c_try_link "$LINENO"; then :
6990   ac_cv_c_dll_unixware="yes"
6991 else
6992   ac_cv_c_dll_unixware="no"
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext \
6995     conftest$ac_exeext conftest.$ac_ext
6996 CFLAGS=$ac_wine_try_cflags_saved
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6999 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7000       if test "$ac_cv_c_dll_unixware" = "yes"
7001       then
7002         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7003         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7004
7005       else
7006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7007 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7008 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   ac_wine_try_cflags_saved=$CFLAGS
7012 CFLAGS="$CFLAGS -shared"
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h.  */
7015 void myfunc() {}
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018   ac_cv_c_dll_hpux="yes"
7019 else
7020   ac_cv_c_dll_hpux="no"
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023     conftest$ac_exeext conftest.$ac_ext
7024 CFLAGS=$ac_wine_try_cflags_saved
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7027 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7028         if test "$ac_cv_c_dll_hpux" = "yes"
7029         then
7030           LIBEXT="sl"
7031           DLLEXT=".sl"
7032           LDDLLFLAGS="-shared -fPIC"
7033           LDSHARED="\$(CC) -shared"
7034         fi
7035       fi
7036     fi
7037     ;;
7038 esac
7039
7040 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7041 enable_winequartz_drv=${enable_winequartz_drv:-no}
7042
7043 if test "$LIBEXT" = "a"; then
7044   as_fn_error $? "could not find a way to build shared libraries.
7045 It is currently not possible to build Wine without shared library
7046 (.so) support to allow transparent switch between .so and .dll files.
7047 If you are using Linux, you will need a newer binutils.
7048 " "$LINENO" 5
7049 fi
7050
7051 CROSSTEST_DISABLE=\#
7052
7053 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7054 then
7055     case "$host_cpu" in
7056   i[3456789]86*)
7057     ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7058   x86_64)
7059     ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
7060   *)
7061     ac_prefix_list="" ;;
7062 esac
7063 for ac_prog in $ac_prefix_list
7064 do
7065   # Extract the first word of "$ac_prog", so it can be a program name with args.
7066 set dummy $ac_prog; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -n "$CROSSCC"; then
7073   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082     ac_cv_prog_CROSSCC="$ac_prog"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 CROSSCC=$ac_cv_prog_CROSSCC
7093 if test -n "$CROSSCC"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7095 $as_echo "$CROSSCC" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102   test -n "$CROSSCC" && break
7103 done
7104 test -n "$CROSSCC" || CROSSCC="false"
7105
7106     if test "$CROSSCC" != "false"
7107     then
7108         ac_save_CC="$CC"
7109         CC="$CROSSCC"
7110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7111 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7112         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h.  */
7114
7115 int
7116 main ()
7117 {
7118
7119   ;
7120   return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125 $as_echo "yes" >&6; }
7126                            set x $CROSSCC
7127                            shift
7128                            target=""
7129                            while test $# -ge 1
7130                            do
7131                                case "$1" in
7132                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7133                                esac
7134                                shift
7135                            done
7136                            if test -n "$target"
7137                            then
7138                                CROSSTEST_DISABLE=""
7139                                CROSSTARGET="$target"
7140
7141                            fi
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147         CC="$ac_save_CC"
7148     fi
7149 fi
7150
7151
7152 if test "$ac_cv_header_pthread_h" = "yes"
7153 then
7154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7155 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7156 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   ac_check_lib_save_LIBS=$LIBS
7160 LIBS="-lpthread  $LIBS"
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h.  */
7163
7164 /* Override any GCC internal prototype to avoid an error.
7165    Use char because int might match the return type of a GCC
7166    builtin and then its argument prototype would still apply.  */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 char pthread_create ();
7171 int
7172 main ()
7173 {
7174 return pthread_create ();
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180   ac_cv_lib_pthread_pthread_create=yes
7181 else
7182   ac_cv_lib_pthread_pthread_create=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext \
7185     conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7189 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7190 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7191   LIBPTHREAD="-lpthread"
7192
7193 fi
7194
7195 fi
7196 if test "x$LIBPTHREAD" = "x"; then :
7197   case "x$with_pthread" in
7198   xno) ;;
7199   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7200 Wine cannot support threads without libpthread.
7201 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7202 esac
7203 fi
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7207 $as_echo_n "checking for X... " >&6; }
7208
7209
7210 # Check whether --with-x was given.
7211 if test "${with_x+set}" = set; then :
7212   withval=$with_x;
7213 fi
7214
7215 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7216 if test "x$with_x" = xno; then
7217   # The user explicitly disabled X.
7218   have_x=disabled
7219 else
7220   case $x_includes,$x_libraries in #(
7221     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7222     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   # One or both of the vars are not set, and there is no cached value.
7226 ac_x_includes=no ac_x_libraries=no
7227 rm -f -r conftest.dir
7228 if mkdir conftest.dir; then
7229   cd conftest.dir
7230   cat >Imakefile <<'_ACEOF'
7231 incroot:
7232         @echo incroot='${INCROOT}'
7233 usrlibdir:
7234         @echo usrlibdir='${USRLIBDIR}'
7235 libdir:
7236         @echo libdir='${LIBDIR}'
7237 _ACEOF
7238   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7239     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7240     for ac_var in incroot usrlibdir libdir; do
7241       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7242     done
7243     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7244     for ac_extension in a so sl dylib la dll; do
7245       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7246          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7247         ac_im_usrlibdir=$ac_im_libdir; break
7248       fi
7249     done
7250     # Screen out bogus values from the imake configuration.  They are
7251     # bogus both because they are the default anyway, and because
7252     # using them would break gcc on systems where it needs fixed includes.
7253     case $ac_im_incroot in
7254         /usr/include) ac_x_includes= ;;
7255         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7256     esac
7257     case $ac_im_usrlibdir in
7258         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7259         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7260     esac
7261   fi
7262   cd ..
7263   rm -f -r conftest.dir
7264 fi
7265
7266 # Standard set of common directories for X headers.
7267 # Check X11 before X11Rn because it is often a symlink to the current release.
7268 ac_x_header_dirs='
7269 /usr/X11/include
7270 /usr/X11R7/include
7271 /usr/X11R6/include
7272 /usr/X11R5/include
7273 /usr/X11R4/include
7274
7275 /usr/include/X11
7276 /usr/include/X11R7
7277 /usr/include/X11R6
7278 /usr/include/X11R5
7279 /usr/include/X11R4
7280
7281 /usr/local/X11/include
7282 /usr/local/X11R7/include
7283 /usr/local/X11R6/include
7284 /usr/local/X11R5/include
7285 /usr/local/X11R4/include
7286
7287 /usr/local/include/X11
7288 /usr/local/include/X11R7
7289 /usr/local/include/X11R6
7290 /usr/local/include/X11R5
7291 /usr/local/include/X11R4
7292
7293 /usr/X386/include
7294 /usr/x386/include
7295 /usr/XFree86/include/X11
7296
7297 /usr/include
7298 /usr/local/include
7299 /usr/unsupported/include
7300 /usr/athena/include
7301 /usr/local/x11r5/include
7302 /usr/lpp/Xamples/include
7303
7304 /usr/openwin/include
7305 /usr/openwin/share/include'
7306
7307 if test "$ac_x_includes" = no; then
7308   # Guess where to find include files, by looking for Xlib.h.
7309   # First, try using that file with no special directory specified.
7310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h.  */
7312 #include <X11/Xlib.h>
7313 _ACEOF
7314 if ac_fn_c_try_cpp "$LINENO"; then :
7315   # We can compile using X headers with no special include directory.
7316 ac_x_includes=
7317 else
7318   for ac_dir in $ac_x_header_dirs; do
7319   if test -r "$ac_dir/X11/Xlib.h"; then
7320     ac_x_includes=$ac_dir
7321     break
7322   fi
7323 done
7324 fi
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326 fi # $ac_x_includes = no
7327
7328 if test "$ac_x_libraries" = no; then
7329   # Check for the libraries.
7330   # See if we find them without any special options.
7331   # Don't add to $LIBS permanently.
7332   ac_save_LIBS=$LIBS
7333   LIBS="-lX11 $LIBS"
7334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h.  */
7336 #include <X11/Xlib.h>
7337 int
7338 main ()
7339 {
7340 XrmInitialize ()
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"; then :
7346   LIBS=$ac_save_LIBS
7347 # We can link X programs with no special library path.
7348 ac_x_libraries=
7349 else
7350   LIBS=$ac_save_LIBS
7351 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7352 do
7353   # Don't even attempt the hair of trying to link an X program!
7354   for ac_extension in a so sl dylib la dll; do
7355     if test -r "$ac_dir/libX11.$ac_extension"; then
7356       ac_x_libraries=$ac_dir
7357       break 2
7358     fi
7359   done
7360 done
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext \
7363     conftest$ac_exeext conftest.$ac_ext
7364 fi # $ac_x_libraries = no
7365
7366 case $ac_x_includes,$ac_x_libraries in #(
7367   no,* | *,no | *\'*)
7368     # Didn't find X, or a directory has "'" in its name.
7369     ac_cv_have_x="have_x=no";; #(
7370   *)
7371     # Record where we found X for the cache.
7372     ac_cv_have_x="have_x=yes\
7373         ac_x_includes='$ac_x_includes'\
7374         ac_x_libraries='$ac_x_libraries'"
7375 esac
7376 fi
7377 ;; #(
7378     *) have_x=yes;;
7379   esac
7380   eval "$ac_cv_have_x"
7381 fi # $with_x != no
7382
7383 if test "$have_x" != yes; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7385 $as_echo "$have_x" >&6; }
7386   no_x=yes
7387 else
7388   # If each of the values was on the command line, it overrides each guess.
7389   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7390   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7391   # Update the cache value to reflect the command line values.
7392   ac_cv_have_x="have_x=yes\
7393         ac_x_includes='$x_includes'\
7394         ac_x_libraries='$x_libraries'"
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7396 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7397 fi
7398
7399 if test "$no_x" = yes; then
7400   # Not all programs may use this symbol, but it does not hurt to define it.
7401
7402 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7403
7404   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7405 else
7406   if test -n "$x_includes"; then
7407     X_CFLAGS="$X_CFLAGS -I$x_includes"
7408   fi
7409
7410   # It would also be nice to do this for all -L options, not just this one.
7411   if test -n "$x_libraries"; then
7412     X_LIBS="$X_LIBS -L$x_libraries"
7413     # For Solaris; some versions of Sun CC require a space after -R and
7414     # others require no space.  Words are not sufficient . . . .
7415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7416 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7417     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7418     ac_xsave_c_werror_flag=$ac_c_werror_flag
7419     ac_c_werror_flag=yes
7420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h.  */
7422
7423 int
7424 main ()
7425 {
7426
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 if ac_fn_c_try_link "$LINENO"; then :
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434        X_LIBS="$X_LIBS -R$x_libraries"
7435 else
7436   LIBS="$ac_xsave_LIBS -R $x_libraries"
7437        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440 int
7441 main ()
7442 {
7443
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 if ac_fn_c_try_link "$LINENO"; then :
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450 $as_echo "yes" >&6; }
7451           X_LIBS="$X_LIBS -R $x_libraries"
7452 else
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7454 $as_echo "neither works" >&6; }
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext \
7457     conftest$ac_exeext conftest.$ac_ext
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext \
7460     conftest$ac_exeext conftest.$ac_ext
7461     ac_c_werror_flag=$ac_xsave_c_werror_flag
7462     LIBS=$ac_xsave_LIBS
7463   fi
7464
7465   # Check for system-dependent libraries X programs must link with.
7466   # Do this before checking for the system-independent R6 libraries
7467   # (-lICE), since we may need -lsocket or whatever for X linking.
7468
7469   if test "$ISC" = yes; then
7470     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7471   else
7472     # Martyn Johnson says this is needed for Ultrix, if the X
7473     # libraries were built with DECnet support.  And Karl Berry says
7474     # the Alpha needs dnet_stub (dnet does not exist).
7475     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7476     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h.  */
7478
7479 /* Override any GCC internal prototype to avoid an error.
7480    Use char because int might match the return type of a GCC
7481    builtin and then its argument prototype would still apply.  */
7482 #ifdef __cplusplus
7483 extern "C"
7484 #endif
7485 char XOpenDisplay ();
7486 int
7487 main ()
7488 {
7489 return XOpenDisplay ();
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7498 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7499 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   ac_check_lib_save_LIBS=$LIBS
7503 LIBS="-ldnet  $LIBS"
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h.  */
7506
7507 /* Override any GCC internal prototype to avoid an error.
7508    Use char because int might match the return type of a GCC
7509    builtin and then its argument prototype would still apply.  */
7510 #ifdef __cplusplus
7511 extern "C"
7512 #endif
7513 char dnet_ntoa ();
7514 int
7515 main ()
7516 {
7517 return dnet_ntoa ();
7518   ;
7519   return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"; then :
7523   ac_cv_lib_dnet_dnet_ntoa=yes
7524 else
7525   ac_cv_lib_dnet_dnet_ntoa=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext \
7528     conftest$ac_exeext conftest.$ac_ext
7529 LIBS=$ac_check_lib_save_LIBS
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7532 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7533 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7534   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7535 fi
7536
7537     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7538       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7539 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7540 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-ldnet_stub  $LIBS"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548 /* Override any GCC internal prototype to avoid an error.
7549    Use char because int might match the return type of a GCC
7550    builtin and then its argument prototype would still apply.  */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char dnet_ntoa ();
7555 int
7556 main ()
7557 {
7558 return dnet_ntoa ();
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7565 else
7566   ac_cv_lib_dnet_stub_dnet_ntoa=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext \
7569     conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7573 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7574 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7575   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7576 fi
7577
7578     fi
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext \
7581     conftest$ac_exeext conftest.$ac_ext
7582     LIBS="$ac_xsave_LIBS"
7583
7584     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7585     # to get the SysV transport functions.
7586     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7587     # needs -lnsl.
7588     # The nsl library prevents programs from opening the X display
7589     # on Irix 5.2, according to T.E. Dickey.
7590     # The functions gethostbyname, getservbyname, and inet_addr are
7591     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7592     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7593 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7594
7595 fi
7596
7597     if test $ac_cv_func_gethostbyname = no; then
7598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7599 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7600 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   ac_check_lib_save_LIBS=$LIBS
7604 LIBS="-lnsl  $LIBS"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h.  */
7607
7608 /* Override any GCC internal prototype to avoid an error.
7609    Use char because int might match the return type of a GCC
7610    builtin and then its argument prototype would still apply.  */
7611 #ifdef __cplusplus
7612 extern "C"
7613 #endif
7614 char gethostbyname ();
7615 int
7616 main ()
7617 {
7618 return gethostbyname ();
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_link "$LINENO"; then :
7624   ac_cv_lib_nsl_gethostbyname=yes
7625 else
7626   ac_cv_lib_nsl_gethostbyname=no
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext \
7629     conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7633 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7634 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7635   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7636 fi
7637
7638       if test $ac_cv_lib_nsl_gethostbyname = no; then
7639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7640 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7641 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lbsd  $LIBS"
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648
7649 /* Override any GCC internal prototype to avoid an error.
7650    Use char because int might match the return type of a GCC
7651    builtin and then its argument prototype would still apply.  */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char gethostbyname ();
7656 int
7657 main ()
7658 {
7659 return gethostbyname ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665   ac_cv_lib_bsd_gethostbyname=yes
7666 else
7667   ac_cv_lib_bsd_gethostbyname=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670     conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7674 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7675 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7677 fi
7678
7679       fi
7680     fi
7681
7682     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7683     # socket/setsockopt and other routines are undefined under SCO ODT
7684     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7685     # on later versions), says Simon Leinen: it contains gethostby*
7686     # variants that don't use the name server (or something).  -lsocket
7687     # must be given before -lnsl if both are needed.  We assume that
7688     # if connect needs -lnsl, so does gethostbyname.
7689     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7690 if test "x$ac_cv_func_connect" = x""yes; then :
7691
7692 fi
7693
7694     if test $ac_cv_func_connect = no; then
7695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7696 $as_echo_n "checking for connect in -lsocket... " >&6; }
7697 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   ac_check_lib_save_LIBS=$LIBS
7701 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h.  */
7704
7705 /* Override any GCC internal prototype to avoid an error.
7706    Use char because int might match the return type of a GCC
7707    builtin and then its argument prototype would still apply.  */
7708 #ifdef __cplusplus
7709 extern "C"
7710 #endif
7711 char connect ();
7712 int
7713 main ()
7714 {
7715 return connect ();
7716   ;
7717   return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"; then :
7721   ac_cv_lib_socket_connect=yes
7722 else
7723   ac_cv_lib_socket_connect=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726     conftest$ac_exeext conftest.$ac_ext
7727 LIBS=$ac_check_lib_save_LIBS
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7730 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7731 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7732   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7733 fi
7734
7735     fi
7736
7737     # Guillermo Gomez says -lposix is necessary on A/UX.
7738     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7739 if test "x$ac_cv_func_remove" = x""yes; then :
7740
7741 fi
7742
7743     if test $ac_cv_func_remove = no; then
7744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7745 $as_echo_n "checking for remove in -lposix... " >&6; }
7746 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lposix  $LIBS"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753
7754 /* Override any GCC internal prototype to avoid an error.
7755    Use char because int might match the return type of a GCC
7756    builtin and then its argument prototype would still apply.  */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 char remove ();
7761 int
7762 main ()
7763 {
7764 return remove ();
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770   ac_cv_lib_posix_remove=yes
7771 else
7772   ac_cv_lib_posix_remove=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775     conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7779 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7780 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7781   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7782 fi
7783
7784     fi
7785
7786     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7787     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7788 if test "x$ac_cv_func_shmat" = x""yes; then :
7789
7790 fi
7791
7792     if test $ac_cv_func_shmat = no; then
7793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7794 $as_echo_n "checking for shmat in -lipc... " >&6; }
7795 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lipc  $LIBS"
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802
7803 /* Override any GCC internal prototype to avoid an error.
7804    Use char because int might match the return type of a GCC
7805    builtin and then its argument prototype would still apply.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 char shmat ();
7810 int
7811 main ()
7812 {
7813 return shmat ();
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819   ac_cv_lib_ipc_shmat=yes
7820 else
7821   ac_cv_lib_ipc_shmat=no
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext \
7824     conftest$ac_exeext conftest.$ac_ext
7825 LIBS=$ac_check_lib_save_LIBS
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7828 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7829 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7830   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7831 fi
7832
7833     fi
7834   fi
7835
7836   # Check for libraries that X11R6 Xt/Xaw programs need.
7837   ac_save_LDFLAGS=$LDFLAGS
7838   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7839   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7840   # check for ICE first), but we must link in the order -lSM -lICE or
7841   # we get undefined symbols.  So assume we have SM if we have ICE.
7842   # These have to be linked with before -lX11, unlike the other
7843   # libraries we check for below, so use a different variable.
7844   # John Interrante, Karl Berry
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7846 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7847 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   ac_check_lib_save_LIBS=$LIBS
7851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h.  */
7854
7855 /* Override any GCC internal prototype to avoid an error.
7856    Use char because int might match the return type of a GCC
7857    builtin and then its argument prototype would still apply.  */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 char IceConnectionNumber ();
7862 int
7863 main ()
7864 {
7865 return IceConnectionNumber ();
7866   ;
7867   return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871   ac_cv_lib_ICE_IceConnectionNumber=yes
7872 else
7873   ac_cv_lib_ICE_IceConnectionNumber=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext \
7876     conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7880 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7881 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7882   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7883 fi
7884
7885   LDFLAGS=$ac_save_LDFLAGS
7886
7887 fi
7888
7889
7890 if test "$have_x" = "yes"
7891 then
7892     XLIB="-lX11"
7893     ac_save_CPPFLAGS="$CPPFLAGS"
7894     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7895
7896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7897 $as_echo_n "checking for -lX11... " >&6; }
7898 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   ac_check_soname_save_LIBS=$LIBS
7902 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h.  */
7905
7906 /* Override any GCC internal prototype to avoid an error.
7907    Use char because int might match the return type of a GCC
7908    builtin and then its argument prototype would still apply.  */
7909 #ifdef __cplusplus
7910 extern "C"
7911 #endif
7912 char XCreateWindow ();
7913 int
7914 main ()
7915 {
7916 return XCreateWindow ();
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"; then :
7922   case "$LIBEXT" in
7923     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7924     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'` ;;
7925     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7926   esac
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929     conftest$ac_exeext conftest.$ac_ext
7930   LIBS=$ac_check_soname_save_LIBS
7931 fi
7932 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7934 $as_echo "not found" >&6; }
7935
7936 else
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7938 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7942 _ACEOF
7943
7944
7945 fi
7946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7947 $as_echo_n "checking for -lXext... " >&6; }
7948 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   ac_check_soname_save_LIBS=$LIBS
7952 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955
7956 /* Override any GCC internal prototype to avoid an error.
7957    Use char because int might match the return type of a GCC
7958    builtin and then its argument prototype would still apply.  */
7959 #ifdef __cplusplus
7960 extern "C"
7961 #endif
7962 char XextCreateExtension ();
7963 int
7964 main ()
7965 {
7966 return XextCreateExtension ();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972   case "$LIBEXT" in
7973     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7974     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'` ;;
7975     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7976   esac
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext \
7979     conftest$ac_exeext conftest.$ac_ext
7980   LIBS=$ac_check_soname_save_LIBS
7981 fi
7982 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7984 $as_echo "not found" >&6; }
7985
7986 else
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7988 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7989
7990 cat >>confdefs.h <<_ACEOF
7991 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7992 _ACEOF
7993
7994        XLIB="-lXext $XLIB"
7995 fi
7996
7997         for ac_header in X11/Xlib.h \
7998                       X11/XKBlib.h \
7999                       X11/Xutil.h \
8000                       X11/Xcursor/Xcursor.h \
8001                       X11/extensions/shape.h \
8002                       X11/extensions/XInput.h \
8003                       X11/extensions/XShm.h \
8004                       X11/extensions/Xcomposite.h \
8005                       X11/extensions/Xinerama.h \
8006                       X11/extensions/Xrandr.h \
8007                       X11/extensions/Xrender.h \
8008                       X11/extensions/xf86vmode.h \
8009                       X11/extensions/xf86vmproto.h
8010 do :
8011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8013 # include <X11/Xlib.h>
8014 #endif
8015 #ifdef HAVE_X11_XUTIL_H
8016 # include <X11/Xutil.h>
8017 #endif
8018 "
8019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8020   cat >>confdefs.h <<_ACEOF
8021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8022 _ACEOF
8023
8024 fi
8025
8026 done
8027
8028
8029                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8030         then
8031               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8032 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8033 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   ac_check_lib_save_LIBS=$LIBS
8037 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h.  */
8040
8041 /* Override any GCC internal prototype to avoid an error.
8042    Use char because int might match the return type of a GCC
8043    builtin and then its argument prototype would still apply.  */
8044 #ifdef __cplusplus
8045 extern "C"
8046 #endif
8047 char XkbQueryExtension ();
8048 int
8049 main ()
8050 {
8051 return XkbQueryExtension ();
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057   ac_cv_lib_X11_XkbQueryExtension=yes
8058 else
8059   ac_cv_lib_X11_XkbQueryExtension=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext \
8062     conftest$ac_exeext conftest.$ac_ext
8063 LIBS=$ac_check_lib_save_LIBS
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8066 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8067 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8068
8069 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8070
8071 fi
8072
8073         fi
8074
8075                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8076         then
8077             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8078 $as_echo_n "checking for -lXcursor... " >&6; }
8079 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   ac_check_soname_save_LIBS=$LIBS
8083 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h.  */
8086
8087 /* Override any GCC internal prototype to avoid an error.
8088    Use char because int might match the return type of a GCC
8089    builtin and then its argument prototype would still apply.  */
8090 #ifdef __cplusplus
8091 extern "C"
8092 #endif
8093 char XcursorImageLoadCursor ();
8094 int
8095 main ()
8096 {
8097 return XcursorImageLoadCursor ();
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_link "$LINENO"; then :
8103   case "$LIBEXT" in
8104     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8105     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'` ;;
8106     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8107   esac
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext \
8110     conftest$ac_exeext conftest.$ac_ext
8111   LIBS=$ac_check_soname_save_LIBS
8112 fi
8113 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8115 $as_echo "not found" >&6; }
8116
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8119 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8120
8121 cat >>confdefs.h <<_ACEOF
8122 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8123 _ACEOF
8124
8125
8126 fi
8127         fi
8128         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8129   case "x$with_xcursor" in
8130   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8131   xno) ;;
8132   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8133 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8134 esac
8135 fi
8136
8137                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8138         then
8139             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8140 $as_echo_n "checking for -lXi... " >&6; }
8141 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   ac_check_soname_save_LIBS=$LIBS
8145 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h.  */
8148
8149 /* Override any GCC internal prototype to avoid an error.
8150    Use char because int might match the return type of a GCC
8151    builtin and then its argument prototype would still apply.  */
8152 #ifdef __cplusplus
8153 extern "C"
8154 #endif
8155 char XOpenDevice ();
8156 int
8157 main ()
8158 {
8159 return XOpenDevice ();
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"; then :
8165   case "$LIBEXT" in
8166     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8167     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'` ;;
8168     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8169   esac
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext \
8172     conftest$ac_exeext conftest.$ac_ext
8173   LIBS=$ac_check_soname_save_LIBS
8174 fi
8175 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8177 $as_echo "not found" >&6; }
8178
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8181 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8182
8183 cat >>confdefs.h <<_ACEOF
8184 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8185 _ACEOF
8186
8187
8188 fi
8189         fi
8190         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8191   case "x$with_xinput" in
8192   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8193   xno) ;;
8194   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8195 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8196 esac
8197 fi
8198
8199                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8200         then
8201               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8202 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8203 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   ac_check_lib_save_LIBS=$LIBS
8207 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h.  */
8210
8211 /* Override any GCC internal prototype to avoid an error.
8212    Use char because int might match the return type of a GCC
8213    builtin and then its argument prototype would still apply.  */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char XShmQueryExtension ();
8218 int
8219 main ()
8220 {
8221 return XShmQueryExtension ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227   ac_cv_lib_Xext_XShmQueryExtension=yes
8228 else
8229   ac_cv_lib_Xext_XShmQueryExtension=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext \
8232     conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8236 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8237 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8238
8239 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8240
8241 fi
8242
8243         fi
8244         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8245   case "x$with_xshm" in
8246   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8247   xno) ;;
8248   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8249 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8250 esac
8251 fi
8252
8253                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8254         then
8255               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8256 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8257 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   ac_check_lib_save_LIBS=$LIBS
8261 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264
8265 /* Override any GCC internal prototype to avoid an error.
8266    Use char because int might match the return type of a GCC
8267    builtin and then its argument prototype would still apply.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char XShapeQueryExtension ();
8272 int
8273 main ()
8274 {
8275 return XShapeQueryExtension ();
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281   ac_cv_lib_Xext_XShapeQueryExtension=yes
8282 else
8283   ac_cv_lib_Xext_XShapeQueryExtension=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext \
8286     conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8290 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8291 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8292
8293 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8294
8295 fi
8296
8297         fi
8298         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8299   case "x$with_xshape" in
8300   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8301   xno) ;;
8302   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8303 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8304 esac
8305 fi
8306
8307                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8308         then
8309             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8310 $as_echo_n "checking for -lXxf86vm... " >&6; }
8311 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   ac_check_soname_save_LIBS=$LIBS
8315 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h.  */
8318
8319 /* Override any GCC internal prototype to avoid an error.
8320    Use char because int might match the return type of a GCC
8321    builtin and then its argument prototype would still apply.  */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 char XF86VidModeQueryExtension ();
8326 int
8327 main ()
8328 {
8329 return XF86VidModeQueryExtension ();
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_link "$LINENO"; then :
8335   case "$LIBEXT" in
8336     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8337     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'` ;;
8338     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8339   esac
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342     conftest$ac_exeext conftest.$ac_ext
8343   LIBS=$ac_check_soname_save_LIBS
8344 fi
8345 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8347 $as_echo "not found" >&6; }
8348
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8351 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8352
8353 cat >>confdefs.h <<_ACEOF
8354 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8355 _ACEOF
8356
8357
8358 fi
8359         fi
8360         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8361   case "x$with_xxf86vm" in
8362   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8363   xno) ;;
8364   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8365 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8366 esac
8367 fi
8368
8369                 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"
8370         then
8371             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8372 $as_echo_n "checking for -lXrender... " >&6; }
8373 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   ac_check_soname_save_LIBS=$LIBS
8377 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h.  */
8380
8381 /* Override any GCC internal prototype to avoid an error.
8382    Use char because int might match the return type of a GCC
8383    builtin and then its argument prototype would still apply.  */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 char XRenderQueryExtension ();
8388 int
8389 main ()
8390 {
8391 return XRenderQueryExtension ();
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"; then :
8397   case "$LIBEXT" in
8398     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8399     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'` ;;
8400     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8401   esac
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext \
8404     conftest$ac_exeext conftest.$ac_ext
8405   LIBS=$ac_check_soname_save_LIBS
8406 fi
8407 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8409 $as_echo "not found" >&6; }
8410
8411 else
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8413 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8414
8415 cat >>confdefs.h <<_ACEOF
8416 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8417 _ACEOF
8418
8419        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8420 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8421 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h.  */
8428
8429 /* Override any GCC internal prototype to avoid an error.
8430    Use char because int might match the return type of a GCC
8431    builtin and then its argument prototype would still apply.  */
8432 #ifdef __cplusplus
8433 extern "C"
8434 #endif
8435 char XRenderSetPictureTransform ();
8436 int
8437 main ()
8438 {
8439 return XRenderSetPictureTransform ();
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8446 else
8447   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450     conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8454 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8455 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8456
8457 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8458
8459 fi
8460
8461 fi
8462
8463         fi
8464         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8465   case "x$with_xrender" in
8466   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8467   xno) ;;
8468   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8469 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8470 esac
8471 fi
8472
8473                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8474         then
8475                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h.  */
8477 #include <X11/Xlib.h>
8478 #include <X11/extensions/Xrandr.h>
8479 int
8480 main ()
8481 {
8482 static typeof(XRRSetScreenConfigAndRate) * func;
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"; then :
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8489 $as_echo_n "checking for -lXrandr... " >&6; }
8490 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   ac_check_soname_save_LIBS=$LIBS
8494 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h.  */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499    Use char because int might match the return type of a GCC
8500    builtin and then its argument prototype would still apply.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char XRRQueryExtension ();
8505 int
8506 main ()
8507 {
8508 return XRRQueryExtension ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514   case "$LIBEXT" in
8515     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8516     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'` ;;
8517     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8518   esac
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521     conftest$ac_exeext conftest.$ac_ext
8522   LIBS=$ac_check_soname_save_LIBS
8523 fi
8524 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8526 $as_echo "not found" >&6; }
8527
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8530 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8531
8532 cat >>confdefs.h <<_ACEOF
8533 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8534 _ACEOF
8535
8536
8537 fi
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540         fi
8541         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8542   case "x$with_xrandr" in
8543   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8544   xno) ;;
8545   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8546 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8547 esac
8548 fi
8549
8550                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8551         then
8552                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h.  */
8554 #include <X11/Xlib.h>
8555 #include <X11/extensions/Xinerama.h>
8556 int
8557 main ()
8558 {
8559 static typeof(XineramaQueryScreens) * func;
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8566 $as_echo_n "checking for -lXinerama... " >&6; }
8567 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   ac_check_soname_save_LIBS=$LIBS
8571 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h.  */
8574
8575 /* Override any GCC internal prototype to avoid an error.
8576    Use char because int might match the return type of a GCC
8577    builtin and then its argument prototype would still apply.  */
8578 #ifdef __cplusplus
8579 extern "C"
8580 #endif
8581 char XineramaQueryScreens ();
8582 int
8583 main ()
8584 {
8585 return XineramaQueryScreens ();
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_link "$LINENO"; then :
8591   case "$LIBEXT" in
8592     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8593     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'` ;;
8594     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8595   esac
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext \
8598     conftest$ac_exeext conftest.$ac_ext
8599   LIBS=$ac_check_soname_save_LIBS
8600 fi
8601 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8603 $as_echo "not found" >&6; }
8604
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8607 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8611 _ACEOF
8612
8613
8614 fi
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617         fi
8618         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8619   case "x$with_xinerama" in
8620   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8621   xno) ;;
8622   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8623 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8624 esac
8625 fi
8626
8627                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8628         then
8629             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8630 $as_echo_n "checking for -lXcomposite... " >&6; }
8631 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   ac_check_soname_save_LIBS=$LIBS
8635 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638
8639 /* Override any GCC internal prototype to avoid an error.
8640    Use char because int might match the return type of a GCC
8641    builtin and then its argument prototype would still apply.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 char XCompositeRedirectWindow ();
8646 int
8647 main ()
8648 {
8649 return XCompositeRedirectWindow ();
8650   ;
8651   return 0;
8652 }
8653 _ACEOF
8654 if ac_fn_c_try_link "$LINENO"; then :
8655   case "$LIBEXT" in
8656     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8657     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'` ;;
8658     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8659   esac
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext \
8662     conftest$ac_exeext conftest.$ac_ext
8663   LIBS=$ac_check_soname_save_LIBS
8664 fi
8665 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8667 $as_echo "not found" >&6; }
8668
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8671 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8672
8673 cat >>confdefs.h <<_ACEOF
8674 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8675 _ACEOF
8676
8677
8678 fi
8679         fi
8680         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8681   case "x$with_xcomposite" in
8682   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8683   xno) ;;
8684   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8685 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8686 esac
8687 fi
8688
8689                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8690 #include <X11/Xlib.h>
8691 #endif
8692 "
8693 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define HAVE_XICCALLBACK_CALLBACK 1
8697 _ACEOF
8698
8699
8700 fi
8701
8702
8703
8704         opengl_msg=""
8705     if test "x$with_opengl" != "xno"
8706     then
8707         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8708 do :
8709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8711 # include <GL/glx.h>
8712 #endif
8713 "
8714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8715   cat >>confdefs.h <<_ACEOF
8716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717 _ACEOF
8718
8719 fi
8720
8721 done
8722
8723         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8724         then
8725                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8726 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8727 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h.  */
8732 #include <GL/gl.h>
8733 int
8734 main ()
8735 {
8736 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742   wine_cv_opengl_header_version_OK="yes"
8743 else
8744   wine_cv_opengl_header_version_OK="no"
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8749 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8750
8751             if test "$wine_cv_opengl_header_version_OK" = "yes"
8752             then
8753                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8754 $as_echo_n "checking for -lGL... " >&6; }
8755 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   ac_check_soname_save_LIBS=$LIBS
8759 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762
8763 /* Override any GCC internal prototype to avoid an error.
8764    Use char because int might match the return type of a GCC
8765    builtin and then its argument prototype would still apply.  */
8766 #ifdef __cplusplus
8767 extern "C"
8768 #endif
8769 char glXCreateContext ();
8770 int
8771 main ()
8772 {
8773 return glXCreateContext ();
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_c_try_link "$LINENO"; then :
8779   case "$LIBEXT" in
8780     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8781     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'` ;;
8782     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8783   esac
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786     conftest$ac_exeext conftest.$ac_ext
8787   LIBS=$ac_check_soname_save_LIBS
8788 fi
8789 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8791 $as_echo "not found" >&6; }
8792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8793 $as_echo_n "checking for -lGL... " >&6; }
8794 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   ac_check_soname_save_LIBS=$LIBS
8798 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"
8799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801
8802 /* Override any GCC internal prototype to avoid an error.
8803    Use char because int might match the return type of a GCC
8804    builtin and then its argument prototype would still apply.  */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char glXCreateContext ();
8809 int
8810 main ()
8811 {
8812 return glXCreateContext ();
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818   case "$LIBEXT" in
8819     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8820     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'` ;;
8821     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8822   esac
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825     conftest$ac_exeext conftest.$ac_ext
8826   LIBS=$ac_check_soname_save_LIBS
8827 fi
8828 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8830 $as_echo "not found" >&6; }
8831        if test -f /usr/X11R6/lib/libGL.a
8832                                     then
8833                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8834 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8835                                     else
8836                                         opengl_msg="No OpenGL library found on this system."
8837                                     fi
8838 else
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8840 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8841
8842 cat >>confdefs.h <<_ACEOF
8843 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8844 _ACEOF
8845
8846        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"
8847
8848 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8849
8850 fi
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8853 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8854
8855 cat >>confdefs.h <<_ACEOF
8856 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8857 _ACEOF
8858
8859        OPENGL_LIBS="-lGL"
8860
8861 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8862
8863 fi
8864                  if test "$ac_cv_header_GL_glu_h" = "yes"
8865                  then
8866                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8867 $as_echo_n "checking for -lGLU... " >&6; }
8868 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   ac_check_soname_save_LIBS=$LIBS
8872 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h.  */
8875
8876 /* Override any GCC internal prototype to avoid an error.
8877    Use char because int might match the return type of a GCC
8878    builtin and then its argument prototype would still apply.  */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 char gluLookAt ();
8883 int
8884 main ()
8885 {
8886 return gluLookAt ();
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 if ac_fn_c_try_link "$LINENO"; then :
8892   case "$LIBEXT" in
8893     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8894     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'` ;;
8895     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8896   esac
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext \
8899     conftest$ac_exeext conftest.$ac_ext
8900   LIBS=$ac_check_soname_save_LIBS
8901 fi
8902 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8904 $as_echo "not found" >&6; }
8905
8906 else
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8908 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8912 _ACEOF
8913
8914
8915 fi
8916                  fi
8917                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8918   case "x$with_glu" in
8919   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8920   xno) ;;
8921   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8922 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8923 esac
8924 fi
8925              else
8926                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8927              fi
8928          else
8929              opengl_msg="OpenGL development headers not found."
8930          fi
8931          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8932          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8933     else
8934          enable_opengl32=${enable_opengl32:-no}
8935          enable_glu32=${enable_glu32:-no}
8936     fi
8937     if test -n "$opengl_msg"; then :
8938   case "x$with_opengl" in
8939   x)   as_fn_append wine_warnings "|$opengl_msg
8940 OpenGL and Direct3D won't be supported." ;;
8941   xno) ;;
8942   *)   as_fn_error $? "$opengl_msg
8943 OpenGL and Direct3D won't be supported.
8944 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
8945 esac
8946 fi
8947
8948         NASLIBS=""
8949
8950     for ac_header in audio/audiolib.h
8951 do :
8952   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8953 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8954   cat >>confdefs.h <<_ACEOF
8955 #define HAVE_AUDIO_AUDIOLIB_H 1
8956 _ACEOF
8957  for ac_header in audio/soundlib.h
8958 do :
8959   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8960 "
8961 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8962   cat >>confdefs.h <<_ACEOF
8963 #define HAVE_AUDIO_SOUNDLIB_H 1
8964 _ACEOF
8965
8966 fi
8967
8968 done
8969
8970           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8971 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8972 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h.  */
8979
8980 /* Override any GCC internal prototype to avoid an error.
8981    Use char because int might match the return type of a GCC
8982    builtin and then its argument prototype would still apply.  */
8983 #ifdef __cplusplus
8984 extern "C"
8985 #endif
8986 char AuCreateFlow ();
8987 int
8988 main ()
8989 {
8990 return AuCreateFlow ();
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996   ac_cv_lib_audio_AuCreateFlow=yes
8997 else
8998   ac_cv_lib_audio_AuCreateFlow=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001     conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9005 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9006 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9007
9008 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9009
9010                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9011 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9012 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lXau $X_LIBS $LIBS"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019
9020 /* Override any GCC internal prototype to avoid an error.
9021    Use char because int might match the return type of a GCC
9022    builtin and then its argument prototype would still apply.  */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char XauGetBestAuthByAddr ();
9027 int
9028 main ()
9029 {
9030 return XauGetBestAuthByAddr ();
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"; then :
9036   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9037 else
9038   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext \
9041     conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9045 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9046 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9047   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9048 else
9049   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9050 fi
9051
9052
9053 fi
9054
9055 fi
9056
9057 done
9058
9059
9060     CPPFLAGS="$ac_save_CPPFLAGS"
9061 else
9062     XLIB=""
9063     X_CFLAGS=""
9064     X_LIBS=""
9065     enable_winex11_drv=${enable_winex11_drv:-no}
9066     enable_opengl32=${enable_opengl32:-no}
9067     enable_glu32=${enable_glu32:-no}
9068 fi
9069 if test "x$XLIB" = "x"; then :
9070   case "x$with_x" in
9071   xno) ;;
9072   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9073 without X support, which probably isn't what you want. You will need
9074 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9075 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9076 esac
9077 fi
9078
9079 if test "$ac_cv_header_CL_cl_h" = "yes"
9080 then
9081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9082 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9083 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lOpenCL  $LIBS"
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h.  */
9090
9091 /* Override any GCC internal prototype to avoid an error.
9092    Use char because int might match the return type of a GCC
9093    builtin and then its argument prototype would still apply.  */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 char clGetPlatformInfo ();
9098 int
9099 main ()
9100 {
9101 return clGetPlatformInfo ();
9102   ;
9103   return 0;
9104 }
9105 _ACEOF
9106 if ac_fn_c_try_link "$LINENO"; then :
9107   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9108 else
9109   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext \
9112     conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9116 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9117 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9118   LIBOPENCL="-lOpenCL"
9119
9120 fi
9121
9122 fi
9123 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9124   case "x$with_opencl" in
9125   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9126   xno) ;;
9127   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9128 This is an error since --with-opencl was requested." "$LINENO" 5  ;;
9129 esac
9130 fi
9131 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9132
9133
9134 XML2LIBS=""
9135
9136 XML2INCL=""
9137
9138 XSLTINCL=""
9139
9140 if test "x$with_xml" != "xno"
9141 then
9142     ac_save_CPPFLAGS="$CPPFLAGS"
9143     if test "$PKG_CONFIG" != "false"
9144     then
9145         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9146         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9147     else
9148         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9149         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9150     fi
9151     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9152     for ac_header in libxml/parser.h
9153 do :
9154   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9155 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9156   cat >>confdefs.h <<_ACEOF
9157 #define HAVE_LIBXML_PARSER_H 1
9158 _ACEOF
9159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9160 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9161 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-lxml2 $ac_xml_libs $LIBS"
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h.  */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170    Use char because int might match the return type of a GCC
9171    builtin and then its argument prototype would still apply.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char xmlParseMemory ();
9176 int
9177 main ()
9178 {
9179 return xmlParseMemory ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185   ac_cv_lib_xml2_xmlParseMemory=yes
9186 else
9187   ac_cv_lib_xml2_xmlParseMemory=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190     conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9194 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9195 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9196
9197 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9198
9199                  XML2LIBS="$ac_xml_libs"
9200                  XML2INCL="$ac_xml_cflags"
9201 fi
9202
9203              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9204 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9205 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9206   $as_echo_n "(cached) " >&6
9207 else
9208   ac_check_lib_save_LIBS=$LIBS
9209 LIBS="-lxml2 $ac_xml_libs $LIBS"
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h.  */
9212
9213 /* Override any GCC internal prototype to avoid an error.
9214    Use char because int might match the return type of a GCC
9215    builtin and then its argument prototype would still apply.  */
9216 #ifdef __cplusplus
9217 extern "C"
9218 #endif
9219 char xmlReadMemory ();
9220 int
9221 main ()
9222 {
9223 return xmlReadMemory ();
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"; then :
9229   ac_cv_lib_xml2_xmlReadMemory=yes
9230 else
9231   ac_cv_lib_xml2_xmlReadMemory=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext \
9234     conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9238 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9239 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9240
9241 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9242
9243 fi
9244
9245              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9246 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9247 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9248   $as_echo_n "(cached) " >&6
9249 else
9250   ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-lxml2 $ac_xml_libs $LIBS"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h.  */
9254
9255 /* Override any GCC internal prototype to avoid an error.
9256    Use char because int might match the return type of a GCC
9257    builtin and then its argument prototype would still apply.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char xmlNewDocPI ();
9262 int
9263 main ()
9264 {
9265 return xmlNewDocPI ();
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271   ac_cv_lib_xml2_xmlNewDocPI=yes
9272 else
9273   ac_cv_lib_xml2_xmlNewDocPI=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext \
9276     conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9280 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9281 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9282
9283 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9284
9285 fi
9286
9287              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9288 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9289 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   ac_check_lib_save_LIBS=$LIBS
9293 LIBS="-lxml2 $ac_xml_libs $LIBS"
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h.  */
9296
9297 /* Override any GCC internal prototype to avoid an error.
9298    Use char because int might match the return type of a GCC
9299    builtin and then its argument prototype would still apply.  */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 char xmlSchemaSetParserStructuredErrors ();
9304 int
9305 main ()
9306 {
9307 return xmlSchemaSetParserStructuredErrors ();
9308   ;
9309   return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_link "$LINENO"; then :
9313   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9314 else
9315   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext \
9318     conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_lib_save_LIBS
9320 fi
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9322 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9323 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9324
9325 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9326
9327 fi
9328
9329              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9330 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9331 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   ac_check_lib_save_LIBS=$LIBS
9335 LIBS="-lxml2 $ac_xml_libs $LIBS"
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h.  */
9338
9339 /* Override any GCC internal prototype to avoid an error.
9340    Use char because int might match the return type of a GCC
9341    builtin and then its argument prototype would still apply.  */
9342 #ifdef __cplusplus
9343 extern "C"
9344 #endif
9345 char xmlSchemaSetValidStructuredErrors ();
9346 int
9347 main ()
9348 {
9349 return xmlSchemaSetValidStructuredErrors ();
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 if ac_fn_c_try_link "$LINENO"; then :
9355   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9356 else
9357   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext \
9360     conftest$ac_exeext conftest.$ac_ext
9361 LIBS=$ac_check_lib_save_LIBS
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9364 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9365 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9366
9367 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9368
9369 fi
9370
9371              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9372 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9373 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   ac_check_lib_save_LIBS=$LIBS
9377 LIBS="-lxml2 $ac_xml_libs $LIBS"
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380
9381 /* Override any GCC internal prototype to avoid an error.
9382    Use char because int might match the return type of a GCC
9383    builtin and then its argument prototype would still apply.  */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 char xmlFirstElementChild ();
9388 int
9389 main ()
9390 {
9391 return xmlFirstElementChild ();
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397   ac_cv_lib_xml2_xmlFirstElementChild=yes
9398 else
9399   ac_cv_lib_xml2_xmlFirstElementChild=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext \
9402     conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9406 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9407 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9408
9409 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9410
9411 fi
9412
9413              ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9414 "
9415 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9416
9417 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9418
9419 fi
9420
9421
9422 fi
9423
9424 done
9425
9426     CPPFLAGS="$ac_save_CPPFLAGS"
9427 fi
9428 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9429   case "x$with_xml" in
9430   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9431   xno) ;;
9432   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9433 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9434 esac
9435 fi
9436
9437 if test "x$with_xslt" != "xno"
9438 then
9439     if test "$PKG_CONFIG" != "false"
9440     then
9441         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9442         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9443     else
9444         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9445         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9446     fi
9447     ac_save_CPPFLAGS="$CPPFLAGS"
9448     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9449     for ac_header in libxslt/pattern.h libxslt/transform.h
9450 do :
9451   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9453 # include <libxslt/pattern.h>
9454 #endif
9455 "
9456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9457   cat >>confdefs.h <<_ACEOF
9458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9459 _ACEOF
9460
9461 fi
9462
9463 done
9464
9465     CPPFLAGS="$ac_save_CPPFLAGS"
9466     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9467     then
9468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9469 $as_echo_n "checking for -lxslt... " >&6; }
9470 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   ac_check_soname_save_LIBS=$LIBS
9474 LIBS="-lxslt $ac_xslt_libs $LIBS"
9475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h.  */
9477
9478 /* Override any GCC internal prototype to avoid an error.
9479    Use char because int might match the return type of a GCC
9480    builtin and then its argument prototype would still apply.  */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 char xsltCompilePattern ();
9485 int
9486 main ()
9487 {
9488 return xsltCompilePattern ();
9489   ;
9490   return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494   case "$LIBEXT" in
9495     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9496     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'` ;;
9497     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9498   esac
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext \
9501     conftest$ac_exeext conftest.$ac_ext
9502   LIBS=$ac_check_soname_save_LIBS
9503 fi
9504 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9506 $as_echo "not found" >&6; }
9507
9508 else
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9510 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9511
9512 cat >>confdefs.h <<_ACEOF
9513 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9514 _ACEOF
9515
9516        XSLTINCL="$ac_xslt_cflags"
9517 fi
9518     fi
9519 fi
9520 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9521   case "x$with_xslt" in
9522   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9523   xno) ;;
9524   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9525 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9526 esac
9527 fi
9528
9529 HALINCL=""
9530
9531 if test "x$with_hal" != "xno"
9532 then
9533     ac_save_CPPFLAGS="$CPPFLAGS"
9534     if test "$PKG_CONFIG" != "false"
9535     then
9536         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9537         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9538         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9539     fi
9540     for ac_header in dbus/dbus.h hal/libhal.h
9541 do :
9542   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9545   cat >>confdefs.h <<_ACEOF
9546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9547 _ACEOF
9548
9549 fi
9550
9551 done
9552
9553     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9554     then
9555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9556 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9557 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   ac_check_lib_save_LIBS=$LIBS
9561 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h.  */
9564
9565 /* Override any GCC internal prototype to avoid an error.
9566    Use char because int might match the return type of a GCC
9567    builtin and then its argument prototype would still apply.  */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 char dbus_connection_close ();
9572 int
9573 main ()
9574 {
9575 return dbus_connection_close ();
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581   ac_cv_lib_dbus_1_dbus_connection_close=yes
9582 else
9583   ac_cv_lib_dbus_1_dbus_connection_close=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586     conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_lib_save_LIBS
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9590 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9591 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9593 $as_echo_n "checking for -lhal... " >&6; }
9594 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9595   $as_echo_n "(cached) " >&6
9596 else
9597   ac_check_soname_save_LIBS=$LIBS
9598 LIBS="-lhal $ac_hal_libs $LIBS"
9599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h.  */
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603    Use char because int might match the return type of a GCC
9604    builtin and then its argument prototype would still apply.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 char libhal_ctx_new ();
9609 int
9610 main ()
9611 {
9612 return libhal_ctx_new ();
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 if ac_fn_c_try_link "$LINENO"; then :
9618   case "$LIBEXT" in
9619     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9620     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'` ;;
9621     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9622   esac
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625     conftest$ac_exeext conftest.$ac_ext
9626   LIBS=$ac_check_soname_save_LIBS
9627 fi
9628 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9630 $as_echo "not found" >&6; }
9631
9632 else
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9634 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9635
9636 cat >>confdefs.h <<_ACEOF
9637 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9638 _ACEOF
9639
9640        HALINCL="$ac_hal_cflags"
9641 fi
9642 fi
9643
9644     fi
9645     CPPFLAGS="$ac_save_CPPFLAGS"
9646 fi
9647 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9648   case "x$with_hal" in
9649   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9650   xno) ;;
9651   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9652 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9653 esac
9654 fi
9655
9656 if test "x$with_gnutls" != "xno"
9657 then
9658     ac_save_CPPFLAGS="$CPPFLAGS"
9659     if test "$PKG_CONFIG" != "false"
9660     then
9661         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9662         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9663         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9664     fi
9665     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9666 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h.  */
9669 #include <gnutls/gnutls.h>
9670 int
9671 main ()
9672 {
9673 typeof(gnutls_mac_get_key_size) *pfunc;
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9680 $as_echo_n "checking for -lgnutls... " >&6; }
9681 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   ac_check_soname_save_LIBS=$LIBS
9685 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h.  */
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690    Use char because int might match the return type of a GCC
9691    builtin and then its argument prototype would still apply.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char gnutls_global_init ();
9696 int
9697 main ()
9698 {
9699 return gnutls_global_init ();
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705   case "$LIBEXT" in
9706     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9707     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'` ;;
9708     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9709   esac
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712     conftest$ac_exeext conftest.$ac_ext
9713   LIBS=$ac_check_soname_save_LIBS
9714 fi
9715 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717 $as_echo "not found" >&6; }
9718
9719 else
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9721 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9722
9723 cat >>confdefs.h <<_ACEOF
9724 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9725 _ACEOF
9726
9727        GNUTLSINCL="$ac_gnutls_cflags"
9728
9729 fi
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 fi
9733
9734
9735     CPPFLAGS="$ac_save_CPPFLAGS"
9736 fi
9737 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9738   case "x$with_gnutls" in
9739   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9740   xno) ;;
9741   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9742 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9743 esac
9744 fi
9745
9746 CURSESLIBS=""
9747 if test "$ac_cv_header_ncurses_h" = "yes"
9748 then
9749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9750 $as_echo_n "checking for -lncurses... " >&6; }
9751 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9752   $as_echo_n "(cached) " >&6
9753 else
9754   ac_check_soname_save_LIBS=$LIBS
9755 LIBS="-lncurses  $LIBS"
9756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h.  */
9758
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char waddch ();
9766 int
9767 main ()
9768 {
9769 return waddch ();
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775   case "$LIBEXT" in
9776     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9777     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'` ;;
9778     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9779   esac
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782     conftest$ac_exeext conftest.$ac_ext
9783   LIBS=$ac_check_soname_save_LIBS
9784 fi
9785 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9787 $as_echo "not found" >&6; }
9788
9789 else
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9791 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9792
9793 cat >>confdefs.h <<_ACEOF
9794 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9795 _ACEOF
9796
9797        CURSESLIBS="-lncurses"
9798 fi
9799 elif test "$ac_cv_header_curses_h" = "yes"
9800 then
9801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9802 $as_echo_n "checking for -lcurses... " >&6; }
9803 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9804   $as_echo_n "(cached) " >&6
9805 else
9806   ac_check_soname_save_LIBS=$LIBS
9807 LIBS="-lcurses  $LIBS"
9808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h.  */
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812    Use char because int might match the return type of a GCC
9813    builtin and then its argument prototype would still apply.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char waddch ();
9818 int
9819 main ()
9820 {
9821 return waddch ();
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827   case "$LIBEXT" in
9828     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9829     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'` ;;
9830     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9831   esac
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834     conftest$ac_exeext conftest.$ac_ext
9835   LIBS=$ac_check_soname_save_LIBS
9836 fi
9837 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9839 $as_echo "not found" >&6; }
9840
9841 else
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9843 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9844
9845 cat >>confdefs.h <<_ACEOF
9846 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9847 _ACEOF
9848
9849        CURSESLIBS="-lcurses"
9850 fi
9851 fi
9852 ac_save_LIBS="$LIBS"
9853 LIBS="$LIBS $CURSESLIBS"
9854 for ac_func in mousemask
9855 do :
9856   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9857 if test "x$ac_cv_func_mousemask" = x""yes; then :
9858   cat >>confdefs.h <<_ACEOF
9859 #define HAVE_MOUSEMASK 1
9860 _ACEOF
9861
9862 fi
9863 done
9864
9865 LIBS="$ac_save_LIBS"
9866 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9867   case "x$with_curses" in
9868   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9869   xno) ;;
9870   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9871 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9872 esac
9873 fi
9874
9875 if test "x$with_sane" != "xno"
9876 then
9877     ac_save_CPPFLAGS="$CPPFLAGS"
9878     # Extract the first word of "sane-config", so it can be a program name with args.
9879 set dummy sane-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   if test -n "$sane_devel"; then
9886   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9887 else
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9890 do
9891   IFS=$as_save_IFS
9892   test -z "$as_dir" && as_dir=.
9893     for ac_exec_ext in '' $ac_executable_extensions; do
9894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895     ac_cv_prog_sane_devel="sane-config"
9896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897     break 2
9898   fi
9899 done
9900   done
9901 IFS=$as_save_IFS
9902
9903   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9904 fi
9905 fi
9906 sane_devel=$ac_cv_prog_sane_devel
9907 if test -n "$sane_devel"; then
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9909 $as_echo "$sane_devel" >&6; }
9910 else
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9913 fi
9914
9915
9916     if test "$sane_devel" != "no"
9917     then
9918         ac_sane_incl="`$sane_devel --cflags`"
9919         ac_sane_libs="`$sane_devel --ldflags`"
9920         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9921     fi
9922     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9923 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9925 $as_echo_n "checking for -lsane... " >&6; }
9926 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   ac_check_soname_save_LIBS=$LIBS
9930 LIBS="-lsane $ac_sane_libs $LIBS"
9931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char sane_init ();
9941 int
9942 main ()
9943 {
9944 return sane_init ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950   case "$LIBEXT" in
9951     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9952     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'` ;;
9953     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9954   esac
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957     conftest$ac_exeext conftest.$ac_ext
9958   LIBS=$ac_check_soname_save_LIBS
9959 fi
9960 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9962 $as_echo "not found" >&6; }
9963
9964 else
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9966 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9967
9968 cat >>confdefs.h <<_ACEOF
9969 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9970 _ACEOF
9971
9972        SANEINCL="$ac_sane_incl"
9973
9974 fi
9975 fi
9976
9977
9978     CPPFLAGS="$ac_save_CPPFLAGS"
9979 fi
9980 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9981   case "x$with_sane" in
9982   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9983   xno) ;;
9984   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9985 This is an error since --with-sane was requested." "$LINENO" 5  ;;
9986 esac
9987 fi
9988
9989 if test "x$with_v4l" != "xno"
9990 then
9991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9992 $as_echo_n "checking for -lv4l1... " >&6; }
9993 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   ac_check_soname_save_LIBS=$LIBS
9997 LIBS="-lv4l1  $LIBS"
9998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h.  */
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002    Use char because int might match the return type of a GCC
10003    builtin and then its argument prototype would still apply.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char v4l1_open ();
10008 int
10009 main ()
10010 {
10011 return v4l1_open ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017   case "$LIBEXT" in
10018     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10019     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'` ;;
10020     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10021   esac
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext \
10024     conftest$ac_exeext conftest.$ac_ext
10025   LIBS=$ac_check_soname_save_LIBS
10026 fi
10027 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10029 $as_echo "not found" >&6; }
10030
10031 else
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10033 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10034
10035 cat >>confdefs.h <<_ACEOF
10036 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10037 _ACEOF
10038
10039
10040 fi
10041 fi
10042 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10043   case "x$with_v4l" in
10044   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10045   xno) ;;
10046   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10047 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
10048 esac
10049 fi
10050
10051 if test "x$with_gphoto" != "xno"
10052 then
10053     ac_save_CPPFLAGS="$CPPFLAGS"
10054     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10055 set dummy gphoto2-config; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   if test -n "$gphoto2_devel"; then
10062   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071     ac_cv_prog_gphoto2_devel="gphoto2-config"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078
10079   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10080 fi
10081 fi
10082 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10083 if test -n "$gphoto2_devel"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10085 $as_echo "$gphoto2_devel" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091
10092     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10093 set dummy gphoto2-port-config; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   if test -n "$gphoto2port_devel"; then
10100   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105   IFS=$as_save_IFS
10106   test -z "$as_dir" && as_dir=.
10107     for ac_exec_ext in '' $ac_executable_extensions; do
10108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111     break 2
10112   fi
10113 done
10114   done
10115 IFS=$as_save_IFS
10116
10117   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10118 fi
10119 fi
10120 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10121 if test -n "$gphoto2port_devel"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10123 $as_echo "$gphoto2port_devel" >&6; }
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10129
10130     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10131     then
10132         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10133         ac_gphoto2_libs=""
10134         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10135         do
10136             case "$i" in
10137             -L/usr/lib|-L/usr/lib64) ;;
10138             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10139             esac
10140         done
10141         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10142     fi
10143     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10144     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10147 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10148 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h.  */
10155
10156 /* Override any GCC internal prototype to avoid an error.
10157    Use char because int might match the return type of a GCC
10158    builtin and then its argument prototype would still apply.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char gp_camera_new ();
10163 int
10164 main ()
10165 {
10166 return gp_camera_new ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"; then :
10172   ac_cv_lib_gphoto2_gp_camera_new=yes
10173 else
10174   ac_cv_lib_gphoto2_gp_camera_new=no
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext \
10177     conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10181 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10182 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10183
10184 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10185
10186                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10187
10188                                    GPHOTO2INCL="$ac_gphoto2_incl"
10189
10190 fi
10191
10192 fi
10193
10194
10195     CPPFLAGS="$ac_save_CPPFLAGS"
10196 fi
10197 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10198   case "x$with_gphoto" in
10199   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10200   xno) ;;
10201   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10202 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
10203 esac
10204 fi
10205
10206
10207 if test "$ac_cv_header_resolv_h" = "yes"
10208 then
10209     ac_save_LIBS="$LIBS"
10210     for lib in '' -lresolv
10211     do
10212       LIBS="$lib $ac_save_LIBS"
10213       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h.  */
10215 #ifdef HAVE_NETINET_IN_H
10216 #include <netinet/in.h>
10217 #endif
10218 #include <resolv.h>
10219 int
10220 main ()
10221 {
10222 res_query("foo",ns_c_in,0,0,0);
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"; then :
10228
10229 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10230
10231          RESOLVLIBS="$lib"
10232
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235     conftest$ac_exeext conftest.$ac_ext
10236       if test "${RESOLVLIBS+set}" = set; then
10237         break
10238       fi
10239     done
10240     LIBS="$ac_save_LIBS"
10241 fi
10242
10243 LCMSLIBS=""
10244
10245 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10246 then
10247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10248 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10249 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-llcms  $LIBS"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h.  */
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char cmsOpenProfileFromFile ();
10264 int
10265 main ()
10266 {
10267 return cmsOpenProfileFromFile ();
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10274 else
10275   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext \
10278     conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10282 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10283 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10284
10285 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10286
10287          LCMSLIBS="-llcms"
10288 fi
10289
10290 fi
10291 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10292   case "x$with_cms" in
10293   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10294   xno) ;;
10295   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10296 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10297 esac
10298 fi
10299
10300 if test "x$with_freetype" != "xno"
10301 then
10302     for ac_prog in freetype-config freetype2-config
10303 do
10304   # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   if test -n "$ft_devel"; then
10312   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317   IFS=$as_save_IFS
10318   test -z "$as_dir" && as_dir=.
10319     for ac_exec_ext in '' $ac_executable_extensions; do
10320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321     ac_cv_prog_ft_devel="$ac_prog"
10322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323     break 2
10324   fi
10325 done
10326   done
10327 IFS=$as_save_IFS
10328
10329 fi
10330 fi
10331 ft_devel=$ac_cv_prog_ft_devel
10332 if test -n "$ft_devel"; then
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10334 $as_echo "$ft_devel" >&6; }
10335 else
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10338 fi
10339
10340
10341   test -n "$ft_devel" && break
10342 done
10343 test -n "$ft_devel" || ft_devel="no"
10344
10345     if test "$ft_devel" != "no"
10346     then
10347         ac_freetype_incl=`$ft_devel --cflags`
10348         ac_freetype_libs=`$ft_devel --libs`
10349     fi
10350     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10352 $as_echo_n "checking for -lfreetype... " >&6; }
10353 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10354   $as_echo_n "(cached) " >&6
10355 else
10356   ac_check_soname_save_LIBS=$LIBS
10357 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h.  */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362    Use char because int might match the return type of a GCC
10363    builtin and then its argument prototype would still apply.  */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char FT_Init_FreeType ();
10368 int
10369 main ()
10370 {
10371 return FT_Init_FreeType ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377   case "$LIBEXT" in
10378     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10379     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'` ;;
10380     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10381   esac
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext \
10384     conftest$ac_exeext conftest.$ac_ext
10385   LIBS=$ac_check_soname_save_LIBS
10386 fi
10387 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10389 $as_echo "not found" >&6; }
10390        ft_lib=no
10391 else
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10393 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10397 _ACEOF
10398
10399        ft_lib=yes
10400 fi
10401     if test "$ft_lib" = "yes"
10402     then
10403         ac_save_CPPFLAGS="$CPPFLAGS"
10404         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10405         for ac_header in ft2build.h \
10406                          freetype/freetype.h \
10407                          freetype/ftglyph.h \
10408                          freetype/fttypes.h \
10409                          freetype/tttables.h \
10410                          freetype/ftsnames.h \
10411                          freetype/ttnameid.h \
10412                          freetype/ftoutln.h \
10413                          freetype/ftwinfnt.h \
10414                          freetype/ftmodapi.h \
10415                          freetype/ftlcdfil.h \
10416                          freetype/internal/sfnt.h
10417 do :
10418   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10419 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10420                           # include <ft2build.h>
10421                           #endif
10422 "
10423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424   cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 _ACEOF
10427
10428 fi
10429
10430 done
10431
10432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h.  */
10434 #include <ft2build.h>
10435                     #include <freetype/fttrigon.h>
10436 _ACEOF
10437 if ac_fn_c_try_cpp "$LINENO"; then :
10438
10439 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10440
10441                     wine_cv_fttrigon=yes
10442 else
10443   wine_cv_fttrigon=no
10444 fi
10445 rm -f conftest.err conftest.i conftest.$ac_ext
10446         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10447 "
10448 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10449
10450 cat >>confdefs.h <<_ACEOF
10451 #define HAVE_FT_TRUETYPEENGINETYPE 1
10452 _ACEOF
10453
10454
10455 fi
10456
10457         ac_save_CFLAGS="$CFLAGS"
10458         CFLAGS="$CFLAGS $ac_freetype_libs"
10459         for ac_func in FT_Load_Sfnt_Table
10460 do :
10461   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10462 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10463   cat >>confdefs.h <<_ACEOF
10464 #define HAVE_FT_LOAD_SFNT_TABLE 1
10465 _ACEOF
10466
10467 fi
10468 done
10469
10470         CFLAGS="$ac_save_CFLAGS"
10471         CPPFLAGS="$ac_save_CPPFLAGS"
10472                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10473         then
10474
10475 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10476
10477             FREETYPELIBS="$ac_freetype_libs"
10478
10479             FREETYPEINCL="$ac_freetype_incl"
10480
10481         fi
10482     fi
10483 fi
10484 if test "x$FREETYPELIBS" = "x"; then :
10485   case "x$with_freetype" in
10486   xno) ;;
10487   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10488 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10489 esac
10490 fi
10491 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10492
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10494 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10495 if test "${ac_cv_c_ppdev+set}" = set; then :
10496   $as_echo_n "(cached) " >&6
10497 else
10498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h.  */
10500 #ifdef HAVE_SYS_IOCTL_H
10501 # include <sys/ioctl.h>
10502 #endif
10503 #include <linux/ppdev.h>
10504 int
10505 main ()
10506 {
10507 ioctl (1,PPCLAIM,0)
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513   ac_cv_c_ppdev="yes"
10514 else
10515   ac_cv_c_ppdev="no"
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10520 $as_echo "$ac_cv_c_ppdev" >&6; }
10521 if test "$ac_cv_c_ppdev" = "yes"
10522 then
10523
10524 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10525
10526 fi
10527
10528 ac_wine_check_funcs_save_LIBS="$LIBS"
10529 LIBS="$LIBS $LIBPTHREAD"
10530 for ac_func in \
10531         pthread_attr_get_np \
10532         pthread_getattr_np \
10533         pthread_get_stackaddr_np \
10534         pthread_get_stacksize_np
10535 do :
10536   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10538 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10539   cat >>confdefs.h <<_ACEOF
10540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10541 _ACEOF
10542
10543 fi
10544 done
10545
10546 LIBS="$ac_wine_check_funcs_save_LIBS"
10547
10548 if test "$ac_cv_header_zlib_h" = "yes"
10549 then
10550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10551 $as_echo_n "checking for inflate in -lz... " >&6; }
10552 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-lz  $LIBS"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h.  */
10559
10560 /* Override any GCC internal prototype to avoid an error.
10561    Use char because int might match the return type of a GCC
10562    builtin and then its argument prototype would still apply.  */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 char inflate ();
10567 int
10568 main ()
10569 {
10570 return inflate ();
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576   ac_cv_lib_z_inflate=yes
10577 else
10578   ac_cv_lib_z_inflate=no
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581     conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10585 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10586 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10587
10588 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10589
10590                             ZLIB="-lz"
10591
10592 fi
10593
10594 fi
10595
10596 if test "x$enable_tools" != xno
10597 then
10598     if test "$ac_cv_header_gettext_po_h" = "yes"
10599     then
10600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10601 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10602 if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
10603   $as_echo_n "(cached) " >&6
10604 else
10605   ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lgettextpo  $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h.  */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611    Use char because int might match the return type of a GCC
10612    builtin and then its argument prototype would still apply.  */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char po_message_msgctxt ();
10617 int
10618 main ()
10619 {
10620 return po_message_msgctxt ();
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10627 else
10628   ac_cv_lib_gettextpo_po_message_msgctxt=no
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631     conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10635 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10636 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
10637
10638 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10639
10640                       LIBGETTEXTPO="-lgettextpo"
10641
10642 fi
10643
10644     fi
10645     if test "x$LIBGETTEXTPO" = "x"; then :
10646   case "x$with_gettextpo" in
10647   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10648   xno) ;;
10649   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10650 This is an error since --with-gettextpo was requested." "$LINENO" 5  ;;
10651 esac
10652 fi
10653 fi
10654
10655 if test "x$with_esd" != xno
10656 then
10657     save_CFLAGS="$CFLAGS"
10658     # Extract the first word of "esd-config", so it can be a program name with args.
10659 set dummy esd-config; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   case $ESDCONFIG in
10666   [\\/]* | ?:[\\/]*)
10667   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10668   ;;
10669   *)
10670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673   IFS=$as_save_IFS
10674   test -z "$as_dir" && as_dir=.
10675     for ac_exec_ext in '' $ac_executable_extensions; do
10676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10677     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679     break 2
10680   fi
10681 done
10682   done
10683 IFS=$as_save_IFS
10684
10685   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10686   ;;
10687 esac
10688 fi
10689 ESDCONFIG=$ac_cv_path_ESDCONFIG
10690 if test -n "$ESDCONFIG"; then
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10692 $as_echo "$ESDCONFIG" >&6; }
10693 else
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 fi
10697
10698
10699     if test "x$ESDCONFIG" != "xno"
10700     then
10701         ac_esd_incl=""
10702         for i in `$ESDCONFIG --cflags`
10703         do
10704             case "$i" in
10705                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10706             esac
10707         done
10708         ac_esd_libs=`$ESDCONFIG --libs`
10709         CFLAGS="$CFLAGS $ac_esd_incl"
10710     fi
10711     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10712     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10713 if test "x$ac_cv_header_esd_h" = x""yes; then :
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10715 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10716 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10717   $as_echo_n "(cached) " >&6
10718 else
10719   ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lesd $ac_esd_libs $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h.  */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725    Use char because int might match the return type of a GCC
10726    builtin and then its argument prototype would still apply.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char esd_open_sound ();
10731 int
10732 main ()
10733 {
10734 return esd_open_sound ();
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740   ac_cv_lib_esd_esd_open_sound=yes
10741 else
10742   ac_cv_lib_esd_esd_open_sound=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745     conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10749 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10750 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10751   ESDINCL="$ac_esd_incl"
10752
10753              ESDLIBS="$ac_esd_libs"
10754
10755
10756 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10757
10758 fi
10759
10760 fi
10761
10762
10763     CFLAGS="$save_CFLAGS"
10764 fi
10765
10766 if test "x$with_gstreamer" != "xno"
10767 then
10768     ac_save_CPPFLAGS="$CPPFLAGS"
10769     if test "$PKG_CONFIG" != "false"; then
10770         ac_gst_incl=""
10771         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10772         do
10773             case "$i" in
10774                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10775             esac
10776         done
10777         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10778         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10779         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10780 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10781   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10782 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10784 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10785 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   ac_check_lib_save_LIBS=$LIBS
10789 LIBS="-lgstreamer-0.10  $LIBS"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793 /* Override any GCC internal prototype to avoid an error.
10794    Use char because int might match the return type of a GCC
10795    builtin and then its argument prototype would still apply.  */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 char gst_pad_get_caps_reffed ();
10800 int
10801 main ()
10802 {
10803 return gst_pad_get_caps_reffed ();
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"; then :
10809   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10810 else
10811   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10818 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10819 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10821 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10822 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831    Use char because int might match the return type of a GCC
10832    builtin and then its argument prototype would still apply.  */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char gst_app_buffer_new ();
10837 int
10838 main ()
10839 {
10840 return gst_app_buffer_new ();
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_link "$LINENO"; then :
10846   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10847 else
10848   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851     conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10855 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10856 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10857   GSTREAMER_LIBS="$ac_gst_libs"
10858
10859                      GSTREAMER_INCL="$ac_gst_incl"
10860
10861 fi
10862
10863 fi
10864
10865 fi
10866
10867
10868 fi
10869
10870
10871     fi
10872     CPPFLAGS="$ac_save_CPPFLAGS"
10873 fi
10874 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10875   case "x$with_gstreamer" in
10876   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10877   xno) ;;
10878   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10879 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10880 esac
10881 fi
10882 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10883
10884 ALSALIBS=""
10885
10886 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10887 then
10888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10889 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10890 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
10891   $as_echo_n "(cached) " >&6
10892 else
10893   ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-lasound  $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899    Use char because int might match the return type of a GCC
10900    builtin and then its argument prototype would still apply.  */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char snd_pcm_hw_params_get_access_mask ();
10905 int
10906 main ()
10907 {
10908 return snd_pcm_hw_params_get_access_mask ();
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10915 else
10916   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919     conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10923 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10924 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
10925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h.  */
10927 #ifdef HAVE_ALSA_ASOUNDLIB_H
10928 #include <alsa/asoundlib.h>
10929 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10930 #include <sys/asoundlib.h>
10931 #endif
10932 int
10933 main ()
10934 {
10935 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_compile "$LINENO"; then :
10941
10942 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10943
10944                          ALSALIBS="-lasound"
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 fi
10948
10949 fi
10950
10951
10952 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10953 then
10954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10955 $as_echo_n "checking for -lcapi20... " >&6; }
10956 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   ac_check_soname_save_LIBS=$LIBS
10960 LIBS="-lcapi20  $LIBS"
10961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h.  */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char capi20_register ();
10971 int
10972 main ()
10973 {
10974 return capi20_register ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980   case "$LIBEXT" in
10981     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10982     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'` ;;
10983     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10984   esac
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987     conftest$ac_exeext conftest.$ac_ext
10988   LIBS=$ac_check_soname_save_LIBS
10989 fi
10990 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10992 $as_echo "not found" >&6; }
10993
10994 else
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10996 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10997
10998 cat >>confdefs.h <<_ACEOF
10999 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11000 _ACEOF
11001
11002
11003 fi
11004 fi
11005 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11006   case "x$with_capi" in
11007   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11008   xno) ;;
11009   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11010 This is an error since --with-capi was requested." "$LINENO" 5  ;;
11011 esac
11012 fi
11013
11014 CUPSINCL=""
11015
11016 if test "x$with_cups" != "xno"
11017 then
11018     ac_save_CPPFLAGS="$CPPFLAGS"
11019     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11020     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11021     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11022     for ac_header in cups/cups.h
11023 do :
11024   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11025 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11026   cat >>confdefs.h <<_ACEOF
11027 #define HAVE_CUPS_CUPS_H 1
11028 _ACEOF
11029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11030 $as_echo_n "checking for -lcups... " >&6; }
11031 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_soname_save_LIBS=$LIBS
11035 LIBS="-lcups $ac_cups_libs $LIBS"
11036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char cupsGetDefault ();
11046 int
11047 main ()
11048 {
11049 return cupsGetDefault ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055   case "$LIBEXT" in
11056     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11057     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'` ;;
11058     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11059   esac
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext \
11062     conftest$ac_exeext conftest.$ac_ext
11063   LIBS=$ac_check_soname_save_LIBS
11064 fi
11065 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11067 $as_echo "not found" >&6; }
11068
11069 else
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11071 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11072
11073 cat >>confdefs.h <<_ACEOF
11074 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11075 _ACEOF
11076
11077        CUPSINCL="$ac_cups_cflags"
11078 fi
11079 fi
11080
11081 done
11082
11083     CPPFLAGS="$ac_save_CPPFLAGS"
11084 fi
11085 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11086   case "x$with_cups" in
11087   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11088   xno) ;;
11089   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11090 This is an error since --with-cups was requested." "$LINENO" 5  ;;
11091 esac
11092 fi
11093
11094 if test "$ac_cv_header_jack_jack_h" = "yes"
11095 then
11096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11097 $as_echo_n "checking for -ljack... " >&6; }
11098 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   ac_check_soname_save_LIBS=$LIBS
11102 LIBS="-ljack  $LIBS"
11103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h.  */
11105
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 jack_client_new ();
11113 int
11114 main ()
11115 {
11116 return jack_client_new ();
11117   ;
11118   return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122   case "$LIBEXT" in
11123     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11124     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'` ;;
11125     *) 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'` ;;
11126   esac
11127 fi
11128 rm -f core conftest.err conftest.$ac_objext \
11129     conftest$ac_exeext conftest.$ac_ext
11130   LIBS=$ac_check_soname_save_LIBS
11131 fi
11132 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11134 $as_echo "not found" >&6; }
11135
11136 else
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11138 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11139
11140 cat >>confdefs.h <<_ACEOF
11141 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11142 _ACEOF
11143
11144
11145 fi
11146 fi
11147
11148 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11149 then
11150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11151 $as_echo_n "checking for -lfontconfig... " >&6; }
11152 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   ac_check_soname_save_LIBS=$LIBS
11156 LIBS="-lfontconfig  $LIBS"
11157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char FcInit ();
11167 int
11168 main ()
11169 {
11170 return FcInit ();
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176   case "$LIBEXT" in
11177     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11178     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'` ;;
11179     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11180   esac
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183     conftest$ac_exeext conftest.$ac_ext
11184   LIBS=$ac_check_soname_save_LIBS
11185 fi
11186 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11188 $as_echo "not found" >&6; }
11189
11190 else
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11192 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11193
11194 cat >>confdefs.h <<_ACEOF
11195 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11196 _ACEOF
11197
11198
11199 fi
11200 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11201 then
11202         ac_save_CPPFLAGS="$CPPFLAGS"
11203     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11204     $as_unset ac_cv_header_fontconfig_fontconfig_h
11205     for ac_header in fontconfig/fontconfig.h
11206 do :
11207   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11208 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11209   cat >>confdefs.h <<_ACEOF
11210 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11211 _ACEOF
11212
11213 fi
11214
11215 done
11216
11217     CPPFLAGS="$ac_save_CPPFLAGS"
11218     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11219     then
11220         FONTCONFIGINCL="$X_CFLAGS"
11221
11222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11223 $as_echo_n "checking for -lfontconfig... " >&6; }
11224 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11225   $as_echo_n "(cached) " >&6
11226 else
11227   ac_check_soname_save_LIBS=$LIBS
11228 LIBS="-lfontconfig $X_LIBS $LIBS"
11229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h.  */
11231
11232 /* Override any GCC internal prototype to avoid an error.
11233    Use char because int might match the return type of a GCC
11234    builtin and then its argument prototype would still apply.  */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char FcInit ();
11239 int
11240 main ()
11241 {
11242 return FcInit ();
11243   ;
11244   return 0;
11245 }
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248   case "$LIBEXT" in
11249     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11250     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'` ;;
11251     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11252   esac
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext \
11255     conftest$ac_exeext conftest.$ac_ext
11256   LIBS=$ac_check_soname_save_LIBS
11257 fi
11258 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11260 $as_echo "not found" >&6; }
11261
11262 else
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11264 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11265
11266 cat >>confdefs.h <<_ACEOF
11267 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11268 _ACEOF
11269
11270
11271 fi
11272     fi
11273 fi
11274 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11275   case "x$with_fontconfig" in
11276   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11277   xno) ;;
11278   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11279 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11280 esac
11281 fi
11282
11283 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11284 then
11285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11286 $as_echo_n "checking for -lssl... " >&6; }
11287 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11288   $as_echo_n "(cached) " >&6
11289 else
11290   ac_check_soname_save_LIBS=$LIBS
11291 LIBS="-lssl  $LIBS"
11292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h.  */
11294
11295 /* Override any GCC internal prototype to avoid an error.
11296    Use char because int might match the return type of a GCC
11297    builtin and then its argument prototype would still apply.  */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char SSL_library_init ();
11302 int
11303 main ()
11304 {
11305 return SSL_library_init ();
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311   case "$LIBEXT" in
11312     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11313     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'` ;;
11314     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11315   esac
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext \
11318     conftest$ac_exeext conftest.$ac_ext
11319   LIBS=$ac_check_soname_save_LIBS
11320 fi
11321 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11323 $as_echo "not found" >&6; }
11324
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11327 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11328
11329 cat >>confdefs.h <<_ACEOF
11330 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11331 _ACEOF
11332
11333
11334 fi
11335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11336 $as_echo_n "checking for -lcrypto... " >&6; }
11337 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11338   $as_echo_n "(cached) " >&6
11339 else
11340   ac_check_soname_save_LIBS=$LIBS
11341 LIBS="-lcrypto  $LIBS"
11342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h.  */
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346    Use char because int might match the return type of a GCC
11347    builtin and then its argument prototype would still apply.  */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char BIO_new_socket ();
11352 int
11353 main ()
11354 {
11355 return BIO_new_socket ();
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361   case "$LIBEXT" in
11362     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11363     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'` ;;
11364     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11365   esac
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext \
11368     conftest$ac_exeext conftest.$ac_ext
11369   LIBS=$ac_check_soname_save_LIBS
11370 fi
11371 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11373 $as_echo "not found" >&6; }
11374
11375 else
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11377 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11381 _ACEOF
11382
11383
11384 fi
11385 fi
11386 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11387   case "x$with_openssl" in
11388   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11389   xno) ;;
11390   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11391 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11392 esac
11393 fi
11394
11395 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11396 then
11397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11398 $as_echo_n "checking for -lgsm... " >&6; }
11399 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   ac_check_soname_save_LIBS=$LIBS
11403 LIBS="-lgsm  $LIBS"
11404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408    Use char because int might match the return type of a GCC
11409    builtin and then its argument prototype would still apply.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char gsm_create ();
11414 int
11415 main ()
11416 {
11417 return gsm_create ();
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423   case "$LIBEXT" in
11424     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11425     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'` ;;
11426     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11427   esac
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext \
11430     conftest$ac_exeext conftest.$ac_ext
11431   LIBS=$ac_check_soname_save_LIBS
11432 fi
11433 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11435 $as_echo "not found" >&6; }
11436
11437 else
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11439 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11440
11441 cat >>confdefs.h <<_ACEOF
11442 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11443 _ACEOF
11444
11445
11446 fi
11447 fi
11448 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11449   case "x$with_gsm" in
11450   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11451   xno) ;;
11452   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11453 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11454 esac
11455 fi
11456
11457 if test "$ac_cv_header_jpeglib_h" = "yes"
11458 then
11459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11460 $as_echo_n "checking for -ljpeg... " >&6; }
11461 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   ac_check_soname_save_LIBS=$LIBS
11465 LIBS="-ljpeg  $LIBS"
11466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470    Use char because int might match the return type of a GCC
11471    builtin and then its argument prototype would still apply.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char jpeg_start_decompress ();
11476 int
11477 main ()
11478 {
11479 return jpeg_start_decompress ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485   case "$LIBEXT" in
11486     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11487     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'` ;;
11488     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11489   esac
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492     conftest$ac_exeext conftest.$ac_ext
11493   LIBS=$ac_check_soname_save_LIBS
11494 fi
11495 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11497 $as_echo "not found" >&6; }
11498
11499 else
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11501 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11502
11503 cat >>confdefs.h <<_ACEOF
11504 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11505 _ACEOF
11506
11507
11508 fi
11509 fi
11510 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11511   case "x$with_jpeg" in
11512   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11513   xno) ;;
11514   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11515 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11516 esac
11517 fi
11518
11519 if test "$ac_cv_header_png_h" = "yes"
11520 then
11521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11522 $as_echo_n "checking for -lpng... " >&6; }
11523 if test "${ac_cv_lib_soname_png+set}" = set; then :
11524   $as_echo_n "(cached) " >&6
11525 else
11526   ac_check_soname_save_LIBS=$LIBS
11527 LIBS="-lpng -lm -lz $LIBS"
11528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h.  */
11530
11531 /* Override any GCC internal prototype to avoid an error.
11532    Use char because int might match the return type of a GCC
11533    builtin and then its argument prototype would still apply.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 char png_create_read_struct ();
11538 int
11539 main ()
11540 {
11541 return png_create_read_struct ();
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547   case "$LIBEXT" in
11548     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11549     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'` ;;
11550     *) 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'` ;;
11551   esac
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554     conftest$ac_exeext conftest.$ac_ext
11555   LIBS=$ac_check_soname_save_LIBS
11556 fi
11557 if test "x$ac_cv_lib_soname_png" = "x"; then :
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11559 $as_echo "not found" >&6; }
11560
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11563 $as_echo "$ac_cv_lib_soname_png" >&6; }
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11567 _ACEOF
11568
11569
11570 fi
11571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11572 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11573 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-lpng -lm -lz $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h.  */
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582    Use char because int might match the return type of a GCC
11583    builtin and then its argument prototype would still apply.  */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char png_set_expand_gray_1_2_4_to_8 ();
11588 int
11589 main ()
11590 {
11591 return png_set_expand_gray_1_2_4_to_8 ();
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11598 else
11599   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602     conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11606 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11607 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11608
11609 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11610
11611
11612 fi
11613
11614 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11615 then
11616         ac_save_CPPFLAGS="$CPPFLAGS"
11617     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11618     $as_unset ac_cv_header_png_h
11619     for ac_header in png.h
11620 do :
11621   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11622 if test "x$ac_cv_header_png_h" = x""yes; then :
11623   cat >>confdefs.h <<_ACEOF
11624 #define HAVE_PNG_H 1
11625 _ACEOF
11626
11627 fi
11628
11629 done
11630
11631     CPPFLAGS="$ac_save_CPPFLAGS"
11632     if test "$ac_cv_header_png_h" = "yes"
11633     then
11634         PNGINCL="$X_CFLAGS"
11635
11636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11637 $as_echo_n "checking for -lpng... " >&6; }
11638 if test "${ac_cv_lib_soname_png+set}" = set; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   ac_check_soname_save_LIBS=$LIBS
11642 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h.  */
11645
11646 /* Override any GCC internal prototype to avoid an error.
11647    Use char because int might match the return type of a GCC
11648    builtin and then its argument prototype would still apply.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char png_create_read_struct ();
11653 int
11654 main ()
11655 {
11656 return png_create_read_struct ();
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662   case "$LIBEXT" in
11663     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11664     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'` ;;
11665     *) 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'` ;;
11666   esac
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669     conftest$ac_exeext conftest.$ac_ext
11670   LIBS=$ac_check_soname_save_LIBS
11671 fi
11672 if test "x$ac_cv_lib_soname_png" = "x"; then :
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11674 $as_echo "not found" >&6; }
11675
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11678 $as_echo "$ac_cv_lib_soname_png" >&6; }
11679
11680 cat >>confdefs.h <<_ACEOF
11681 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11682 _ACEOF
11683
11684
11685 fi
11686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11687 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11688 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11689   $as_echo_n "(cached) " >&6
11690 else
11691   ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h.  */
11695
11696 /* Override any GCC internal prototype to avoid an error.
11697    Use char because int might match the return type of a GCC
11698    builtin and then its argument prototype would still apply.  */
11699 #ifdef __cplusplus
11700 extern "C"
11701 #endif
11702 char png_set_expand_gray_1_2_4_to_8 ();
11703 int
11704 main ()
11705 {
11706 return png_set_expand_gray_1_2_4_to_8 ();
11707   ;
11708   return 0;
11709 }
11710 _ACEOF
11711 if ac_fn_c_try_link "$LINENO"; then :
11712   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11713 else
11714   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11715 fi
11716 rm -f core conftest.err conftest.$ac_objext \
11717     conftest$ac_exeext conftest.$ac_ext
11718 LIBS=$ac_check_lib_save_LIBS
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11721 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11722 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11723   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11724
11725 fi
11726
11727     fi
11728 fi
11729 if test "x$ac_cv_lib_soname_png" = "x"; then :
11730   case "x$with_png" in
11731   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11732   xno) ;;
11733   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11734 This is an error since --with-png was requested." "$LINENO" 5  ;;
11735 esac
11736 fi
11737
11738 if test "$ac_cv_header_tiffio_h" = "yes"
11739 then
11740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11741 $as_echo_n "checking for -ltiff... " >&6; }
11742 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   ac_check_soname_save_LIBS=$LIBS
11746 LIBS="-ltiff  $LIBS"
11747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h.  */
11749
11750 /* Override any GCC internal prototype to avoid an error.
11751    Use char because int might match the return type of a GCC
11752    builtin and then its argument prototype would still apply.  */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char TIFFClientOpen ();
11757 int
11758 main ()
11759 {
11760 return TIFFClientOpen ();
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"; then :
11766   case "$LIBEXT" in
11767     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11768     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'` ;;
11769     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11770   esac
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773     conftest$ac_exeext conftest.$ac_ext
11774   LIBS=$ac_check_soname_save_LIBS
11775 fi
11776 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11778 $as_echo "not found" >&6; }
11779
11780 else
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11782 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11783
11784 cat >>confdefs.h <<_ACEOF
11785 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11786 _ACEOF
11787
11788
11789 fi
11790 fi
11791 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11792   case "x$with_tiff" in
11793   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11794   xno) ;;
11795   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11796 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11797 esac
11798 fi
11799
11800 if test "$ac_cv_header_mpg123_h" = "yes"
11801 then
11802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11803 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11804 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   ac_check_lib_save_LIBS=$LIBS
11808 LIBS="-lmpg123  $LIBS"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h.  */
11811
11812 /* Override any GCC internal prototype to avoid an error.
11813    Use char because int might match the return type of a GCC
11814    builtin and then its argument prototype would still apply.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char mpg123_feed ();
11819 int
11820 main ()
11821 {
11822 return mpg123_feed ();
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828   ac_cv_lib_mpg123_mpg123_feed=yes
11829 else
11830   ac_cv_lib_mpg123_mpg123_feed=no
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext \
11833     conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11835 fi
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11837 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11838 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11839   LIBMPG123="-lmpg123"
11840
11841 fi
11842
11843 fi
11844 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11845   case "x$with_mpg123" in
11846   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11847   xno) ;;
11848   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11849 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11850 esac
11851 fi
11852 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11853
11854 if test "$ac_cv_header_AL_al_h" = "yes"
11855 then
11856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11857 $as_echo_n "checking for -lopenal... " >&6; }
11858 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   ac_check_soname_save_LIBS=$LIBS
11862 LIBS="-lopenal  $LIBS"
11863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867    Use char because int might match the return type of a GCC
11868    builtin and then its argument prototype would still apply.  */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char alGetSource3i ();
11873 int
11874 main ()
11875 {
11876 return alGetSource3i ();
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_c_try_link "$LINENO"; then :
11882   case "$LIBEXT" in
11883     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11884     dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11885     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11886   esac
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext \
11889     conftest$ac_exeext conftest.$ac_ext
11890   LIBS=$ac_check_soname_save_LIBS
11891 fi
11892 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11894 $as_echo "not found" >&6; }
11895
11896 else
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11898 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11899
11900 cat >>confdefs.h <<_ACEOF
11901 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11902 _ACEOF
11903
11904        LIBOPENAL="-lopenal"
11905
11906                       ac_cv_lib_openal=yes
11907
11908 cat >>confdefs.h <<_ACEOF
11909 #define HAVE_OPENAL 1
11910 _ACEOF
11911
11912 fi
11913 fi
11914 if test "x$ac_cv_lib_openal" != xyes; then :
11915   case "x$with_openal" in
11916   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11917   xno) ;;
11918   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11919 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11920 esac
11921 fi
11922 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11923
11924 if test "$ac_cv_header_kstat_h" = "yes"
11925 then
11926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11927 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11928 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-lkstat  $LIBS"
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h.  */
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937    Use char because int might match the return type of a GCC
11938    builtin and then its argument prototype would still apply.  */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char kstat_open ();
11943 int
11944 main ()
11945 {
11946 return kstat_open ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952   ac_cv_lib_kstat_kstat_open=yes
11953 else
11954   ac_cv_lib_kstat_kstat_open=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext \
11957     conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11961 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11962 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11963
11964 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11965
11966                   LIBKSTAT="-lkstat"
11967
11968 fi
11969
11970 fi
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11973 $as_echo_n "checking for -lodbc... " >&6; }
11974 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_check_soname_save_LIBS=$LIBS
11978 LIBS="-lodbc  $LIBS"
11979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983    Use char because int might match the return type of a GCC
11984    builtin and then its argument prototype would still apply.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char SQLConnect ();
11989 int
11990 main ()
11991 {
11992 return SQLConnect ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998   case "$LIBEXT" in
11999     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12000     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'` ;;
12001     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12002   esac
12003 fi
12004 rm -f core conftest.err conftest.$ac_objext \
12005     conftest$ac_exeext conftest.$ac_ext
12006   LIBS=$ac_check_soname_save_LIBS
12007 fi
12008 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12010 $as_echo "not found" >&6; }
12011        cat >>confdefs.h <<_ACEOF
12012 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12013 _ACEOF
12014
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12017 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12018
12019 cat >>confdefs.h <<_ACEOF
12020 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12021 _ACEOF
12022
12023
12024 fi
12025
12026 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12027         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12028         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12029         "$ac_cv_header_soundcard_h" != "yes" -a \
12030         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12031 then
12032     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12033 fi
12034
12035
12036 EXTRACFLAGS=""
12037
12038 if test "x${GCC}" = "xyes"
12039 then
12040   EXTRACFLAGS="-Wall -pipe"
12041
12042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12043 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12044 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   if test "$cross_compiling" = yes; then :
12048   ac_cv_c_gcc_strength_bug="yes"
12049 else
12050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h.  */
12052 int L[4] = {0,1,2,3};
12053 int
12054 main ()
12055 {
12056 static int Array[3];
12057   unsigned int B = 3;
12058   int i;
12059   for(i=0; i<B; i++) Array[i] = i - 3;
12060   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12061   L[i] = 4;
12062   return (Array[1] != -2 || L[2] != 3)
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_run "$LINENO"; then :
12068   ac_cv_c_gcc_strength_bug="no"
12069 else
12070   ac_cv_c_gcc_strength_bug="yes"
12071 fi
12072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12073   conftest.$ac_objext conftest.beam conftest.$ac_ext
12074 fi
12075
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12078 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12079   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12080   then
12081     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12082   fi
12083
12084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12085 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12086 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089   ac_wine_try_cflags_saved=$CFLAGS
12090 CFLAGS="$CFLAGS -fno-builtin"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093 int main(int argc, char **argv) { return 0; }
12094 _ACEOF
12095 if ac_fn_c_try_link "$LINENO"; then :
12096   ac_cv_cflags__fno_builtin=yes
12097 else
12098   ac_cv_cflags__fno_builtin=no
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext \
12101     conftest$ac_exeext conftest.$ac_ext
12102 CFLAGS=$ac_wine_try_cflags_saved
12103 fi
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12105 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12106 if test $ac_cv_cflags__fno_builtin = yes; then :
12107   BUILTINFLAG="-fno-builtin"
12108
12109 fi
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12111 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12112 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   ac_wine_try_cflags_saved=$CFLAGS
12116 CFLAGS="$CFLAGS -fno-strict-aliasing"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 int main(int argc, char **argv) { return 0; }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122   ac_cv_cflags__fno_strict_aliasing=yes
12123 else
12124   ac_cv_cflags__fno_strict_aliasing=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127     conftest$ac_exeext conftest.$ac_ext
12128 CFLAGS=$ac_wine_try_cflags_saved
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12131 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12132 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12133   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12134 fi
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12136 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12137 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   ac_wine_try_cflags_saved=$CFLAGS
12141 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144 int main(int argc, char **argv) { return 0; }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147   ac_cv_cflags__Wdeclaration_after_statement=yes
12148 else
12149   ac_cv_cflags__Wdeclaration_after_statement=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152     conftest$ac_exeext conftest.$ac_ext
12153 CFLAGS=$ac_wine_try_cflags_saved
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12156 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12157 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12158   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12159 fi
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12161 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12162 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   ac_wine_try_cflags_saved=$CFLAGS
12166 CFLAGS="$CFLAGS -Wstrict-prototypes"
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h.  */
12169 int main(int argc, char **argv) { return 0; }
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"; then :
12172   ac_cv_cflags__Wstrict_prototypes=yes
12173 else
12174   ac_cv_cflags__Wstrict_prototypes=no
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext \
12177     conftest$ac_exeext conftest.$ac_ext
12178 CFLAGS=$ac_wine_try_cflags_saved
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12181 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12182 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12183   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12184 fi
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12186 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12187 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   ac_wine_try_cflags_saved=$CFLAGS
12191 CFLAGS="$CFLAGS -Wtype-limits"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h.  */
12194 int main(int argc, char **argv) { return 0; }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197   ac_cv_cflags__Wtype_limits=yes
12198 else
12199   ac_cv_cflags__Wtype_limits=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202     conftest$ac_exeext conftest.$ac_ext
12203 CFLAGS=$ac_wine_try_cflags_saved
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12206 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12207 if test $ac_cv_cflags__Wtype_limits = yes; then :
12208   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12209 fi
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12211 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12212 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   ac_wine_try_cflags_saved=$CFLAGS
12216 CFLAGS="$CFLAGS -Wwrite-strings"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219 int main(int argc, char **argv) { return 0; }
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"; then :
12222   ac_cv_cflags__Wwrite_strings=yes
12223 else
12224   ac_cv_cflags__Wwrite_strings=no
12225 fi
12226 rm -f core conftest.err conftest.$ac_objext \
12227     conftest$ac_exeext conftest.$ac_ext
12228 CFLAGS=$ac_wine_try_cflags_saved
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12231 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12232 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12233   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12234 fi
12235
12236     saved_CFLAGS="$CFLAGS"
12237   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12239 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12240 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h.  */
12245 #include <string.h>
12246 int
12247 main ()
12248 {
12249
12250   ;
12251   return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_compile "$LINENO"; then :
12255   ac_cv_c_string_h_warnings=no
12256 else
12257   ac_cv_c_string_h_warnings=yes
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12262 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12263   CFLAGS="$saved_CFLAGS"
12264   if test "$ac_cv_c_string_h_warnings" = "no"
12265   then
12266     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12267   fi
12268
12269     saved_CFLAGS="$CFLAGS"
12270   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12272 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12273 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278 #include <string.h>
12279 int
12280 main ()
12281 {
12282 char*f(const char *h,char n) {return strchr(h,n);}
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_compile "$LINENO"; then :
12288   ac_cv_c_logicalop_noisy=no
12289 else
12290   ac_cv_c_logicalop_noisy=yes
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12295 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12296   CFLAGS="$saved_CFLAGS"
12297   if test "$ac_cv_c_logicalop_noisy" = "no"
12298   then
12299     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12300   fi
12301
12302     if test "x$enable_maintainer_mode" = "xyes"
12303   then
12304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12305 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12306 if test "${ac_cv_cflags__Werror+set}" = set; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   ac_wine_try_cflags_saved=$CFLAGS
12310 CFLAGS="$CFLAGS -Werror"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313 int main(int argc, char **argv) { return 0; }
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316   ac_cv_cflags__Werror=yes
12317 else
12318   ac_cv_cflags__Werror=no
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext \
12321     conftest$ac_exeext conftest.$ac_ext
12322 CFLAGS=$ac_wine_try_cflags_saved
12323 fi
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12325 $as_echo "$ac_cv_cflags__Werror" >&6; }
12326 if test $ac_cv_cflags__Werror = yes; then :
12327   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12328 fi
12329   fi
12330
12331     saved_CFLAGS="$CFLAGS"
12332   CFLAGS="$CFLAGS -Werror"
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12334 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12335 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12341 int
12342 main ()
12343 {
12344
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350   ac_cv_have_ms_hook_prologue="yes"
12351 else
12352   ac_cv_have_ms_hook_prologue="no"
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12357 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12358   CFLAGS="$saved_CFLAGS"
12359   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12360   then
12361
12362 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12363
12364   else
12365       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12366
12367   fi
12368 fi
12369
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12372 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12373 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h.  */
12378 #include <string.h>
12379 int
12380 main ()
12381 {
12382 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12383 #error Fortify enabled
12384 #endif
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 if ac_fn_c_try_compile "$LINENO"; then :
12390   ac_cv_c_fortify_enabled=no
12391 else
12392   ac_cv_c_fortify_enabled=yes
12393 fi
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12397 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12398 if test "$ac_cv_c_fortify_enabled" = yes
12399 then
12400     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12401 fi
12402
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12405 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12406 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h.  */
12411 extern int ac_test;
12412 int
12413 main ()
12414 {
12415 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421   ac_cv_c_extern_prefix="yes"
12422 else
12423   ac_cv_c_extern_prefix="no"
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext \
12426     conftest$ac_exeext conftest.$ac_ext
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12429 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12430
12431 case $host_cpu in
12432   *i[3456789]86*)
12433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12434 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12435 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440 #ifndef _MSC_VER
12441 #define __stdcall __attribute__((__stdcall__))
12442 #endif
12443 int __stdcall ac_test(int i) { return i; }
12444 int
12445 main ()
12446 {
12447 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453   ac_cv_c_stdcall_suffix="yes"
12454 else
12455   ac_cv_c_stdcall_suffix="no"
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext \
12458     conftest$ac_exeext conftest.$ac_ext
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12461 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12462   *) ac_cv_c_stdcall_suffix="no" ;;
12463 esac
12464
12465
12466 if test "$ac_cv_c_extern_prefix" = "yes"
12467 then
12468     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12469
12470     asm_name_prefix="_"
12471 else
12472     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12473
12474     asm_name_prefix=""
12475 fi
12476
12477
12478 if test "$ac_cv_c_stdcall_suffix" = "yes"
12479 then
12480     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12481
12482 else
12483     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12484
12485 fi
12486
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12489 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12490 if test "${ac_cv_asm_func_def+set}" = set; then :
12491   $as_echo_n "(cached) " >&6
12492 else
12493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h.  */
12495
12496 int
12497 main ()
12498 {
12499 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12500   ;
12501   return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505   ac_cv_asm_func_def=".def"
12506 else
12507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h.  */
12509
12510 int
12511 main ()
12512 {
12513 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519   ac_cv_asm_func_def=".type @function"
12520 else
12521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523
12524 int
12525 main ()
12526 {
12527 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533   ac_cv_asm_func_def=".type 2"
12534 else
12535   ac_cv_asm_func_def="unknown"
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext \
12538     conftest$ac_exeext conftest.$ac_ext
12539 fi
12540 rm -f core conftest.err conftest.$ac_objext \
12541     conftest$ac_exeext conftest.$ac_ext
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544     conftest$ac_exeext conftest.$ac_ext
12545 fi
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12547 $as_echo "$ac_cv_asm_func_def" >&6; }
12548
12549
12550 case "$ac_cv_asm_func_def" in
12551   ".def")
12552      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12553
12554      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12555   ".type @function")
12556      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12557
12558      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12559   ".type 2")
12560      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12561
12562      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12563   *)
12564      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12565
12566      asm_func_header="" ;;
12567 esac
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12570 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12571 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h.  */
12576 asm(".text\n\t.long 0");
12577 int
12578 main ()
12579 {
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586   ac_cv_c_asm_outside_funcs="yes"
12587 else
12588   ac_cv_c_asm_outside_funcs="no"
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12593 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12596 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12597 if test "${ac_cv_c_dot_previous+set}" = set; then :
12598   $as_echo_n "(cached) " >&6
12599 else
12600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h.  */
12602
12603 int
12604 main ()
12605 {
12606 asm(".text\nac_test:\t.long 0\n\t.previous");
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 if ac_fn_c_try_link "$LINENO"; then :
12612   ac_cv_c_dot_previous="yes"
12613 else
12614   ac_cv_c_dot_previous="no"
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext \
12617     conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12620 $as_echo "$ac_cv_c_dot_previous" >&6; }
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12623 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12624 if test "${ac_cv_c_cfi_support+set}" = set; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12630 int
12631 main ()
12632 {
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639   ac_cv_c_cfi_support="yes"
12640 else
12641   ac_cv_c_cfi_support="no"
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12646 $as_echo "$ac_cv_c_cfi_support" >&6; }
12647
12648 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12649 asm_func_trailer=""
12650 if test "$ac_cv_c_dot_previous" = "yes"
12651 then
12652    asm_func_trailer="\\n\\t.previous"
12653 fi
12654 if test "$ac_cv_c_cfi_support" = "yes"
12655 then
12656    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12657    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12658
12659 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12660
12661    UNWINDFLAGS=-fasynchronous-unwind-tables
12662
12663 else
12664    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12665
12666 fi
12667
12668 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12669
12670
12671 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12672 then
12673     cat >>confdefs.h <<_ACEOF
12674 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12675 _ACEOF
12676
12677 else
12678     cat >>confdefs.h <<_ACEOF
12679 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12680 _ACEOF
12681
12682 fi
12683
12684 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12685
12686
12687 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12688
12689
12690
12691 LDPATH=""
12692
12693 case $build_os in
12694   cygwin*|mingw32*)
12695     TOOLSEXT=".exe"
12696
12697     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12698     ;;
12699   darwin*|macosx*)
12700     ;;
12701   *)
12702     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12703     ;;
12704 esac
12705
12706 case $host_os in
12707   mingw32*)
12708     CRTLIBS="-lmsvcrt"
12709
12710     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12711
12712     ;;
12713 esac
12714
12715 MAIN_BINARY="wine"
12716
12717 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12718
12719 case $host_os in
12720   linux*)
12721     case $host_cpu in
12722       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12723  ;;
12724       x86_64*) EXTRA_BINARIES="wine64-preloader"
12725  ;;
12726     esac
12727     ;;
12728 esac
12729
12730
12731 ac_save_CFLAGS="$CFLAGS"
12732 CFLAGS="$CFLAGS $BUILTINFLAG"
12733 for ac_func in \
12734         _pclose \
12735         _popen \
12736         _snprintf \
12737         _spawnvp \
12738         _strdup \
12739         _stricmp \
12740         _strnicmp \
12741         _strtoi64 \
12742         _strtoui64 \
12743         _vsnprintf \
12744         asctime_r \
12745         chsize \
12746         dlopen \
12747         epoll_create \
12748         ffs \
12749         finite \
12750         fnmatch \
12751         fork \
12752         fpclass \
12753         fstatfs \
12754         fstatvfs \
12755         ftruncate \
12756         futimes \
12757         futimesat \
12758         getdirentries \
12759         getopt_long \
12760         getpagesize \
12761         getpwuid \
12762         gettimeofday \
12763         getuid \
12764         kqueue \
12765         lstat \
12766         memmove \
12767         mmap \
12768         pclose \
12769         pipe2 \
12770         poll \
12771         popen \
12772         port_create \
12773         prctl \
12774         pread \
12775         pwrite \
12776         readdir \
12777         readlink \
12778         sched_setaffinity \
12779         sched_yield \
12780         select \
12781         setproctitle \
12782         setrlimit \
12783         settimeofday \
12784         sigaltstack \
12785         sigprocmask \
12786         snprintf \
12787         spawnvp \
12788         statfs \
12789         statvfs \
12790         strcasecmp \
12791         strdup \
12792         strerror \
12793         strncasecmp \
12794         strtold \
12795         strtoll \
12796         strtoull \
12797         symlink \
12798         tcgetattr \
12799         thr_kill2 \
12800         timegm \
12801         usleep \
12802         vsnprintf \
12803         wait4 \
12804         waitpid \
12805
12806 do :
12807   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12810   cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812 _ACEOF
12813
12814 fi
12815 done
12816
12817 CFLAGS="$ac_save_CFLAGS"
12818
12819 if test "$ac_cv_func_dlopen" = no
12820 then
12821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12824   $as_echo_n "(cached) " >&6
12825 else
12826   ac_check_lib_save_LIBS=$LIBS
12827 LIBS="-ldl  $LIBS"
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h.  */
12830
12831 /* Override any GCC internal prototype to avoid an error.
12832    Use char because int might match the return type of a GCC
12833    builtin and then its argument prototype would still apply.  */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 char dlopen ();
12838 int
12839 main ()
12840 {
12841 return dlopen ();
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_link "$LINENO"; then :
12847   ac_cv_lib_dl_dlopen=yes
12848 else
12849   ac_cv_lib_dl_dlopen=no
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext \
12852     conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12854 fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12857 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12858   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12859  LIBDL="-ldl"
12860
12861 fi
12862
12863 fi
12864 ac_wine_check_funcs_save_LIBS="$LIBS"
12865 LIBS="$LIBS $LIBDL"
12866 for ac_func in dladdr
12867 do :
12868   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12869 if test "x$ac_cv_func_dladdr" = x""yes; then :
12870   cat >>confdefs.h <<_ACEOF
12871 #define HAVE_DLADDR 1
12872 _ACEOF
12873
12874 fi
12875 done
12876
12877 LIBS="$ac_wine_check_funcs_save_LIBS"
12878
12879 if test "$ac_cv_func_poll" = no
12880 then
12881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12882 $as_echo_n "checking for poll in -lpoll... " >&6; }
12883 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12884   $as_echo_n "(cached) " >&6
12885 else
12886   ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lpoll  $LIBS"
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h.  */
12890
12891 /* Override any GCC internal prototype to avoid an error.
12892    Use char because int might match the return type of a GCC
12893    builtin and then its argument prototype would still apply.  */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char poll ();
12898 int
12899 main ()
12900 {
12901 return poll ();
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 if ac_fn_c_try_link "$LINENO"; then :
12907   ac_cv_lib_poll_poll=yes
12908 else
12909   ac_cv_lib_poll_poll=no
12910 fi
12911 rm -f core conftest.err conftest.$ac_objext \
12912     conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12914 fi
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12916 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12917 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12918   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12919  LIBPOLL="-lpoll"
12920
12921 fi
12922
12923 fi
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12926 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12927 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930   ac_func_search_save_LIBS=$LIBS
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h.  */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935    Use char because int might match the return type of a GCC
12936    builtin and then its argument prototype would still apply.  */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char gethostbyname ();
12941 int
12942 main ()
12943 {
12944 return gethostbyname ();
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 for ac_lib in '' nsl; do
12950   if test -z "$ac_lib"; then
12951     ac_res="none required"
12952   else
12953     ac_res=-l$ac_lib
12954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12955   fi
12956   if ac_fn_c_try_link "$LINENO"; then :
12957   ac_cv_search_gethostbyname=$ac_res
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960     conftest$ac_exeext
12961   if test "${ac_cv_search_gethostbyname+set}" = set; then :
12962   break
12963 fi
12964 done
12965 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12966
12967 else
12968   ac_cv_search_gethostbyname=no
12969 fi
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12974 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12975 ac_res=$ac_cv_search_gethostbyname
12976 if test "$ac_res" != no; then :
12977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978
12979 fi
12980
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12983 $as_echo_n "checking for library containing connect... " >&6; }
12984 if test "${ac_cv_search_connect+set}" = set; then :
12985   $as_echo_n "(cached) " >&6
12986 else
12987   ac_func_search_save_LIBS=$LIBS
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h.  */
12990
12991 /* Override any GCC internal prototype to avoid an error.
12992    Use char because int might match the return type of a GCC
12993    builtin and then its argument prototype would still apply.  */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char connect ();
12998 int
12999 main ()
13000 {
13001 return connect ();
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 for ac_lib in '' socket; do
13007   if test -z "$ac_lib"; then
13008     ac_res="none required"
13009   else
13010     ac_res=-l$ac_lib
13011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13012   fi
13013   if ac_fn_c_try_link "$LINENO"; then :
13014   ac_cv_search_connect=$ac_res
13015 fi
13016 rm -f core conftest.err conftest.$ac_objext \
13017     conftest$ac_exeext
13018   if test "${ac_cv_search_connect+set}" = set; then :
13019   break
13020 fi
13021 done
13022 if test "${ac_cv_search_connect+set}" = set; then :
13023
13024 else
13025   ac_cv_search_connect=no
13026 fi
13027 rm conftest.$ac_ext
13028 LIBS=$ac_func_search_save_LIBS
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13031 $as_echo "$ac_cv_search_connect" >&6; }
13032 ac_res=$ac_cv_search_connect
13033 if test "$ac_res" != no; then :
13034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13035
13036 fi
13037
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13040 $as_echo_n "checking for library containing inet_aton... " >&6; }
13041 if test "${ac_cv_search_inet_aton+set}" = set; then :
13042   $as_echo_n "(cached) " >&6
13043 else
13044   ac_func_search_save_LIBS=$LIBS
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h.  */
13047
13048 /* Override any GCC internal prototype to avoid an error.
13049    Use char because int might match the return type of a GCC
13050    builtin and then its argument prototype would still apply.  */
13051 #ifdef __cplusplus
13052 extern "C"
13053 #endif
13054 char inet_aton ();
13055 int
13056 main ()
13057 {
13058 return inet_aton ();
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 for ac_lib in '' resolv; do
13064   if test -z "$ac_lib"; then
13065     ac_res="none required"
13066   else
13067     ac_res=-l$ac_lib
13068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13069   fi
13070   if ac_fn_c_try_link "$LINENO"; then :
13071   ac_cv_search_inet_aton=$ac_res
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext \
13074     conftest$ac_exeext
13075   if test "${ac_cv_search_inet_aton+set}" = set; then :
13076   break
13077 fi
13078 done
13079 if test "${ac_cv_search_inet_aton+set}" = set; then :
13080
13081 else
13082   ac_cv_search_inet_aton=no
13083 fi
13084 rm conftest.$ac_ext
13085 LIBS=$ac_func_search_save_LIBS
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13088 $as_echo "$ac_cv_search_inet_aton" >&6; }
13089 ac_res=$ac_cv_search_inet_aton
13090 if test "$ac_res" != no; then :
13091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
13093 fi
13094
13095
13096 for ac_func in \
13097         getaddrinfo \
13098         getnameinfo \
13099         getnetbyname \
13100         getprotobyname \
13101         getprotobynumber \
13102         getservbyport \
13103         inet_network \
13104         inet_ntop \
13105         inet_pton \
13106         sendmsg \
13107         socketpair \
13108
13109 do :
13110   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13112 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13113   cat >>confdefs.h <<_ACEOF
13114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13115 _ACEOF
13116
13117 fi
13118 done
13119
13120
13121 LDAPLIBS=""
13122
13123 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13124 then
13125     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13126 "
13127 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13129 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13130 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137
13138 /* Override any GCC internal prototype to avoid an error.
13139    Use char because int might match the return type of a GCC
13140    builtin and then its argument prototype would still apply.  */
13141 #ifdef __cplusplus
13142 extern "C"
13143 #endif
13144 char ldap_initialize ();
13145 int
13146 main ()
13147 {
13148 return ldap_initialize ();
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154   ac_cv_lib_ldap_r_ldap_initialize=yes
13155 else
13156   ac_cv_lib_ldap_r_ldap_initialize=no
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext \
13159     conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13163 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13164 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13166 $as_echo_n "checking for ber_init in -llber... " >&6; }
13167 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170   ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-llber $LIBPTHREAD $LIBS"
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h.  */
13174
13175 /* Override any GCC internal prototype to avoid an error.
13176    Use char because int might match the return type of a GCC
13177    builtin and then its argument prototype would still apply.  */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char ber_init ();
13182 int
13183 main ()
13184 {
13185 return ber_init ();
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 if ac_fn_c_try_link "$LINENO"; then :
13191   ac_cv_lib_lber_ber_init=yes
13192 else
13193   ac_cv_lib_lber_ber_init=no
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext \
13196     conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13200 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13201 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13202
13203 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13204
13205                  LDAPLIBS="-lldap_r -llber"
13206 fi
13207
13208 fi
13209
13210 fi
13211
13212     ac_wine_check_funcs_save_LIBS="$LIBS"
13213 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13214 for ac_func in \
13215         ldap_count_references \
13216         ldap_first_reference \
13217         ldap_next_reference \
13218         ldap_parse_reference \
13219         ldap_parse_sort_control \
13220         ldap_parse_sortresponse_control \
13221         ldap_parse_vlv_control \
13222         ldap_parse_vlvresponse_control
13223 do :
13224   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13227   cat >>confdefs.h <<_ACEOF
13228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13229 _ACEOF
13230
13231 fi
13232 done
13233
13234 LIBS="$ac_wine_check_funcs_save_LIBS"
13235 fi
13236 if test "x$LDAPLIBS" = "x"; then :
13237   case "x$with_ldap" in
13238   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13239   xno) ;;
13240   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13241 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13242 esac
13243 fi
13244
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13246 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13247 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13248   $as_echo_n "(cached) " >&6
13249 else
13250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h.  */
13252 #include <sys/stat.h>
13253 int
13254 main ()
13255 {
13256 mkdir("foo");
13257   ;
13258   return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_compile "$LINENO"; then :
13262   wine_cv_one_arg_mkdir=yes
13263 else
13264   wine_cv_one_arg_mkdir=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13269 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13270 if test "$wine_cv_one_arg_mkdir" = "yes"
13271 then
13272
13273 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13274
13275 fi
13276
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13279 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13280 if test "${ac_cv_c_const+set}" = set; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h.  */
13285
13286 int
13287 main ()
13288 {
13289 /* FIXME: Include the comments suggested by Paul. */
13290 #ifndef __cplusplus
13291   /* Ultrix mips cc rejects this.  */
13292   typedef int charset[2];
13293   const charset cs;
13294   /* SunOS 4.1.1 cc rejects this.  */
13295   char const *const *pcpcc;
13296   char **ppc;
13297   /* NEC SVR4.0.2 mips cc rejects this.  */
13298   struct point {int x, y;};
13299   static struct point const zero = {0,0};
13300   /* AIX XL C 1.02.0.0 rejects this.
13301      It does not let you subtract one const X* pointer from another in
13302      an arm of an if-expression whose if-part is not a constant
13303      expression */
13304   const char *g = "string";
13305   pcpcc = &g + (g ? g-g : 0);
13306   /* HPUX 7.0 cc rejects these. */
13307   ++pcpcc;
13308   ppc = (char**) pcpcc;
13309   pcpcc = (char const *const *) ppc;
13310   { /* SCO 3.2v4 cc rejects this.  */
13311     char *t;
13312     char const *s = 0 ? (char *) 0 : (char const *) 0;
13313
13314     *t++ = 0;
13315     if (s) return 0;
13316   }
13317   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13318     int x[] = {25, 17};
13319     const int *foo = &x[0];
13320     ++foo;
13321   }
13322   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13323     typedef const int *iptr;
13324     iptr p = 0;
13325     ++p;
13326   }
13327   { /* AIX XL C 1.02.0.0 rejects this saying
13328        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13329     struct s { int j; const int *ap[3]; };
13330     struct s *b; b->j = 5;
13331   }
13332   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13333     const int foo = 10;
13334     if (!foo) return 0;
13335   }
13336   return !cs[0] && !zero.x;
13337 #endif
13338
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_compile "$LINENO"; then :
13344   ac_cv_c_const=yes
13345 else
13346   ac_cv_c_const=no
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13351 $as_echo "$ac_cv_c_const" >&6; }
13352 if test $ac_cv_c_const = no; then
13353
13354 $as_echo "#define const /**/" >>confdefs.h
13355
13356 fi
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13359 $as_echo_n "checking for inline... " >&6; }
13360 if test "${ac_cv_c_inline+set}" = set; then :
13361   $as_echo_n "(cached) " >&6
13362 else
13363   ac_cv_c_inline=no
13364 for ac_kw in inline __inline__ __inline; do
13365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h.  */
13367 #ifndef __cplusplus
13368 typedef int foo_t;
13369 static $ac_kw foo_t static_foo () {return 0; }
13370 $ac_kw foo_t foo () {return 0; }
13371 #endif
13372
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375   ac_cv_c_inline=$ac_kw
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378   test "$ac_cv_c_inline" != no && break
13379 done
13380
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13383 $as_echo "$ac_cv_c_inline" >&6; }
13384
13385 case $ac_cv_c_inline in
13386   inline | yes) ;;
13387   *)
13388     case $ac_cv_c_inline in
13389       no) ac_val=;;
13390       *) ac_val=$ac_cv_c_inline;;
13391     esac
13392     cat >>confdefs.h <<_ACEOF
13393 #ifndef __cplusplus
13394 #define inline $ac_val
13395 #endif
13396 _ACEOF
13397     ;;
13398 esac
13399
13400 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13401 if test "x$ac_cv_type_mode_t" = x""yes; then :
13402
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_MODE_T 1
13405 _ACEOF
13406
13407
13408 fi
13409 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13410 if test "x$ac_cv_type_off_t" = x""yes; then :
13411
13412 cat >>confdefs.h <<_ACEOF
13413 #define HAVE_OFF_T 1
13414 _ACEOF
13415
13416
13417 fi
13418 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13419 if test "x$ac_cv_type_pid_t" = x""yes; then :
13420
13421 cat >>confdefs.h <<_ACEOF
13422 #define HAVE_PID_T 1
13423 _ACEOF
13424
13425
13426 fi
13427 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13428 if test "x$ac_cv_type_size_t" = x""yes; then :
13429
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_SIZE_T 1
13432 _ACEOF
13433
13434
13435 fi
13436 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13437 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13438
13439 cat >>confdefs.h <<_ACEOF
13440 #define HAVE_SSIZE_T 1
13441 _ACEOF
13442
13443
13444 fi
13445 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13446 if test "x$ac_cv_type_long_long" = x""yes; then :
13447
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_LONG_LONG 1
13450 _ACEOF
13451
13452
13453 fi
13454 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13455 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define HAVE_FSBLKCNT_T 1
13459 _ACEOF
13460
13461
13462 fi
13463 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13464 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13465
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE_FSFILCNT_T 1
13468 _ACEOF
13469
13470
13471 fi
13472
13473 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13474 #include <signal.h>
13475 "
13476 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13477
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_SIGSET_T 1
13480 _ACEOF
13481
13482
13483 fi
13484
13485 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13486 "
13487 if test "x$ac_cv_type_request_sense" = x""yes; then :
13488
13489 cat >>confdefs.h <<_ACEOF
13490 #define HAVE_REQUEST_SENSE 1
13491 _ACEOF
13492
13493
13494 fi
13495
13496
13497 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13498 #ifdef HAVE_SYS_SOCKET_H
13499 #include <sys/socket.h>
13500 #endif
13501 #ifdef HAVE_SYS_SOCKETVAR_H
13502 #include <sys/socketvar.h>
13503 #endif
13504 #ifdef HAVE_NET_ROUTE_H
13505 #include <net/route.h>
13506 #endif
13507 #ifdef HAVE_NETINET_IN_H
13508 #include <netinet/in.h>
13509 #endif
13510 #ifdef HAVE_NETINET_IN_SYSTM_H
13511 #include <netinet/in_systm.h>
13512 #endif
13513 #ifdef HAVE_NETINET_IP_H
13514 #include <netinet/ip.h>
13515 #endif
13516 #ifdef HAVE_NETINET_IN_PCB_H
13517 #include <netinet/in_pcb.h>
13518 #endif
13519 "
13520 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13521
13522 cat >>confdefs.h <<_ACEOF
13523 #define HAVE_STRUCT_XINPGEN 1
13524 _ACEOF
13525
13526
13527 fi
13528
13529
13530 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13531 #include <linux/input.h>
13532 #endif
13533 "
13534 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13538 _ACEOF
13539
13540
13541 fi
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13545 $as_echo_n "checking for sigaddset... " >&6; }
13546 if test "${wine_cv_have_sigaddset+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 <signal.h>
13552 int
13553 main ()
13554 {
13555 sigset_t set; sigaddset(&set,SIGTERM);
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561   wine_cv_have_sigaddset=yes
13562 else
13563   wine_cv_have_sigaddset=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext \
13566     conftest$ac_exeext conftest.$ac_ext
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13569 $as_echo "$wine_cv_have_sigaddset" >&6; }
13570 if test "$wine_cv_have_sigaddset" = "yes"
13571 then
13572
13573 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13574
13575 fi
13576
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13579 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13580 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h.  */
13585 #include <netdb.h>
13586 int
13587 main ()
13588 {
13589
13590     char *name=0;
13591     struct hostent he;
13592     struct hostent *result;
13593     char *buf=0;
13594     int bufsize=0;
13595     int res,errnr;
13596     char *addr=0;
13597     int addrlen=0;
13598     int addrtype=0;
13599     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13600     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13601
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_link "$LINENO"; then :
13607   wine_cv_linux_gethostbyname_r_6=yes
13608 else
13609   wine_cv_linux_gethostbyname_r_6=no
13610
13611 fi
13612 rm -f core conftest.err conftest.$ac_objext \
13613     conftest$ac_exeext conftest.$ac_ext
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13617 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13618    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13619    then
13620
13621 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13622
13623    fi
13624
13625 if test "$ac_cv_header_linux_joystick_h" = "yes"
13626 then
13627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13628 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13629 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13630   $as_echo_n "(cached) " >&6
13631 else
13632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h.  */
13634
13635         #include <sys/ioctl.h>
13636         #include <sys/types.h>
13637         #include <linux/joystick.h>
13638
13639         struct js_event blub;
13640         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13641         #error "no 2.2 header"
13642         #endif
13643
13644 int
13645 main ()
13646 {
13647 /*empty*/
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653   wine_cv_linux_joystick_22_api=yes
13654 else
13655   wine_cv_linux_joystick_22_api=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13661 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13662    if test "$wine_cv_linux_joystick_22_api" = "yes"
13663    then
13664
13665 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13666
13667    fi
13668 fi
13669
13670
13671 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13672 #ifdef HAVE_SYS_PARAM_H
13673 # include <sys/param.h>
13674 #endif
13675 #ifdef HAVE_SYS_MOUNT_H
13676 # include <sys/mount.h>
13677 #endif
13678 #ifdef HAVE_SYS_VFS_H
13679 # include <sys/vfs.h>
13680 #endif
13681 #ifdef HAVE_SYS_STATFS_H
13682 # include <sys/statfs.h>
13683 #endif
13684 "
13685 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13686
13687 cat >>confdefs.h <<_ACEOF
13688 #define HAVE_STRUCT_STATFS_F_BFREE 1
13689 _ACEOF
13690
13691
13692 fi
13693 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13694 #ifdef HAVE_SYS_PARAM_H
13695 # include <sys/param.h>
13696 #endif
13697 #ifdef HAVE_SYS_MOUNT_H
13698 # include <sys/mount.h>
13699 #endif
13700 #ifdef HAVE_SYS_VFS_H
13701 # include <sys/vfs.h>
13702 #endif
13703 #ifdef HAVE_SYS_STATFS_H
13704 # include <sys/statfs.h>
13705 #endif
13706 "
13707 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13708
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13711 _ACEOF
13712
13713
13714 fi
13715 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13716 #ifdef HAVE_SYS_PARAM_H
13717 # include <sys/param.h>
13718 #endif
13719 #ifdef HAVE_SYS_MOUNT_H
13720 # include <sys/mount.h>
13721 #endif
13722 #ifdef HAVE_SYS_VFS_H
13723 # include <sys/vfs.h>
13724 #endif
13725 #ifdef HAVE_SYS_STATFS_H
13726 # include <sys/statfs.h>
13727 #endif
13728 "
13729 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13730
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13733 _ACEOF
13734
13735
13736 fi
13737 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13738 #ifdef HAVE_SYS_PARAM_H
13739 # include <sys/param.h>
13740 #endif
13741 #ifdef HAVE_SYS_MOUNT_H
13742 # include <sys/mount.h>
13743 #endif
13744 #ifdef HAVE_SYS_VFS_H
13745 # include <sys/vfs.h>
13746 #endif
13747 #ifdef HAVE_SYS_STATFS_H
13748 # include <sys/statfs.h>
13749 #endif
13750 "
13751 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13752
13753 cat >>confdefs.h <<_ACEOF
13754 #define HAVE_STRUCT_STATFS_F_FFREE 1
13755 _ACEOF
13756
13757
13758 fi
13759 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13760 #ifdef HAVE_SYS_PARAM_H
13761 # include <sys/param.h>
13762 #endif
13763 #ifdef HAVE_SYS_MOUNT_H
13764 # include <sys/mount.h>
13765 #endif
13766 #ifdef HAVE_SYS_VFS_H
13767 # include <sys/vfs.h>
13768 #endif
13769 #ifdef HAVE_SYS_STATFS_H
13770 # include <sys/statfs.h>
13771 #endif
13772 "
13773 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13774
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13777 _ACEOF
13778
13779
13780 fi
13781 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13782 #ifdef HAVE_SYS_PARAM_H
13783 # include <sys/param.h>
13784 #endif
13785 #ifdef HAVE_SYS_MOUNT_H
13786 # include <sys/mount.h>
13787 #endif
13788 #ifdef HAVE_SYS_VFS_H
13789 # include <sys/vfs.h>
13790 #endif
13791 #ifdef HAVE_SYS_STATFS_H
13792 # include <sys/statfs.h>
13793 #endif
13794 "
13795 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13796
13797 cat >>confdefs.h <<_ACEOF
13798 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13799 _ACEOF
13800
13801
13802 fi
13803
13804
13805 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13806 #include <sys/statvfs.h>
13807 #endif
13808 "
13809 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13810
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13813 _ACEOF
13814
13815
13816 fi
13817
13818
13819 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13820 #ifdef HAVE_SYS_SOCKET_H
13821 # include <sys/socket.h>
13822 #endif
13823 #ifdef HAVE_SYS_UN_H
13824 # include <sys/un.h>
13825 #endif
13826 "
13827 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13828
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13831 _ACEOF
13832
13833
13834 fi
13835 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13836 #ifdef HAVE_SYS_SOCKET_H
13837 # include <sys/socket.h>
13838 #endif
13839 #ifdef HAVE_SYS_UN_H
13840 # include <sys/un.h>
13841 #endif
13842 "
13843 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13847 _ACEOF
13848
13849
13850 fi
13851 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13852 #ifdef HAVE_SYS_SOCKET_H
13853 # include <sys/socket.h>
13854 #endif
13855 #ifdef HAVE_SYS_UN_H
13856 # include <sys/un.h>
13857 #endif
13858 "
13859 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13860
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13863 _ACEOF
13864
13865
13866 fi
13867
13868
13869 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13870 #ifdef HAVE_SCSI_SG_H
13871 #include <scsi/sg.h>
13872 #endif
13873 "
13874 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13875
13876 cat >>confdefs.h <<_ACEOF
13877 #define HAVE_SCSIREQ_T_CMD 1
13878 _ACEOF
13879
13880
13881 fi
13882 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>
13883 #ifdef HAVE_SCSI_SG_H
13884 #include <scsi/sg.h>
13885 #endif
13886 "
13887 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13891 _ACEOF
13892
13893
13894 fi
13895
13896
13897 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13898 "
13899 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13900
13901 cat >>confdefs.h <<_ACEOF
13902 #define HAVE_SIGINFO_T_SI_FD 1
13903 _ACEOF
13904
13905
13906 fi
13907
13908
13909 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13910 #ifdef HAVE_SYS_MTIO_H
13911 #include <sys/mtio.h>
13912 #endif
13913 "
13914 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13918 _ACEOF
13919
13920
13921 fi
13922 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13923 #ifdef HAVE_SYS_MTIO_H
13924 #include <sys/mtio.h>
13925 #endif
13926 "
13927 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13931 _ACEOF
13932
13933
13934 fi
13935 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13936 #ifdef HAVE_SYS_MTIO_H
13937 #include <sys/mtio.h>
13938 #endif
13939 "
13940 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13941
13942 cat >>confdefs.h <<_ACEOF
13943 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13944 _ACEOF
13945
13946
13947 fi
13948
13949
13950 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13951 #include <getopt.h>
13952 #endif
13953 "
13954 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13955
13956 cat >>confdefs.h <<_ACEOF
13957 #define HAVE_STRUCT_OPTION_NAME 1
13958 _ACEOF
13959
13960
13961 fi
13962
13963
13964 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13965 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13966
13967 cat >>confdefs.h <<_ACEOF
13968 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13969 _ACEOF
13970
13971
13972 fi
13973 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13974 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13975
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_STRUCT_STAT_ST_MTIM 1
13978 _ACEOF
13979
13980
13981 fi
13982 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13983 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_STRUCT_STAT_ST_CTIM 1
13987 _ACEOF
13988
13989
13990 fi
13991 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13992 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13993
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_STRUCT_STAT_ST_ATIM 1
13996 _ACEOF
13997
13998
13999 fi
14000
14001
14002 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
14003 #include <sys/types.h>
14004 #endif
14005 #ifdef HAVE_NETINET_IN_H
14006 #include <netinet/in.h>
14007 #endif
14008 "
14009 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14013 _ACEOF
14014
14015
14016 fi
14017
14018
14019 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14020 #include <sys/types.h>
14021 #endif
14022 #ifdef HAVE_NETINET_IN_H
14023 # include <netinet/in.h>
14024 #endif
14025 #ifdef HAVE_ARPA_NAMESER_H
14026 # include <arpa/nameser.h>
14027 #endif
14028 "
14029 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14030
14031 cat >>confdefs.h <<_ACEOF
14032 #define HAVE_NS_MSG__MSG_PTR 1
14033 _ACEOF
14034
14035
14036 fi
14037
14038
14039 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14040 #include <sys/types.h>
14041 #endif
14042 #ifdef HAVE_ALIAS_H
14043 #include <alias.h>
14044 #endif
14045 #ifdef HAVE_SYS_SOCKET_H
14046 #include <sys/socket.h>
14047 #endif
14048 #ifdef HAVE_SYS_SOCKETVAR_H
14049 #include <sys/socketvar.h>
14050 #endif
14051 #ifdef HAVE_SYS_TIMEOUT_H
14052 #include <sys/timeout.h>
14053 #endif
14054 #ifdef HAVE_NETINET_IN_H
14055 #include <netinet/in.h>
14056 #endif
14057 #ifdef HAVE_NETINET_IN_SYSTM_H
14058 #include <netinet/in_systm.h>
14059 #endif
14060 #ifdef HAVE_NETINET_IP_H
14061 #include <netinet/ip.h>
14062 #endif
14063 #ifdef HAVE_NETINET_IP_VAR_H
14064 #include <netinet/ip_var.h>
14065 #endif
14066 #ifdef HAVE_NETINET_IP_ICMP_H
14067 #include <netinet/ip_icmp.h>
14068 #endif
14069 #ifdef HAVE_NETINET_ICMP_VAR
14070 #include <netinet/icmp_var.h>
14071 #endif
14072 "
14073 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14074
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14077 _ACEOF
14078
14079
14080 fi
14081
14082
14083 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14084 #include <sys/types.h>
14085 #endif
14086 #ifdef HAVE_NET_IF_H
14087 # include <net/if.h>
14088 #endif
14089 "
14090 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14091
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14094 _ACEOF
14095
14096
14097 fi
14098
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14101 $as_echo_n "checking for timezone variable... " >&6; }
14102 if test "${ac_cv_have_timezone+set}" = set; then :
14103   $as_echo_n "(cached) " >&6
14104 else
14105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h.  */
14107 #include <time.h>
14108 int
14109 main ()
14110 {
14111 timezone = 1
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_link "$LINENO"; then :
14117   ac_cv_have_timezone="yes"
14118 else
14119   ac_cv_have_timezone="no"
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext \
14122     conftest$ac_exeext conftest.$ac_ext
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14125 $as_echo "$ac_cv_have_timezone" >&6; }
14126 if test "$ac_cv_have_timezone" = "yes"
14127 then
14128
14129 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14133 $as_echo_n "checking for daylight variable... " >&6; }
14134 if test "${ac_cv_have_daylight+set}" = set; then :
14135   $as_echo_n "(cached) " >&6
14136 else
14137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h.  */
14139 #include <time.h>
14140 int
14141 main ()
14142 {
14143 daylight = 1
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"; then :
14149   ac_cv_have_daylight="yes"
14150 else
14151   ac_cv_have_daylight="no"
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext \
14154     conftest$ac_exeext conftest.$ac_ext
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14157 $as_echo "$ac_cv_have_daylight" >&6; }
14158 if test "$ac_cv_have_daylight" = "yes"
14159 then
14160
14161 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14162
14163 fi
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14166 $as_echo_n "checking for isinf... " >&6; }
14167 if test "${ac_cv_have_isinf+set}" = set; then :
14168   $as_echo_n "(cached) " >&6
14169 else
14170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h.  */
14172 #include <math.h>
14173 int
14174 main ()
14175 {
14176 float f = 0.0; int i=isinf(f)
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"; then :
14182   ac_cv_have_isinf="yes"
14183 else
14184   ac_cv_have_isinf="no"
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext \
14187     conftest$ac_exeext conftest.$ac_ext
14188 fi
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14190 $as_echo "$ac_cv_have_isinf" >&6; }
14191 if test "$ac_cv_have_isinf" = "yes"
14192 then
14193
14194 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14195
14196 fi
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14199 $as_echo_n "checking for isnan... " >&6; }
14200 if test "${ac_cv_have_isnan+set}" = set; then :
14201   $as_echo_n "(cached) " >&6
14202 else
14203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205 #include <math.h>
14206 int
14207 main ()
14208 {
14209 float f = 0.0; int i=isnan(f)
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215   ac_cv_have_isnan="yes"
14216 else
14217   ac_cv_have_isnan="no"
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext \
14220     conftest$ac_exeext conftest.$ac_ext
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14223 $as_echo "$ac_cv_have_isnan" >&6; }
14224 if test "$ac_cv_have_isnan" = "yes"
14225 then
14226
14227 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14228
14229 fi
14230
14231
14232 case $host_cpu in
14233   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14234 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14235 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14236   $as_echo_n "(cached) " >&6
14237 else
14238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h.  */
14240 #ifndef __i386__
14241 yes
14242 #endif
14243 _ACEOF
14244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14245   $EGREP "yes" >/dev/null 2>&1; then :
14246   ac_cv_cpp_def___i386__=yes
14247 else
14248   ac_cv_cpp_def___i386__=no
14249 fi
14250 rm -f conftest*
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14254 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14255 if test $ac_cv_cpp_def___i386__ = yes; then :
14256   CFLAGS="$CFLAGS -D__i386__"
14257   LINTFLAGS="$LINTFLAGS -D__i386__"
14258 fi ;;
14259   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14260 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14261 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266 #ifndef __x86_64__
14267 yes
14268 #endif
14269 _ACEOF
14270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14271   $EGREP "yes" >/dev/null 2>&1; then :
14272   ac_cv_cpp_def___x86_64__=yes
14273 else
14274   ac_cv_cpp_def___x86_64__=no
14275 fi
14276 rm -f conftest*
14277
14278 fi
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14280 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14281 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14282   CFLAGS="$CFLAGS -D__x86_64__"
14283   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14284 fi ;;
14285   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14286 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14287 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h.  */
14292 #ifndef __ALPHA__
14293 yes
14294 #endif
14295 _ACEOF
14296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14297   $EGREP "yes" >/dev/null 2>&1; then :
14298   ac_cv_cpp_def___ALPHA__=yes
14299 else
14300   ac_cv_cpp_def___ALPHA__=no
14301 fi
14302 rm -f conftest*
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14306 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14307 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14308   CFLAGS="$CFLAGS -D__ALPHA__"
14309   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14310 fi ;;
14311   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14312 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14313 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h.  */
14318 #ifndef __sparc__
14319 yes
14320 #endif
14321 _ACEOF
14322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14323   $EGREP "yes" >/dev/null 2>&1; then :
14324   ac_cv_cpp_def___sparc__=yes
14325 else
14326   ac_cv_cpp_def___sparc__=no
14327 fi
14328 rm -f conftest*
14329
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14332 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14333 if test $ac_cv_cpp_def___sparc__ = yes; then :
14334   CFLAGS="$CFLAGS -D__sparc__"
14335   LINTFLAGS="$LINTFLAGS -D__sparc__"
14336 fi ;;
14337   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14338 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14339 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344 #ifndef __powerpc__
14345 yes
14346 #endif
14347 _ACEOF
14348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14349   $EGREP "yes" >/dev/null 2>&1; then :
14350   ac_cv_cpp_def___powerpc__=yes
14351 else
14352   ac_cv_cpp_def___powerpc__=no
14353 fi
14354 rm -f conftest*
14355
14356 fi
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14358 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14359 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14360   CFLAGS="$CFLAGS -D__powerpc__"
14361   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14362 fi ;;
14363 esac
14364
14365 case $host_vendor in
14366   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14367 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14368 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h.  */
14373 #ifndef __sun__
14374 yes
14375 #endif
14376 _ACEOF
14377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14378   $EGREP "yes" >/dev/null 2>&1; then :
14379   ac_cv_cpp_def___sun__=yes
14380 else
14381   ac_cv_cpp_def___sun__=no
14382 fi
14383 rm -f conftest*
14384
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14387 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14388 if test $ac_cv_cpp_def___sun__ = yes; then :
14389   CFLAGS="$CFLAGS -D__sun__"
14390   LINTFLAGS="$LINTFLAGS -D__sun__"
14391 fi ;;
14392 esac
14393
14394
14395
14396
14397
14398 ac_config_commands="$ac_config_commands include/stamp-h"
14399
14400
14401 ALL_MAKEFILE_DEPENDS="
14402 # Rules automatically generated by configure
14403
14404 .INIT: Makefile
14405 .MAKEFILEDEPS:
14406 all: Makefile
14407 Makefile: Makefile.in Make.vars.in Make.rules config.status
14408         @./config.status Make.tmp Makefile"
14409
14410 ALL_POT_FILES=""
14411 ALL_WINETEST_DEPENDS="# Test binaries"
14412
14413 ALL_TEST_BINARIES=""
14414
14415
14416 wine_fn_append_file ()
14417 {
14418     as_fn_append $1 " \\$as_nl  $2"
14419 }
14420
14421 wine_fn_append_rule ()
14422 {
14423     as_fn_append $1 "$as_nl$2"
14424 }
14425
14426 wine_fn_has_flag ()
14427 {
14428     expr ",$2," : ".*,$1,.*" >/dev/null
14429 }
14430
14431 wine_fn_all_dir_rules ()
14432 {
14433     ac_dir=$1
14434     ac_alldeps=$2
14435     ac_makedep="\$(MAKEDEP)"
14436     ac_input=Make.vars.in:$ac_dir/Makefile.in
14437     if test $ac_dir != tools
14438     then
14439                 ac_alldeps="$2 $ac_makedep"
14440     fi
14441     case $2 in
14442       *.in) ac_input=$ac_input:$2 ;;
14443       *) ac_makedep="$2 $ac_makedep" ;;
14444     esac
14445
14446     wine_fn_append_file ALL_DIRS $ac_dir
14447     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14448 "__clean__: $ac_dir/__clean__
14449 .PHONY: $ac_dir/__clean__
14450 $ac_dir/__clean__: $ac_dir/Makefile
14451         @cd $ac_dir && \$(MAKE) clean
14452         \$(RM) $ac_dir/Makefile
14453 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14454         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14455 depend: $ac_dir/__depend__
14456 .PHONY: $ac_dir/__depend__
14457 $ac_dir/__depend__: $ac_makedep dummy
14458         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14459 }
14460
14461 wine_fn_config_makefile ()
14462 {
14463     ac_dir=$1
14464     ac_enable=$2
14465     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14466   return 0
14467 fi
14468
14469     wine_fn_all_dir_rules $ac_dir Make.rules
14470     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14471 "all: $ac_dir
14472 .PHONY: $ac_dir
14473 $ac_dir: $ac_dir/Makefile dummy
14474         @cd $ac_dir && \$(MAKE)
14475 install:: $ac_dir
14476         @cd $ac_dir && \$(MAKE) install
14477 install-lib:: $ac_dir
14478         @cd $ac_dir && \$(MAKE) install-lib
14479 install-dev:: $ac_dir
14480         @cd $ac_dir && \$(MAKE) install-dev
14481 uninstall:: $ac_dir/Makefile
14482         @cd $ac_dir && \$(MAKE) uninstall"
14483 }
14484
14485 wine_fn_config_lib ()
14486 {
14487     ac_name=$1
14488     ac_dir=dlls/$ac_name
14489     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14490     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14491 "all __builddeps__: $ac_dir
14492 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14493         @cd $ac_dir && \$(MAKE)
14494 install install-dev:: $ac_dir
14495         @cd $ac_dir && \$(MAKE) install
14496 uninstall:: $ac_dir/Makefile
14497         @cd $ac_dir && \$(MAKE) uninstall"
14498 }
14499
14500 wine_fn_config_dll ()
14501 {
14502     ac_name=$1
14503     ac_dir=dlls/$ac_name
14504     ac_enable=$2
14505     ac_flags=$3
14506     ac_implib=${4:-$ac_name}
14507     ac_file=$ac_dir/lib$ac_implib
14508     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14509     ac_implibflags=""
14510
14511     case $ac_name in
14512       *16) ac_implibflags=" -m16" ;;
14513     esac
14514
14515     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14516
14517     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14518                 test "$ac_enable" != enable_win16 || return 0
14519 else
14520   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14521 "all: $ac_dir
14522 .PHONY: $ac_dir
14523 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14524         @cd $ac_dir && \$(MAKE)
14525 install:: $ac_dir/Makefile __builddeps__
14526         @cd $ac_dir && \$(MAKE) install
14527 install-lib:: $ac_dir/Makefile __builddeps__
14528         @cd $ac_dir && \$(MAKE) install-lib
14529 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14530         @cd $ac_dir && \$(MAKE) \$@"
14531
14532         if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
14533         then
14534             wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14535             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14536 "$ac_dir/rsrc.pot: $ac_dir"
14537         fi
14538 fi
14539
14540     if wine_fn_has_flag staticimplib $ac_flags
14541     then
14542         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14543 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14544 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14545 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14546         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14547 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14548         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14549 install-dev:: $ac_dir/Makefile __builddeps__
14550         @cd $ac_dir && \$(MAKE) install-dev"
14551         if test "x$CROSSTEST_DISABLE" = x
14552         then
14553             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14554 "__builddeps__: $ac_file.cross.a
14555 $ac_file.cross.a: $ac_dir/Makefile dummy
14556         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14557         fi
14558
14559     elif wine_fn_has_flag implib $ac_flags
14560     then
14561         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14562 "__builddeps__: $ac_file.$IMPLIBEXT
14563 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14564         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14565 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14566         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14567 install-dev:: $ac_dir/Makefile __builddeps__
14568         @cd $ac_dir && \$(MAKE) install-dev"
14569         if test "x$CROSSTEST_DISABLE" = x
14570         then
14571             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14572 "__builddeps__: $ac_file.cross.a
14573 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14574         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14575         fi
14576
14577         if test "$ac_name" != "$ac_implib"
14578         then
14579             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14580 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14581 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14582         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14583 clean::
14584         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14585             if test "x$CROSSTEST_DISABLE" = x
14586             then
14587                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14588 "__builddeps__: dlls/lib$ac_implib.cross.a
14589 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14590         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14591             fi
14592         fi
14593     fi
14594 }
14595
14596 wine_fn_config_program ()
14597 {
14598     ac_name=$1
14599     ac_dir=programs/$ac_name
14600     ac_enable=$2
14601     ac_flags=$3
14602     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14603
14604     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14605
14606 else
14607   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14608 "all: $ac_dir
14609 .PHONY: $ac_dir
14610 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14611         @cd $ac_dir && \$(MAKE)"
14612
14613     if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
14614     then
14615         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14616         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14617 "$ac_dir/rsrc.pot: $ac_dir"
14618     fi
14619
14620     wine_fn_has_flag install $ac_flags || return
14621     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14622 "install install-lib:: $ac_dir/Makefile __builddeps__
14623         @cd $ac_dir && \$(MAKE) install
14624 uninstall:: $ac_dir/Makefile
14625         @cd $ac_dir && \$(MAKE) uninstall"
14626     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14627     then
14628         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14629 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14630         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14631 uninstall::
14632         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14633     fi
14634 fi
14635 }
14636
14637 wine_fn_config_test ()
14638 {
14639     ac_dir=$1
14640     ac_name=$2
14641     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14642     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14643 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14644         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14645 $ac_name.rc:
14646         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14647 $ac_name.res: $ac_name.rc $ac_name.exe"
14648     wine_fn_all_dir_rules $ac_dir Maketest.rules
14649
14650     if test "x$enable_tests" = x""no; then :
14651
14652 else
14653   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14654 "all programs/winetest: $ac_dir
14655 .PHONY: $ac_dir
14656 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14657         @cd $ac_dir && \$(MAKE)
14658 test: $ac_dir/__test__
14659 .PHONY: $ac_dir/__test__
14660 $ac_dir/__test__: dummy
14661         @cd $ac_dir && \$(MAKE) test
14662 testclean::
14663         \$(RM) $ac_dir/*.ok"
14664
14665         if test "x$CROSSTEST_DISABLE" = x
14666         then
14667             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14668 "crosstest: $ac_dir/__crosstest__
14669 .PHONY: $ac_dir/__crosstest__
14670 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14671         @cd $ac_dir && \$(MAKE) crosstest"
14672         fi
14673 fi
14674 }
14675
14676 wine_fn_config_tool ()
14677 {
14678     ac_dir=$1
14679     wine_fn_all_dir_rules $ac_dir Make.rules
14680
14681     if test "x$enable_tools" = x""no; then :
14682
14683 else
14684   case $ac_dir in
14685             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "install:: $ac_dir
14687         @cd $ac_dir && \$(MAKE) install
14688 install-lib:: $ac_dir
14689         @cd $ac_dir && \$(MAKE) install-lib
14690 install-dev:: $ac_dir
14691         @cd $ac_dir && \$(MAKE) install-dev" ;;
14692       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14693 "install install-dev:: $ac_dir
14694         @cd $ac_dir && \$(MAKE) install" ;;
14695       esac
14696       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14697 "uninstall:: $ac_dir/Makefile
14698         @cd $ac_dir && \$(MAKE) uninstall
14699 all __tooldeps__: $ac_dir
14700 .PHONY: $ac_dir
14701 $ac_dir: $ac_dir/Makefile libs/port dummy
14702         @cd $ac_dir && \$(MAKE)"
14703       case $ac_dir in
14704         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14705       esac
14706 fi
14707 }
14708
14709 wine_fn_config_makerules ()
14710 {
14711     ac_rules=$1
14712     ac_deps=$2
14713     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14714 "$ac_rules: $ac_rules.in $ac_deps config.status
14715         @./config.status $ac_rules
14716 distclean::
14717         \$(RM) $ac_rules"
14718 }
14719
14720 wine_fn_config_symlink ()
14721 {
14722     ac_link=$1
14723     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14724 "$ac_link:
14725         @./config.status $ac_link
14726 distclean::
14727         \$(RM) $ac_link"
14728 }
14729
14730 if test "x$CROSSTEST_DISABLE" != x
14731 then
14732     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14733 "crosstest:
14734         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14735 fi
14736 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14737 wine_fn_config_symlink dlls/shell32/AUTHORS
14738 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14739 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14740 if test "x$enable_fonts" != xno; then
14741 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14742 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14743 fi
14744 if test "x$enable_fonts" != xno; then
14745 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14746 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14747 fi
14748 if test "x$enable_fonts" != xno; then
14749 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14750 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14751 fi
14752 if test "x$enable_fonts" != xno; then
14753 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14754 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14755 fi
14756 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14757 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14758 ac_config_links="$ac_config_links wine:tools/winewrapper"
14759 wine_fn_config_symlink wine
14760
14761 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14762
14763 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14764
14765 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14766
14767 ac_config_commands="$ac_config_commands dlls/user32/resources"
14768
14769 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14770
14771 ac_config_commands="$ac_config_commands include/wine"
14772
14773
14774 wine_fn_config_makerules Make.rules
14775 MAKE_RULES=Make.rules
14776 ac_config_files="$ac_config_files Make.rules"
14777
14778 wine_fn_config_makerules Maketest.rules Make.rules
14779 MAKE_TEST_RULES=Maketest.rules
14780 ac_config_files="$ac_config_files Maketest.rules"
14781
14782 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14783 MAKE_DLL_RULES=dlls/Makedll.rules
14784 ac_config_files="$ac_config_files dlls/Makedll.rules"
14785
14786 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14787 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14788 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14789
14790 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14791 MAKE_PROG_RULES=programs/Makeprog.rules
14792 ac_config_files="$ac_config_files programs/Makeprog.rules"
14793
14794
14795 wine_fn_config_dll acledit enable_acledit
14796 wine_fn_config_dll aclui enable_aclui implib
14797 wine_fn_config_dll activeds enable_activeds implib
14798 wine_fn_config_dll actxprxy enable_actxprxy
14799 wine_fn_config_lib adsiid
14800 wine_fn_config_dll advapi32 enable_advapi32 implib
14801 wine_fn_config_test dlls/advapi32/tests advapi32_test
14802 wine_fn_config_dll advpack enable_advpack implib
14803 wine_fn_config_test dlls/advpack/tests advpack_test
14804 wine_fn_config_dll amstream enable_amstream
14805 wine_fn_config_test dlls/amstream/tests amstream_test
14806 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14807 wine_fn_config_dll atl enable_atl implib
14808 wine_fn_config_test dlls/atl/tests atl_test
14809 wine_fn_config_dll authz enable_authz
14810 wine_fn_config_dll avicap32 enable_avicap32 implib
14811 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14812 wine_fn_config_test dlls/avifil32/tests avifil32_test
14813 wine_fn_config_dll avifile.dll16 enable_win16
14814 wine_fn_config_dll avrt enable_avrt implib
14815 wine_fn_config_dll bcrypt enable_bcrypt
14816 wine_fn_config_dll browseui enable_browseui po
14817 wine_fn_config_test dlls/browseui/tests browseui_test
14818 wine_fn_config_dll cabinet enable_cabinet implib
14819 wine_fn_config_test dlls/cabinet/tests cabinet_test
14820 wine_fn_config_dll capi2032 enable_capi2032 implib
14821 wine_fn_config_dll cards enable_cards implib
14822 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14823 wine_fn_config_dll clusapi enable_clusapi implib
14824 wine_fn_config_dll comcat enable_comcat
14825 wine_fn_config_test dlls/comcat/tests comcat_test
14826 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14827 wine_fn_config_test dlls/comctl32/tests comctl32_test
14828 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14829 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14830 wine_fn_config_dll comm.drv16 enable_win16
14831 wine_fn_config_dll commdlg.dll16 enable_win16
14832 wine_fn_config_dll compobj.dll16 enable_win16
14833 wine_fn_config_dll compstui enable_compstui implib
14834 wine_fn_config_dll credui enable_credui po,implib
14835 wine_fn_config_test dlls/credui/tests credui_test
14836 wine_fn_config_dll crtdll enable_crtdll implib
14837 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14838 wine_fn_config_test dlls/crypt32/tests crypt32_test
14839 wine_fn_config_dll cryptdlg enable_cryptdlg po
14840 wine_fn_config_dll cryptdll enable_cryptdll implib
14841 wine_fn_config_dll cryptnet enable_cryptnet implib
14842 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14843 wine_fn_config_dll cryptui enable_cryptui po,implib
14844 wine_fn_config_test dlls/cryptui/tests cryptui_test
14845 wine_fn_config_dll ctapi32 enable_ctapi32
14846 wine_fn_config_dll ctl3d.dll16 enable_win16
14847 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14848 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14849 wine_fn_config_dll d3d10 enable_d3d10 implib
14850 wine_fn_config_test dlls/d3d10/tests d3d10_test
14851 wine_fn_config_dll d3d10core enable_d3d10core implib
14852 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14853 wine_fn_config_dll d3d8 enable_d3d8 implib
14854 wine_fn_config_test dlls/d3d8/tests d3d8_test
14855 wine_fn_config_dll d3d9 enable_d3d9 implib
14856 wine_fn_config_test dlls/d3d9/tests d3d9_test
14857 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14858 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14859 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14860 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14861 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14862 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14863 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14864 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14865 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14866 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14867 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14868 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14869 wine_fn_config_dll d3dim enable_d3dim implib
14870 wine_fn_config_dll d3drm enable_d3drm implib
14871 wine_fn_config_test dlls/d3drm/tests d3drm_test
14872 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14873 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14874 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14875 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14876 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14877 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14878 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14879 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14880 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14881 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14882 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14883 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14884 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14885 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14886 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14887 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14888 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14889 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14890 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14891 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14892 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14893 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14894 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14895 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14896 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14897 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14898 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14899 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14900 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14901 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14902 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14903 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14904 wine_fn_config_dll d3dxof enable_d3dxof implib
14905 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14906 wine_fn_config_dll dbgeng enable_dbgeng implib
14907 wine_fn_config_dll dbghelp enable_dbghelp implib
14908 wine_fn_config_dll dciman32 enable_dciman32 implib
14909 wine_fn_config_dll ddeml.dll16 enable_win16
14910 wine_fn_config_dll ddraw enable_ddraw implib
14911 wine_fn_config_test dlls/ddraw/tests ddraw_test
14912 wine_fn_config_dll ddrawex enable_ddrawex
14913 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14914 wine_fn_config_dll devenum enable_devenum po
14915 wine_fn_config_dll dinput enable_dinput implib,staticimplib
14916 wine_fn_config_test dlls/dinput/tests dinput_test
14917 wine_fn_config_dll dinput8 enable_dinput8 implib
14918 wine_fn_config_dll dispdib.dll16 enable_win16
14919 wine_fn_config_dll dispex enable_dispex
14920 wine_fn_config_test dlls/dispex/tests dispex_test
14921 wine_fn_config_dll display.drv16 enable_win16
14922 wine_fn_config_dll dmband enable_dmband
14923 wine_fn_config_dll dmcompos enable_dmcompos
14924 wine_fn_config_dll dmime enable_dmime
14925 wine_fn_config_test dlls/dmime/tests dmime_test
14926 wine_fn_config_dll dmloader enable_dmloader
14927 wine_fn_config_test dlls/dmloader/tests dmloader_test
14928 wine_fn_config_dll dmscript enable_dmscript
14929 wine_fn_config_dll dmstyle enable_dmstyle
14930 wine_fn_config_dll dmsynth enable_dmsynth
14931 wine_fn_config_dll dmusic enable_dmusic
14932 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14933 wine_fn_config_dll dnsapi enable_dnsapi implib
14934 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14935 wine_fn_config_dll dplay enable_dplay implib
14936 wine_fn_config_dll dplayx enable_dplayx implib
14937 wine_fn_config_test dlls/dplayx/tests dplayx_test
14938 wine_fn_config_dll dpnaddr enable_dpnaddr
14939 wine_fn_config_dll dpnet enable_dpnet implib
14940 wine_fn_config_dll dpnhpast enable_dpnhpast
14941 wine_fn_config_dll dpnlobby enable_dpnlobby
14942 wine_fn_config_dll dpwsockx enable_dpwsockx
14943 wine_fn_config_dll drmclien enable_drmclien
14944 wine_fn_config_dll dsound enable_dsound implib
14945 wine_fn_config_test dlls/dsound/tests dsound_test
14946 wine_fn_config_dll dssenh enable_dssenh
14947 wine_fn_config_dll dswave enable_dswave
14948 wine_fn_config_dll dwmapi enable_dwmapi implib
14949 wine_fn_config_dll dxdiagn enable_dxdiagn
14950 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14951 wine_fn_config_lib dxerr8
14952 wine_fn_config_lib dxerr9
14953 wine_fn_config_dll dxgi enable_dxgi implib
14954 wine_fn_config_test dlls/dxgi/tests dxgi_test
14955 wine_fn_config_lib dxguid
14956 wine_fn_config_dll explorerframe enable_explorerframe
14957 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14958 wine_fn_config_dll faultrep enable_faultrep implib
14959 wine_fn_config_test dlls/faultrep/tests faultrep_test
14960 wine_fn_config_dll fltlib enable_fltlib
14961 wine_fn_config_dll fusion enable_fusion
14962 wine_fn_config_test dlls/fusion/tests fusion_test
14963 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14964 wine_fn_config_dll gameux enable_gameux
14965 wine_fn_config_test dlls/gameux/tests gameux_test
14966 wine_fn_config_dll gdi.exe16 enable_win16
14967 wine_fn_config_dll gdi32 enable_gdi32 implib
14968 wine_fn_config_test dlls/gdi32/tests gdi32_test
14969 wine_fn_config_dll gdiplus enable_gdiplus implib
14970 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14971 wine_fn_config_dll glu32 enable_glu32 implib
14972 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14973 wine_fn_config_dll gpkcsp enable_gpkcsp
14974 wine_fn_config_dll hal enable_hal
14975 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
14976 wine_fn_config_dll hid enable_hid implib
14977 wine_fn_config_dll hlink enable_hlink implib
14978 wine_fn_config_test dlls/hlink/tests hlink_test
14979 wine_fn_config_dll hnetcfg enable_hnetcfg
14980 wine_fn_config_dll httpapi enable_httpapi
14981 wine_fn_config_dll iccvid enable_iccvid po
14982 wine_fn_config_dll icmp enable_icmp
14983 wine_fn_config_dll ifsmgr.vxd enable_win16
14984 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14985 wine_fn_config_dll imagehlp enable_imagehlp implib
14986 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14987 wine_fn_config_dll imm.dll16 enable_win16
14988 wine_fn_config_dll imm32 enable_imm32 implib
14989 wine_fn_config_test dlls/imm32/tests imm32_test
14990 wine_fn_config_dll inetcomm enable_inetcomm implib
14991 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14992 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
14993 wine_fn_config_dll inetmib1 enable_inetmib1
14994 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14995 wine_fn_config_dll infosoft enable_infosoft
14996 wine_fn_config_test dlls/infosoft/tests infosoft_test
14997 wine_fn_config_dll initpki enable_initpki
14998 wine_fn_config_dll inkobj enable_inkobj
14999 wine_fn_config_dll inseng enable_inseng
15000 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15001 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15002 wine_fn_config_dll itircl enable_itircl
15003 wine_fn_config_dll itss enable_itss
15004 wine_fn_config_test dlls/itss/tests itss_test
15005 wine_fn_config_dll jscript enable_jscript po
15006 wine_fn_config_test dlls/jscript/tests jscript_test
15007 wine_fn_config_dll kernel32 enable_kernel32 implib
15008 wine_fn_config_test dlls/kernel32/tests kernel32_test
15009 wine_fn_config_dll keyboard.drv16 enable_win16
15010 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15011 wine_fn_config_dll ktmw32 enable_ktmw32
15012 wine_fn_config_dll loadperf enable_loadperf implib
15013 wine_fn_config_dll localspl enable_localspl po
15014 wine_fn_config_test dlls/localspl/tests localspl_test
15015 wine_fn_config_dll localui enable_localui po
15016 wine_fn_config_test dlls/localui/tests localui_test
15017 wine_fn_config_dll lz32 enable_lz32 implib
15018 wine_fn_config_test dlls/lz32/tests lz32_test
15019 wine_fn_config_dll lzexpand.dll16 enable_win16
15020 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15021 wine_fn_config_test dlls/mapi32/tests mapi32_test
15022 wine_fn_config_dll mapistub enable_mapistub
15023 wine_fn_config_dll mciavi32 enable_mciavi32
15024 wine_fn_config_dll mcicda enable_mcicda
15025 wine_fn_config_dll mciqtz32 enable_mciqtz32
15026 wine_fn_config_dll mciseq enable_mciseq
15027 wine_fn_config_dll mciwave enable_mciwave
15028 wine_fn_config_dll midimap enable_midimap
15029 wine_fn_config_dll mlang enable_mlang implib
15030 wine_fn_config_test dlls/mlang/tests mlang_test
15031 wine_fn_config_dll mmdevapi enable_mmdevapi
15032 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15033 wine_fn_config_dll mmdevldr.vxd enable_win16
15034 wine_fn_config_dll mmsystem.dll16 enable_win16
15035 wine_fn_config_dll monodebg.vxd enable_win16
15036 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15037 wine_fn_config_dll mouse.drv16 enable_win16
15038 wine_fn_config_dll mpr enable_mpr po,implib
15039 wine_fn_config_dll mprapi enable_mprapi implib
15040 wine_fn_config_dll msacm.dll16 enable_win16
15041 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15042 wine_fn_config_dll msacm32 enable_msacm32 implib
15043 wine_fn_config_test dlls/msacm32/tests msacm32_test
15044 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15045 wine_fn_config_dll mscat32 enable_mscat32
15046 wine_fn_config_dll mscms enable_mscms implib
15047 wine_fn_config_test dlls/mscms/tests mscms_test
15048 wine_fn_config_dll mscoree enable_mscoree
15049 wine_fn_config_test dlls/mscoree/tests mscoree_test
15050 wine_fn_config_dll msctf enable_msctf
15051 wine_fn_config_test dlls/msctf/tests msctf_test
15052 wine_fn_config_dll msdaps enable_msdaps
15053 wine_fn_config_dll msdmo enable_msdmo implib
15054 wine_fn_config_dll msftedit enable_msftedit
15055 wine_fn_config_dll msg711.acm enable_msg711_acm
15056 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15057 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15058 wine_fn_config_dll mshtml enable_mshtml po,implib
15059 wine_fn_config_test dlls/mshtml/tests mshtml_test
15060 wine_fn_config_dll msi enable_msi po,implib
15061 wine_fn_config_test dlls/msi/tests msi_test
15062 wine_fn_config_dll msimg32 enable_msimg32 implib
15063 wine_fn_config_dll msimtf enable_msimtf
15064 wine_fn_config_dll msisip enable_msisip
15065 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15066 wine_fn_config_dll msnet32 enable_msnet32
15067 wine_fn_config_dll msrle32 enable_msrle32 po
15068 wine_fn_config_dll mssign32 enable_mssign32
15069 wine_fn_config_dll mssip32 enable_mssip32
15070 wine_fn_config_dll mstask enable_mstask
15071 wine_fn_config_test dlls/mstask/tests mstask_test
15072 wine_fn_config_dll msvcirt enable_msvcirt
15073 wine_fn_config_dll msvcp80 enable_msvcp80
15074 wine_fn_config_dll msvcp90 enable_msvcp90
15075 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15076 wine_fn_config_dll msvcr100 enable_msvcr100
15077 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15078 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15079 wine_fn_config_dll msvcr80 enable_msvcr80
15080 wine_fn_config_dll msvcr90 enable_msvcr90
15081 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15082 wine_fn_config_dll msvcrt enable_msvcrt implib
15083 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15084 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15085 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15086 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15087 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15088 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15089 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15090 wine_fn_config_dll msvidc32 enable_msvidc32 po
15091 wine_fn_config_dll msvideo.dll16 enable_win16
15092 wine_fn_config_dll mswsock enable_mswsock implib
15093 wine_fn_config_dll msxml enable_msxml
15094 wine_fn_config_dll msxml2 enable_msxml2
15095 wine_fn_config_dll msxml3 enable_msxml3
15096 wine_fn_config_test dlls/msxml3/tests msxml3_test
15097 wine_fn_config_dll msxml4 enable_msxml4
15098 wine_fn_config_dll msxml6 enable_msxml6
15099 wine_fn_config_dll nddeapi enable_nddeapi implib
15100 wine_fn_config_dll netapi32 enable_netapi32 implib
15101 wine_fn_config_test dlls/netapi32/tests netapi32_test
15102 wine_fn_config_dll newdev enable_newdev implib
15103 wine_fn_config_dll normaliz enable_normaliz implib
15104 wine_fn_config_dll npmshtml enable_npmshtml
15105 wine_fn_config_dll ntdll enable_ntdll implib
15106 wine_fn_config_test dlls/ntdll/tests ntdll_test
15107 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15108 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15109 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15110 wine_fn_config_dll ntprint enable_ntprint
15111 wine_fn_config_test dlls/ntprint/tests ntprint_test
15112 wine_fn_config_dll objsel enable_objsel
15113 wine_fn_config_dll odbc32 enable_odbc32 implib
15114 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15115 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15116 wine_fn_config_dll ole2.dll16 enable_win16
15117 wine_fn_config_dll ole2conv.dll16 enable_win16
15118 wine_fn_config_dll ole2disp.dll16 enable_win16
15119 wine_fn_config_dll ole2nls.dll16 enable_win16
15120 wine_fn_config_dll ole2prox.dll16 enable_win16
15121 wine_fn_config_dll ole2thk.dll16 enable_win16
15122 wine_fn_config_dll ole32 enable_ole32 implib
15123 wine_fn_config_test dlls/ole32/tests ole32_test
15124 wine_fn_config_dll oleacc enable_oleacc po,implib
15125 wine_fn_config_test dlls/oleacc/tests oleacc_test
15126 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15127 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15128 wine_fn_config_dll olecli.dll16 enable_win16
15129 wine_fn_config_dll olecli32 enable_olecli32 implib
15130 wine_fn_config_dll oledb32 enable_oledb32
15131 wine_fn_config_test dlls/oledb32/tests oledb32_test
15132 wine_fn_config_dll oledlg enable_oledlg po,implib
15133 wine_fn_config_dll olepro32 enable_olepro32 implib
15134 wine_fn_config_dll olesvr.dll16 enable_win16
15135 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15136 wine_fn_config_dll olethk32 enable_olethk32
15137 wine_fn_config_dll openal32 enable_openal32
15138 wine_fn_config_dll opencl enable_opencl
15139 wine_fn_config_dll opengl32 enable_opengl32 implib
15140 wine_fn_config_test dlls/opengl32/tests opengl32_test
15141 wine_fn_config_dll pdh enable_pdh implib
15142 wine_fn_config_test dlls/pdh/tests pdh_test
15143 wine_fn_config_dll pidgen enable_pidgen
15144 wine_fn_config_dll powrprof enable_powrprof implib
15145 wine_fn_config_dll printui enable_printui
15146 wine_fn_config_dll propsys enable_propsys implib
15147 wine_fn_config_test dlls/propsys/tests propsys_test
15148 wine_fn_config_dll psapi enable_psapi implib
15149 wine_fn_config_test dlls/psapi/tests psapi_test
15150 wine_fn_config_dll pstorec enable_pstorec
15151 wine_fn_config_dll qcap enable_qcap
15152 wine_fn_config_dll qedit enable_qedit
15153 wine_fn_config_test dlls/qedit/tests qedit_test
15154 wine_fn_config_dll qmgr enable_qmgr
15155 wine_fn_config_test dlls/qmgr/tests qmgr_test
15156 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15157 wine_fn_config_dll quartz enable_quartz implib
15158 wine_fn_config_test dlls/quartz/tests quartz_test
15159 wine_fn_config_dll query enable_query
15160 wine_fn_config_dll rasapi16.dll16 enable_win16
15161 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15162 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15163 wine_fn_config_dll rasdlg enable_rasdlg implib
15164 wine_fn_config_dll resutils enable_resutils implib
15165 wine_fn_config_dll riched20 enable_riched20 implib
15166 wine_fn_config_test dlls/riched20/tests riched20_test
15167 wine_fn_config_dll riched32 enable_riched32
15168 wine_fn_config_test dlls/riched32/tests riched32_test
15169 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15170 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15171 wine_fn_config_dll rsabase enable_rsabase
15172 wine_fn_config_dll rsaenh enable_rsaenh implib
15173 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15174 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15175 wine_fn_config_dll rtutils enable_rtutils implib
15176 wine_fn_config_dll samlib enable_samlib
15177 wine_fn_config_dll sane.ds enable_sane_ds po
15178 wine_fn_config_dll sccbase enable_sccbase
15179 wine_fn_config_dll schannel enable_schannel
15180 wine_fn_config_test dlls/schannel/tests schannel_test
15181 wine_fn_config_dll secur32 enable_secur32 implib
15182 wine_fn_config_test dlls/secur32/tests secur32_test
15183 wine_fn_config_dll security enable_security
15184 wine_fn_config_dll sensapi enable_sensapi implib
15185 wine_fn_config_dll serialui enable_serialui implib
15186 wine_fn_config_test dlls/serialui/tests serialui_test
15187 wine_fn_config_dll setupapi enable_setupapi po,implib
15188 wine_fn_config_test dlls/setupapi/tests setupapi_test
15189 wine_fn_config_dll setupx.dll16 enable_win16
15190 wine_fn_config_dll sfc enable_sfc implib
15191 wine_fn_config_dll sfc_os enable_sfc_os implib
15192 wine_fn_config_dll shdoclc enable_shdoclc po
15193 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15194 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15195 wine_fn_config_dll shell.dll16 enable_win16
15196 wine_fn_config_dll shell32 enable_shell32 po,implib
15197 wine_fn_config_test dlls/shell32/tests shell32_test
15198 wine_fn_config_dll shfolder enable_shfolder implib
15199 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15200 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15201 wine_fn_config_dll slbcsp enable_slbcsp
15202 wine_fn_config_dll slc enable_slc implib
15203 wine_fn_config_dll snmpapi enable_snmpapi implib
15204 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15205 wine_fn_config_dll softpub enable_softpub
15206 wine_fn_config_dll sound.drv16 enable_win16
15207 wine_fn_config_dll spoolss enable_spoolss implib
15208 wine_fn_config_test dlls/spoolss/tests spoolss_test
15209 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15210 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15211 wine_fn_config_dll sti enable_sti implib
15212 wine_fn_config_test dlls/sti/tests sti_test
15213 wine_fn_config_dll storage.dll16 enable_win16
15214 wine_fn_config_dll stress.dll16 enable_win16
15215 wine_fn_config_lib strmbase
15216 wine_fn_config_lib strmiids
15217 wine_fn_config_dll svrapi enable_svrapi
15218 wine_fn_config_dll sxs enable_sxs
15219 wine_fn_config_dll system.drv16 enable_win16
15220 wine_fn_config_dll t2embed enable_t2embed
15221 wine_fn_config_dll tapi32 enable_tapi32 implib
15222 wine_fn_config_dll toolhelp.dll16 enable_win16
15223 wine_fn_config_dll traffic enable_traffic
15224 wine_fn_config_dll twain.dll16 enable_win16
15225 wine_fn_config_dll twain_32 enable_twain_32
15226 wine_fn_config_test dlls/twain_32/tests twain_32_test
15227 wine_fn_config_dll typelib.dll16 enable_win16
15228 wine_fn_config_dll unicows enable_unicows implib
15229 wine_fn_config_dll updspapi enable_updspapi
15230 wine_fn_config_dll url enable_url implib
15231 wine_fn_config_dll urlmon enable_urlmon implib
15232 wine_fn_config_test dlls/urlmon/tests urlmon_test
15233 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15234 wine_fn_config_dll user.exe16 enable_win16
15235 wine_fn_config_dll user32 enable_user32 po,implib
15236 wine_fn_config_test dlls/user32/tests user32_test
15237 wine_fn_config_dll userenv enable_userenv implib
15238 wine_fn_config_test dlls/userenv/tests userenv_test
15239 wine_fn_config_dll usp10 enable_usp10 implib
15240 wine_fn_config_test dlls/usp10/tests usp10_test
15241 wine_fn_config_lib uuid
15242 wine_fn_config_dll uxtheme enable_uxtheme implib
15243 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15244 wine_fn_config_dll vdhcp.vxd enable_win16
15245 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15246 wine_fn_config_dll ver.dll16 enable_win16
15247 wine_fn_config_dll version enable_version implib
15248 wine_fn_config_test dlls/version/tests version_test
15249 wine_fn_config_dll vmm.vxd enable_win16
15250 wine_fn_config_dll vnbt.vxd enable_win16
15251 wine_fn_config_dll vnetbios.vxd enable_win16
15252 wine_fn_config_dll vtdapi.vxd enable_win16
15253 wine_fn_config_dll vwin32.vxd enable_win16
15254 wine_fn_config_dll w32skrnl enable_win16
15255 wine_fn_config_dll w32sys.dll16 enable_win16
15256 wine_fn_config_dll wbemprox enable_wbemprox
15257 wine_fn_config_dll wer enable_wer implib
15258 wine_fn_config_test dlls/wer/tests wer_test
15259 wine_fn_config_dll wiaservc enable_wiaservc
15260 wine_fn_config_dll win32s16.dll16 enable_win16
15261 wine_fn_config_dll win87em.dll16 enable_win16
15262 wine_fn_config_dll winaspi.dll16 enable_win16
15263 wine_fn_config_dll windebug.dll16 enable_win16
15264 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15265 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15266 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15267 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15268 wine_fn_config_lib winecrt0
15269 wine_fn_config_dll wined3d enable_wined3d implib
15270 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15271 wine_fn_config_dll winegstreamer enable_winegstreamer
15272 wine_fn_config_dll winejack.drv enable_winejack_drv
15273 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15274 wine_fn_config_dll winemapi enable_winemapi
15275 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15276 wine_fn_config_dll winenas.drv enable_winenas_drv
15277 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15278 wine_fn_config_dll wineps.drv enable_wineps_drv
15279 wine_fn_config_dll wineps16.drv16 enable_win16
15280 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15281 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15282 wine_fn_config_dll winex11.drv enable_winex11_drv
15283 wine_fn_config_dll wing.dll16 enable_win16
15284 wine_fn_config_dll wing32 enable_wing32
15285 wine_fn_config_dll winhttp enable_winhttp implib
15286 wine_fn_config_test dlls/winhttp/tests winhttp_test
15287 wine_fn_config_dll wininet enable_wininet po,implib
15288 wine_fn_config_test dlls/wininet/tests wininet_test
15289 wine_fn_config_dll winmm enable_winmm po,implib
15290 wine_fn_config_test dlls/winmm/tests winmm_test
15291 wine_fn_config_dll winnls.dll16 enable_win16
15292 wine_fn_config_dll winnls32 enable_winnls32 implib
15293 wine_fn_config_dll winscard enable_winscard implib
15294 wine_fn_config_dll winsock.dll16 enable_win16
15295 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15296 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15297 wine_fn_config_dll wintab.dll16 enable_win16
15298 wine_fn_config_dll wintab32 enable_wintab32 implib
15299 wine_fn_config_test dlls/wintab32/tests wintab32_test
15300 wine_fn_config_dll wintrust enable_wintrust implib
15301 wine_fn_config_test dlls/wintrust/tests wintrust_test
15302 wine_fn_config_dll wlanapi enable_wlanapi
15303 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15304 wine_fn_config_test dlls/wldap32/tests wldap32_test
15305 wine_fn_config_dll wmi enable_wmi
15306 wine_fn_config_dll wmiutils enable_wmiutils
15307 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15308 wine_fn_config_dll wow32 enable_win16 implib
15309 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15310 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15311 wine_fn_config_dll wsock32 enable_wsock32 implib
15312 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15313 wine_fn_config_dll wuapi enable_wuapi
15314 wine_fn_config_dll wuaueng enable_wuaueng
15315 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15316 wine_fn_config_dll xinput1_1 enable_xinput1_1
15317 wine_fn_config_dll xinput1_2 enable_xinput1_2
15318 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15319 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15320 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15321 wine_fn_config_dll xmllite enable_xmllite
15322 wine_fn_config_test dlls/xmllite/tests xmllite_test
15323 wine_fn_config_makefile documentation enable_documentation
15324 wine_fn_config_makefile fonts enable_fonts
15325 wine_fn_config_makefile include enable_include
15326 wine_fn_config_makefile libs/port enable_libs_port
15327 wine_fn_config_makefile libs/wine enable_libs_wine
15328 wine_fn_config_makefile libs/wpp enable_libs_wpp
15329 wine_fn_config_makefile loader enable_loader
15330 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15331 wine_fn_config_program attrib enable_attrib install
15332 wine_fn_config_program cacls enable_cacls install
15333 wine_fn_config_program clock enable_clock po,install
15334 wine_fn_config_program cmd enable_cmd po,install
15335 wine_fn_config_test programs/cmd/tests cmd.exe_test
15336 wine_fn_config_program cmdlgtst enable_cmdlgtst
15337 wine_fn_config_program control enable_control install
15338 wine_fn_config_program dxdiag enable_dxdiag install
15339 wine_fn_config_program eject enable_eject install
15340 wine_fn_config_program expand enable_expand install
15341 wine_fn_config_program explorer enable_explorer install
15342 wine_fn_config_program extrac32 enable_extrac32 install
15343 wine_fn_config_program hh enable_hh install
15344 wine_fn_config_program icinfo enable_icinfo install
15345 wine_fn_config_program iexplore enable_iexplore install
15346 wine_fn_config_program ipconfig enable_ipconfig po,install
15347 wine_fn_config_program lodctr enable_lodctr install
15348 wine_fn_config_program mofcomp enable_mofcomp install
15349 wine_fn_config_program mshta enable_mshta install
15350 wine_fn_config_program msiexec enable_msiexec install,installbin
15351 wine_fn_config_program net enable_net po,install
15352 wine_fn_config_program netsh enable_netsh install
15353 wine_fn_config_program ngen enable_ngen install
15354 wine_fn_config_program notepad enable_notepad po,install,installbin
15355 wine_fn_config_program oleview enable_oleview po,install
15356 wine_fn_config_program ping enable_ping install
15357 wine_fn_config_program progman enable_progman po,install
15358 wine_fn_config_program reg enable_reg po,install
15359 wine_fn_config_program regedit enable_regedit po,install,installbin
15360 wine_fn_config_test programs/regedit/tests regedit.exe_test
15361 wine_fn_config_program regsvcs enable_regsvcs install
15362 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15363 wine_fn_config_program rpcss enable_rpcss install
15364 wine_fn_config_program rundll.exe16 enable_win16 install
15365 wine_fn_config_program rundll32 enable_rundll32 install
15366 wine_fn_config_program sc enable_sc install
15367 wine_fn_config_program secedit enable_secedit install
15368 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15369 wine_fn_config_program services enable_services install
15370 wine_fn_config_program spoolsv enable_spoolsv install
15371 wine_fn_config_program start enable_start po,install
15372 wine_fn_config_program svchost enable_svchost install
15373 wine_fn_config_program taskkill enable_taskkill po,install
15374 wine_fn_config_program taskmgr enable_taskmgr po,install
15375 wine_fn_config_program termsv enable_termsv install
15376 wine_fn_config_program uninstaller enable_uninstaller po,install
15377 wine_fn_config_program unlodctr enable_unlodctr install
15378 wine_fn_config_program view enable_view po
15379 wine_fn_config_program wineboot enable_wineboot install,installbin
15380 wine_fn_config_program winebrowser enable_winebrowser install
15381 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15382 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15383 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15384 wine_fn_config_program winedevice enable_winedevice install
15385 wine_fn_config_program winefile enable_winefile po,install,installbin
15386 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15387 wine_fn_config_program winemine enable_winemine po,install,installbin
15388 wine_fn_config_program winepath enable_winepath install,installbin
15389 wine_fn_config_program winetest enable_winetest
15390 wine_fn_config_program winevdm enable_win16 install
15391 wine_fn_config_program winhelp.exe16 enable_win16 install
15392 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15393 wine_fn_config_program winoldap.mod16 enable_win16 install
15394 wine_fn_config_program winver enable_winver install
15395 wine_fn_config_program wmic enable_wmic install
15396 wine_fn_config_program wordpad enable_wordpad po,install
15397 wine_fn_config_program write enable_write po,install
15398 wine_fn_config_program wscript enable_wscript install
15399 wine_fn_config_program xcopy enable_xcopy po,install
15400 wine_fn_config_makefile server enable_server
15401 wine_fn_config_tool tools
15402 wine_fn_config_tool tools/widl
15403 wine_fn_config_tool tools/winebuild
15404 wine_fn_config_tool tools/winedump
15405 wine_fn_config_tool tools/winegcc
15406 wine_fn_config_tool tools/wmc
15407 wine_fn_config_tool tools/wrc
15408
15409 LINGUAS="\
15410 ar \
15411 bg \
15412 ca \
15413 cs \
15414 da \
15415 de \
15416 el \
15417 en \
15418 en_US \
15419 eo \
15420 es \
15421 fa \
15422 fi \
15423 fr \
15424 he \
15425 hi \
15426 hu \
15427 it \
15428 ja \
15429 ko \
15430 lt \
15431 ml \
15432 nb_NO \
15433 nl \
15434 or \
15435 pa \
15436 pl \
15437 pt_BR \
15438 pt_PT \
15439 rm \
15440 ro \
15441 ru \
15442 sk \
15443 sl \
15444 sr_RS@cyrillic \
15445 sr_RS@latin \
15446 sv \
15447 te \
15448 th \
15449 tr \
15450 uk \
15451 wa \
15452 zh_CN \
15453 zh_TW"
15454
15455
15456
15457 ac_config_commands="$ac_config_commands Makefile"
15458
15459
15460 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15461
15462
15463
15464 if test "x$enable_maintainer_mode" = xyes
15465 then
15466     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15467         cd \$(srcdir) && autoconf --warnings=all
15468 \$(srcdir)/include/config.h.in: include/stamp-h.in
15469 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15470         cd \$(srcdir) && autoheader --warnings=all
15471         @echo timestamp > \$@
15472
15473 ALL_POT_FILES =$ALL_POT_FILES
15474 all: \$(ALL_PO_FILES)
15475 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15476         msgmerge -U -q --backup=none \$@ \$(srcdir)/po/wine.pot && touch \$@
15477 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15478         msgcat -o \$@ \$(ALL_POT_FILES)"
15479 fi
15480
15481 if test -n "$with_wine64"
15482 then
15483 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15484 fonts server:
15485         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15486 $with_wine64/loader/wine:
15487         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15488 $with_wine64/loader/wine-preloader:
15489         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15490 clean::
15491         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15492 fi
15493
15494 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15495         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15496
15497 cat >confcache <<\_ACEOF
15498 # This file is a shell script that caches the results of configure
15499 # tests run on this system so they can be shared between configure
15500 # scripts and configure runs, see configure's option --config-cache.
15501 # It is not useful on other systems.  If it contains results you don't
15502 # want to keep, you may remove or edit it.
15503 #
15504 # config.status only pays attention to the cache file if you give it
15505 # the --recheck option to rerun configure.
15506 #
15507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15509 # following values.
15510
15511 _ACEOF
15512
15513 # The following way of writing the cache mishandles newlines in values,
15514 # but we know of no workaround that is simple, portable, and efficient.
15515 # So, we kill variables containing newlines.
15516 # Ultrix sh set writes to stderr and can't be redirected directly,
15517 # and sets the high bit in the cache file unless we assign to the vars.
15518 (
15519   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15520     eval ac_val=\$$ac_var
15521     case $ac_val in #(
15522     *${as_nl}*)
15523       case $ac_var in #(
15524       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15525 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15526       esac
15527       case $ac_var in #(
15528       _ | IFS | as_nl) ;; #(
15529       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15530       *) { eval $ac_var=; unset $ac_var;} ;;
15531       esac ;;
15532     esac
15533   done
15534
15535   (set) 2>&1 |
15536     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15537     *${as_nl}ac_space=\ *)
15538       # `set' does not quote correctly, so add quotes: double-quote
15539       # substitution turns \\\\ into \\, and sed turns \\ into \.
15540       sed -n \
15541         "s/'/'\\\\''/g;
15542           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15543       ;; #(
15544     *)
15545       # `set' quotes correctly as required by POSIX, so do not add quotes.
15546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15547       ;;
15548     esac |
15549     sort
15550 ) |
15551   sed '
15552      /^ac_cv_env_/b end
15553      t clear
15554      :clear
15555      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15556      t end
15557      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15558      :end' >>confcache
15559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15560   if test -w "$cache_file"; then
15561     test "x$cache_file" != "x/dev/null" &&
15562       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15563 $as_echo "$as_me: updating cache $cache_file" >&6;}
15564     cat confcache >$cache_file
15565   else
15566     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15568   fi
15569 fi
15570 rm -f confcache
15571
15572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15573 # Let make expand exec_prefix.
15574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15575
15576 DEFS=-DHAVE_CONFIG_H
15577
15578 ac_libobjs=
15579 ac_ltlibobjs=
15580 U=
15581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15582   # 1. Remove the extension, and $U if already installed.
15583   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15584   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15585   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15586   #    will be set to the directory where LIBOBJS objects are built.
15587   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15588   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15589 done
15590 LIBOBJS=$ac_libobjs
15591
15592 LTLIBOBJS=$ac_ltlibobjs
15593
15594
15595
15596 : ${CONFIG_STATUS=./config.status}
15597 ac_write_fail=0
15598 ac_clean_files_save=$ac_clean_files
15599 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15601 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15602 as_write_fail=0
15603 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15604 #! $SHELL
15605 # Generated by $as_me.
15606 # Run this file to recreate the current configuration.
15607 # Compiler output produced by configure, useful for debugging
15608 # configure, is in config.log if it exists.
15609
15610 debug=false
15611 ac_cs_recheck=false
15612 ac_cs_silent=false
15613
15614 SHELL=\${CONFIG_SHELL-$SHELL}
15615 export SHELL
15616 _ASEOF
15617 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15618 ## -------------------- ##
15619 ## M4sh Initialization. ##
15620 ## -------------------- ##
15621
15622 # Be more Bourne compatible
15623 DUALCASE=1; export DUALCASE # for MKS sh
15624 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15625   emulate sh
15626   NULLCMD=:
15627   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15628   # is contrary to our usage.  Disable this feature.
15629   alias -g '${1+"$@"}'='"$@"'
15630   setopt NO_GLOB_SUBST
15631 else
15632   case `(set -o) 2>/dev/null` in #(
15633   *posix*) :
15634     set -o posix ;; #(
15635   *) :
15636      ;;
15637 esac
15638 fi
15639
15640
15641 as_nl='
15642 '
15643 export as_nl
15644 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15645 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15648 # Prefer a ksh shell builtin over an external printf program on Solaris,
15649 # but without wasting forks for bash or zsh.
15650 if test -z "$BASH_VERSION$ZSH_VERSION" \
15651     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15652   as_echo='print -r --'
15653   as_echo_n='print -rn --'
15654 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15655   as_echo='printf %s\n'
15656   as_echo_n='printf %s'
15657 else
15658   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15659     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15660     as_echo_n='/usr/ucb/echo -n'
15661   else
15662     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15663     as_echo_n_body='eval
15664       arg=$1;
15665       case $arg in #(
15666       *"$as_nl"*)
15667         expr "X$arg" : "X\\(.*\\)$as_nl";
15668         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15669       esac;
15670       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15671     '
15672     export as_echo_n_body
15673     as_echo_n='sh -c $as_echo_n_body as_echo'
15674   fi
15675   export as_echo_body
15676   as_echo='sh -c $as_echo_body as_echo'
15677 fi
15678
15679 # The user is always right.
15680 if test "${PATH_SEPARATOR+set}" != set; then
15681   PATH_SEPARATOR=:
15682   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15683     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15684       PATH_SEPARATOR=';'
15685   }
15686 fi
15687
15688
15689 # IFS
15690 # We need space, tab and new line, in precisely that order.  Quoting is
15691 # there to prevent editors from complaining about space-tab.
15692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15693 # splitting by setting IFS to empty value.)
15694 IFS=" ""        $as_nl"
15695
15696 # Find who we are.  Look in the path if we contain no directory separator.
15697 case $0 in #((
15698   *[\\/]* ) as_myself=$0 ;;
15699   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15701 do
15702   IFS=$as_save_IFS
15703   test -z "$as_dir" && as_dir=.
15704     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15705   done
15706 IFS=$as_save_IFS
15707
15708      ;;
15709 esac
15710 # We did not find ourselves, most probably we were run as `sh COMMAND'
15711 # in which case we are not to be found in the path.
15712 if test "x$as_myself" = x; then
15713   as_myself=$0
15714 fi
15715 if test ! -f "$as_myself"; then
15716   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15717   exit 1
15718 fi
15719
15720 # Unset variables that we do not need and which cause bugs (e.g. in
15721 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15722 # suppresses any "Segmentation fault" message there.  '((' could
15723 # trigger a bug in pdksh 5.2.14.
15724 for as_var in BASH_ENV ENV MAIL MAILPATH
15725 do eval test x\${$as_var+set} = xset \
15726   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15727 done
15728 PS1='$ '
15729 PS2='> '
15730 PS4='+ '
15731
15732 # NLS nuisances.
15733 LC_ALL=C
15734 export LC_ALL
15735 LANGUAGE=C
15736 export LANGUAGE
15737
15738 # CDPATH.
15739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15740
15741
15742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15743 # ----------------------------------------
15744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15746 # script with STATUS, using 1 if that was 0.
15747 as_fn_error ()
15748 {
15749   as_status=$1; test $as_status -eq 0 && as_status=1
15750   if test "$4"; then
15751     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15752     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15753   fi
15754   $as_echo "$as_me: error: $2" >&2
15755   as_fn_exit $as_status
15756 } # as_fn_error
15757
15758
15759 # as_fn_set_status STATUS
15760 # -----------------------
15761 # Set $? to STATUS, without forking.
15762 as_fn_set_status ()
15763 {
15764   return $1
15765 } # as_fn_set_status
15766
15767 # as_fn_exit STATUS
15768 # -----------------
15769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15770 as_fn_exit ()
15771 {
15772   set +e
15773   as_fn_set_status $1
15774   exit $1
15775 } # as_fn_exit
15776
15777 # as_fn_unset VAR
15778 # ---------------
15779 # Portably unset VAR.
15780 as_fn_unset ()
15781 {
15782   { eval $1=; unset $1;}
15783 }
15784 as_unset=as_fn_unset
15785 # as_fn_append VAR VALUE
15786 # ----------------------
15787 # Append the text in VALUE to the end of the definition contained in VAR. Take
15788 # advantage of any shell optimizations that allow amortized linear growth over
15789 # repeated appends, instead of the typical quadratic growth present in naive
15790 # implementations.
15791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15792   eval 'as_fn_append ()
15793   {
15794     eval $1+=\$2
15795   }'
15796 else
15797   as_fn_append ()
15798   {
15799     eval $1=\$$1\$2
15800   }
15801 fi # as_fn_append
15802
15803 # as_fn_arith ARG...
15804 # ------------------
15805 # Perform arithmetic evaluation on the ARGs, and store the result in the
15806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15807 # must be portable across $(()) and expr.
15808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15809   eval 'as_fn_arith ()
15810   {
15811     as_val=$(( $* ))
15812   }'
15813 else
15814   as_fn_arith ()
15815   {
15816     as_val=`expr "$@" || test $? -eq 1`
15817   }
15818 fi # as_fn_arith
15819
15820
15821 if expr a : '\(a\)' >/dev/null 2>&1 &&
15822    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15823   as_expr=expr
15824 else
15825   as_expr=false
15826 fi
15827
15828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15829   as_basename=basename
15830 else
15831   as_basename=false
15832 fi
15833
15834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15835   as_dirname=dirname
15836 else
15837   as_dirname=false
15838 fi
15839
15840 as_me=`$as_basename -- "$0" ||
15841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15842          X"$0" : 'X\(//\)$' \| \
15843          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15844 $as_echo X/"$0" |
15845     sed '/^.*\/\([^/][^/]*\)\/*$/{
15846             s//\1/
15847             q
15848           }
15849           /^X\/\(\/\/\)$/{
15850             s//\1/
15851             q
15852           }
15853           /^X\/\(\/\).*/{
15854             s//\1/
15855             q
15856           }
15857           s/.*/./; q'`
15858
15859 # Avoid depending upon Character Ranges.
15860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15863 as_cr_digits='0123456789'
15864 as_cr_alnum=$as_cr_Letters$as_cr_digits
15865
15866 ECHO_C= ECHO_N= ECHO_T=
15867 case `echo -n x` in #(((((
15868 -n*)
15869   case `echo 'xy\c'` in
15870   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15871   xy)  ECHO_C='\c';;
15872   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15873        ECHO_T=' ';;
15874   esac;;
15875 *)
15876   ECHO_N='-n';;
15877 esac
15878
15879 rm -f conf$$ conf$$.exe conf$$.file
15880 if test -d conf$$.dir; then
15881   rm -f conf$$.dir/conf$$.file
15882 else
15883   rm -f conf$$.dir
15884   mkdir conf$$.dir 2>/dev/null
15885 fi
15886 if (echo >conf$$.file) 2>/dev/null; then
15887   if ln -s conf$$.file conf$$ 2>/dev/null; then
15888     as_ln_s='ln -s'
15889     # ... but there are two gotchas:
15890     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15891     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15892     # In both cases, we have to default to `cp -p'.
15893     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15894       as_ln_s='cp -p'
15895   elif ln conf$$.file conf$$ 2>/dev/null; then
15896     as_ln_s=ln
15897   else
15898     as_ln_s='cp -p'
15899   fi
15900 else
15901   as_ln_s='cp -p'
15902 fi
15903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15904 rmdir conf$$.dir 2>/dev/null
15905
15906
15907 # as_fn_mkdir_p
15908 # -------------
15909 # Create "$as_dir" as a directory, including parents if necessary.
15910 as_fn_mkdir_p ()
15911 {
15912
15913   case $as_dir in #(
15914   -*) as_dir=./$as_dir;;
15915   esac
15916   test -d "$as_dir" || eval $as_mkdir_p || {
15917     as_dirs=
15918     while :; do
15919       case $as_dir in #(
15920       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15921       *) as_qdir=$as_dir;;
15922       esac
15923       as_dirs="'$as_qdir' $as_dirs"
15924       as_dir=`$as_dirname -- "$as_dir" ||
15925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15926          X"$as_dir" : 'X\(//\)[^/]' \| \
15927          X"$as_dir" : 'X\(//\)$' \| \
15928          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15929 $as_echo X"$as_dir" |
15930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15931             s//\1/
15932             q
15933           }
15934           /^X\(\/\/\)[^/].*/{
15935             s//\1/
15936             q
15937           }
15938           /^X\(\/\/\)$/{
15939             s//\1/
15940             q
15941           }
15942           /^X\(\/\).*/{
15943             s//\1/
15944             q
15945           }
15946           s/.*/./; q'`
15947       test -d "$as_dir" && break
15948     done
15949     test -z "$as_dirs" || eval "mkdir $as_dirs"
15950   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15951
15952
15953 } # as_fn_mkdir_p
15954 if mkdir -p . 2>/dev/null; then
15955   as_mkdir_p='mkdir -p "$as_dir"'
15956 else
15957   test -d ./-p && rmdir ./-p
15958   as_mkdir_p=false
15959 fi
15960
15961 if test -x / >/dev/null 2>&1; then
15962   as_test_x='test -x'
15963 else
15964   if ls -dL / >/dev/null 2>&1; then
15965     as_ls_L_option=L
15966   else
15967     as_ls_L_option=
15968   fi
15969   as_test_x='
15970     eval sh -c '\''
15971       if test -d "$1"; then
15972         test -d "$1/.";
15973       else
15974         case $1 in #(
15975         -*)set "./$1";;
15976         esac;
15977         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15978         ???[sx]*):;;*)false;;esac;fi
15979     '\'' sh
15980   '
15981 fi
15982 as_executable_p=$as_test_x
15983
15984 # Sed expression to map a string onto a valid CPP name.
15985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15986
15987 # Sed expression to map a string onto a valid variable name.
15988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15989
15990
15991 exec 6>&1
15992 ## ----------------------------------- ##
15993 ## Main body of $CONFIG_STATUS script. ##
15994 ## ----------------------------------- ##
15995 _ASEOF
15996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15997
15998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15999 # Save the log message, to keep $0 and so on meaningful, and to
16000 # report actual input values of CONFIG_FILES etc. instead of their
16001 # values after options handling.
16002 ac_log="
16003 This file was extended by Wine $as_me 1.3.11, which was
16004 generated by GNU Autoconf 2.67.  Invocation command line was
16005
16006   CONFIG_FILES    = $CONFIG_FILES
16007   CONFIG_HEADERS  = $CONFIG_HEADERS
16008   CONFIG_LINKS    = $CONFIG_LINKS
16009   CONFIG_COMMANDS = $CONFIG_COMMANDS
16010   $ $0 $@
16011
16012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16013 "
16014
16015 _ACEOF
16016
16017 case $ac_config_files in *"
16018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16019 esac
16020
16021 case $ac_config_headers in *"
16022 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16023 esac
16024
16025
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 # Files that config.status was made for.
16028 config_files="$ac_config_files"
16029 config_headers="$ac_config_headers"
16030 config_links="$ac_config_links"
16031 config_commands="$ac_config_commands"
16032
16033 _ACEOF
16034
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 ac_cs_usage="\
16037 \`$as_me' instantiates files and other configuration actions
16038 from templates according to the current configuration.  Unless the files
16039 and actions are specified as TAGs, all are instantiated by default.
16040
16041 Usage: $0 [OPTION]... [TAG]...
16042
16043   -h, --help       print this help, then exit
16044   -V, --version    print version number and configuration settings, then exit
16045       --config     print configuration, then exit
16046   -q, --quiet, --silent
16047                    do not print progress messages
16048   -d, --debug      don't remove temporary files
16049       --recheck    update $as_me by reconfiguring in the same conditions
16050       --file=FILE[:TEMPLATE]
16051                    instantiate the configuration file FILE
16052       --header=FILE[:TEMPLATE]
16053                    instantiate the configuration header FILE
16054
16055 Configuration files:
16056 $config_files
16057
16058 Configuration headers:
16059 $config_headers
16060
16061 Configuration links:
16062 $config_links
16063
16064 Configuration commands:
16065 $config_commands
16066
16067 Report bugs to <wine-devel@winehq.org>.
16068 Wine home page: <http://www.winehq.org>."
16069
16070 _ACEOF
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16073 ac_cs_version="\\
16074 Wine config.status 1.3.11
16075 configured by $0, generated by GNU Autoconf 2.67,
16076   with options \\"\$ac_cs_config\\"
16077
16078 Copyright (C) 2010 Free Software Foundation, Inc.
16079 This config.status script is free software; the Free Software Foundation
16080 gives unlimited permission to copy, distribute and modify it."
16081
16082 ac_pwd='$ac_pwd'
16083 srcdir='$srcdir'
16084 INSTALL='$INSTALL'
16085 test -n "\$AWK" || AWK=awk
16086 _ACEOF
16087
16088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16089 # The default lists apply if the user does not specify any file.
16090 ac_need_defaults=:
16091 while test $# != 0
16092 do
16093   case $1 in
16094   --*=?*)
16095     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16096     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16097     ac_shift=:
16098     ;;
16099   --*=)
16100     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16101     ac_optarg=
16102     ac_shift=:
16103     ;;
16104   *)
16105     ac_option=$1
16106     ac_optarg=$2
16107     ac_shift=shift
16108     ;;
16109   esac
16110
16111   case $ac_option in
16112   # Handling of the options.
16113   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16114     ac_cs_recheck=: ;;
16115   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16116     $as_echo "$ac_cs_version"; exit ;;
16117   --config | --confi | --conf | --con | --co | --c )
16118     $as_echo "$ac_cs_config"; exit ;;
16119   --debug | --debu | --deb | --de | --d | -d )
16120     debug=: ;;
16121   --file | --fil | --fi | --f )
16122     $ac_shift
16123     case $ac_optarg in
16124     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16125     '') as_fn_error $? "missing file argument" ;;
16126     esac
16127     as_fn_append CONFIG_FILES " '$ac_optarg'"
16128     ac_need_defaults=false;;
16129   --header | --heade | --head | --hea )
16130     $ac_shift
16131     case $ac_optarg in
16132     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16133     esac
16134     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16135     ac_need_defaults=false;;
16136   --he | --h)
16137     # Conflict between --help and --header
16138     as_fn_error $? "ambiguous option: \`$1'
16139 Try \`$0 --help' for more information.";;
16140   --help | --hel | -h )
16141     $as_echo "$ac_cs_usage"; exit ;;
16142   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16143   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16144     ac_cs_silent=: ;;
16145
16146   # This is an error.
16147   -*) as_fn_error $? "unrecognized option: \`$1'
16148 Try \`$0 --help' for more information." ;;
16149
16150   *) as_fn_append ac_config_targets " $1"
16151      ac_need_defaults=false ;;
16152
16153   esac
16154   shift
16155 done
16156
16157 ac_configure_extra_args=
16158
16159 if $ac_cs_silent; then
16160   exec 6>/dev/null
16161   ac_configure_extra_args="$ac_configure_extra_args --silent"
16162 fi
16163
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16166 if \$ac_cs_recheck; then
16167   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16168   shift
16169   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16170   CONFIG_SHELL='$SHELL'
16171   export CONFIG_SHELL
16172   exec "\$@"
16173 fi
16174
16175 _ACEOF
16176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16177 exec 5>>config.log
16178 {
16179   echo
16180   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16181 ## Running $as_me. ##
16182 _ASBOX
16183   $as_echo "$ac_log"
16184 } >&5
16185
16186 _ACEOF
16187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16188 #
16189 # INIT-COMMANDS
16190 #
16191 wine_fn_output_makefile ()
16192 {
16193     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16194 $ALL_MAKEFILE_DEPENDS
16195 _WINE_EOF
16196     as_fn_error $? "could not create Makefile" "$LINENO" 5
16197 }
16198
16199 _ACEOF
16200
16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16202
16203 # Handling of arguments.
16204 for ac_config_target in $ac_config_targets
16205 do
16206   case $ac_config_target in
16207     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16208     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16209     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16210     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16211     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16212     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16213     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16214     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16215     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16216     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16217     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16218     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16219     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16220     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16221     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16222     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16223     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16224     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16225     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16226     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16227     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16228     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16229     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16230
16231   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16232   esac
16233 done
16234
16235
16236 # If the user did not use the arguments to specify the items to instantiate,
16237 # then the envvar interface is used.  Set only those that are not.
16238 # We use the long form for the default assignment because of an extremely
16239 # bizarre bug on SunOS 4.1.3.
16240 if $ac_need_defaults; then
16241   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16242   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16243   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16244   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16245 fi
16246
16247 # Have a temporary directory for convenience.  Make it in the build tree
16248 # simply because there is no reason against having it here, and in addition,
16249 # creating and moving files from /tmp can sometimes cause problems.
16250 # Hook for its removal unless debugging.
16251 # Note that there is a small window in which the directory will not be cleaned:
16252 # after its creation but before its name has been assigned to `$tmp'.
16253 $debug ||
16254 {
16255   tmp=
16256   trap 'exit_status=$?
16257   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16258 ' 0
16259   trap 'as_fn_exit 1' 1 2 13 15
16260 }
16261 # Create a (secure) tmp directory for tmp files.
16262
16263 {
16264   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16265   test -n "$tmp" && test -d "$tmp"
16266 }  ||
16267 {
16268   tmp=./conf$$-$RANDOM
16269   (umask 077 && mkdir "$tmp")
16270 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16271
16272 # Set up the scripts for CONFIG_FILES section.
16273 # No need to generate them if there are no CONFIG_FILES.
16274 # This happens for instance with `./config.status config.h'.
16275 if test -n "$CONFIG_FILES"; then
16276
16277 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16278   ac_cs_awk_getline=:
16279   ac_cs_awk_pipe_init=
16280   ac_cs_awk_read_file='
16281       while ((getline aline < (F[key])) > 0)
16282         print(aline)
16283       close(F[key])'
16284   ac_cs_awk_pipe_fini=
16285 else
16286   ac_cs_awk_getline=false
16287   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16288   ac_cs_awk_read_file='
16289       print "|#_!!_#|"
16290       print "cat " F[key] " &&"
16291       '$ac_cs_awk_pipe_init
16292   # The final `:' finishes the AND list.
16293   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16294 fi
16295 ac_cr=`echo X | tr X '\015'`
16296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16297 # But we know of no other shell where ac_cr would be empty at this
16298 # point, so we can use a bashism as a fallback.
16299 if test "x$ac_cr" = x; then
16300   eval ac_cr=\$\'\\r\'
16301 fi
16302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16304   ac_cs_awk_cr='\\r'
16305 else
16306   ac_cs_awk_cr=$ac_cr
16307 fi
16308
16309 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16310 _ACEOF
16311
16312 # Create commands to substitute file output variables.
16313 {
16314   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16315   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16316   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16317   echo "_ACAWK" &&
16318   echo "_ACEOF"
16319 } >conf$$files.sh &&
16320 . ./conf$$files.sh ||
16321   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16322 rm -f conf$$files.sh
16323
16324 {
16325   echo "cat >conf$$subs.awk <<_ACEOF" &&
16326   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16327   echo "_ACEOF"
16328 } >conf$$subs.sh ||
16329   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16330 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16331 ac_delim='%!_!# '
16332 for ac_last_try in false false false false false :; do
16333   . ./conf$$subs.sh ||
16334     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16335
16336   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16337   if test $ac_delim_n = $ac_delim_num; then
16338     break
16339   elif $ac_last_try; then
16340     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16341   else
16342     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16343   fi
16344 done
16345 rm -f conf$$subs.sh
16346
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16349 _ACEOF
16350 sed -n '
16351 h
16352 s/^/S["/; s/!.*/"]=/
16353 p
16354 g
16355 s/^[^!]*!//
16356 :repl
16357 t repl
16358 s/'"$ac_delim"'$//
16359 t delim
16360 :nl
16361 h
16362 s/\(.\{148\}\)..*/\1/
16363 t more1
16364 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16365 p
16366 n
16367 b repl
16368 :more1
16369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370 p
16371 g
16372 s/.\{148\}//
16373 t nl
16374 :delim
16375 h
16376 s/\(.\{148\}\)..*/\1/
16377 t more2
16378 s/["\\]/\\&/g; s/^/"/; s/$/"/
16379 p
16380 b
16381 :more2
16382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16383 p
16384 g
16385 s/.\{148\}//
16386 t delim
16387 ' <conf$$subs.awk | sed '
16388 /^[^""]/{
16389   N
16390   s/\n//
16391 }
16392 ' >>$CONFIG_STATUS || ac_write_fail=1
16393 rm -f conf$$subs.awk
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 _ACAWK
16396 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16397   for (key in S) S_is_set[key] = 1
16398   FS = "\a"
16399   \$ac_cs_awk_pipe_init
16400 }
16401 {
16402   line = $ 0
16403   nfields = split(line, field, "@")
16404   substed = 0
16405   len = length(field[1])
16406   for (i = 2; i < nfields; i++) {
16407     key = field[i]
16408     keylen = length(key)
16409     if (S_is_set[key]) {
16410       value = S[key]
16411       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16412       len += length(value) + length(field[++i])
16413       substed = 1
16414     } else
16415       len += 1 + keylen
16416   }
16417   if (nfields == 3 && !substed) {
16418     key = field[2]
16419     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16420       \$ac_cs_awk_read_file
16421       next
16422     }
16423   }
16424   print line
16425 }
16426 \$ac_cs_awk_pipe_fini
16427 _ACAWK
16428 _ACEOF
16429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16430 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16431   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16432 else
16433   cat
16434 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16435   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16436 _ACEOF
16437
16438 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16439 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16440 # trailing colons and then remove the whole line if VPATH becomes empty
16441 # (actually we leave an empty line to preserve line numbers).
16442 if test "x$srcdir" = x.; then
16443   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16444 h
16445 s///
16446 s/^/:/
16447 s/[      ]*$/:/
16448 s/:\$(srcdir):/:/g
16449 s/:\${srcdir}:/:/g
16450 s/:@srcdir@:/:/g
16451 s/^:*//
16452 s/:*$//
16453 x
16454 s/\(=[   ]*\).*/\1/
16455 G
16456 s/\n//
16457 s/^[^=]*=[       ]*$//
16458 }'
16459 fi
16460
16461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 fi # test -n "$CONFIG_FILES"
16463
16464 # Set up the scripts for CONFIG_HEADERS section.
16465 # No need to generate them if there are no CONFIG_HEADERS.
16466 # This happens for instance with `./config.status Makefile'.
16467 if test -n "$CONFIG_HEADERS"; then
16468 cat >"$tmp/defines.awk" <<\_ACAWK ||
16469 BEGIN {
16470 _ACEOF
16471
16472 # Transform confdefs.h into an awk script `defines.awk', embedded as
16473 # here-document in config.status, that substitutes the proper values into
16474 # config.h.in to produce config.h.
16475
16476 # Create a delimiter string that does not exist in confdefs.h, to ease
16477 # handling of long lines.
16478 ac_delim='%!_!# '
16479 for ac_last_try in false false :; do
16480   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16481   if test -z "$ac_t"; then
16482     break
16483   elif $ac_last_try; then
16484     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16485   else
16486     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16487   fi
16488 done
16489
16490 # For the awk script, D is an array of macro values keyed by name,
16491 # likewise P contains macro parameters if any.  Preserve backslash
16492 # newline sequences.
16493
16494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16495 sed -n '
16496 s/.\{148\}/&'"$ac_delim"'/g
16497 t rset
16498 :rset
16499 s/^[     ]*#[    ]*define[       ][      ]*/ /
16500 t def
16501 d
16502 :def
16503 s/\\$//
16504 t bsnl
16505 s/["\\]/\\&/g
16506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16507 D["\1"]=" \3"/p
16508 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16509 d
16510 :bsnl
16511 s/["\\]/\\&/g
16512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16513 D["\1"]=" \3\\\\\\n"\\/p
16514 t cont
16515 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16516 t cont
16517 d
16518 :cont
16519 n
16520 s/.\{148\}/&'"$ac_delim"'/g
16521 t clear
16522 :clear
16523 s/\\$//
16524 t bsnlc
16525 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16526 d
16527 :bsnlc
16528 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16529 b cont
16530 ' <confdefs.h | sed '
16531 s/'"$ac_delim"'/"\\\
16532 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16533
16534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16535   for (key in D) D_is_set[key] = 1
16536   FS = "\a"
16537 }
16538 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16539   line = \$ 0
16540   split(line, arg, " ")
16541   if (arg[1] == "#") {
16542     defundef = arg[2]
16543     mac1 = arg[3]
16544   } else {
16545     defundef = substr(arg[1], 2)
16546     mac1 = arg[2]
16547   }
16548   split(mac1, mac2, "(") #)
16549   macro = mac2[1]
16550   prefix = substr(line, 1, index(line, defundef) - 1)
16551   if (D_is_set[macro]) {
16552     # Preserve the white space surrounding the "#".
16553     print prefix "define", macro P[macro] D[macro]
16554     next
16555   } else {
16556     # Replace #undef with comments.  This is necessary, for example,
16557     # in the case of _POSIX_SOURCE, which is predefined and required
16558     # on some systems where configure will not decide to define it.
16559     if (defundef == "undef") {
16560       print "/*", prefix defundef, macro, "*/"
16561       next
16562     }
16563   }
16564 }
16565 { print }
16566 _ACAWK
16567 _ACEOF
16568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16569   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16570 fi # test -n "$CONFIG_HEADERS"
16571
16572
16573 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16574 shift
16575 for ac_tag
16576 do
16577   case $ac_tag in
16578   :[FHLC]) ac_mode=$ac_tag; continue;;
16579   esac
16580   case $ac_mode$ac_tag in
16581   :[FHL]*:*);;
16582   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16583   :[FH]-) ac_tag=-:-;;
16584   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16585   esac
16586   ac_save_IFS=$IFS
16587   IFS=:
16588   set x $ac_tag
16589   IFS=$ac_save_IFS
16590   shift
16591   ac_file=$1
16592   shift
16593
16594   case $ac_mode in
16595   :L) ac_source=$1;;
16596   :[FH])
16597     ac_file_inputs=
16598     for ac_f
16599     do
16600       case $ac_f in
16601       -) ac_f="$tmp/stdin";;
16602       *) # Look for the file first in the build tree, then in the source tree
16603          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16604          # because $ac_f cannot contain `:'.
16605          test -f "$ac_f" ||
16606            case $ac_f in
16607            [\\/$]*) false;;
16608            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16609            esac ||
16610            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16611       esac
16612       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16613       as_fn_append ac_file_inputs " '$ac_f'"
16614     done
16615
16616     # Let's still pretend it is `configure' which instantiates (i.e., don't
16617     # use $as_me), people would be surprised to read:
16618     #    /* config.h.  Generated by config.status.  */
16619     configure_input='Generated from '`
16620           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16621         `' by configure.'
16622     if test x"$ac_file" != x-; then
16623       configure_input="$ac_file.  $configure_input"
16624       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16625 $as_echo "$as_me: creating $ac_file" >&6;}
16626     fi
16627     # Neutralize special characters interpreted by sed in replacement strings.
16628     case $configure_input in #(
16629     *\&* | *\|* | *\\* )
16630        ac_sed_conf_input=`$as_echo "$configure_input" |
16631        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16632     *) ac_sed_conf_input=$configure_input;;
16633     esac
16634
16635     case $ac_tag in
16636     *:-:* | *:-) cat >"$tmp/stdin" \
16637       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16638     esac
16639     ;;
16640   esac
16641
16642   ac_dir=`$as_dirname -- "$ac_file" ||
16643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16644          X"$ac_file" : 'X\(//\)[^/]' \| \
16645          X"$ac_file" : 'X\(//\)$' \| \
16646          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16647 $as_echo X"$ac_file" |
16648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16649             s//\1/
16650             q
16651           }
16652           /^X\(\/\/\)[^/].*/{
16653             s//\1/
16654             q
16655           }
16656           /^X\(\/\/\)$/{
16657             s//\1/
16658             q
16659           }
16660           /^X\(\/\).*/{
16661             s//\1/
16662             q
16663           }
16664           s/.*/./; q'`
16665   as_dir="$ac_dir"; as_fn_mkdir_p
16666   ac_builddir=.
16667
16668 case "$ac_dir" in
16669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16670 *)
16671   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16672   # A ".." for each directory in $ac_dir_suffix.
16673   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16674   case $ac_top_builddir_sub in
16675   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16676   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16677   esac ;;
16678 esac
16679 ac_abs_top_builddir=$ac_pwd
16680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16681 # for backward compatibility:
16682 ac_top_builddir=$ac_top_build_prefix
16683
16684 case $srcdir in
16685   .)  # We are building in place.
16686     ac_srcdir=.
16687     ac_top_srcdir=$ac_top_builddir_sub
16688     ac_abs_top_srcdir=$ac_pwd ;;
16689   [\\/]* | ?:[\\/]* )  # Absolute name.
16690     ac_srcdir=$srcdir$ac_dir_suffix;
16691     ac_top_srcdir=$srcdir
16692     ac_abs_top_srcdir=$srcdir ;;
16693   *) # Relative name.
16694     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16695     ac_top_srcdir=$ac_top_build_prefix$srcdir
16696     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16697 esac
16698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16699
16700
16701   case $ac_mode in
16702   :F)
16703   #
16704   # CONFIG_FILE
16705   #
16706
16707   case $INSTALL in
16708   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16709   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16710   esac
16711 _ACEOF
16712
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 # If the template does not know about datarootdir, expand it.
16715 # FIXME: This hack should be removed a few years after 2.60.
16716 ac_datarootdir_hack=; ac_datarootdir_seen=
16717 ac_sed_dataroot='
16718 /datarootdir/ {
16719   p
16720   q
16721 }
16722 /@datadir@/p
16723 /@docdir@/p
16724 /@infodir@/p
16725 /@localedir@/p
16726 /@mandir@/p'
16727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16728 *datarootdir*) ac_datarootdir_seen=yes;;
16729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734   ac_datarootdir_hack='
16735   s&@datadir@&$datadir&g
16736   s&@docdir@&$docdir&g
16737   s&@infodir@&$infodir&g
16738   s&@localedir@&$localedir&g
16739   s&@mandir@&$mandir&g
16740   s&\\\${datarootdir}&$datarootdir&g' ;;
16741 esac
16742 _ACEOF
16743
16744 # Neutralize VPATH when `$srcdir' = `.'.
16745 # Shell code in configure.ac might set extrasub.
16746 # FIXME: do we really want to maintain this feature?
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 ac_sed_extra="$ac_vpsub
16749 $extrasub
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752 :t
16753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16754 s|@configure_input@|$ac_sed_conf_input|;t t
16755 s&@top_builddir@&$ac_top_builddir_sub&;t t
16756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16757 s&@srcdir@&$ac_srcdir&;t t
16758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16759 s&@top_srcdir@&$ac_top_srcdir&;t t
16760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16761 s&@builddir@&$ac_builddir&;t t
16762 s&@abs_builddir@&$ac_abs_builddir&;t t
16763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16764 s&@INSTALL@&$ac_INSTALL&;t t
16765 $ac_datarootdir_hack
16766 "
16767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16768 if $ac_cs_awk_getline; then
16769   $AWK -f "$tmp/subs.awk"
16770 else
16771   $AWK -f "$tmp/subs.awk" | $SHELL
16772 fi >$tmp/out \
16773   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774
16775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16776   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16777   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16779 which seems to be undefined.  Please make sure it is defined" >&5
16780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16781 which seems to be undefined.  Please make sure it is defined" >&2;}
16782
16783   rm -f "$tmp/stdin"
16784   case $ac_file in
16785   -) cat "$tmp/out" && rm -f "$tmp/out";;
16786   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16787   esac \
16788   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16789  ;;
16790   :H)
16791   #
16792   # CONFIG_HEADER
16793   #
16794   if test x"$ac_file" != x-; then
16795     {
16796       $as_echo "/* $configure_input  */" \
16797       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16798     } >"$tmp/config.h" \
16799       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16800     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16801       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16803     else
16804       rm -f "$ac_file"
16805       mv "$tmp/config.h" "$ac_file" \
16806         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16807     fi
16808   else
16809     $as_echo "/* $configure_input  */" \
16810       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16811       || as_fn_error $? "could not create -" "$LINENO" 5
16812   fi
16813  ;;
16814   :L)
16815   #
16816   # CONFIG_LINK
16817   #
16818
16819   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16820     :
16821   else
16822     # Prefer the file from the source tree if names are identical.
16823     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16824       ac_source=$srcdir/$ac_source
16825     fi
16826
16827     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16828 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16829
16830     if test ! -r "$ac_source"; then
16831       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16832     fi
16833     rm -f "$ac_file"
16834
16835     # Try a relative symlink, then a hard link, then a copy.
16836     case $ac_source in
16837     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16838         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16839     esac
16840     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16841       ln "$ac_source" "$ac_file" 2>/dev/null ||
16842       cp -p "$ac_source" "$ac_file" ||
16843       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16844   fi
16845  ;;
16846   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16847 $as_echo "$as_me: executing $ac_file commands" >&6;}
16848  ;;
16849   esac
16850
16851
16852   case $ac_file$ac_mode in
16853     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16854     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16855 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16856     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16857 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16858     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16859 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16860     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16861 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16862     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16863 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16864     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16865 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16866     "Makefile":C) wine_fn_output_makefile Makefile ;;
16867
16868   esac
16869 done # for ac_tag
16870
16871
16872 as_fn_exit 0
16873 _ACEOF
16874 ac_clean_files=$ac_clean_files_save
16875
16876 test $ac_write_fail = 0 ||
16877   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16878
16879
16880 # configure is writing to config.log, and then calls config.status.
16881 # config.status does its own redirection, appending to config.log.
16882 # Unfortunately, on DOS this fails, as config.log is still kept open
16883 # by configure, so config.status won't be able to write to it; its
16884 # output is simply discarded.  So we exec the FD to /dev/null,
16885 # effectively closing config.log, so it can be properly (re)opened and
16886 # appended to by config.status.  When coming back to configure, we
16887 # need to make the FD available again.
16888 if test "$no_create" != yes; then
16889   ac_cs_success=:
16890   ac_config_status_args=
16891   test "$silent" = yes &&
16892     ac_config_status_args="$ac_config_status_args --quiet"
16893   exec 5>/dev/null
16894   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16895   exec 5>>config.log
16896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16897   # would make configure fail if this is the last instruction.
16898   $ac_cs_success || as_fn_exit 1
16899 fi
16900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16901   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16903 fi
16904
16905
16906 if test "$no_create" = "yes"
16907 then
16908   exit 0
16909 fi
16910
16911 ac_save_IFS="$IFS"
16912 if test "x$wine_notices != "x; then
16913     echo >&6
16914     IFS="|"
16915     for msg in $wine_notices; do
16916         IFS="$ac_save_IFS"
16917         if test -n "$msg"; then
16918             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16919 $as_echo "$as_me: $msg" >&6;}
16920         fi
16921     done
16922 fi
16923 IFS="|"
16924 for msg in $wine_warnings; do
16925     IFS="$ac_save_IFS"
16926     if test -n "$msg"; then
16927         echo >&2
16928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16929 $as_echo "$as_me: WARNING: $msg" >&2;}
16930     fi
16931 done
16932 IFS="$ac_save_IFS"
16933
16934 echo "
16935 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16936 " >&6
16937