msvcrt: Add a stub for msvcp71.dll.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.19.
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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.19'
564 PACKAGE_STRING='Wine 1.3.19'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
567
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 LINGUAS
608 ALL_TEST_BINARIES
609 ALL_WINETEST_DEPENDS
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 ESDLIBS
633 ESDINCL
634 ESDCONFIG
635 LIBGETTEXTPO
636 ZLIB
637 FREETYPEINCL
638 FREETYPELIBS
639 ft_devel
640 LCMSLIBS
641 RESOLVLIBS
642 GPHOTO2INCL
643 GPHOTO2LIBS
644 gphoto2port_devel
645 gphoto2_devel
646 SANEINCL
647 sane_devel
648 GNUTLSINCL
649 HALINCL
650 XSLTINCL
651 XML2INCL
652 XML2LIBS
653 NASLIBS
654 X_EXTRA_LIBS
655 X_LIBS
656 X_PRE_LIBS
657 X_CFLAGS
658 XMKMF
659 LIBPTHREAD
660 CROSSTARGET
661 CROSSCC
662 CROSSTEST_DISABLE
663 PRELINK
664 CARBONLIB
665 QUICKTIMELIB
666 LIBOPENCL
667 FRAMEWORK_OPENAL
668 COREAUDIO
669 SECURITYLIB
670 DISKARBITRATIONLIB
671 LDEXECFLAGS
672 APPLICATIONSERVICESLIB
673 IOKITLIB
674 COREFOUNDATIONLIB
675 DLLWRAP
676 DLLTOOL
677 LDD
678 LDRPATH_LOCAL
679 LDRPATH_INSTALL
680 IMPLIBEXT
681 LIBEXT
682 LDDLLFLAGS
683 LDSHARED
684 DLLFLAGS
685 DLLEXT
686 CPP
687 OPENGL_LIBS
688 XLIB
689 MAINTAINER_MODE
690 ICOTOOL
691 CONVERT
692 RSVG
693 PKG_CONFIG
694 FONTFORGE
695 LINTFLAGS
696 LINT
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 LDCONFIG
701 EGREP
702 GREP
703 LN_S
704 STRIP
705 RANLIB
706 ARFLAGS
707 ac_ct_AR
708 AR
709 BISON
710 FLEX
711 TOOLSDIR
712 WOW64_DISABLE
713 TARGETFLAGS
714 CPPBIN
715 ac_ct_CXX
716 CXXFLAGS
717 CXX
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 SET_MAKE
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='MAKE_RULES
773 MAKE_TEST_RULES
774 MAKE_DLL_RULES
775 MAKE_IMPLIB_RULES
776 MAKE_PROG_RULES'
777 ac_user_opts='
778 enable_option_checking
779 enable_win16
780 enable_win64
781 enable_tests
782 enable_maintainer_mode
783 with_alsa
784 with_capi
785 with_cms
786 with_coreaudio
787 with_cups
788 with_curses
789 with_esd
790 with_fontconfig
791 with_freetype
792 with_gettextpo
793 with_gphoto
794 with_glu
795 with_gnutls
796 with_gsm
797 with_gstreamer
798 with_hal
799 with_jack
800 with_jpeg
801 with_ldap
802 with_mpg123
803 with_nas
804 with_openal
805 with_opencl
806 with_opengl
807 with_openssl
808 with_oss
809 with_png
810 with_pthread
811 with_sane
812 with_tiff
813 with_v4l
814 with_xcomposite
815 with_xcursor
816 with_xinerama
817 with_xinput
818 with_xinput2
819 with_xml
820 with_xrandr
821 with_xrender
822 with_xshape
823 with_xshm
824 with_xslt
825 with_xxf86vm
826 with_zlib
827 with_wine_tools
828 with_wine64
829 enable_largefile
830 with_x
831 '
832       ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 CPP
844 XMKMF'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899   # If the previous option needs an argument, assign it.
900   if test -n "$ac_prev"; then
901     eval $ac_prev=\$ac_option
902     ac_prev=
903     continue
904   fi
905
906   case $ac_option in
907   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908   *=)   ac_optarg= ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error $? "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error $? "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error $? "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used" >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_env_${ac_var}_value=\$${ac_var}
1376   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384   # Omit some internal or obsolete options to make the list less imposing.
1385   # This message is too long to be a string in the A/UX 3.1 sh.
1386   cat <<_ACEOF
1387 \`configure' configures Wine 1.3.19 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397   -h, --help              display this help and exit
1398       --help=short        display options specific to this package
1399       --help=recursive    display the short help of all the included packages
1400   -V, --version           display version information and exit
1401   -q, --quiet, --silent   do not print \`checking ...' messages
1402       --cache-file=FILE   cache test results in FILE [disabled]
1403   -C, --config-cache      alias for \`--cache-file=config.cache'
1404   -n, --no-create         do not create output files
1405       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408   --prefix=PREFIX         install architecture-independent files in PREFIX
1409                           [$ac_default_prefix]
1410   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                           [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421   --bindir=DIR            user executables [EPREFIX/bin]
1422   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423   --libexecdir=DIR        program executables [EPREFIX/libexec]
1424   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427   --libdir=DIR            object code libraries [EPREFIX/lib]
1428   --includedir=DIR        C header files [PREFIX/include]
1429   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432   --infodir=DIR           info documentation [DATAROOTDIR/info]
1433   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434   --mandir=DIR            man documentation [DATAROOTDIR/man]
1435   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1436   --htmldir=DIR           html documentation [DOCDIR]
1437   --dvidir=DIR            dvi documentation [DOCDIR]
1438   --pdfdir=DIR            pdf documentation [DOCDIR]
1439   --psdir=DIR             ps documentation [DOCDIR]
1440 _ACEOF
1441
1442   cat <<\_ACEOF
1443
1444 X features:
1445   --x-includes=DIR    X include files are in DIR
1446   --x-libraries=DIR   X library files are in DIR
1447
1448 System types:
1449   --build=BUILD     configure for building on BUILD [guessed]
1450   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455   case $ac_init_help in
1456      short | recursive ) echo "Configuration of Wine 1.3.19:";;
1457    esac
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-option-checking  ignore unrecognized --enable/--with options
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --disable-win16         do not include Win16 support
1465   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1466                           binaries)
1467   --disable-tests         do not build the regression tests
1468   --enable-maintainer-mode
1469                           enable maintainer-specific build rules
1470   --disable-largefile     omit support for large files
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --without-alsa          do not use the Alsa sound support
1476   --without-capi          do not use CAPI (ISDN support)
1477   --without-cms           do not use CMS (color management support)
1478   --without-coreaudio     do not use the CoreAudio sound support
1479   --without-cups          do not use CUPS
1480   --without-curses        do not use (n)curses
1481   --without-esd           do not use the EsounD sound support
1482   --without-fontconfig    do not use fontconfig
1483   --without-freetype      do not use the FreeType library
1484   --without-gettextpo     do not use the GetTextPO library
1485   --without-gphoto        do not use gphoto (Digital Camera support)
1486   --without-glu           do not use the GLU library
1487   --without-gnutls        do not use GnuTLS (schannel support)
1488   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1489   --without-gstreamer     do not use GStreamer (codecs support)
1490   --without-hal           do not use HAL (dynamic device support)
1491   --without-jack          do not use the Jack sound support
1492   --without-jpeg          do not use JPEG
1493   --without-ldap          do not use LDAP
1494   --without-mpg123        do not use the mpg123 library
1495   --without-nas           do not use the NAS sound support
1496   --without-openal        do not use OpenAL
1497   --without-opencl        do not use OpenCL
1498   --without-opengl        do not use OpenGL
1499   --without-openssl       do not use OpenSSL
1500   --without-oss           do not use the OSS sound support
1501   --without-png           do not use PNG
1502   --without-pthread       do not use the pthread library
1503   --without-sane          do not use SANE (scanner support)
1504   --without-tiff          do not use TIFF
1505   --without-v4l           do not use v4l1 (v4l support)
1506   --without-xcomposite    do not use the Xcomposite extension
1507   --without-xcursor       do not use the Xcursor extension
1508   --without-xinerama      do not use Xinerama (multi-monitor support)
1509   --without-xinput        do not use the Xinput extension
1510   --without-xinput2       do not use the Xinput 2 extension
1511   --without-xml           do not use XML
1512   --without-xrandr        do not use Xrandr (resolution changes)
1513   --without-xrender       do not use the Xrender extension
1514   --without-xshape        do not use the Xshape extension
1515   --without-xshm          do not use XShm (shared memory extension)
1516   --without-xslt          do not use XSLT
1517   --without-xxf86vm       do not use XFree video mode extension
1518   --without-zlib          do not use Zlib (data compression)
1519   --with-wine-tools=DIR   use Wine tools from directory DIR
1520   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1521   --with-x                use the X Window System
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CXX         C++ compiler command
1532   CXXFLAGS    C++ compiler flags
1533   CPP         C preprocessor
1534   XMKMF       Path to xmkmf, Makefile generator for X Window System
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <wine-devel@winehq.org>.
1540 Wine home page: <http://www.winehq.org>.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546   # If there are subdirs, report their specific --help.
1547   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548     test -d "$ac_dir" ||
1549       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550       continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 Wine configure 1.3.19
1604 generated by GNU Autoconf 2.68
1605
1606 Copyright (C) 2010 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext
1624   if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_compile") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest.$ac_objext; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_cxx_try_compile LINENO
1656 # ----------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_cxx_try_compile ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext
1662   if { { ac_try="$ac_compile"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_compile") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_cxx_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest.$ac_objext; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686         ac_retval=1
1687 fi
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689   as_fn_set_status $ac_retval
1690
1691 } # ac_fn_cxx_try_compile
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   rm -f conftest.$ac_objext conftest$ac_exeext
1700   if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_link") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } && {
1716          test -z "$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        } && test -s conftest$ac_exeext && {
1719          test "$cross_compiling" = yes ||
1720          $as_test_x conftest$ac_exeext
1721        }; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727         ac_retval=1
1728 fi
1729   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731   # interfere with the next link command; also delete a directory that is
1732   # left behind by Apple's compiler.  We do this before executing the actions.
1733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735   as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } > conftest.i && {
1761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        }; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769     ac_retval=1
1770 fi
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_cpp
1775
1776 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779 # the include files in INCLUDES and setting the cache variable VAR
1780 # accordingly.
1781 ac_fn_c_check_header_mongrel ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   if eval \${$3+:} false; then :
1785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788   $as_echo_n "(cached) " >&6
1789 fi
1790 eval ac_res=\$$3
1791                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 else
1794   # Is the header compilable?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796 $as_echo_n "checking $2 usability... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803   ac_header_compiler=yes
1804 else
1805   ac_header_compiler=no
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809 $as_echo "$ac_header_compiler" >&6; }
1810
1811 # Is the header present?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813 $as_echo_n "checking $2 presence... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_cpp "$LINENO"; then :
1819   ac_header_preproc=yes
1820 else
1821   ac_header_preproc=no
1822 fi
1823 rm -f conftest.err conftest.i conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825 $as_echo "$ac_header_preproc" >&6; }
1826
1827 # So?  What about this header?
1828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829   yes:no: )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834     ;;
1835   no:yes:* )
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1839 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1843 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ( $as_echo "## ------------------------------------ ##
1847 ## Report this to wine-devel@winehq.org ##
1848 ## ------------------------------------ ##"
1849      ) | sed "s/^/$as_me: WARNING:     /" >&2
1850     ;;
1851 esac
1852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855   $as_echo_n "(cached) " >&6
1856 else
1857   eval "$3=\$ac_header_compiler"
1858 fi
1859 eval ac_res=\$$3
1860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 fi
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_header_mongrel
1866
1867 # ac_fn_c_try_run LINENO
1868 # ----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870 # that executables *can* be run.
1871 ac_fn_c_try_run ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_link") 2>&5
1882   ac_status=$?
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885   { { case "(($ac_try" in
1886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887   *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891   (eval "$ac_try") 2>&5
1892   ac_status=$?
1893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894   test $ac_status = 0; }; }; then :
1895   ac_retval=0
1896 else
1897   $as_echo "$as_me: program exited with status $ac_status" >&5
1898        $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901        ac_retval=$ac_status
1902 fi
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_c_try_run
1908
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 $4
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927   eval "$3=yes"
1928 else
1929   eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_header_compile
1939
1940 # ac_fn_c_check_func LINENO FUNC VAR
1941 # ----------------------------------
1942 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943 ac_fn_c_check_func ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1955 #define $2 innocuous_$2
1956
1957 /* System header to define __stub macros and hopefully few prototypes,
1958     which can conflict with char $2 (); below.
1959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960     <limits.h> exists even on freestanding compilers.  */
1961
1962 #ifdef __STDC__
1963 # include <limits.h>
1964 #else
1965 # include <assert.h>
1966 #endif
1967
1968 #undef $2
1969
1970 /* Override any GCC internal prototype to avoid an error.
1971    Use char because int might match the return type of a GCC
1972    builtin and then its argument prototype would still apply.  */
1973 #ifdef __cplusplus
1974 extern "C"
1975 #endif
1976 char $2 ();
1977 /* The GNU C library defines this for functions which it implements
1978     to always fail with ENOSYS.  Some functions are actually named
1979     something starting with __ and the normal name is an alias.  */
1980 #if defined __stub_$2 || defined __stub___$2
1981 choke me
1982 #endif
1983
1984 int
1985 main ()
1986 {
1987 return $2 ();
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_link "$LINENO"; then :
1993   eval "$3=yes"
1994 else
1995   eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext \
1998     conftest$ac_exeext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_func
2006
2007 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2008 # ----------------------------------------------------
2009 # Tries to find if the field MEMBER exists in type AGGR, after including
2010 # INCLUDES, setting cache variable VAR accordingly.
2011 ac_fn_c_check_member ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2015 $as_echo_n "checking for $2.$3... " >&6; }
2016 if eval \${$4+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $5
2022 int
2023 main ()
2024 {
2025 static $2 ac_aggr;
2026 if (ac_aggr.$3)
2027 return 0;
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$4=yes"
2034 else
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $5
2038 int
2039 main ()
2040 {
2041 static $2 ac_aggr;
2042 if (sizeof ac_aggr.$3)
2043 return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   eval "$4=yes"
2050 else
2051   eval "$4=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 eval ac_res=\$$4
2058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_member
2063
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074   $as_echo_n "(cached) " >&6
2075 else
2076   eval "$3=no"
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof (($2)))
2097             return 0;
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2105   eval "$3=yes"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_type
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by Wine $as_me 1.3.19, which was
2122 generated by GNU Autoconf 2.68.  Invocation command line was
2123
2124   $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2142
2143 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2144 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2147 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2148 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2149 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158     $as_echo "PATH: $as_dir"
2159   done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185   for ac_arg
2186   do
2187     case $ac_arg in
2188     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190     | -silent | --silent | --silen | --sile | --sil)
2191       continue ;;
2192     *\'*)
2193       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194     esac
2195     case $ac_pass in
2196     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2197     2)
2198       as_fn_append ac_configure_args1 " '$ac_arg'"
2199       if test $ac_must_keep_next = true; then
2200         ac_must_keep_next=false # Got value, back to normal.
2201       else
2202         case $ac_arg in
2203           *=* | --config-cache | -C | -disable-* | --disable-* \
2204           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206           | -with-* | --with-* | -without-* | --without-* | --x)
2207             case "$ac_configure_args0 " in
2208               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209             esac
2210             ;;
2211           -* ) ac_must_keep_next=true ;;
2212         esac
2213       fi
2214       as_fn_append ac_configure_args " '$ac_arg'"
2215       ;;
2216     esac
2217   done
2218 done
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log.  We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228   # Save into config.log some information that might help in debugging.
2229   {
2230     echo
2231
2232     $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2235     echo
2236     # The following way of writing the cache mishandles newlines in values,
2237 (
2238   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239     eval ac_val=\$$ac_var
2240     case $ac_val in #(
2241     *${as_nl}*)
2242       case $ac_var in #(
2243       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245       esac
2246       case $ac_var in #(
2247       _ | IFS | as_nl) ;; #(
2248       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249       *) { eval $ac_var=; unset $ac_var;} ;;
2250       esac ;;
2251     esac
2252   done
2253   (set) 2>&1 |
2254     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255     *${as_nl}ac_space=\ *)
2256       sed -n \
2257         "s/'\''/'\''\\\\'\'''\''/g;
2258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259       ;; #(
2260     *)
2261       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262       ;;
2263     esac |
2264     sort
2265 )
2266     echo
2267
2268     $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2271     echo
2272     for ac_var in $ac_subst_vars
2273     do
2274       eval ac_val=\$$ac_var
2275       case $ac_val in
2276       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277       esac
2278       $as_echo "$ac_var='\''$ac_val'\''"
2279     done | sort
2280     echo
2281
2282     if test -n "$ac_subst_files"; then
2283       $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2286       echo
2287       for ac_var in $ac_subst_files
2288       do
2289         eval ac_val=\$$ac_var
2290         case $ac_val in
2291         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292         esac
2293         $as_echo "$ac_var='\''$ac_val'\''"
2294       done | sort
2295       echo
2296     fi
2297
2298     if test -s confdefs.h; then
2299       $as_echo "## ----------- ##
2300 ## confdefs.h. ##
2301 ## ----------- ##"
2302       echo
2303       cat confdefs.h
2304       echo
2305     fi
2306     test "$ac_signal" != 0 &&
2307       $as_echo "$as_me: caught signal $ac_signal"
2308     $as_echo "$as_me: exit $exit_status"
2309   } >&5
2310   rm -f core *.core core.conftest.* &&
2311     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312     exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 $as_echo "/* confdefs.h */" > confdefs.h
2323
2324 # Predefined preprocessor variables.
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2349
2350
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356   # We do not want a PATH search for config.site.
2357   case $CONFIG_SITE in #((
2358     -*)  ac_site_file1=./$CONFIG_SITE;;
2359     */*) ac_site_file1=$CONFIG_SITE;;
2360     *)   ac_site_file1=./$CONFIG_SITE;;
2361   esac
2362 elif test "x$prefix" != xNONE; then
2363   ac_site_file1=$prefix/share/config.site
2364   ac_site_file2=$prefix/etc/config.site
2365 else
2366   ac_site_file1=$ac_default_prefix/share/config.site
2367   ac_site_file2=$ac_default_prefix/etc/config.site
2368 fi
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2370 do
2371   test "x$ac_site_file" = xNONE && continue
2372   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375     sed 's/^/| /' "$ac_site_file" >&5
2376     . "$ac_site_file" \
2377       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2381   fi
2382 done
2383
2384 if test -r "$cache_file"; then
2385   # Some versions of bash will fail to source /dev/null (special files
2386   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2387   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390     case $cache_file in
2391       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392       *)                      . "./$cache_file";;
2393     esac
2394   fi
2395 else
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398   >$cache_file
2399 fi
2400
2401 # Check that the precious variables saved in the cache have kept the same
2402 # value.
2403 ac_cache_corrupted=false
2404 for ac_var in $ac_precious_vars; do
2405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2406   eval ac_new_set=\$ac_env_${ac_var}_set
2407   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2408   eval ac_new_val=\$ac_env_${ac_var}_value
2409   case $ac_old_set,$ac_new_set in
2410     set,)
2411       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2413       ac_cache_corrupted=: ;;
2414     ,set)
2415       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2417       ac_cache_corrupted=: ;;
2418     ,);;
2419     *)
2420       if test "x$ac_old_val" != "x$ac_new_val"; then
2421         # differences in whitespace do not lead to failure.
2422         ac_old_val_w=`echo x $ac_old_val`
2423         ac_new_val_w=`echo x $ac_new_val`
2424         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2425           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2427           ac_cache_corrupted=:
2428         else
2429           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2431           eval $ac_var=\$ac_old_val
2432         fi
2433         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2434 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2435         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2436 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2437       fi;;
2438   esac
2439   # Pass precious variables to config.status.
2440   if test "$ac_new_set" = set; then
2441     case $ac_new_val in
2442     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2443     *) ac_arg=$ac_var=$ac_new_val ;;
2444     esac
2445     case " $ac_configure_args " in
2446       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2447       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448     esac
2449   fi
2450 done
2451 if $ac_cache_corrupted; then
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2456   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 fi
2458 ## -------------------- ##
2459 ## Main body of script. ##
2460 ## -------------------- ##
2461
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468
2469
2470 ac_config_headers="$ac_config_headers include/config.h"
2471
2472 ac_aux_dir=
2473 for ac_dir in tools "$srcdir"/tools; do
2474   if test -f "$ac_dir/install-sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install-sh -c"
2477     break
2478   elif test -f "$ac_dir/install.sh"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/install.sh -c"
2481     break
2482   elif test -f "$ac_dir/shtool"; then
2483     ac_aux_dir=$ac_dir
2484     ac_install_sh="$ac_aux_dir/shtool install -c"
2485     break
2486   fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2499
2500
2501
2502
2503
2504 # Check whether --enable-win16 was given.
2505 if test "${enable_win16+set}" = set; then :
2506   enableval=$enable_win16;
2507 fi
2508
2509 # Check whether --enable-win64 was given.
2510 if test "${enable_win64+set}" = set; then :
2511   enableval=$enable_win64;
2512 fi
2513
2514 # Check whether --enable-tests was given.
2515 if test "${enable_tests+set}" = set; then :
2516   enableval=$enable_tests;
2517 fi
2518
2519 # Check whether --enable-maintainer-mode was given.
2520 if test "${enable_maintainer_mode+set}" = set; then :
2521   enableval=$enable_maintainer_mode;
2522 fi
2523
2524
2525
2526 # Check whether --with-alsa was given.
2527 if test "${with_alsa+set}" = set; then :
2528   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2529 fi
2530
2531
2532 # Check whether --with-capi was given.
2533 if test "${with_capi+set}" = set; then :
2534   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2535 fi
2536
2537
2538 # Check whether --with-cms was given.
2539 if test "${with_cms+set}" = set; then :
2540   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2541 fi
2542
2543
2544 # Check whether --with-coreaudio was given.
2545 if test "${with_coreaudio+set}" = set; then :
2546   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2547 fi
2548
2549
2550 # Check whether --with-cups was given.
2551 if test "${with_cups+set}" = set; then :
2552   withval=$with_cups;
2553 fi
2554
2555
2556 # Check whether --with-curses was given.
2557 if test "${with_curses+set}" = set; then :
2558   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2559 fi
2560
2561
2562 # Check whether --with-esd was given.
2563 if test "${with_esd+set}" = set; then :
2564   withval=$with_esd;
2565 fi
2566
2567
2568 # Check whether --with-fontconfig was given.
2569 if test "${with_fontconfig+set}" = set; then :
2570   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2571 fi
2572
2573
2574 # Check whether --with-freetype was given.
2575 if test "${with_freetype+set}" = set; then :
2576   withval=$with_freetype;
2577 fi
2578
2579
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2583 fi
2584
2585
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588   withval=$with_gphoto;
2589 fi
2590
2591
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2595 fi
2596
2597
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600   withval=$with_gnutls;
2601 fi
2602
2603
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2607 fi
2608
2609
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612   withval=$with_gstreamer;
2613 fi
2614
2615
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618   withval=$with_hal;
2619 fi
2620
2621
2622 # Check whether --with-jack was given.
2623 if test "${with_jack+set}" = set; then :
2624   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2625 fi
2626
2627
2628 # Check whether --with-jpeg was given.
2629 if test "${with_jpeg+set}" = set; then :
2630   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2631 fi
2632
2633
2634 # Check whether --with-ldap was given.
2635 if test "${with_ldap+set}" = set; then :
2636   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2637 fi
2638
2639
2640 # Check whether --with-mpg123 was given.
2641 if test "${with_mpg123+set}" = set; then :
2642   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2643 fi
2644
2645
2646 # Check whether --with-nas was given.
2647 if test "${with_nas+set}" = set; then :
2648   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2649 fi
2650
2651
2652 # Check whether --with-openal was given.
2653 if test "${with_openal+set}" = set; then :
2654   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2655 fi
2656
2657
2658 # Check whether --with-opencl was given.
2659 if test "${with_opencl+set}" = set; then :
2660   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2661 fi
2662
2663
2664 # Check whether --with-opengl was given.
2665 if test "${with_opengl+set}" = set; then :
2666   withval=$with_opengl;
2667 fi
2668
2669
2670 # Check whether --with-openssl was given.
2671 if test "${with_openssl+set}" = set; then :
2672   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2673 fi
2674
2675
2676 # Check whether --with-oss was given.
2677 if test "${with_oss+set}" = set; then :
2678   withval=$with_oss;
2679 fi
2680
2681
2682 # Check whether --with-png was given.
2683 if test "${with_png+set}" = set; then :
2684   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2685 fi
2686
2687
2688 # Check whether --with-pthread was given.
2689 if test "${with_pthread+set}" = set; then :
2690   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2691 fi
2692
2693
2694 # Check whether --with-sane was given.
2695 if test "${with_sane+set}" = set; then :
2696   withval=$with_sane;
2697 fi
2698
2699
2700 # Check whether --with-tiff was given.
2701 if test "${with_tiff+set}" = set; then :
2702   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2703 fi
2704
2705
2706 # Check whether --with-v4l was given.
2707 if test "${with_v4l+set}" = set; then :
2708   withval=$with_v4l;
2709 fi
2710
2711
2712 # Check whether --with-xcomposite was given.
2713 if test "${with_xcomposite+set}" = set; then :
2714   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2715 fi
2716
2717
2718 # Check whether --with-xcursor was given.
2719 if test "${with_xcursor+set}" = set; then :
2720   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2721 fi
2722
2723
2724 # Check whether --with-xinerama was given.
2725 if test "${with_xinerama+set}" = set; then :
2726   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2727 fi
2728
2729
2730 # Check whether --with-xinput was given.
2731 if test "${with_xinput+set}" = set; then :
2732   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2733 fi
2734
2735
2736 # Check whether --with-xinput2 was given.
2737 if test "${with_xinput2+set}" = set; then :
2738   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2739 fi
2740
2741
2742 # Check whether --with-xml was given.
2743 if test "${with_xml+set}" = set; then :
2744   withval=$with_xml;
2745 fi
2746
2747
2748 # Check whether --with-xrandr was given.
2749 if test "${with_xrandr+set}" = set; then :
2750   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2751 fi
2752
2753
2754 # Check whether --with-xrender was given.
2755 if test "${with_xrender+set}" = set; then :
2756   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2757 fi
2758
2759
2760 # Check whether --with-xshape was given.
2761 if test "${with_xshape+set}" = set; then :
2762   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2763 fi
2764
2765
2766 # Check whether --with-xshm was given.
2767 if test "${with_xshm+set}" = set; then :
2768   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2769 fi
2770
2771
2772 # Check whether --with-xslt was given.
2773 if test "${with_xslt+set}" = set; then :
2774   withval=$with_xslt;
2775 fi
2776
2777
2778 # Check whether --with-xxf86vm was given.
2779 if test "${with_xxf86vm+set}" = set; then :
2780   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
2781 fi
2782
2783
2784 # Check whether --with-zlib was given.
2785 if test "${with_zlib+set}" = set; then :
2786   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2787 fi
2788
2789
2790
2791 # Check whether --with-wine-tools was given.
2792 if test "${with_wine_tools+set}" = set; then :
2793   withval=$with_wine_tools;
2794 fi
2795
2796
2797 # Check whether --with-wine64 was given.
2798 if test "${with_wine64+set}" = set; then :
2799   withval=$with_wine64;
2800 fi
2801
2802
2803 # Make sure we can run config.sub.
2804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2805   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2806
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2808 $as_echo_n "checking build system type... " >&6; }
2809 if ${ac_cv_build+:} false; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   ac_build_alias=$build_alias
2813 test "x$ac_build_alias" = x &&
2814   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2815 test "x$ac_build_alias" = x &&
2816   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2818   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2822 $as_echo "$ac_cv_build" >&6; }
2823 case $ac_cv_build in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2826 esac
2827 build=$ac_cv_build
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_build
2830 shift
2831 build_cpu=$1
2832 build_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 build_os=$*
2837 IFS=$ac_save_IFS
2838 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2842 $as_echo_n "checking host system type... " >&6; }
2843 if ${ac_cv_host+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test "x$host_alias" = x; then
2847   ac_cv_host=$ac_cv_build
2848 else
2849   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2850     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2851 fi
2852
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2855 $as_echo "$ac_cv_host" >&6; }
2856 case $ac_cv_host in
2857 *-*-*) ;;
2858 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2859 esac
2860 host=$ac_cv_host
2861 ac_save_IFS=$IFS; IFS='-'
2862 set x $ac_cv_host
2863 shift
2864 host_cpu=$1
2865 host_vendor=$2
2866 shift; shift
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2869 host_os=$*
2870 IFS=$ac_save_IFS
2871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2872
2873
2874
2875 case "$srcdir" in
2876  .) ;;
2877  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2878       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2879 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2880     fi ;;
2881 esac
2882
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 set x ${MAKE-make}
2887 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   cat >conftest.make <<\_ACEOF
2892 SHELL = /bin/sh
2893 all:
2894         @echo '@@@%%%=$(MAKE)=@@@%%%'
2895 _ACEOF
2896 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898   *@@@%%%=?*=@@@%%%*)
2899     eval ac_cv_prog_make_${ac_make}_set=yes;;
2900   *)
2901     eval ac_cv_prog_make_${ac_make}_set=no;;
2902 esac
2903 rm -f conftest.make
2904 fi
2905 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908   SET_MAKE=
2909 else
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912   SET_MAKE="MAKE=${MAKE-make}"
2913 fi
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -n "$CC"; then
2929   ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943   done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$ac_cv_prog_CC"; then
2960   ac_ct_CC=$CC
2961   # Extract the first word of "gcc", so it can be a program name with args.
2962 set dummy gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$ac_ct_CC"; then
2969   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_ac_ct_CC="gcc"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997   if test "x$ac_ct_CC" = x; then
2998     CC=""
2999   else
3000     case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006     CC=$ac_ct_CC
3007   fi
3008 else
3009   CC="$ac_cv_prog_CC"
3010 fi
3011
3012 if test -z "$CC"; then
3013           if test -n "$ac_tool_prefix"; then
3014     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   if test -n "$CC"; then
3022   ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     for ac_exec_ext in '' $ac_executable_extensions; do
3030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031     ac_cv_prog_CC="${ac_tool_prefix}cc"
3032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036   done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051   fi
3052 fi
3053 if test -z "$CC"; then
3054   # Extract the first word of "cc", so it can be a program name with args.
3055 set dummy cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064   ac_prog_rejected=no
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073        ac_prog_rejected=yes
3074        continue
3075      fi
3076     ac_cv_prog_CC="cc"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 if test $ac_prog_rejected = yes; then
3085   # We found a bogon in the path, so make sure we never use it.
3086   set dummy $ac_cv_prog_CC
3087   shift
3088   if test $# != 0; then
3089     # We chose a different compiler from the bogus one.
3090     # However, it has the same basename, so the bogon will be chosen
3091     # first if we set CC to just the basename; use the full file name.
3092     shift
3093     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3094   fi
3095 fi
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$CC"; then
3110   if test -n "$ac_tool_prefix"; then
3111   for ac_prog in cl.exe
3112   do
3113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118   $as_echo_n "(cached) " >&6
3119 else
3120   if test -n "$CC"; then
3121   ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126   IFS=$as_save_IFS
3127   test -z "$as_dir" && as_dir=.
3128     for ac_exec_ext in '' $ac_executable_extensions; do
3129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133   fi
3134 done
3135   done
3136 IFS=$as_save_IFS
3137
3138 fi
3139 fi
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149
3150     test -n "$CC" && break
3151   done
3152 fi
3153 if test -z "$CC"; then
3154   ac_ct_CC=$CC
3155   for ac_prog in cl.exe
3156 do
3157   # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$ac_ct_CC"; then
3165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174     ac_cv_prog_ac_ct_CC="$ac_prog"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194   test -n "$ac_ct_CC" && break
3195 done
3196
3197   if test "x$ac_ct_CC" = x; then
3198     CC=""
3199   else
3200     case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206     CC=$ac_ct_CC
3207   fi
3208 fi
3209
3210 fi
3211
3212
3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "no acceptable C compiler found in \$PATH
3216 See \`config.log' for more details" "$LINENO" 5; }
3217
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3220 set X $ac_compile
3221 ac_compiler=$2
3222 for ac_option in --version -v -V -qversion; do
3223   { { ac_try="$ac_compiler $ac_option >&5"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231   ac_status=$?
3232   if test -s conftest.err; then
3233     sed '10a\
3234 ... rest of stderr output deleted ...
3235          10q' conftest.err >conftest.er1
3236     cat conftest.er1 >&5
3237   fi
3238   rm -f conftest.er1 conftest.err
3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240   test $ac_status = 0; }
3241 done
3242
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h.  */
3245
3246 int
3247 main ()
3248 {
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3268 do
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272   esac
3273 done
3274 rm -f $ac_rmfiles
3275
3276 if { { ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283   (eval "$ac_link_default") 2>&5
3284   ac_status=$?
3285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286   test $ac_status = 0; }; then :
3287   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3293 do
3294   test -f "$ac_file" || continue
3295   case $ac_file in
3296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3297         ;;
3298     [ab].out )
3299         # We found the default executable, but exeext='' is most
3300         # certainly right.
3301         break;;
3302     *.* )
3303         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304         then :; else
3305            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306         fi
3307         # We set ac_cv_exeext here because the later test for it is not
3308         # safe: cross compilers may not add the suffix if given an `-o'
3309         # argument, so we may need to know it at that point already.
3310         # Even if this section looks crufty: it has the advantage of
3311         # actually working.
3312         break;;
3313     * )
3314         break;;
3315   esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3318
3319 else
3320   ac_file=''
3321 fi
3322 if test -z "$ac_file"; then :
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3335 fi
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337 $as_echo_n "checking for C compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3341
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353   (eval "$ac_link") 2>&5
3354   ac_status=$?
3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356   test $ac_status = 0; }; then :
3357   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 # `rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362   test -f "$ac_file" || continue
3363   case $ac_file in
3364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366           break;;
3367     * ) break;;
3368   esac
3369 done
3370 else
3371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3379
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3382 ac_exeext=$EXEEXT
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385 #include <stdio.h>
3386 int
3387 main ()
3388 {
3389 FILE *f = fopen ("conftest.out", "w");
3390  return ferror (f) || fclose (f) != 0;
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run.  If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402   { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_link") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }
3413   if { ac_try='./conftest$ac_cv_exeext'
3414   { { case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420   (eval "$ac_try") 2>&5
3421   ac_status=$?
3422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423   test $ac_status = 0; }; }; then
3424     cross_compiling=no
3425   else
3426     if test "$cross_compiling" = maybe; then
3427         cross_compiling=yes
3428     else
3429         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3434     fi
3435   fi
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3439
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466   (eval "$ac_compile") 2>&5
3467   ac_status=$?
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }; then :
3470   for ac_file in conftest.o conftest.obj conftest.*; do
3471   test -f "$ac_file" || continue;
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475        break;;
3476   esac
3477 done
3478 else
3479   $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if ${ac_cv_c_compiler_gnu+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505        choke me
3506 #endif
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513   ac_compiler_gnu=yes
3514 else
3515   ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524   GCC=yes
3525 else
3526   GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if ${ac_cv_prog_cc_g+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_save_c_werror_flag=$ac_c_werror_flag
3536    ac_c_werror_flag=yes
3537    ac_cv_prog_cc_g=no
3538    CFLAGS="-g"
3539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 else
3553   CFLAGS=""
3554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569          CFLAGS="-g"
3570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594   CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596   if test "$GCC" = yes; then
3597     CFLAGS="-g -O2"
3598   else
3599     CFLAGS="-g"
3600   fi
3601 else
3602   if test "$GCC" = yes; then
3603     CFLAGS="-O2"
3604   else
3605     CFLAGS=
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if ${ac_cv_prog_cc_c89+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625      char **p;
3626      int i;
3627 {
3628   return p[i];
3629 }
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3631 {
3632   char *s;
3633   va_list v;
3634   va_start (v,p);
3635   s = g (p, va_arg (v,int));
3636   va_end (v);
3637   return s;
3638 }
3639
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3641    function prototypes and stuff, but not '\xHH' hex character constants.
3642    These don't provoke an error unfortunately, instead are silently treated
3643    as 'x'.  The following induces an error, until -std is added to get
3644    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3645    array size at least.  It's necessary to write '\x00'==0 to get something
3646    that's true only with -std.  */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650    inside strings and character constants.  */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3660 int
3661 main ()
3662 {
3663 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 do
3671   CC="$ac_save_CC $ac_arg"
3672   if ac_fn_c_try_compile "$LINENO"; then :
3673   ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext
3676   test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684   x)
3685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687   xno)
3688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690   *)
3691     CC="$CC $ac_cv_prog_cc_c89"
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697 fi
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705 ac_ext=cpp
3706 ac_cpp='$CXXCPP $CPPFLAGS'
3707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3710 if test -z "$CXX"; then
3711   if test -n "$CCC"; then
3712     CXX=$CCC
3713   else
3714     if test -n "$ac_tool_prefix"; then
3715   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3716   do
3717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CXX+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$CXX"; then
3725   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CXX=$ac_cv_prog_CXX
3745 if test -n "$CXX"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3747 $as_echo "$CXX" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754     test -n "$CXX" && break
3755   done
3756 fi
3757 if test -z "$CXX"; then
3758   ac_ct_CXX=$CXX
3759   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3760 do
3761   # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3766   $as_echo_n "(cached) " >&6
3767 else
3768   if test -n "$ac_ct_CXX"; then
3769   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776     for ac_exec_ext in '' $ac_executable_extensions; do
3777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778     ac_cv_prog_ac_ct_CXX="$ac_prog"
3779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783   done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3789 if test -n "$ac_ct_CXX"; then
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3791 $as_echo "$ac_ct_CXX" >&6; }
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798   test -n "$ac_ct_CXX" && break
3799 done
3800
3801   if test "x$ac_ct_CXX" = x; then
3802     CXX="g++"
3803   else
3804     case $cross_compiling:$ac_tool_warned in
3805 yes:)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808 ac_tool_warned=yes ;;
3809 esac
3810     CXX=$ac_ct_CXX
3811   fi
3812 fi
3813
3814   fi
3815 fi
3816 # Provide some information about the compiler.
3817 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3818 set X $ac_compile
3819 ac_compiler=$2
3820 for ac_option in --version -v -V -qversion; do
3821   { { ac_try="$ac_compiler $ac_option >&5"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829   ac_status=$?
3830   if test -s conftest.err; then
3831     sed '10a\
3832 ... rest of stderr output deleted ...
3833          10q' conftest.err >conftest.er1
3834     cat conftest.er1 >&5
3835   fi
3836   rm -f conftest.er1 conftest.err
3837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838   test $ac_status = 0; }
3839 done
3840
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3843 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852 #ifndef __GNUC__
3853        choke me
3854 #endif
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_cxx_try_compile "$LINENO"; then :
3861   ac_compiler_gnu=yes
3862 else
3863   ac_compiler_gnu=no
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3870 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872   GXX=yes
3873 else
3874   GXX=
3875 fi
3876 ac_test_CXXFLAGS=${CXXFLAGS+set}
3877 ac_save_CXXFLAGS=$CXXFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3879 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3880 if ${ac_cv_prog_cxx_g+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3884    ac_cxx_werror_flag=yes
3885    ac_cv_prog_cxx_g=no
3886    CXXFLAGS="-g"
3887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h.  */
3889
3890 int
3891 main ()
3892 {
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_cxx_try_compile "$LINENO"; then :
3899   ac_cv_prog_cxx_g=yes
3900 else
3901   CXXFLAGS=""
3902       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_cxx_try_compile "$LINENO"; then :
3914
3915 else
3916   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3917          CXXFLAGS="-g"
3918          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_cxx_try_compile "$LINENO"; then :
3930   ac_cv_prog_cxx_g=yes
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3941 if test "$ac_test_CXXFLAGS" = set; then
3942   CXXFLAGS=$ac_save_CXXFLAGS
3943 elif test $ac_cv_prog_cxx_g = yes; then
3944   if test "$GXX" = yes; then
3945     CXXFLAGS="-g -O2"
3946   else
3947     CXXFLAGS="-g"
3948   fi
3949 else
3950   if test "$GXX" = yes; then
3951     CXXFLAGS="-O2"
3952   else
3953     CXXFLAGS=
3954   fi
3955 fi
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962 if test -n "$ac_tool_prefix"; then
3963   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CPPBIN+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -n "$CPPBIN"; then
3971   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978     for ac_exec_ext in '' $ac_executable_extensions; do
3979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985   done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CPPBIN=$ac_cv_prog_CPPBIN
3991 if test -n "$CPPBIN"; then
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3993 $as_echo "$CPPBIN" >&6; }
3994 else
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$ac_cv_prog_CPPBIN"; then
4002   ac_ct_CPPBIN=$CPPBIN
4003   # Extract the first word of "cpp", so it can be a program name with args.
4004 set dummy cpp; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   if test -n "$ac_ct_CPPBIN"; then
4011   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018     for ac_exec_ext in '' $ac_executable_extensions; do
4019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020     ac_cv_prog_ac_ct_CPPBIN="cpp"
4021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025   done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4031 if test -n "$ac_ct_CPPBIN"; then
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4033 $as_echo "$ac_ct_CPPBIN" >&6; }
4034 else
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039   if test "x$ac_ct_CPPBIN" = x; then
4040     CPPBIN="cpp"
4041   else
4042     case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048     CPPBIN=$ac_ct_CPPBIN
4049   fi
4050 else
4051   CPPBIN="$ac_cv_prog_CPPBIN"
4052 fi
4053
4054
4055 cat >>confdefs.h <<_ACEOF
4056 #define EXEEXT "$ac_exeext"
4057 _ACEOF
4058
4059
4060 case $host in
4061   *-darwin*)
4062     if test "x$enable_win64" = "xyes"
4063     then
4064       CC="$CC -m64"
4065       CXX="$CXX -m64"
4066       LD="${LD:-ld} -arch x86_64"
4067       AS="${AS:-as} -arch x86_64"
4068       host_cpu="x86_64"
4069       notice_platform="64-bit "
4070       TARGETFLAGS="-m64"
4071
4072     else
4073       CC="$CC -m32"
4074       CXX="$CXX -m32"
4075       LD="${LD:-ld} -arch i386"
4076       AS="${AS:-as} -arch i386"
4077       host_cpu="i386"
4078       notice_platform="32-bit "
4079       TARGETFLAGS="-m32"
4080
4081       enable_win16=${enable_win16:-yes}
4082     fi
4083     ;;
4084   x86_64*)
4085     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4086     then
4087       CC="$CC -m32"
4088       CXX="$CXX -m32"
4089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4090 $as_echo_n "checking whether $CC works... " >&6; }
4091
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 if ac_fn_c_try_link "$LINENO"; then :
4104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106 else
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4109                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext \
4112     conftest$ac_exeext conftest.$ac_ext
4113       LD="${LD:-ld} -m elf_i386"
4114       AS="${AS:-as} --32"
4115       host_cpu="i386"
4116       notice_platform="32-bit "
4117       TARGETFLAGS="-m32"
4118
4119       enable_win16=${enable_win16:-yes}
4120     else
4121       if test "x${GCC}" = "xyes"
4122       then
4123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4124 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4125         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127 #include <stdarg.h>
4128 int
4129 main ()
4130 {
4131 void func(__builtin_ms_va_list *args);
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139 else
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145       fi
4146       TARGETFLAGS="-m64"
4147
4148     fi
4149     ;;
4150   *-mingw32*|*-cygwin*)
4151     enable_win16=${enable_win16:-no}
4152     CFLAGS="$CFLAGS -D_WIN32"
4153     ;;
4154   i[3456789]86*)
4155     enable_win16=${enable_win16:-yes}
4156     ;;
4157 esac
4158
4159 enable_win16=${enable_win16:-no}
4160
4161 enable_winetest=${enable_winetest:-$enable_tests}
4162
4163 if test -n "$with_wine64"
4164 then
4165     if test "x$enable_win64" = "xyes"
4166     then
4167         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4168 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4169     fi
4170     WOW64_DISABLE=\#
4171
4172     enable_fonts=${enable_fonts:-no}
4173     enable_server=${enable_server:-no}
4174     enable_tools=${enable_tools:-no}
4175 elif test "x$enable_win64" = "xyes"
4176 then
4177     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4178 fi
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4181 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4182 if ${wine_cv_toolsdir+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   wine_cv_toolsdir="$with_wine_tools"
4186    if test -z "$with_wine_tools"; then
4187      if test "$cross_compiling" = "yes"; then
4188        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4189      elif test -n "$with_wine64"; then
4190        wine_cv_toolsdir="$with_wine64"
4191      fi
4192    fi
4193    if test -z "$wine_cv_toolsdir"; then
4194      wine_cv_toolsdir="\$(top_builddir)"
4195    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4196      case "$wine_cv_toolsdir" in
4197        /*) ;;
4198        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4199      esac
4200    else
4201      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4202    fi
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4205 $as_echo "$wine_cv_toolsdir" >&6; }
4206 TOOLSDIR=$wine_cv_toolsdir
4207
4208 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4209 then
4210     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4211
4212 fi
4213
4214 for ac_prog in flex
4215 do
4216   # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_FLEX+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   if test -n "$FLEX"; then
4224   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231     for ac_exec_ext in '' $ac_executable_extensions; do
4232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233     ac_cv_prog_FLEX="$ac_prog"
4234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238   done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 FLEX=$ac_cv_prog_FLEX
4244 if test -n "$FLEX"; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4246 $as_echo "$FLEX" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253   test -n "$FLEX" && break
4254 done
4255 test -n "$FLEX" || FLEX="none"
4256
4257 if test "$FLEX" = "none"
4258 then
4259   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4262 $as_echo_n "checking whether flex is recent enough... " >&6; }
4263 cat >conftest.l <<EOF
4264 %top{
4265 #include "prediluvian.h"
4266 }
4267 %%
4268 EOF
4269 if $FLEX -t conftest.l >/dev/null 2>&5
4270 then
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4272 $as_echo "yes" >&6; }
4273 else
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4277 fi
4278
4279 for ac_prog in bison
4280 do
4281   # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy $ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_BISON+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$BISON"; then
4289   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298     ac_cv_prog_BISON="$ac_prog"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 BISON=$ac_cv_prog_BISON
4309 if test -n "$BISON"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4311 $as_echo "$BISON" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318   test -n "$BISON" && break
4319 done
4320 test -n "$BISON" || BISON="none"
4321
4322 if test "$BISON" = "none"
4323 then
4324   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4325 fi
4326
4327 if test -n "$ac_tool_prefix"; then
4328   for ac_prog in ar gar
4329   do
4330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_AR+:} false; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if test -n "$AR"; then
4338   ac_cv_prog_AR="$AR" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345     for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352   done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 AR=$ac_cv_prog_AR
4358 if test -n "$AR"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4360 $as_echo "$AR" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367     test -n "$AR" && break
4368   done
4369 fi
4370 if test -z "$AR"; then
4371   ac_ct_AR=$AR
4372   for ac_prog in ar gar
4373 do
4374   # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   if test -n "$ac_ct_AR"; then
4382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391     ac_cv_prog_ac_ct_AR="$ac_prog"
4392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396   done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4402 if test -n "$ac_ct_AR"; then
4403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4404 $as_echo "$ac_ct_AR" >&6; }
4405 else
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411   test -n "$ac_ct_AR" && break
4412 done
4413
4414   if test "x$ac_ct_AR" = x; then
4415     AR="ar"
4416   else
4417     case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4422 esac
4423     AR=$ac_ct_AR
4424   fi
4425 fi
4426
4427 ARFLAGS=rc
4428
4429 if test -n "$ac_tool_prefix"; then
4430   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_RANLIB+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   if test -n "$RANLIB"; then
4438   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452   done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 RANLIB=$ac_cv_prog_RANLIB
4458 if test -n "$RANLIB"; then
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4460 $as_echo "$RANLIB" >&6; }
4461 else
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466
4467 fi
4468 if test -z "$ac_cv_prog_RANLIB"; then
4469   ac_ct_RANLIB=$RANLIB
4470   # Extract the first word of "ranlib", so it can be a program name with args.
4471 set dummy ranlib; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -n "$ac_ct_RANLIB"; then
4478   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_prog_ac_ct_RANLIB="ranlib"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4498 if test -n "$ac_ct_RANLIB"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4500 $as_echo "$ac_ct_RANLIB" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506   if test "x$ac_ct_RANLIB" = x; then
4507     RANLIB=":"
4508   else
4509     case $cross_compiling:$ac_tool_warned in
4510 yes:)
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4513 ac_tool_warned=yes ;;
4514 esac
4515     RANLIB=$ac_ct_RANLIB
4516   fi
4517 else
4518   RANLIB="$ac_cv_prog_RANLIB"
4519 fi
4520
4521 if test -n "$ac_tool_prefix"; then
4522   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}strip; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_STRIP+:} false; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -n "$STRIP"; then
4530   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544   done
4545 IFS=$as_save_IFS
4546
4547 fi
4548 fi
4549 STRIP=$ac_cv_prog_STRIP
4550 if test -n "$STRIP"; then
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4552 $as_echo "$STRIP" >&6; }
4553 else
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 fi
4557
4558
4559 fi
4560 if test -z "$ac_cv_prog_STRIP"; then
4561   ac_ct_STRIP=$STRIP
4562   # Extract the first word of "strip", so it can be a program name with args.
4563 set dummy strip; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   if test -n "$ac_ct_STRIP"; then
4570   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579     ac_cv_prog_ac_ct_STRIP="strip"
4580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584   done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4590 if test -n "$ac_ct_STRIP"; then
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4592 $as_echo "$ac_ct_STRIP" >&6; }
4593 else
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598   if test "x$ac_ct_STRIP" = x; then
4599     STRIP="strip"
4600   else
4601     case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607     STRIP=$ac_ct_STRIP
4608   fi
4609 else
4610   STRIP="$ac_cv_prog_STRIP"
4611 fi
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4614 $as_echo_n "checking whether ln -s works... " >&6; }
4615 LN_S=$as_ln_s
4616 if test "$LN_S" = "ln -s"; then
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4618 $as_echo "yes" >&6; }
4619 else
4620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4621 $as_echo "no, using $LN_S" >&6; }
4622 fi
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if test -z "$GREP"; then
4630   ac_path_GREP_found=false
4631   # Loop through the user's path and test for each of PROGNAME-LIST
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637     for ac_prog in grep ggrep; do
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642   # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4644 *GNU*)
4645   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 *)
4647   ac_count=0
4648   $as_echo_n 0123456789 >"conftest.in"
4649   while :
4650   do
4651     cat "conftest.in" "conftest.in" >"conftest.tmp"
4652     mv "conftest.tmp" "conftest.in"
4653     cp "conftest.in" "conftest.nl"
4654     $as_echo 'GREP' >> "conftest.nl"
4655     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657     as_fn_arith $ac_count + 1 && ac_count=$as_val
4658     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659       # Best one so far, save it but keep looking for a better one
4660       ac_cv_path_GREP="$ac_path_GREP"
4661       ac_path_GREP_max=$ac_count
4662     fi
4663     # 10*(2^10) chars as input seems more than enough
4664     test $ac_count -gt 10 && break
4665   done
4666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669       $ac_path_GREP_found && break 3
4670     done
4671   done
4672   done
4673 IFS=$as_save_IFS
4674   if test -z "$ac_cv_path_GREP"; then
4675     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676   fi
4677 else
4678   ac_cv_path_GREP=$GREP
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684  GREP="$ac_cv_path_GREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693    then ac_cv_path_EGREP="$GREP -E"
4694    else
4695      if test -z "$EGREP"; then
4696   ac_path_EGREP_found=false
4697   # Loop through the user's path and test for each of PROGNAME-LIST
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703     for ac_prog in egrep; do
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708   # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4710 *GNU*)
4711   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 *)
4713   ac_count=0
4714   $as_echo_n 0123456789 >"conftest.in"
4715   while :
4716   do
4717     cat "conftest.in" "conftest.in" >"conftest.tmp"
4718     mv "conftest.tmp" "conftest.in"
4719     cp "conftest.in" "conftest.nl"
4720     $as_echo 'EGREP' >> "conftest.nl"
4721     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723     as_fn_arith $ac_count + 1 && ac_count=$as_val
4724     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725       # Best one so far, save it but keep looking for a better one
4726       ac_cv_path_EGREP="$ac_path_EGREP"
4727       ac_path_EGREP_max=$ac_count
4728     fi
4729     # 10*(2^10) chars as input seems more than enough
4730     test $ac_count -gt 10 && break
4731   done
4732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735       $ac_path_EGREP_found && break 3
4736     done
4737   done
4738   done
4739 IFS=$as_save_IFS
4740   if test -z "$ac_cv_path_EGREP"; then
4741     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742   fi
4743 else
4744   ac_cv_path_EGREP=$EGREP
4745 fi
4746
4747    fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751  EGREP="$ac_cv_path_EGREP"
4752
4753
4754 # Extract the first word of "ldconfig", so it can be a program name with args.
4755 set dummy ldconfig; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_path_LDCONFIG+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   case $LDCONFIG in
4762   [\\/]* | ?:[\\/]*)
4763   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4764   ;;
4765   *)
4766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in /sbin /usr/sbin $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778   done
4779 IFS=$as_save_IFS
4780
4781   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4782   ;;
4783 esac
4784 fi
4785 LDCONFIG=$ac_cv_path_LDCONFIG
4786 if test -n "$LDCONFIG"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4788 $as_echo "$LDCONFIG" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 # Find a good install program.  We prefer a C program (faster),
4796 # so one script is as good as another.  But avoid the broken or
4797 # incompatible versions:
4798 # SysV /etc/install, /usr/sbin/install
4799 # SunOS /usr/etc/install
4800 # IRIX /sbin/install
4801 # AIX /bin/install
4802 # AmigaOS /C/install, which installs bootblocks on floppy discs
4803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4806 # OS/2's system install, which has a completely different semantic
4807 # ./install, which can be erroneously created by make from ./install.sh.
4808 # Reject install programs that cannot install multiple files.
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4810 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4811 if test -z "$INSTALL"; then
4812 if ${ac_cv_path_install+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     # Account for people who put trailing slashes in PATH elements.
4821 case $as_dir/ in #((
4822   ./ | .// | /[cC]/* | \
4823   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4824   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4825   /usr/ucb/* ) ;;
4826   *)
4827     # OSF1 and SCO ODT 3.0 have their own names for install.
4828     # Don't use installbsd from OSF since it installs stuff as root
4829     # by default.
4830     for ac_prog in ginstall scoinst install; do
4831       for ac_exec_ext in '' $ac_executable_extensions; do
4832         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4833           if test $ac_prog = install &&
4834             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4835             # AIX install.  It has an incompatible calling convention.
4836             :
4837           elif test $ac_prog = install &&
4838             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4839             # program-specific install script used by HP pwplus--don't use.
4840             :
4841           else
4842             rm -rf conftest.one conftest.two conftest.dir
4843             echo one > conftest.one
4844             echo two > conftest.two
4845             mkdir conftest.dir
4846             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4847               test -s conftest.one && test -s conftest.two &&
4848               test -s conftest.dir/conftest.one &&
4849               test -s conftest.dir/conftest.two
4850             then
4851               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4852               break 3
4853             fi
4854           fi
4855         fi
4856       done
4857     done
4858     ;;
4859 esac
4860
4861   done
4862 IFS=$as_save_IFS
4863
4864 rm -rf conftest.one conftest.two conftest.dir
4865
4866 fi
4867   if test "${ac_cv_path_install+set}" = set; then
4868     INSTALL=$ac_cv_path_install
4869   else
4870     # As a last resort, use the slow shell script.  Don't cache a
4871     # value for INSTALL within a source directory, because that will
4872     # break other packages using the cache if that directory is
4873     # removed, or if the value is a relative name.
4874     INSTALL=$ac_install_sh
4875   fi
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4878 $as_echo "$INSTALL" >&6; }
4879
4880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4881 # It thinks the first close brace ends the variable substitution.
4882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4883
4884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4885
4886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4887
4888 case "$INSTALL" in
4889   [\\/$]* | ?:[\\/]* ) ;;
4890   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4891 esac
4892
4893 for ac_prog in lclint lint
4894 do
4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_LINT+:} false; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902   if test -n "$LINT"; then
4903   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910     for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_LINT="$ac_prog"
4913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917   done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 LINT=$ac_cv_prog_LINT
4923 if test -n "$LINT"; then
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4925 $as_echo "$LINT" >&6; }
4926 else
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932   test -n "$LINT" && break
4933 done
4934
4935 if test "$LINT" = "lint"
4936 then
4937   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4938   fi
4939
4940
4941
4942 for ac_prog in fontforge
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if ${ac_cv_prog_FONTFORGE+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if test -n "$FONTFORGE"; then
4952   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959     for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_prog_FONTFORGE="$ac_prog"
4962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966   done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 FONTFORGE=$ac_cv_prog_FONTFORGE
4972 if test -n "$FONTFORGE"; then
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4974 $as_echo "$FONTFORGE" >&6; }
4975 else
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 fi
4979
4980
4981   test -n "$FONTFORGE" && break
4982 done
4983 test -n "$FONTFORGE" || FONTFORGE="false"
4984
4985 for ac_prog in pkg-config
4986 do
4987   # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy $ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   if test -n "$PKG_CONFIG"; then
4995   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002     for ac_exec_ext in '' $ac_executable_extensions; do
5003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004     ac_cv_prog_PKG_CONFIG="$ac_prog"
5005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009   done
5010 IFS=$as_save_IFS
5011
5012 fi
5013 fi
5014 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5015 if test -n "$PKG_CONFIG"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5017 $as_echo "$PKG_CONFIG" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022
5023
5024   test -n "$PKG_CONFIG" && break
5025 done
5026 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5027
5028 for ac_prog in rsvg
5029 do
5030   # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_prog_RSVG+:} false; then :
5035   $as_echo_n "(cached) " >&6
5036 else
5037   if test -n "$RSVG"; then
5038   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_prog_RSVG="$ac_prog"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 RSVG=$ac_cv_prog_RSVG
5058 if test -n "$RSVG"; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5060 $as_echo "$RSVG" >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067   test -n "$RSVG" && break
5068 done
5069 test -n "$RSVG" || RSVG="false"
5070
5071 for ac_prog in convert
5072 do
5073   # Extract the first word of "$ac_prog", so it can be a program name with args.
5074 set dummy $ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_CONVERT+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if test -n "$CONVERT"; then
5081   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_prog_CONVERT="$ac_prog"
5091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095   done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 CONVERT=$ac_cv_prog_CONVERT
5101 if test -n "$CONVERT"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5103 $as_echo "$CONVERT" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110   test -n "$CONVERT" && break
5111 done
5112 test -n "$CONVERT" || CONVERT="false"
5113
5114 for ac_prog in icotool
5115 do
5116   # Extract the first word of "$ac_prog", so it can be a program name with args.
5117 set dummy $ac_prog; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_ICOTOOL+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if test -n "$ICOTOOL"; then
5124   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131     for ac_exec_ext in '' $ac_executable_extensions; do
5132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133     ac_cv_prog_ICOTOOL="$ac_prog"
5134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135     break 2
5136   fi
5137 done
5138   done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 ICOTOOL=$ac_cv_prog_ICOTOOL
5144 if test -n "$ICOTOOL"; then
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5146 $as_echo "$ICOTOOL" >&6; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153   test -n "$ICOTOOL" && break
5154 done
5155 test -n "$ICOTOOL" || ICOTOOL="false"
5156
5157
5158 if test "x$enable_maintainer_mode" != "xyes"
5159 then
5160   MAINTAINER_MODE=\#
5161
5162 else
5163   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5164   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5165
5166     if test "$CONVERT" = false
5167   then
5168     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5169   else
5170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5171 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5172     convert_version=`convert --version | head -n1`
5173     if test "x$convert_version" != "x"
5174     then
5175       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5176       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5177       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5178       then
5179         CONVERT=false
5180       fi
5181     fi
5182     if test "$CONVERT" = false
5183     then
5184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5185 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5186       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5187     else
5188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5189 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5190     fi
5191   fi
5192
5193     if test "$ICOTOOL" = false
5194   then
5195     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5196   else
5197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5198 $as_echo_n "checking for recent enough icotool... " >&6; }
5199     icotool_version=`icotool --version | head -n1`
5200     if test "x$icotool_version" != "x"
5201     then
5202       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5203       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5204       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5205       then
5206         ICOTOOL=false
5207         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5208       fi
5209     fi
5210     if test "$ICOTOOL" = false
5211     then
5212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5213 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5214       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5215     else
5216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5217 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5218     fi
5219   fi
5220
5221 fi
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5225 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5226 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   ac_check_lib_save_LIBS=$LIBS
5230 LIBS="-li386  $LIBS"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h.  */
5233
5234 /* Override any GCC internal prototype to avoid an error.
5235    Use char because int might match the return type of a GCC
5236    builtin and then its argument prototype would still apply.  */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char i386_set_ldt ();
5241 int
5242 main ()
5243 {
5244 return i386_set_ldt ();
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_link "$LINENO"; then :
5250   ac_cv_lib_i386_i386_set_ldt=yes
5251 else
5252   ac_cv_lib_i386_i386_set_ldt=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext \
5255     conftest$ac_exeext conftest.$ac_ext
5256 LIBS=$ac_check_lib_save_LIBS
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5259 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5260 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5261   cat >>confdefs.h <<_ACEOF
5262 #define HAVE_LIBI386 1
5263 _ACEOF
5264
5265   LIBS="-li386 $LIBS"
5266
5267 fi
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5270 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5271 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   ac_check_lib_save_LIBS=$LIBS
5275 LIBS="-lossaudio  $LIBS"
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278
5279 /* Override any GCC internal prototype to avoid an error.
5280    Use char because int might match the return type of a GCC
5281    builtin and then its argument prototype would still apply.  */
5282 #ifdef __cplusplus
5283 extern "C"
5284 #endif
5285 char _oss_ioctl ();
5286 int
5287 main ()
5288 {
5289 return _oss_ioctl ();
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_link "$LINENO"; then :
5295   ac_cv_lib_ossaudio__oss_ioctl=yes
5296 else
5297   ac_cv_lib_ossaudio__oss_ioctl=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext \
5300     conftest$ac_exeext conftest.$ac_ext
5301 LIBS=$ac_check_lib_save_LIBS
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5304 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5305 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5306   cat >>confdefs.h <<_ACEOF
5307 #define HAVE_LIBOSSAUDIO 1
5308 _ACEOF
5309
5310   LIBS="-lossaudio $LIBS"
5311
5312 fi
5313
5314
5315 XLIB=""
5316
5317 OPENGL_LIBS=""
5318
5319
5320
5321 # Check whether --enable-largefile was given.
5322 if test "${enable_largefile+set}" = set; then :
5323   enableval=$enable_largefile;
5324 fi
5325
5326 if test "$enable_largefile" != no; then
5327
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5329 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5330 if ${ac_cv_sys_largefile_CC+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   ac_cv_sys_largefile_CC=no
5334      if test "$GCC" != yes; then
5335        ac_save_CC=$CC
5336        while :; do
5337          # IRIX 6.2 and later do not support large files by default,
5338          # so use the C compiler's -n32 option if that helps.
5339          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h.  */
5341 #include <sys/types.h>
5342  /* Check that off_t can represent 2**63 - 1 correctly.
5343     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5344     since some C++ compilers masquerading as C compilers
5345     incorrectly reject 9223372036854775807.  */
5346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5347   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5348                        && LARGE_OFF_T % 2147483647 == 1)
5349                       ? 1 : -1];
5350 int
5351 main ()
5352 {
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358          if ac_fn_c_try_compile "$LINENO"; then :
5359   break
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext
5362          CC="$CC -n32"
5363          if ac_fn_c_try_compile "$LINENO"; then :
5364   ac_cv_sys_largefile_CC=' -n32'; break
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext
5367          break
5368        done
5369        CC=$ac_save_CC
5370        rm -f conftest.$ac_ext
5371     fi
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5374 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5375   if test "$ac_cv_sys_largefile_CC" != no; then
5376     CC=$CC$ac_cv_sys_largefile_CC
5377   fi
5378
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5380 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5381 if ${ac_cv_sys_file_offset_bits+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   while :; do
5385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h.  */
5387 #include <sys/types.h>
5388  /* Check that off_t can represent 2**63 - 1 correctly.
5389     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390     since some C++ compilers masquerading as C compilers
5391     incorrectly reject 9223372036854775807.  */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394                        && LARGE_OFF_T % 2147483647 == 1)
5395                       ? 1 : -1];
5396 int
5397 main ()
5398 {
5399
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405   ac_cv_sys_file_offset_bits=no; break
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h.  */
5410 #define _FILE_OFFSET_BITS 64
5411 #include <sys/types.h>
5412  /* Check that off_t can represent 2**63 - 1 correctly.
5413     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414     since some C++ compilers masquerading as C compilers
5415     incorrectly reject 9223372036854775807.  */
5416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418                        && LARGE_OFF_T % 2147483647 == 1)
5419                       ? 1 : -1];
5420 int
5421 main ()
5422 {
5423
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429   ac_cv_sys_file_offset_bits=64; break
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432   ac_cv_sys_file_offset_bits=unknown
5433   break
5434 done
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5437 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5438 case $ac_cv_sys_file_offset_bits in #(
5439   no | unknown) ;;
5440   *)
5441 cat >>confdefs.h <<_ACEOF
5442 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5443 _ACEOF
5444 ;;
5445 esac
5446 rm -rf conftest*
5447   if test $ac_cv_sys_file_offset_bits = unknown; then
5448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5449 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5450 if ${ac_cv_sys_large_files+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   while :; do
5454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h.  */
5456 #include <sys/types.h>
5457  /* Check that off_t can represent 2**63 - 1 correctly.
5458     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459     since some C++ compilers masquerading as C compilers
5460     incorrectly reject 9223372036854775807.  */
5461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463                        && LARGE_OFF_T % 2147483647 == 1)
5464                       ? 1 : -1];
5465 int
5466 main ()
5467 {
5468
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474   ac_cv_sys_large_files=no; break
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 #define _LARGE_FILES 1
5480 #include <sys/types.h>
5481  /* Check that off_t can represent 2**63 - 1 correctly.
5482     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5483     since some C++ compilers masquerading as C compilers
5484     incorrectly reject 9223372036854775807.  */
5485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5486   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5487                        && LARGE_OFF_T % 2147483647 == 1)
5488                       ? 1 : -1];
5489 int
5490 main ()
5491 {
5492
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   ac_cv_sys_large_files=1; break
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501   ac_cv_sys_large_files=unknown
5502   break
5503 done
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5506 $as_echo "$ac_cv_sys_large_files" >&6; }
5507 case $ac_cv_sys_large_files in #(
5508   no | unknown) ;;
5509   *)
5510 cat >>confdefs.h <<_ACEOF
5511 #define _LARGE_FILES $ac_cv_sys_large_files
5512 _ACEOF
5513 ;;
5514 esac
5515 rm -rf conftest*
5516   fi
5517 fi
5518
5519
5520 ac_ext=c
5521 ac_cpp='$CPP $CPPFLAGS'
5522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5527 # On Suns, sometimes $CPP names a directory.
5528 if test -n "$CPP" && test -d "$CPP"; then
5529   CPP=
5530 fi
5531 if test -z "$CPP"; then
5532   if ${ac_cv_prog_CPP+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535       # Double quotes because CPP needs to be expanded
5536     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5537     do
5538       ac_preproc_ok=false
5539 for ac_c_preproc_warn_flag in '' yes
5540 do
5541   # Use a header file that comes with gcc, so configuring glibc
5542   # with a fresh cross-compiler works.
5543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5544   # <limits.h> exists even on freestanding compilers.
5545   # On the NeXT, cc -E runs the code through the compiler's parser,
5546   # not just through cpp. "Syntax error" is here to catch this case.
5547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h.  */
5549 #ifdef __STDC__
5550 # include <limits.h>
5551 #else
5552 # include <assert.h>
5553 #endif
5554                      Syntax error
5555 _ACEOF
5556 if ac_fn_c_try_cpp "$LINENO"; then :
5557
5558 else
5559   # Broken: fails on valid input.
5560 continue
5561 fi
5562 rm -f conftest.err conftest.i conftest.$ac_ext
5563
5564   # OK, works on sane cases.  Now check whether nonexistent headers
5565   # can be detected and how.
5566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h.  */
5568 #include <ac_nonexistent.h>
5569 _ACEOF
5570 if ac_fn_c_try_cpp "$LINENO"; then :
5571   # Broken: success on invalid input.
5572 continue
5573 else
5574   # Passes both tests.
5575 ac_preproc_ok=:
5576 break
5577 fi
5578 rm -f conftest.err conftest.i conftest.$ac_ext
5579
5580 done
5581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5582 rm -f conftest.i conftest.err conftest.$ac_ext
5583 if $ac_preproc_ok; then :
5584   break
5585 fi
5586
5587     done
5588     ac_cv_prog_CPP=$CPP
5589
5590 fi
5591   CPP=$ac_cv_prog_CPP
5592 else
5593   ac_cv_prog_CPP=$CPP
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5596 $as_echo "$CPP" >&6; }
5597 ac_preproc_ok=false
5598 for ac_c_preproc_warn_flag in '' yes
5599 do
5600   # Use a header file that comes with gcc, so configuring glibc
5601   # with a fresh cross-compiler works.
5602   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603   # <limits.h> exists even on freestanding compilers.
5604   # On the NeXT, cc -E runs the code through the compiler's parser,
5605   # not just through cpp. "Syntax error" is here to catch this case.
5606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h.  */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613                      Syntax error
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5616
5617 else
5618   # Broken: fails on valid input.
5619 continue
5620 fi
5621 rm -f conftest.err conftest.i conftest.$ac_ext
5622
5623   # OK, works on sane cases.  Now check whether nonexistent headers
5624   # can be detected and how.
5625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if ac_fn_c_try_cpp "$LINENO"; then :
5630   # Broken: success on invalid input.
5631 continue
5632 else
5633   # Passes both tests.
5634 ac_preproc_ok=:
5635 break
5636 fi
5637 rm -f conftest.err conftest.i conftest.$ac_ext
5638
5639 done
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.i conftest.err conftest.$ac_ext
5642 if $ac_preproc_ok; then :
5643
5644 else
5645   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5648 See \`config.log' for more details" "$LINENO" 5; }
5649 fi
5650
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5659 $as_echo_n "checking for ANSI C header files... " >&6; }
5660 if ${ac_cv_header_stdc+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665 #include <stdlib.h>
5666 #include <stdarg.h>
5667 #include <string.h>
5668 #include <float.h>
5669
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679   ac_cv_header_stdc=yes
5680 else
5681   ac_cv_header_stdc=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684
5685 if test $ac_cv_header_stdc = yes; then
5686   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689 #include <string.h>
5690
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693   $EGREP "memchr" >/dev/null 2>&1; then :
5694
5695 else
5696   ac_cv_header_stdc=no
5697 fi
5698 rm -f conftest*
5699
5700 fi
5701
5702 if test $ac_cv_header_stdc = yes; then
5703   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h.  */
5706 #include <stdlib.h>
5707
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710   $EGREP "free" >/dev/null 2>&1; then :
5711
5712 else
5713   ac_cv_header_stdc=no
5714 fi
5715 rm -f conftest*
5716
5717 fi
5718
5719 if test $ac_cv_header_stdc = yes; then
5720   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5721   if test "$cross_compiling" = yes; then :
5722   :
5723 else
5724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h.  */
5726 #include <ctype.h>
5727 #include <stdlib.h>
5728 #if ((' ' & 0x0FF) == 0x020)
5729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5731 #else
5732 # define ISLOWER(c) \
5733                    (('a' <= (c) && (c) <= 'i') \
5734                      || ('j' <= (c) && (c) <= 'r') \
5735                      || ('s' <= (c) && (c) <= 'z'))
5736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5737 #endif
5738
5739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5740 int
5741 main ()
5742 {
5743   int i;
5744   for (i = 0; i < 256; i++)
5745     if (XOR (islower (i), ISLOWER (i))
5746         || toupper (i) != TOUPPER (i))
5747       return 2;
5748   return 0;
5749 }
5750 _ACEOF
5751 if ac_fn_c_try_run "$LINENO"; then :
5752
5753 else
5754   ac_cv_header_stdc=no
5755 fi
5756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5757   conftest.$ac_objext conftest.beam conftest.$ac_ext
5758 fi
5759
5760 fi
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5763 $as_echo "$ac_cv_header_stdc" >&6; }
5764 if test $ac_cv_header_stdc = yes; then
5765
5766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5767
5768 fi
5769
5770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5772                   inttypes.h stdint.h unistd.h
5773 do :
5774   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5776 "
5777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5778   cat >>confdefs.h <<_ACEOF
5779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5780 _ACEOF
5781
5782 fi
5783
5784 done
5785
5786
5787 for ac_header in \
5788         AL/al.h \
5789         ApplicationServices/ApplicationServices.h \
5790         AudioToolbox/AudioConverter.h \
5791         AudioUnit/AudioUnit.h \
5792         AudioUnit/AudioComponent.h \
5793         CL/cl.h \
5794         Carbon/Carbon.h \
5795         CoreAudio/CoreAudio.h \
5796         DiskArbitration/DiskArbitration.h \
5797         IOKit/IOKitLib.h \
5798         IOKit/hid/IOHIDLib.h \
5799         OpenAL/al.h \
5800         OpenCL/opencl.h \
5801         QuickTime/ImageCompression.h \
5802         Security/Security.h \
5803         alias.h \
5804         alsa/asoundlib.h \
5805         arpa/inet.h \
5806         arpa/nameser.h \
5807         asm/types.h \
5808         capi20.h \
5809         curses.h \
5810         direct.h \
5811         dirent.h \
5812         dlfcn.h \
5813         elf.h \
5814         float.h \
5815         fnmatch.h \
5816         fontconfig/fontconfig.h \
5817         getopt.h \
5818         gettext-po.h \
5819         grp.h \
5820         gsm.h \
5821         gsm/gsm.h \
5822         ieeefp.h \
5823         inet/mib2.h \
5824         io.h \
5825         jack/jack.h \
5826         jpeglib.h \
5827         kstat.h \
5828         lber.h \
5829         lcms.h \
5830         lcms/lcms.h \
5831         ldap.h \
5832         link.h \
5833         linux/cdrom.h \
5834         linux/compiler.h \
5835         linux/hdreg.h \
5836         linux/input.h \
5837         linux/ioctl.h \
5838         linux/joystick.h \
5839         linux/major.h \
5840         linux/param.h \
5841         linux/serial.h \
5842         linux/types.h \
5843         linux/ucdrom.h \
5844         mach-o/nlist.h \
5845         mach-o/loader.h \
5846         mach/mach.h \
5847         mach/machine.h \
5848         machine/cpu.h \
5849         machine/limits.h \
5850         machine/sysarch.h \
5851         mntent.h \
5852         mpg123.h \
5853         ncurses.h \
5854         netdb.h \
5855         netinet/in.h \
5856         netinet/in_systm.h \
5857         netinet/tcp.h \
5858         netinet/tcp_fsm.h \
5859         openssl/err.h \
5860         openssl/ssl.h \
5861         png.h \
5862         poll.h \
5863         port.h \
5864         process.h \
5865         pthread.h \
5866         pwd.h \
5867         regex.h \
5868         sched.h \
5869         scsi/scsi.h \
5870         scsi/scsi_ioctl.h \
5871         scsi/sg.h \
5872         stdbool.h \
5873         stdint.h \
5874         strings.h \
5875         stropts.h \
5876         sys/asoundlib.h \
5877         sys/attr.h \
5878         sys/cdio.h \
5879         sys/elf32.h \
5880         sys/epoll.h \
5881         sys/errno.h \
5882         sys/event.h \
5883         sys/exec_elf.h \
5884         sys/filio.h \
5885         sys/inotify.h \
5886         sys/ioctl.h \
5887         sys/ipc.h \
5888         sys/limits.h \
5889         sys/link.h \
5890         sys/mman.h \
5891         sys/modem.h \
5892         sys/msg.h \
5893         sys/mtio.h \
5894         sys/param.h \
5895         sys/poll.h \
5896         sys/prctl.h \
5897         sys/protosw.h \
5898         sys/ptrace.h \
5899         sys/resource.h \
5900         sys/scsiio.h \
5901         sys/shm.h \
5902         sys/signal.h \
5903         sys/socket.h \
5904         sys/socketvar.h \
5905         sys/sockio.h \
5906         sys/statvfs.h \
5907         sys/strtio.h \
5908         sys/syscall.h \
5909         sys/tihdr.h \
5910         sys/time.h \
5911         sys/timeout.h \
5912         sys/times.h \
5913         sys/uio.h \
5914         sys/un.h \
5915         sys/utsname.h \
5916         sys/vm86.h \
5917         sys/wait.h \
5918         syscall.h \
5919         termios.h \
5920         tiffio.h \
5921         unistd.h \
5922         utime.h \
5923         valgrind/memcheck.h \
5924         valgrind/valgrind.h \
5925         zlib.h
5926
5927 do :
5928   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5931   cat >>confdefs.h <<_ACEOF
5932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 _ACEOF
5934
5935 fi
5936
5937 done
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5940 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5941 if ${ac_cv_header_stat_broken+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h.  */
5946 #include <sys/types.h>
5947 #include <sys/stat.h>
5948
5949 #if defined S_ISBLK && defined S_IFDIR
5950 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5951 #endif
5952
5953 #if defined S_ISBLK && defined S_IFCHR
5954 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5955 #endif
5956
5957 #if defined S_ISLNK && defined S_IFREG
5958 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5959 #endif
5960
5961 #if defined S_ISSOCK && defined S_IFREG
5962 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5963 #endif
5964
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967   ac_cv_header_stat_broken=no
5968 else
5969   ac_cv_header_stat_broken=yes
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5974 $as_echo "$ac_cv_header_stat_broken" >&6; }
5975 if test $ac_cv_header_stat_broken = yes; then
5976
5977 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5978
5979 fi
5980
5981
5982
5983 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5984 do :
5985   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5987      #ifdef HAVE_SYS_PARAM_H
5988      # include <sys/param.h>
5989      #endif
5990 "
5991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5992   cat >>confdefs.h <<_ACEOF
5993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5994 _ACEOF
5995
5996 fi
5997
5998 done
5999
6000
6001 for ac_header in \
6002         netinet/ip.h \
6003         net/if.h \
6004         net/if_arp.h \
6005         net/if_dl.h \
6006         net/if_types.h \
6007         net/route.h \
6008         netinet/if_ether.h \
6009         netinet/if_inarp.h \
6010         netinet/in_pcb.h \
6011         netinet/ip_icmp.h \
6012         netinet/ip_var.h \
6013         netinet/udp.h \
6014         netipx/ipx.h \
6015
6016 do :
6017   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6019      #ifdef HAVE_SYS_SOCKET_H
6020      # include <sys/socket.h>
6021      #endif
6022      #ifdef HAVE_SYS_SOCKETVAR_H
6023      # include <sys/socketvar.h>
6024      #endif
6025      #ifdef HAVE_NET_ROUTE_H
6026      # include <net/route.h>
6027      #endif
6028      #ifdef HAVE_NETINET_IN_H
6029      # include <netinet/in.h>
6030      #endif
6031      #ifdef HAVE_NETINET_IN_SYSTM_H
6032      # include <netinet/in_systm.h>
6033      #endif
6034      #ifdef HAVE_NET_IF_H
6035      # include <net/if.h>
6036      #endif
6037      #ifdef HAVE_NETINET_IP_H
6038      # include <netinet/ip.h>
6039      #endif
6040 "
6041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6042   cat >>confdefs.h <<_ACEOF
6043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044 _ACEOF
6045
6046 fi
6047
6048 done
6049
6050
6051 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6052 do :
6053   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6054 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6055      #ifdef HAVE_ALIAS_H
6056      # include <alias.h>
6057      #endif
6058      #ifdef HAVE_SYS_SOCKET_H
6059      # include <sys/socket.h>
6060      #endif
6061      #ifdef HAVE_SYS_SOCKETVAR_H
6062      # include <sys/socketvar.h>
6063      #endif
6064      #ifdef HAVE_SYS_TIMEOUT_H
6065      # include <sys/timeout.h>
6066      #endif
6067      #ifdef HAVE_NETINET_IN_H
6068      # include <netinet/in.h>
6069      #endif
6070      #ifdef HAVE_NETINET_IN_SYSTM_H
6071      # include <netinet/in_systm.h>
6072      #endif
6073      #ifdef HAVE_NETINET_IP_H
6074      # include <netinet/ip.h>
6075      #endif
6076      #ifdef HAVE_NETINET_IP_VAR_H
6077      # include <netinet/ip_var.h>
6078      #endif
6079      #ifdef HAVE_NETINET_IP_ICMP_H
6080      # include <netinet/ip_icmp.h>
6081      #endif
6082      #ifdef HAVE_NETINET_UDP_H
6083      # include <netinet/udp.h>
6084      #endif
6085      #ifdef HAVE_NETINET_TCP_H
6086      # include <netinet/tcp.h>
6087      #endif
6088      #ifdef HAVE_NETINET_TCP_TIMER_H
6089      #include <netinet/tcp_timer.h>
6090      #endif
6091 "
6092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6093   cat >>confdefs.h <<_ACEOF
6094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 _ACEOF
6096
6097 fi
6098
6099 done
6100
6101
6102 for ac_header in linux/ipx.h linux/irda.h
6103 do :
6104   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6106      #ifdef HAVE_ASM_TYPES_H
6107      # include <asm/types.h>
6108      #endif
6109      #ifdef HAVE_SYS_SOCKET_H
6110      # include <sys/socket.h>
6111      #endif
6112      #ifdef HAVE_LINUX_TYPES_H
6113      # include <linux/types.h>
6114      #endif
6115 "
6116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6117   cat >>confdefs.h <<_ACEOF
6118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6120
6121 fi
6122
6123 done
6124
6125
6126 for ac_header in mach-o/dyld_images.h
6127 do :
6128   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6129      # include <stdbool.h>
6130      #endif
6131      #ifdef HAVE_STDINT_H
6132      # include <stdint.h>
6133      #endif
6134 "
6135 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6136   cat >>confdefs.h <<_ACEOF
6137 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6138 _ACEOF
6139
6140 fi
6141
6142 done
6143
6144
6145 for ac_header in resolv.h
6146 do :
6147   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6148      #ifdef HAVE_SYS_SOCKET_H
6149      # include <sys/socket.h>
6150      #endif
6151      #ifdef HAVE_NETINET_IN_H
6152      # include <netinet/in.h>
6153      #endif
6154      #ifdef HAVE_ARPA_NAMESER_H
6155      # include <arpa/nameser.h>
6156      #endif
6157 "
6158 if test "x$ac_cv_header_resolv_h" = xyes; then :
6159   cat >>confdefs.h <<_ACEOF
6160 #define HAVE_RESOLV_H 1
6161 _ACEOF
6162
6163 fi
6164
6165 done
6166
6167
6168 for ac_header in ifaddrs.h
6169 do :
6170   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6171 "
6172 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6173   cat >>confdefs.h <<_ACEOF
6174 #define HAVE_IFADDRS_H 1
6175 _ACEOF
6176
6177 fi
6178
6179 done
6180
6181
6182 for ac_header in ucontext.h
6183 do :
6184   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6185 "
6186 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6187   cat >>confdefs.h <<_ACEOF
6188 #define HAVE_UCONTEXT_H 1
6189 _ACEOF
6190
6191 fi
6192
6193 done
6194
6195
6196 for ac_header in sys/thr.h
6197 do :
6198   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6199 #ifdef HAVE_UCONTEXT_H
6200 #include <ucontext.h>
6201 #endif
6202 "
6203 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6204   cat >>confdefs.h <<_ACEOF
6205 #define HAVE_SYS_THR_H 1
6206 _ACEOF
6207
6208 fi
6209
6210 done
6211
6212
6213 for ac_header in pthread_np.h
6214 do :
6215   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6216 #include <pthread.h>
6217 #endif
6218 "
6219 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6220   cat >>confdefs.h <<_ACEOF
6221 #define HAVE_PTHREAD_NP_H 1
6222 _ACEOF
6223
6224 fi
6225
6226 done
6227
6228
6229 for ac_header in linux/videodev.h
6230 do :
6231   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6232 #include <sys/time.h>
6233 #endif
6234 #include <sys/types.h>
6235 #ifdef HAVE_ASM_TYPES_H
6236 #include <asm/types.h>
6237 #endif
6238 "
6239 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
6240   cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LINUX_VIDEODEV_H 1
6242 _ACEOF
6243
6244 fi
6245
6246 done
6247
6248
6249 for ac_header in linux/capi.h
6250 do :
6251   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6252 "
6253 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6254   cat >>confdefs.h <<_ACEOF
6255 #define HAVE_LINUX_CAPI_H 1
6256 _ACEOF
6257
6258 fi
6259
6260 done
6261
6262
6263
6264 DLLEXT=""
6265
6266 DLLFLAGS="-D_REENTRANT"
6267
6268 LDSHARED=""
6269
6270 LDDLLFLAGS=""
6271
6272 LIBEXT="so"
6273
6274 IMPLIBEXT="def"
6275
6276 LDRPATH_INSTALL=""
6277
6278 LDRPATH_LOCAL=""
6279
6280 STATIC_IMPLIBEXT="def.a"
6281 # Extract the first word of "ldd", so it can be a program name with args.
6282 set dummy ldd; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_path_LDD+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   case $LDD in
6289   [\\/]* | ?:[\\/]*)
6290   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6291   ;;
6292   *)
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 as_dummy="/sbin:/usr/sbin:$PATH"
6295 for as_dir in $as_dummy
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308
6309   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6310   ;;
6311 esac
6312 fi
6313 LDD=$ac_cv_path_LDD
6314 if test -n "$LDD"; then
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6316 $as_echo "$LDD" >&6; }
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322
6323
6324 case $host_os in
6325   cygwin*|mingw32*)
6326     if test -n "$ac_tool_prefix"; then
6327   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_DLLTOOL+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   if test -n "$DLLTOOL"; then
6335   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 DLLTOOL=$ac_cv_prog_DLLTOOL
6355 if test -n "$DLLTOOL"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6357 $as_echo "$DLLTOOL" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363
6364 fi
6365 if test -z "$ac_cv_prog_DLLTOOL"; then
6366   ac_ct_DLLTOOL=$DLLTOOL
6367   # Extract the first word of "dlltool", so it can be a program name with args.
6368 set dummy dlltool; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   if test -n "$ac_ct_DLLTOOL"; then
6375   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380   IFS=$as_save_IFS
6381   test -z "$as_dir" && as_dir=.
6382     for ac_exec_ext in '' $ac_executable_extensions; do
6383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386     break 2
6387   fi
6388 done
6389   done
6390 IFS=$as_save_IFS
6391
6392 fi
6393 fi
6394 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6395 if test -n "$ac_ct_DLLTOOL"; then
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6397 $as_echo "$ac_ct_DLLTOOL" >&6; }
6398 else
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6401 fi
6402
6403   if test "x$ac_ct_DLLTOOL" = x; then
6404     DLLTOOL="false"
6405   else
6406     case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412     DLLTOOL=$ac_ct_DLLTOOL
6413   fi
6414 else
6415   DLLTOOL="$ac_cv_prog_DLLTOOL"
6416 fi
6417
6418     if test -n "$ac_tool_prefix"; then
6419   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DLLWRAP+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$DLLWRAP"; then
6427   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 DLLWRAP=$ac_cv_prog_DLLWRAP
6447 if test -n "$DLLWRAP"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6449 $as_echo "$DLLWRAP" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_DLLWRAP"; then
6458   ac_ct_DLLWRAP=$DLLWRAP
6459   # Extract the first word of "dllwrap", so it can be a program name with args.
6460 set dummy dllwrap; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$ac_ct_DLLWRAP"; then
6467   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6487 if test -n "$ac_ct_DLLWRAP"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6489 $as_echo "$ac_ct_DLLWRAP" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495   if test "x$ac_ct_DLLWRAP" = x; then
6496     DLLWRAP="false"
6497   else
6498     case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504     DLLWRAP=$ac_ct_DLLWRAP
6505   fi
6506 else
6507   DLLWRAP="$ac_cv_prog_DLLWRAP"
6508 fi
6509
6510     if test "$DLLWRAP" = "false"; then
6511       LIBEXT="a"
6512     else
6513             LIBEXT="dll"
6514     fi
6515     IMPLIBEXT="a"
6516     STATIC_IMPLIBEXT="a"
6517         enable_iphlpapi=${enable_iphlpapi:-no}
6518     enable_kernel32=${enable_kernel32:-no}
6519     enable_msvcrt=${enable_msvcrt:-no}
6520     enable_ntdll=${enable_ntdll:-no}
6521     enable_ws2_32=${enable_ws2_32:-no}
6522     enable_loader=${enable_loader:-no}
6523     enable_server=${enable_server:-no}
6524         with_x=${with_x:-no}
6525     with_pthread=${with_pthread:-no}
6526     ;;
6527   darwin*|macosx*)
6528     DLLEXT=".so"
6529     LIBEXT="dylib"
6530     DLLFLAGS="$DLLFLAGS -fPIC"
6531     LDDLLFLAGS="-bundle -multiply_defined suppress"
6532     LIBWINE_LDFLAGS="-multiply_defined suppress"
6533     LDSHARED="\$(CC) -dynamiclib"
6534     STRIP="$STRIP -x"
6535     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6536         COREFOUNDATIONLIB="-framework CoreFoundation"
6537
6538     IOKITLIB="-framework IOKit -framework CoreFoundation"
6539
6540     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6541
6542     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6543
6544     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6545     then
6546                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6547
6548     fi
6549     if test "$ac_cv_header_Security_Security_h" = "yes"
6550     then
6551         SECURITYLIB="-framework Security -framework CoreFoundation"
6552
6553         with_gnutls=${with_gnutls:-no}
6554     fi
6555     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6556     then
6557         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6558         then
6559             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6560
6561         else
6562                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6563
6564         fi
6565                 ac_save_LIBS="$LIBS"
6566         LIBS="$LIBS $COREAUDIO"
6567         for ac_func in AUGraphAddNode
6568 do :
6569   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6570 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6571   cat >>confdefs.h <<_ACEOF
6572 #define HAVE_AUGRAPHADDNODE 1
6573 _ACEOF
6574
6575 fi
6576 done
6577
6578         LIBS="$ac_save_LIBS"
6579     fi
6580     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6581     then
6582         FRAMEWORK_OPENAL="-framework OpenAL"
6583
6584
6585 cat >>confdefs.h <<_ACEOF
6586 #define HAVE_OPENAL 1
6587 _ACEOF
6588
6589         ac_cv_lib_openal=yes
6590     fi
6591     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6592     then
6593         LIBOPENCL="-framework OpenCL"
6594
6595         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6596     fi
6597     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6598     then
6599         ac_save_LIBS="$LIBS"
6600         LIBS="$LIBS $IOKITLIB"
6601         for ac_func in IOHIDManagerCreate
6602 do :
6603   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6604 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6605   cat >>confdefs.h <<_ACEOF
6606 #define HAVE_IOHIDMANAGERCREATE 1
6607 _ACEOF
6608
6609 fi
6610 done
6611
6612         LIBS="$ac_save_LIBS"
6613     fi
6614     case $host_cpu in
6615       *powerpc*)
6616         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6617     esac
6618     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6619     then
6620         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6621
6622         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6623     else
6624         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6625     fi
6626         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6627     then
6628         CARBONLIB="-framework Carbon"
6629
6630         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6631     fi
6632         if test "x$enable_win16" = "xyes"
6633     then
6634         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6635 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6636         if test "$cross_compiling" = yes; then :
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6638 $as_echo "cross-compiling, assuming yes" >&6; }
6639 else
6640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h.  */
6642 asm(".text\n"
6643                                             "bad:\tnop;nop\n"
6644                                             "good:\tnop;nop\n\t"
6645                                             ".globl _testfunc\n"
6646                                             "_testfunc:\tcallw good");
6647                                         extern void testfunc();
6648 int
6649 main ()
6650 {
6651 unsigned short *p = (unsigned short *)testfunc;
6652                                         return p[0] != 0xe866 || p[1] != 0xfffa
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_run "$LINENO"; then :
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6659 $as_echo "yes" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663                                        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
6664 fi
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6666   conftest.$ac_objext conftest.beam conftest.$ac_ext
6667 fi
6668
6669     fi
6670     ;;
6671   *)
6672     DLLFLAGS="$DLLFLAGS -fPIC"
6673     DLLEXT=".so"
6674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6675 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6676 if ${ac_cv_c_dll_gnuelf+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   ac_wine_try_cflags_saved=$CFLAGS
6680 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h.  */
6683 void myfunc() {}
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"; then :
6686   ac_cv_c_dll_gnuelf="yes"
6687 else
6688   ac_cv_c_dll_gnuelf="no"
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext \
6691     conftest$ac_exeext conftest.$ac_ext
6692 CFLAGS=$ac_wine_try_cflags_saved
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6695 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6696     if test "$ac_cv_c_dll_gnuelf" = "yes"
6697     then
6698       LDSHARED="\$(CC) -shared"
6699       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6700       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6701 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6702 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   ac_wine_try_cflags_saved=$CFLAGS
6706 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h.  */
6709 int main(int argc, char **argv) { return 0; }
6710 _ACEOF
6711 if ac_fn_c_try_link "$LINENO"; then :
6712   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6713 else
6714   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext \
6717     conftest$ac_exeext conftest.$ac_ext
6718 CFLAGS=$ac_wine_try_cflags_saved
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6721 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6722 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6723   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6726 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6727 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   ac_wine_try_cflags_saved=$CFLAGS
6731 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h.  */
6734 int main(int argc, char **argv) { return 0; }
6735 _ACEOF
6736 if ac_fn_c_try_link "$LINENO"; then :
6737   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6738 else
6739   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6740 fi
6741 rm -f core conftest.err conftest.$ac_objext \
6742     conftest$ac_exeext conftest.$ac_ext
6743 CFLAGS=$ac_wine_try_cflags_saved
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6746 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6747 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6748   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6749 fi
6750 fi
6751
6752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6753 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6754 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   ac_wine_try_cflags_saved=$CFLAGS
6758 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h.  */
6761 int main(int argc, char **argv) { return 0; }
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"; then :
6764   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6765 else
6766   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext \
6769     conftest$ac_exeext conftest.$ac_ext
6770 CFLAGS=$ac_wine_try_cflags_saved
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6773 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6774 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6775   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6776 fi
6777
6778       { $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
6779 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6780 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   ac_wine_try_cflags_saved=$CFLAGS
6784 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h.  */
6787 int main(int argc, char **argv) { return 0; }
6788 _ACEOF
6789 if ac_fn_c_try_link "$LINENO"; then :
6790   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6791 else
6792   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext \
6795     conftest$ac_exeext conftest.$ac_ext
6796 CFLAGS=$ac_wine_try_cflags_saved
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6799 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6800 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6801   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6802 fi
6803
6804       echo '{ global: *; };' >conftest.map
6805       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6807 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6808 if eval \${$as_ac_var+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   ac_wine_try_cflags_saved=$CFLAGS
6812 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815 int main(int argc, char **argv) { return 0; }
6816 _ACEOF
6817 if ac_fn_c_try_link "$LINENO"; then :
6818   eval "$as_ac_var=yes"
6819 else
6820   eval "$as_ac_var=no"
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext \
6823     conftest$ac_exeext conftest.$ac_ext
6824 CFLAGS=$ac_wine_try_cflags_saved
6825 fi
6826 eval ac_res=\$$as_ac_var
6827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6828 $as_echo "$ac_res" >&6; }
6829 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6830   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6831 fi
6832       rm -f conftest.map
6833
6834       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6835 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6836 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   ac_wine_try_cflags_saved=$CFLAGS
6840 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h.  */
6843 int main(int argc, char **argv) { return 0; }
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6847 else
6848   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext \
6851     conftest$ac_exeext conftest.$ac_ext
6852 CFLAGS=$ac_wine_try_cflags_saved
6853 fi
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6855 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6856 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6857   LDEXECFLAGS="-Wl,--export-dynamic"
6858
6859 fi
6860
6861       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6863 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6864 if eval \${$as_ac_var+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   ac_wine_try_cflags_saved=$CFLAGS
6868 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h.  */
6871 int main(int argc, char **argv) { return 0; }
6872 _ACEOF
6873 if ac_fn_c_try_link "$LINENO"; then :
6874   eval "$as_ac_var=yes"
6875 else
6876   eval "$as_ac_var=no"
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext \
6879     conftest$ac_exeext conftest.$ac_ext
6880 CFLAGS=$ac_wine_try_cflags_saved
6881 fi
6882 eval ac_res=\$$as_ac_var
6883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884 $as_echo "$ac_res" >&6; }
6885 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6886   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6887                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6888 else
6889   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6891 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6892 if eval \${$as_ac_var+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   ac_wine_try_cflags_saved=$CFLAGS
6896 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899 int main(int argc, char **argv) { return 0; }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902   eval "$as_ac_var=yes"
6903 else
6904   eval "$as_ac_var=no"
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907     conftest$ac_exeext conftest.$ac_ext
6908 CFLAGS=$ac_wine_try_cflags_saved
6909 fi
6910 eval ac_res=\$$as_ac_var
6911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6912 $as_echo "$ac_res" >&6; }
6913 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6914   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6915                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6916 fi
6917 fi
6918
6919       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6920 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6921 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   ac_wine_try_cflags_saved=$CFLAGS
6925 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928 int main(int argc, char **argv) { return 0; }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931   ac_cv_cflags__Wl___enable_new_dtags=yes
6932 else
6933   ac_cv_cflags__Wl___enable_new_dtags=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936     conftest$ac_exeext conftest.$ac_ext
6937 CFLAGS=$ac_wine_try_cflags_saved
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6940 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6941 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6942   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6943 fi
6944
6945       case $host_cpu in
6946         *i[3456789]86* | x86_64)
6947           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6949 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6950 if eval \${$as_ac_var+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   ac_wine_try_cflags_saved=$CFLAGS
6954 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h.  */
6957 int main(int argc, char **argv) { return 0; }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6960   eval "$as_ac_var=yes"
6961 else
6962   eval "$as_ac_var=no"
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext \
6965     conftest$ac_exeext conftest.$ac_ext
6966 CFLAGS=$ac_wine_try_cflags_saved
6967 fi
6968 eval ac_res=\$$as_ac_var
6969                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6970 $as_echo "$ac_res" >&6; }
6971 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6972   case $host_os in
6973                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6974                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6975                            esac
6976
6977 fi
6978           # Extract the first word of "prelink", so it can be a program name with args.
6979 set dummy prelink; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_path_PRELINK+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   case $PRELINK in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in /sbin /usr/sbin $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004
7005   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7006   ;;
7007 esac
7008 fi
7009 PRELINK=$ac_cv_path_PRELINK
7010 if test -n "$PRELINK"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7012 $as_echo "$PRELINK" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019           if test "x$PRELINK" = xfalse
7020           then
7021               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7022           fi
7023           ;;
7024       esac
7025
7026     else
7027       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7028 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7029 if ${ac_cv_c_dll_unixware+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   ac_wine_try_cflags_saved=$CFLAGS
7033 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h.  */
7036 void myfunc() {}
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039   ac_cv_c_dll_unixware="yes"
7040 else
7041   ac_cv_c_dll_unixware="no"
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext \
7044     conftest$ac_exeext conftest.$ac_ext
7045 CFLAGS=$ac_wine_try_cflags_saved
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7048 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7049       if test "$ac_cv_c_dll_unixware" = "yes"
7050       then
7051         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7052         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7053
7054       else
7055         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7056 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7057 if ${ac_cv_c_dll_hpux+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   ac_wine_try_cflags_saved=$CFLAGS
7061 CFLAGS="$CFLAGS -shared"
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064 void myfunc() {}
7065 _ACEOF
7066 if ac_fn_c_try_link "$LINENO"; then :
7067   ac_cv_c_dll_hpux="yes"
7068 else
7069   ac_cv_c_dll_hpux="no"
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext \
7072     conftest$ac_exeext conftest.$ac_ext
7073 CFLAGS=$ac_wine_try_cflags_saved
7074 fi
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7076 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7077         if test "$ac_cv_c_dll_hpux" = "yes"
7078         then
7079           LIBEXT="sl"
7080           DLLEXT=".sl"
7081           LDDLLFLAGS="-shared -fPIC"
7082           LDSHARED="\$(CC) -shared"
7083         fi
7084       fi
7085     fi
7086     ;;
7087 esac
7088
7089 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7090 enable_winequartz_drv=${enable_winequartz_drv:-no}
7091
7092 if test "$LIBEXT" = "a"; then
7093   as_fn_error $? "could not find a way to build shared libraries.
7094 It is currently not possible to build Wine without shared library
7095 (.so) support to allow transparent switch between .so and .dll files.
7096 If you are using Linux, you will need a newer binutils.
7097 " "$LINENO" 5
7098 fi
7099
7100 CROSSTEST_DISABLE=\#
7101
7102 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7103 then
7104     case "$host_cpu" in
7105   i[3456789]86*)
7106     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 " ;;
7107   x86_64)
7108     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 " ;;
7109   *)
7110     ac_prefix_list="" ;;
7111 esac
7112 for ac_prog in $ac_prefix_list
7113 do
7114   # Extract the first word of "$ac_prog", so it can be a program name with args.
7115 set dummy $ac_prog; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_CROSSCC+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$CROSSCC"; then
7122   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_prog_CROSSCC="$ac_prog"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 CROSSCC=$ac_cv_prog_CROSSCC
7142 if test -n "$CROSSCC"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7144 $as_echo "$CROSSCC" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151   test -n "$CROSSCC" && break
7152 done
7153 test -n "$CROSSCC" || CROSSCC="false"
7154
7155     if test "$CROSSCC" != "false"
7156     then
7157         ac_save_CC="$CC"
7158         CC="$CROSSCC"
7159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7160 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7161         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h.  */
7163
7164 int
7165 main ()
7166 {
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 $as_echo "yes" >&6; }
7175                            set x $CROSSCC
7176                            shift
7177                            target=""
7178                            while test $# -ge 1
7179                            do
7180                                case "$1" in
7181                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7182                                esac
7183                                shift
7184                            done
7185                            if test -n "$target"
7186                            then
7187                                CROSSTEST_DISABLE=""
7188                                CROSSTARGET="$target"
7189
7190                            fi
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196         CC="$ac_save_CC"
7197     fi
7198 fi
7199
7200
7201 if test "$ac_cv_header_pthread_h" = "yes"
7202 then
7203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7204 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7205 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   ac_check_lib_save_LIBS=$LIBS
7209 LIBS="-lpthread  $LIBS"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212
7213 /* Override any GCC internal prototype to avoid an error.
7214    Use char because int might match the return type of a GCC
7215    builtin and then its argument prototype would still apply.  */
7216 #ifdef __cplusplus
7217 extern "C"
7218 #endif
7219 char pthread_create ();
7220 int
7221 main ()
7222 {
7223 return pthread_create ();
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"; then :
7229   ac_cv_lib_pthread_pthread_create=yes
7230 else
7231   ac_cv_lib_pthread_pthread_create=no
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext \
7234     conftest$ac_exeext conftest.$ac_ext
7235 LIBS=$ac_check_lib_save_LIBS
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7238 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7239 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7240   LIBPTHREAD="-lpthread"
7241
7242 fi
7243
7244 fi
7245 if test "x$LIBPTHREAD" = "x"; then :
7246   case "x$with_pthread" in
7247   xno) ;;
7248   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7249 Wine cannot support threads without libpthread.
7250 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7251 esac
7252 fi
7253
7254
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7256 $as_echo_n "checking for X... " >&6; }
7257
7258
7259 # Check whether --with-x was given.
7260 if test "${with_x+set}" = set; then :
7261   withval=$with_x;
7262 fi
7263
7264 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7265 if test "x$with_x" = xno; then
7266   # The user explicitly disabled X.
7267   have_x=disabled
7268 else
7269   case $x_includes,$x_libraries in #(
7270     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7271     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   # One or both of the vars are not set, and there is no cached value.
7275 ac_x_includes=no ac_x_libraries=no
7276 rm -f -r conftest.dir
7277 if mkdir conftest.dir; then
7278   cd conftest.dir
7279   cat >Imakefile <<'_ACEOF'
7280 incroot:
7281         @echo incroot='${INCROOT}'
7282 usrlibdir:
7283         @echo usrlibdir='${USRLIBDIR}'
7284 libdir:
7285         @echo libdir='${LIBDIR}'
7286 _ACEOF
7287   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7288     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7289     for ac_var in incroot usrlibdir libdir; do
7290       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7291     done
7292     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7293     for ac_extension in a so sl dylib la dll; do
7294       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7295          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7296         ac_im_usrlibdir=$ac_im_libdir; break
7297       fi
7298     done
7299     # Screen out bogus values from the imake configuration.  They are
7300     # bogus both because they are the default anyway, and because
7301     # using them would break gcc on systems where it needs fixed includes.
7302     case $ac_im_incroot in
7303         /usr/include) ac_x_includes= ;;
7304         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7305     esac
7306     case $ac_im_usrlibdir in
7307         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7308         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7309     esac
7310   fi
7311   cd ..
7312   rm -f -r conftest.dir
7313 fi
7314
7315 # Standard set of common directories for X headers.
7316 # Check X11 before X11Rn because it is often a symlink to the current release.
7317 ac_x_header_dirs='
7318 /usr/X11/include
7319 /usr/X11R7/include
7320 /usr/X11R6/include
7321 /usr/X11R5/include
7322 /usr/X11R4/include
7323
7324 /usr/include/X11
7325 /usr/include/X11R7
7326 /usr/include/X11R6
7327 /usr/include/X11R5
7328 /usr/include/X11R4
7329
7330 /usr/local/X11/include
7331 /usr/local/X11R7/include
7332 /usr/local/X11R6/include
7333 /usr/local/X11R5/include
7334 /usr/local/X11R4/include
7335
7336 /usr/local/include/X11
7337 /usr/local/include/X11R7
7338 /usr/local/include/X11R6
7339 /usr/local/include/X11R5
7340 /usr/local/include/X11R4
7341
7342 /usr/X386/include
7343 /usr/x386/include
7344 /usr/XFree86/include/X11
7345
7346 /usr/include
7347 /usr/local/include
7348 /usr/unsupported/include
7349 /usr/athena/include
7350 /usr/local/x11r5/include
7351 /usr/lpp/Xamples/include
7352
7353 /usr/openwin/include
7354 /usr/openwin/share/include'
7355
7356 if test "$ac_x_includes" = no; then
7357   # Guess where to find include files, by looking for Xlib.h.
7358   # First, try using that file with no special directory specified.
7359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361 #include <X11/Xlib.h>
7362 _ACEOF
7363 if ac_fn_c_try_cpp "$LINENO"; then :
7364   # We can compile using X headers with no special include directory.
7365 ac_x_includes=
7366 else
7367   for ac_dir in $ac_x_header_dirs; do
7368   if test -r "$ac_dir/X11/Xlib.h"; then
7369     ac_x_includes=$ac_dir
7370     break
7371   fi
7372 done
7373 fi
7374 rm -f conftest.err conftest.i conftest.$ac_ext
7375 fi # $ac_x_includes = no
7376
7377 if test "$ac_x_libraries" = no; then
7378   # Check for the libraries.
7379   # See if we find them without any special options.
7380   # Don't add to $LIBS permanently.
7381   ac_save_LIBS=$LIBS
7382   LIBS="-lX11 $LIBS"
7383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h.  */
7385 #include <X11/Xlib.h>
7386 int
7387 main ()
7388 {
7389 XrmInitialize ()
7390   ;
7391   return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_link "$LINENO"; then :
7395   LIBS=$ac_save_LIBS
7396 # We can link X programs with no special library path.
7397 ac_x_libraries=
7398 else
7399   LIBS=$ac_save_LIBS
7400 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7401 do
7402   # Don't even attempt the hair of trying to link an X program!
7403   for ac_extension in a so sl dylib la dll; do
7404     if test -r "$ac_dir/libX11.$ac_extension"; then
7405       ac_x_libraries=$ac_dir
7406       break 2
7407     fi
7408   done
7409 done
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412     conftest$ac_exeext conftest.$ac_ext
7413 fi # $ac_x_libraries = no
7414
7415 case $ac_x_includes,$ac_x_libraries in #(
7416   no,* | *,no | *\'*)
7417     # Didn't find X, or a directory has "'" in its name.
7418     ac_cv_have_x="have_x=no";; #(
7419   *)
7420     # Record where we found X for the cache.
7421     ac_cv_have_x="have_x=yes\
7422         ac_x_includes='$ac_x_includes'\
7423         ac_x_libraries='$ac_x_libraries'"
7424 esac
7425 fi
7426 ;; #(
7427     *) have_x=yes;;
7428   esac
7429   eval "$ac_cv_have_x"
7430 fi # $with_x != no
7431
7432 if test "$have_x" != yes; then
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7434 $as_echo "$have_x" >&6; }
7435   no_x=yes
7436 else
7437   # If each of the values was on the command line, it overrides each guess.
7438   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7439   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7440   # Update the cache value to reflect the command line values.
7441   ac_cv_have_x="have_x=yes\
7442         ac_x_includes='$x_includes'\
7443         ac_x_libraries='$x_libraries'"
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7445 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7446 fi
7447
7448 if test "$no_x" = yes; then
7449   # Not all programs may use this symbol, but it does not hurt to define it.
7450
7451 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7452
7453   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7454 else
7455   if test -n "$x_includes"; then
7456     X_CFLAGS="$X_CFLAGS -I$x_includes"
7457   fi
7458
7459   # It would also be nice to do this for all -L options, not just this one.
7460   if test -n "$x_libraries"; then
7461     X_LIBS="$X_LIBS -L$x_libraries"
7462     # For Solaris; some versions of Sun CC require a space after -R and
7463     # others require no space.  Words are not sufficient . . . .
7464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7465 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7466     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7467     ac_xsave_c_werror_flag=$ac_c_werror_flag
7468     ac_c_werror_flag=yes
7469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h.  */
7471
7472 int
7473 main ()
7474 {
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 if ac_fn_c_try_link "$LINENO"; then :
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483        X_LIBS="$X_LIBS -R$x_libraries"
7484 else
7485   LIBS="$ac_xsave_LIBS -R $x_libraries"
7486        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h.  */
7488
7489 int
7490 main ()
7491 {
7492
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499 $as_echo "yes" >&6; }
7500           X_LIBS="$X_LIBS -R $x_libraries"
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7503 $as_echo "neither works" >&6; }
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506     conftest$ac_exeext conftest.$ac_ext
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext \
7509     conftest$ac_exeext conftest.$ac_ext
7510     ac_c_werror_flag=$ac_xsave_c_werror_flag
7511     LIBS=$ac_xsave_LIBS
7512   fi
7513
7514   # Check for system-dependent libraries X programs must link with.
7515   # Do this before checking for the system-independent R6 libraries
7516   # (-lICE), since we may need -lsocket or whatever for X linking.
7517
7518   if test "$ISC" = yes; then
7519     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7520   else
7521     # Martyn Johnson says this is needed for Ultrix, if the X
7522     # libraries were built with DECnet support.  And Karl Berry says
7523     # the Alpha needs dnet_stub (dnet does not exist).
7524     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h.  */
7527
7528 /* Override any GCC internal prototype to avoid an error.
7529    Use char because int might match the return type of a GCC
7530    builtin and then its argument prototype would still apply.  */
7531 #ifdef __cplusplus
7532 extern "C"
7533 #endif
7534 char XOpenDisplay ();
7535 int
7536 main ()
7537 {
7538 return XOpenDisplay ();
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"; then :
7544
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7547 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7548 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7549   $as_echo_n "(cached) " >&6
7550 else
7551   ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-ldnet  $LIBS"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 /* Override any GCC internal prototype to avoid an error.
7557    Use char because int might match the return type of a GCC
7558    builtin and then its argument prototype would still apply.  */
7559 #ifdef __cplusplus
7560 extern "C"
7561 #endif
7562 char dnet_ntoa ();
7563 int
7564 main ()
7565 {
7566 return dnet_ntoa ();
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572   ac_cv_lib_dnet_dnet_ntoa=yes
7573 else
7574   ac_cv_lib_dnet_dnet_ntoa=no
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext \
7577     conftest$ac_exeext conftest.$ac_ext
7578 LIBS=$ac_check_lib_save_LIBS
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7581 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7582 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7583   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7584 fi
7585
7586     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7588 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7589 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   ac_check_lib_save_LIBS=$LIBS
7593 LIBS="-ldnet_stub  $LIBS"
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596
7597 /* Override any GCC internal prototype to avoid an error.
7598    Use char because int might match the return type of a GCC
7599    builtin and then its argument prototype would still apply.  */
7600 #ifdef __cplusplus
7601 extern "C"
7602 #endif
7603 char dnet_ntoa ();
7604 int
7605 main ()
7606 {
7607 return dnet_ntoa ();
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7614 else
7615   ac_cv_lib_dnet_stub_dnet_ntoa=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618     conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7622 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7623 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7624   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7625 fi
7626
7627     fi
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext \
7630     conftest$ac_exeext conftest.$ac_ext
7631     LIBS="$ac_xsave_LIBS"
7632
7633     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7634     # to get the SysV transport functions.
7635     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7636     # needs -lnsl.
7637     # The nsl library prevents programs from opening the X display
7638     # on Irix 5.2, according to T.E. Dickey.
7639     # The functions gethostbyname, getservbyname, and inet_addr are
7640     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7641     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7642 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7643
7644 fi
7645
7646     if test $ac_cv_func_gethostbyname = no; then
7647       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7648 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7649 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   ac_check_lib_save_LIBS=$LIBS
7653 LIBS="-lnsl  $LIBS"
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h.  */
7656
7657 /* Override any GCC internal prototype to avoid an error.
7658    Use char because int might match the return type of a GCC
7659    builtin and then its argument prototype would still apply.  */
7660 #ifdef __cplusplus
7661 extern "C"
7662 #endif
7663 char gethostbyname ();
7664 int
7665 main ()
7666 {
7667 return gethostbyname ();
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_link "$LINENO"; then :
7673   ac_cv_lib_nsl_gethostbyname=yes
7674 else
7675   ac_cv_lib_nsl_gethostbyname=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext \
7678     conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7682 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7683 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7684   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7685 fi
7686
7687       if test $ac_cv_lib_nsl_gethostbyname = no; then
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7689 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7690 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   ac_check_lib_save_LIBS=$LIBS
7694 LIBS="-lbsd  $LIBS"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697
7698 /* Override any GCC internal prototype to avoid an error.
7699    Use char because int might match the return type of a GCC
7700    builtin and then its argument prototype would still apply.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 char gethostbyname ();
7705 int
7706 main ()
7707 {
7708 return gethostbyname ();
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 if ac_fn_c_try_link "$LINENO"; then :
7714   ac_cv_lib_bsd_gethostbyname=yes
7715 else
7716   ac_cv_lib_bsd_gethostbyname=no
7717 fi
7718 rm -f core conftest.err conftest.$ac_objext \
7719     conftest$ac_exeext conftest.$ac_ext
7720 LIBS=$ac_check_lib_save_LIBS
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7723 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7724 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7726 fi
7727
7728       fi
7729     fi
7730
7731     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7732     # socket/setsockopt and other routines are undefined under SCO ODT
7733     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7734     # on later versions), says Simon Leinen: it contains gethostby*
7735     # variants that don't use the name server (or something).  -lsocket
7736     # must be given before -lnsl if both are needed.  We assume that
7737     # if connect needs -lnsl, so does gethostbyname.
7738     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7739 if test "x$ac_cv_func_connect" = xyes; then :
7740
7741 fi
7742
7743     if test $ac_cv_func_connect = no; then
7744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7745 $as_echo_n "checking for connect in -lsocket... " >&6; }
7746 if ${ac_cv_lib_socket_connect+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
7761 int
7762 main ()
7763 {
7764 return connect ();
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770   ac_cv_lib_socket_connect=yes
7771 else
7772   ac_cv_lib_socket_connect=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_socket_connect" >&5
7779 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7780 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7781   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7782 fi
7783
7784     fi
7785
7786     # Guillermo Gomez says -lposix is necessary on A/UX.
7787     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7788 if test "x$ac_cv_func_remove" = xyes; then :
7789
7790 fi
7791
7792     if test $ac_cv_func_remove = no; then
7793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7794 $as_echo_n "checking for remove in -lposix... " >&6; }
7795 if ${ac_cv_lib_posix_remove+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lposix  $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 remove ();
7810 int
7811 main ()
7812 {
7813 return remove ();
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819   ac_cv_lib_posix_remove=yes
7820 else
7821   ac_cv_lib_posix_remove=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_posix_remove" >&5
7828 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7829 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7830   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7831 fi
7832
7833     fi
7834
7835     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7836     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7837 if test "x$ac_cv_func_shmat" = xyes; then :
7838
7839 fi
7840
7841     if test $ac_cv_func_shmat = no; then
7842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7843 $as_echo_n "checking for shmat in -lipc... " >&6; }
7844 if ${ac_cv_lib_ipc_shmat+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   ac_check_lib_save_LIBS=$LIBS
7848 LIBS="-lipc  $LIBS"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h.  */
7851
7852 /* Override any GCC internal prototype to avoid an error.
7853    Use char because int might match the return type of a GCC
7854    builtin and then its argument prototype would still apply.  */
7855 #ifdef __cplusplus
7856 extern "C"
7857 #endif
7858 char shmat ();
7859 int
7860 main ()
7861 {
7862 return shmat ();
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868   ac_cv_lib_ipc_shmat=yes
7869 else
7870   ac_cv_lib_ipc_shmat=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext \
7873     conftest$ac_exeext conftest.$ac_ext
7874 LIBS=$ac_check_lib_save_LIBS
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7877 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7878 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7879   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7880 fi
7881
7882     fi
7883   fi
7884
7885   # Check for libraries that X11R6 Xt/Xaw programs need.
7886   ac_save_LDFLAGS=$LDFLAGS
7887   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7888   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7889   # check for ICE first), but we must link in the order -lSM -lICE or
7890   # we get undefined symbols.  So assume we have SM if we have ICE.
7891   # These have to be linked with before -lX11, unlike the other
7892   # libraries we check for below, so use a different variable.
7893   # John Interrante, Karl Berry
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7895 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7896 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   ac_check_lib_save_LIBS=$LIBS
7900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903
7904 /* Override any GCC internal prototype to avoid an error.
7905    Use char because int might match the return type of a GCC
7906    builtin and then its argument prototype would still apply.  */
7907 #ifdef __cplusplus
7908 extern "C"
7909 #endif
7910 char IceConnectionNumber ();
7911 int
7912 main ()
7913 {
7914 return IceConnectionNumber ();
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920   ac_cv_lib_ICE_IceConnectionNumber=yes
7921 else
7922   ac_cv_lib_ICE_IceConnectionNumber=no
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext \
7925     conftest$ac_exeext conftest.$ac_ext
7926 LIBS=$ac_check_lib_save_LIBS
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7929 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7930 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7931   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7932 fi
7933
7934   LDFLAGS=$ac_save_LDFLAGS
7935
7936 fi
7937
7938
7939 if test "$have_x" = "yes"
7940 then
7941     XLIB="-lX11"
7942     ac_save_CPPFLAGS="$CPPFLAGS"
7943     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7944
7945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7946 $as_echo_n "checking for -lX11... " >&6; }
7947 if ${ac_cv_lib_soname_X11+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   ac_check_soname_save_LIBS=$LIBS
7951 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954
7955 /* Override any GCC internal prototype to avoid an error.
7956    Use char because int might match the return type of a GCC
7957    builtin and then its argument prototype would still apply.  */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 char XCreateWindow ();
7962 int
7963 main ()
7964 {
7965 return XCreateWindow ();
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971   case "$LIBEXT" in
7972     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7973     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'` ;;
7974     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7975   esac
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978     conftest$ac_exeext conftest.$ac_ext
7979   LIBS=$ac_check_soname_save_LIBS
7980 fi
7981 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7983 $as_echo "not found" >&6; }
7984
7985 else
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7987 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7988
7989 cat >>confdefs.h <<_ACEOF
7990 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7991 _ACEOF
7992
7993
7994 fi
7995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7996 $as_echo_n "checking for -lXext... " >&6; }
7997 if ${ac_cv_lib_soname_Xext+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   ac_check_soname_save_LIBS=$LIBS
8001 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h.  */
8004
8005 /* Override any GCC internal prototype to avoid an error.
8006    Use char because int might match the return type of a GCC
8007    builtin and then its argument prototype would still apply.  */
8008 #ifdef __cplusplus
8009 extern "C"
8010 #endif
8011 char XextCreateExtension ();
8012 int
8013 main ()
8014 {
8015 return XextCreateExtension ();
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"; then :
8021   case "$LIBEXT" in
8022     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8023     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'` ;;
8024     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8025   esac
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext \
8028     conftest$ac_exeext conftest.$ac_ext
8029   LIBS=$ac_check_soname_save_LIBS
8030 fi
8031 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8033 $as_echo "not found" >&6; }
8034
8035 else
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8037 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8038
8039 cat >>confdefs.h <<_ACEOF
8040 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8041 _ACEOF
8042
8043        XLIB="-lXext $XLIB"
8044 fi
8045
8046         for ac_header in X11/Xlib.h \
8047                       X11/XKBlib.h \
8048                       X11/Xutil.h \
8049                       X11/Xcursor/Xcursor.h \
8050                       X11/extensions/shape.h \
8051                       X11/extensions/XInput.h \
8052                       X11/extensions/XInput2.h \
8053                       X11/extensions/XShm.h \
8054                       X11/extensions/Xcomposite.h \
8055                       X11/extensions/Xinerama.h \
8056                       X11/extensions/Xrandr.h \
8057                       X11/extensions/Xrender.h \
8058                       X11/extensions/xf86vmode.h \
8059                       X11/extensions/xf86vmproto.h
8060 do :
8061   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8062 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8063 # include <X11/Xlib.h>
8064 #endif
8065 #ifdef HAVE_X11_XUTIL_H
8066 # include <X11/Xutil.h>
8067 #endif
8068 "
8069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8070   cat >>confdefs.h <<_ACEOF
8071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8072 _ACEOF
8073
8074 fi
8075
8076 done
8077
8078
8079                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8080         then
8081               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8082 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8083 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   ac_check_lib_save_LIBS=$LIBS
8087 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h.  */
8090
8091 /* Override any GCC internal prototype to avoid an error.
8092    Use char because int might match the return type of a GCC
8093    builtin and then its argument prototype would still apply.  */
8094 #ifdef __cplusplus
8095 extern "C"
8096 #endif
8097 char XkbQueryExtension ();
8098 int
8099 main ()
8100 {
8101 return XkbQueryExtension ();
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 if ac_fn_c_try_link "$LINENO"; then :
8107   ac_cv_lib_X11_XkbQueryExtension=yes
8108 else
8109   ac_cv_lib_X11_XkbQueryExtension=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext \
8112     conftest$ac_exeext conftest.$ac_ext
8113 LIBS=$ac_check_lib_save_LIBS
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8116 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8117 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8118
8119 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8120
8121 fi
8122
8123         fi
8124
8125                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8126         then
8127             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8128 $as_echo_n "checking for -lXcursor... " >&6; }
8129 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   ac_check_soname_save_LIBS=$LIBS
8133 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136
8137 /* Override any GCC internal prototype to avoid an error.
8138    Use char because int might match the return type of a GCC
8139    builtin and then its argument prototype would still apply.  */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char XcursorImageLoadCursor ();
8144 int
8145 main ()
8146 {
8147 return XcursorImageLoadCursor ();
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153   case "$LIBEXT" in
8154     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8155     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'` ;;
8156     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8157   esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160     conftest$ac_exeext conftest.$ac_ext
8161   LIBS=$ac_check_soname_save_LIBS
8162 fi
8163 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8165 $as_echo "not found" >&6; }
8166
8167 else
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8169 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8170
8171 cat >>confdefs.h <<_ACEOF
8172 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8173 _ACEOF
8174
8175
8176 fi
8177         fi
8178         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8179   case "x$with_xcursor" in
8180   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8181   xno) ;;
8182   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8183 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8184 esac
8185 fi
8186
8187                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8188         then
8189             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8190 $as_echo_n "checking for -lXi... " >&6; }
8191 if ${ac_cv_lib_soname_Xi+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   ac_check_soname_save_LIBS=$LIBS
8195 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200    Use char because int might match the return type of a GCC
8201    builtin and then its argument prototype would still apply.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char XOpenDevice ();
8206 int
8207 main ()
8208 {
8209 return XOpenDevice ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215   case "$LIBEXT" in
8216     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8217     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'` ;;
8218     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8219   esac
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext \
8222     conftest$ac_exeext conftest.$ac_ext
8223   LIBS=$ac_check_soname_save_LIBS
8224 fi
8225 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8227 $as_echo "not found" >&6; }
8228
8229 else
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8231 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8232
8233 cat >>confdefs.h <<_ACEOF
8234 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8235 _ACEOF
8236
8237
8238 fi
8239         fi
8240         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8241   case "x$with_xinput" in
8242   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8243   xno) ;;
8244   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8245 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8246 esac
8247 fi
8248
8249                 if test "x$ac_cv_lib_soname_Xi" != x
8250         then
8251             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8252   case "x$with_xinput2" in
8253   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8254   xno) ;;
8255   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8256 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8257 esac
8258 fi
8259         fi
8260
8261                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8262         then
8263               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8264 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8265 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   ac_check_lib_save_LIBS=$LIBS
8269 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272
8273 /* Override any GCC internal prototype to avoid an error.
8274    Use char because int might match the return type of a GCC
8275    builtin and then its argument prototype would still apply.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 #endif
8279 char XShmQueryExtension ();
8280 int
8281 main ()
8282 {
8283 return XShmQueryExtension ();
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289   ac_cv_lib_Xext_XShmQueryExtension=yes
8290 else
8291   ac_cv_lib_Xext_XShmQueryExtension=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext \
8294     conftest$ac_exeext conftest.$ac_ext
8295 LIBS=$ac_check_lib_save_LIBS
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8298 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8299 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8300
8301 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8302
8303 fi
8304
8305         fi
8306         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8307   case "x$with_xshm" in
8308   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8309   xno) ;;
8310   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8311 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8312 esac
8313 fi
8314
8315                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8316         then
8317               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8318 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8319 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   ac_check_lib_save_LIBS=$LIBS
8323 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h.  */
8326
8327 /* Override any GCC internal prototype to avoid an error.
8328    Use char because int might match the return type of a GCC
8329    builtin and then its argument prototype would still apply.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char XShapeQueryExtension ();
8334 int
8335 main ()
8336 {
8337 return XShapeQueryExtension ();
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 if ac_fn_c_try_link "$LINENO"; then :
8343   ac_cv_lib_Xext_XShapeQueryExtension=yes
8344 else
8345   ac_cv_lib_Xext_XShapeQueryExtension=no
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext \
8348     conftest$ac_exeext conftest.$ac_ext
8349 LIBS=$ac_check_lib_save_LIBS
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8352 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8353 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8354
8355 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8356
8357 fi
8358
8359         fi
8360         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8361   case "x$with_xshape" in
8362   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8363   xno) ;;
8364   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8365 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8366 esac
8367 fi
8368
8369                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8370         then
8371             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8372 $as_echo_n "checking for -lXxf86vm... " >&6; }
8373 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   ac_check_soname_save_LIBS=$LIBS
8377 LIBS="-lXxf86vm $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 XF86VidModeQueryExtension ();
8388 int
8389 main ()
8390 {
8391 return XF86VidModeQueryExtension ();
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_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8399     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'` ;;
8400     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$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_Xxf86vm" = "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_Xxf86vm" >&5
8413 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8414
8415 cat >>confdefs.h <<_ACEOF
8416 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8417 _ACEOF
8418
8419
8420 fi
8421         fi
8422         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8423   case "x$with_xxf86vm" in
8424   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8425   xno) ;;
8426   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8427 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8428 esac
8429 fi
8430
8431                 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"
8432         then
8433             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8434 $as_echo_n "checking for -lXrender... " >&6; }
8435 if ${ac_cv_lib_soname_Xrender+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   ac_check_soname_save_LIBS=$LIBS
8439 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h.  */
8442
8443 /* Override any GCC internal prototype to avoid an error.
8444    Use char because int might match the return type of a GCC
8445    builtin and then its argument prototype would still apply.  */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 char XRenderQueryExtension ();
8450 int
8451 main ()
8452 {
8453 return XRenderQueryExtension ();
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"; then :
8459   case "$LIBEXT" in
8460     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8461     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'` ;;
8462     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8463   esac
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext \
8466     conftest$ac_exeext conftest.$ac_ext
8467   LIBS=$ac_check_soname_save_LIBS
8468 fi
8469 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8471 $as_echo "not found" >&6; }
8472
8473 else
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8475 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8476
8477 cat >>confdefs.h <<_ACEOF
8478 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8479 _ACEOF
8480
8481        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8482 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8483 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h.  */
8490
8491 /* Override any GCC internal prototype to avoid an error.
8492    Use char because int might match the return type of a GCC
8493    builtin and then its argument prototype would still apply.  */
8494 #ifdef __cplusplus
8495 extern "C"
8496 #endif
8497 char XRenderSetPictureTransform ();
8498 int
8499 main ()
8500 {
8501 return XRenderSetPictureTransform ();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8508 else
8509   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext \
8512     conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8516 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8517 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8518
8519 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8520
8521 fi
8522
8523 fi
8524
8525         fi
8526         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8527   case "x$with_xrender" in
8528   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8529   xno) ;;
8530   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8531 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8532 esac
8533 fi
8534
8535                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8536         then
8537                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539 #include <X11/Xlib.h>
8540 #include <X11/extensions/Xrandr.h>
8541 int
8542 main ()
8543 {
8544 static typeof(XRRSetScreenConfigAndRate) * func;
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8551 $as_echo_n "checking for -lXrandr... " >&6; }
8552 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   ac_check_soname_save_LIBS=$LIBS
8556 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h.  */
8559
8560 /* Override any GCC internal prototype to avoid an error.
8561    Use char because int might match the return type of a GCC
8562    builtin and then its argument prototype would still apply.  */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 char XRRQueryExtension ();
8567 int
8568 main ()
8569 {
8570 return XRRQueryExtension ();
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_link "$LINENO"; then :
8576   case "$LIBEXT" in
8577     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8578     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'` ;;
8579     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8580   esac
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584   LIBS=$ac_check_soname_save_LIBS
8585 fi
8586 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8588 $as_echo "not found" >&6; }
8589
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8592 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8593
8594 cat >>confdefs.h <<_ACEOF
8595 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8596 _ACEOF
8597
8598
8599 fi
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602         fi
8603         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8604   case "x$with_xrandr" in
8605   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8606   xno) ;;
8607   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8608 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8609 esac
8610 fi
8611
8612                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8613         then
8614                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h.  */
8616 #include <X11/Xlib.h>
8617 #include <X11/extensions/Xinerama.h>
8618 int
8619 main ()
8620 {
8621 static typeof(XineramaQueryScreens) * func;
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8628 $as_echo_n "checking for -lXinerama... " >&6; }
8629 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   ac_check_soname_save_LIBS=$LIBS
8633 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h.  */
8636
8637 /* Override any GCC internal prototype to avoid an error.
8638    Use char because int might match the return type of a GCC
8639    builtin and then its argument prototype would still apply.  */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 char XineramaQueryScreens ();
8644 int
8645 main ()
8646 {
8647 return XineramaQueryScreens ();
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"; then :
8653   case "$LIBEXT" in
8654     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8655     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'` ;;
8656     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8657   esac
8658 fi
8659 rm -f core conftest.err conftest.$ac_objext \
8660     conftest$ac_exeext conftest.$ac_ext
8661   LIBS=$ac_check_soname_save_LIBS
8662 fi
8663 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8665 $as_echo "not found" >&6; }
8666
8667 else
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8669 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8673 _ACEOF
8674
8675
8676 fi
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679         fi
8680         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8681   case "x$with_xinerama" in
8682   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8683   xno) ;;
8684   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8685 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8686 esac
8687 fi
8688
8689                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8690         then
8691             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8692 $as_echo_n "checking for -lXcomposite... " >&6; }
8693 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   ac_check_soname_save_LIBS=$LIBS
8697 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h.  */
8700
8701 /* Override any GCC internal prototype to avoid an error.
8702    Use char because int might match the return type of a GCC
8703    builtin and then its argument prototype would still apply.  */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 char XCompositeRedirectWindow ();
8708 int
8709 main ()
8710 {
8711 return XCompositeRedirectWindow ();
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_link "$LINENO"; then :
8717   case "$LIBEXT" in
8718     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8719     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'` ;;
8720     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8721   esac
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext \
8724     conftest$ac_exeext conftest.$ac_ext
8725   LIBS=$ac_check_soname_save_LIBS
8726 fi
8727 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8729 $as_echo "not found" >&6; }
8730
8731 else
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8733 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8734
8735 cat >>confdefs.h <<_ACEOF
8736 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8737 _ACEOF
8738
8739
8740 fi
8741         fi
8742         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8743   case "x$with_xcomposite" in
8744   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8745   xno) ;;
8746   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8747 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8748 esac
8749 fi
8750
8751                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8752 #include <X11/Xlib.h>
8753 #endif
8754 "
8755 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8756
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_XICCALLBACK_CALLBACK 1
8759 _ACEOF
8760
8761
8762 fi
8763 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8764 #include <X11/Xlib.h>
8765 #endif
8766 "
8767 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8768
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_XEVENT_XCOOKIE 1
8771 _ACEOF
8772
8773
8774 fi
8775
8776
8777
8778         opengl_msg=""
8779     if test "x$with_opengl" != "xno"
8780     then
8781         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8782 do :
8783   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8785 # include <GL/glx.h>
8786 #endif
8787 "
8788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8789   cat >>confdefs.h <<_ACEOF
8790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791 _ACEOF
8792
8793 fi
8794
8795 done
8796
8797         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8798         then
8799                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8800 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8801 if ${wine_cv_opengl_header_version_OK+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806 #include <GL/gl.h>
8807 int
8808 main ()
8809 {
8810 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_compile "$LINENO"; then :
8816   wine_cv_opengl_header_version_OK="yes"
8817 else
8818   wine_cv_opengl_header_version_OK="no"
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8823 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8824
8825             if test "$wine_cv_opengl_header_version_OK" = "yes"
8826             then
8827                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8828 $as_echo_n "checking for -lGL... " >&6; }
8829 if ${ac_cv_lib_soname_GL+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   ac_check_soname_save_LIBS=$LIBS
8833 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h.  */
8836
8837 /* Override any GCC internal prototype to avoid an error.
8838    Use char because int might match the return type of a GCC
8839    builtin and then its argument prototype would still apply.  */
8840 #ifdef __cplusplus
8841 extern "C"
8842 #endif
8843 char glXCreateContext ();
8844 int
8845 main ()
8846 {
8847 return glXCreateContext ();
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_link "$LINENO"; then :
8853   case "$LIBEXT" in
8854     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8855     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'` ;;
8856     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8857   esac
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860     conftest$ac_exeext conftest.$ac_ext
8861   LIBS=$ac_check_soname_save_LIBS
8862 fi
8863 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8865 $as_echo "not found" >&6; }
8866        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8867 $as_echo_n "checking for -lGL... " >&6; }
8868 if ${ac_cv_lib_soname_GL+:} false; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   ac_check_soname_save_LIBS=$LIBS
8872 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"
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 glXCreateContext ();
8883 int
8884 main ()
8885 {
8886 return glXCreateContext ();
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_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8894     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'` ;;
8895     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$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_GL" = "x"; then :
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8904 $as_echo "not found" >&6; }
8905        if test -f /usr/X11R6/lib/libGL.a
8906                                     then
8907                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8908 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8909                                     else
8910                                         opengl_msg="No OpenGL library found on this system."
8911                                     fi
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8914 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8918 _ACEOF
8919
8920        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"
8921
8922 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8923
8924 fi
8925 else
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8927 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8928
8929 cat >>confdefs.h <<_ACEOF
8930 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8931 _ACEOF
8932
8933        OPENGL_LIBS="-lGL"
8934
8935 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8936
8937 fi
8938                  if test "$ac_cv_header_GL_glu_h" = "yes"
8939                  then
8940                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8941 $as_echo_n "checking for -lGLU... " >&6; }
8942 if ${ac_cv_lib_soname_GLU+:} false; then :
8943   $as_echo_n "(cached) " >&6
8944 else
8945   ac_check_soname_save_LIBS=$LIBS
8946 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949
8950 /* Override any GCC internal prototype to avoid an error.
8951    Use char because int might match the return type of a GCC
8952    builtin and then its argument prototype would still apply.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char gluLookAt ();
8957 int
8958 main ()
8959 {
8960 return gluLookAt ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 if ac_fn_c_try_link "$LINENO"; then :
8966   case "$LIBEXT" in
8967     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8968     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'` ;;
8969     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8970   esac
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext \
8973     conftest$ac_exeext conftest.$ac_ext
8974   LIBS=$ac_check_soname_save_LIBS
8975 fi
8976 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8978 $as_echo "not found" >&6; }
8979
8980 else
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8982 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8986 _ACEOF
8987
8988
8989 fi
8990                  fi
8991                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8992   case "x$with_glu" in
8993   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8994   xno) ;;
8995   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8996 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8997 esac
8998 fi
8999              else
9000                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9001              fi
9002          else
9003              opengl_msg="OpenGL development headers not found."
9004          fi
9005          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9006          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9007     else
9008          enable_opengl32=${enable_opengl32:-no}
9009          enable_glu32=${enable_glu32:-no}
9010     fi
9011     if test -n "$opengl_msg"; then :
9012   case "x$with_opengl" in
9013   x)   as_fn_append wine_warnings "|$opengl_msg
9014 OpenGL and Direct3D won't be supported." ;;
9015   xno) ;;
9016   *)   as_fn_error $? "$opengl_msg
9017 OpenGL and Direct3D won't be supported.
9018 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9019 esac
9020 fi
9021
9022         NASLIBS=""
9023
9024     for ac_header in audio/audiolib.h
9025 do :
9026   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
9027 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
9028   cat >>confdefs.h <<_ACEOF
9029 #define HAVE_AUDIO_AUDIOLIB_H 1
9030 _ACEOF
9031  for ac_header in audio/soundlib.h
9032 do :
9033   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
9034 "
9035 if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
9036   cat >>confdefs.h <<_ACEOF
9037 #define HAVE_AUDIO_SOUNDLIB_H 1
9038 _ACEOF
9039
9040 fi
9041
9042 done
9043
9044           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9045 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9046 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   ac_check_lib_save_LIBS=$LIBS
9050 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h.  */
9053
9054 /* Override any GCC internal prototype to avoid an error.
9055    Use char because int might match the return type of a GCC
9056    builtin and then its argument prototype would still apply.  */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 char AuCreateFlow ();
9061 int
9062 main ()
9063 {
9064 return AuCreateFlow ();
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070   ac_cv_lib_audio_AuCreateFlow=yes
9071 else
9072   ac_cv_lib_audio_AuCreateFlow=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075     conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9079 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9080 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9082 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9083 if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lXau $X_LIBS $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 XauGetBestAuthByAddr ();
9098 int
9099 main ()
9100 {
9101 return XauGetBestAuthByAddr ();
9102   ;
9103   return 0;
9104 }
9105 _ACEOF
9106 if ac_fn_c_try_link "$LINENO"; then :
9107   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9108 else
9109   ac_cv_lib_Xau_XauGetBestAuthByAddr=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_Xau_XauGetBestAuthByAddr" >&5
9116 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9117 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
9118   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9119 else
9120   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9121 fi
9122
9123
9124 fi
9125
9126 fi
9127
9128 done
9129
9130
9131     CPPFLAGS="$ac_save_CPPFLAGS"
9132 else
9133     XLIB=""
9134     X_CFLAGS=""
9135     X_LIBS=""
9136     enable_winex11_drv=${enable_winex11_drv:-no}
9137     enable_opengl32=${enable_opengl32:-no}
9138     enable_glu32=${enable_glu32:-no}
9139 fi
9140 if test "x$XLIB" = "x"; then :
9141   case "x$with_x" in
9142   xno) ;;
9143   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9144 without X support, which probably isn't what you want. You will need
9145 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9146 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9147 esac
9148 fi
9149
9150 if test "$ac_cv_header_CL_cl_h" = "yes"
9151 then
9152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9153 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9154 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   ac_check_lib_save_LIBS=$LIBS
9158 LIBS="-lOpenCL  $LIBS"
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h.  */
9161
9162 /* Override any GCC internal prototype to avoid an error.
9163    Use char because int might match the return type of a GCC
9164    builtin and then its argument prototype would still apply.  */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 char clGetPlatformInfo ();
9169 int
9170 main ()
9171 {
9172 return clGetPlatformInfo ();
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_link "$LINENO"; then :
9178   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9179 else
9180   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183     conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9187 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9188 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9189   LIBOPENCL="-lOpenCL"
9190
9191 fi
9192
9193 fi
9194 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9195   case "x$with_opencl" in
9196   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9197   xno) ;;
9198   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9199 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9200 esac
9201 fi
9202 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9203
9204
9205 XML2LIBS=""
9206
9207 XML2INCL=""
9208
9209 XSLTINCL=""
9210
9211 if test "x$with_xml" != "xno"
9212 then
9213     ac_save_CPPFLAGS="$CPPFLAGS"
9214     if test "$PKG_CONFIG" != "false"
9215     then
9216         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9217         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9218     else
9219         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9220         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9221     fi
9222     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9223     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9224 do :
9225   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9228   cat >>confdefs.h <<_ACEOF
9229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9230 _ACEOF
9231
9232 fi
9233
9234 done
9235
9236     if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9237     then
9238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9239 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9240 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lxml2 $ac_xml_libs $LIBS"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h.  */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249    Use char because int might match the return type of a GCC
9250    builtin and then its argument prototype would still apply.  */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char xmlParseMemory ();
9255 int
9256 main ()
9257 {
9258 return xmlParseMemory ();
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264   ac_cv_lib_xml2_xmlParseMemory=yes
9265 else
9266   ac_cv_lib_xml2_xmlParseMemory=no
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269     conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9273 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9274 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9275
9276 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9277
9278              XML2LIBS="$ac_xml_libs"
9279              XML2INCL="$ac_xml_cflags"
9280 fi
9281
9282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9283 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9284 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lxml2 $ac_xml_libs $LIBS"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h.  */
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293    Use char because int might match the return type of a GCC
9294    builtin and then its argument prototype would still apply.  */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char xmlReadMemory ();
9299 int
9300 main ()
9301 {
9302 return xmlReadMemory ();
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308   ac_cv_lib_xml2_xmlReadMemory=yes
9309 else
9310   ac_cv_lib_xml2_xmlReadMemory=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313     conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9317 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9318 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9319
9320 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9321
9322 fi
9323
9324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9325 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9326 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9327   $as_echo_n "(cached) " >&6
9328 else
9329   ac_check_lib_save_LIBS=$LIBS
9330 LIBS="-lxml2 $ac_xml_libs $LIBS"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h.  */
9333
9334 /* Override any GCC internal prototype to avoid an error.
9335    Use char because int might match the return type of a GCC
9336    builtin and then its argument prototype would still apply.  */
9337 #ifdef __cplusplus
9338 extern "C"
9339 #endif
9340 char xmlNewDocPI ();
9341 int
9342 main ()
9343 {
9344 return xmlNewDocPI ();
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350   ac_cv_lib_xml2_xmlNewDocPI=yes
9351 else
9352   ac_cv_lib_xml2_xmlNewDocPI=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355     conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9359 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9360 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9361
9362 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9363
9364 fi
9365
9366         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9367 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9368 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-lxml2 $ac_xml_libs $LIBS"
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h.  */
9375
9376 /* Override any GCC internal prototype to avoid an error.
9377    Use char because int might match the return type of a GCC
9378    builtin and then its argument prototype would still apply.  */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char xmlSchemaSetParserStructuredErrors ();
9383 int
9384 main ()
9385 {
9386 return xmlSchemaSetParserStructuredErrors ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9393 else
9394   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9401 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9402 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9403
9404 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9405
9406 fi
9407
9408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9409 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9410 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9411   $as_echo_n "(cached) " >&6
9412 else
9413   ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-lxml2 $ac_xml_libs $LIBS"
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h.  */
9417
9418 /* Override any GCC internal prototype to avoid an error.
9419    Use char because int might match the return type of a GCC
9420    builtin and then its argument prototype would still apply.  */
9421 #ifdef __cplusplus
9422 extern "C"
9423 #endif
9424 char xmlSchemaSetValidStructuredErrors ();
9425 int
9426 main ()
9427 {
9428 return xmlSchemaSetValidStructuredErrors ();
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9435 else
9436   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext \
9439     conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9443 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9444 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9445
9446 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9447
9448 fi
9449
9450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9451 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9452 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   ac_check_lib_save_LIBS=$LIBS
9456 LIBS="-lxml2 $ac_xml_libs $LIBS"
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h.  */
9459
9460 /* Override any GCC internal prototype to avoid an error.
9461    Use char because int might match the return type of a GCC
9462    builtin and then its argument prototype would still apply.  */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char xmlFirstElementChild ();
9467 int
9468 main ()
9469 {
9470 return xmlFirstElementChild ();
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476   ac_cv_lib_xml2_xmlFirstElementChild=yes
9477 else
9478   ac_cv_lib_xml2_xmlFirstElementChild=no
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext \
9481     conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9483 fi
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9485 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9486 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9487
9488 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9489
9490 fi
9491
9492         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9493 "
9494 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9495
9496 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9497
9498 fi
9499
9500     fi
9501     CPPFLAGS="$ac_save_CPPFLAGS"
9502 fi
9503 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9504   case "x$with_xml" in
9505   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9506   xno) ;;
9507   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9508 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9509 esac
9510 fi
9511
9512 if test "x$with_xslt" != "xno"
9513 then
9514     if test "$PKG_CONFIG" != "false"
9515     then
9516         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9517         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9518     else
9519         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9520         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9521     fi
9522     ac_save_CPPFLAGS="$CPPFLAGS"
9523     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9524     for ac_header in libxslt/pattern.h libxslt/transform.h
9525 do :
9526   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9528 # include <libxslt/pattern.h>
9529 #endif
9530 "
9531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9532   cat >>confdefs.h <<_ACEOF
9533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9534 _ACEOF
9535
9536 fi
9537
9538 done
9539
9540     CPPFLAGS="$ac_save_CPPFLAGS"
9541     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9542     then
9543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9544 $as_echo_n "checking for -lxslt... " >&6; }
9545 if ${ac_cv_lib_soname_xslt+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   ac_check_soname_save_LIBS=$LIBS
9549 LIBS="-lxslt $ac_xslt_libs $LIBS"
9550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552
9553 /* Override any GCC internal prototype to avoid an error.
9554    Use char because int might match the return type of a GCC
9555    builtin and then its argument prototype would still apply.  */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char xsltCompilePattern ();
9560 int
9561 main ()
9562 {
9563 return xsltCompilePattern ();
9564   ;
9565   return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569   case "$LIBEXT" in
9570     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9571     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'` ;;
9572     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9573   esac
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576     conftest$ac_exeext conftest.$ac_ext
9577   LIBS=$ac_check_soname_save_LIBS
9578 fi
9579 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9581 $as_echo "not found" >&6; }
9582
9583 else
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9585 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9586
9587 cat >>confdefs.h <<_ACEOF
9588 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9589 _ACEOF
9590
9591        XSLTINCL="$ac_xslt_cflags"
9592 fi
9593     fi
9594 fi
9595 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9596   case "x$with_xslt" in
9597   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9598   xno) ;;
9599   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9600 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9601 esac
9602 fi
9603
9604 HALINCL=""
9605
9606 if test "x$with_hal" != "xno"
9607 then
9608     ac_save_CPPFLAGS="$CPPFLAGS"
9609     if test "$PKG_CONFIG" != "false"
9610     then
9611         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9612         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9613         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9614     fi
9615     for ac_header in dbus/dbus.h hal/libhal.h
9616 do :
9617   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9618 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9619 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9620   cat >>confdefs.h <<_ACEOF
9621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9622 _ACEOF
9623
9624 fi
9625
9626 done
9627
9628     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9629     then
9630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9631 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9632 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h.  */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char dbus_connection_close ();
9647 int
9648 main ()
9649 {
9650 return dbus_connection_close ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"; then :
9656   ac_cv_lib_dbus_1_dbus_connection_close=yes
9657 else
9658   ac_cv_lib_dbus_1_dbus_connection_close=no
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext \
9661     conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9665 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9666 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9668 $as_echo_n "checking for -lhal... " >&6; }
9669 if ${ac_cv_lib_soname_hal+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   ac_check_soname_save_LIBS=$LIBS
9673 LIBS="-lhal $ac_hal_libs $LIBS"
9674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h.  */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char libhal_ctx_new ();
9684 int
9685 main ()
9686 {
9687 return libhal_ctx_new ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_link "$LINENO"; then :
9693   case "$LIBEXT" in
9694     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9695     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'` ;;
9696     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9697   esac
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701   LIBS=$ac_check_soname_save_LIBS
9702 fi
9703 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9705 $as_echo "not found" >&6; }
9706
9707 else
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9709 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9710
9711 cat >>confdefs.h <<_ACEOF
9712 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9713 _ACEOF
9714
9715        HALINCL="$ac_hal_cflags"
9716 fi
9717 fi
9718
9719     fi
9720     CPPFLAGS="$ac_save_CPPFLAGS"
9721 fi
9722 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9723   case "x$with_hal" in
9724   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9725   xno) ;;
9726   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9727 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9728 esac
9729 fi
9730
9731 if test "x$with_gnutls" != "xno"
9732 then
9733     ac_save_CPPFLAGS="$CPPFLAGS"
9734     if test "$PKG_CONFIG" != "false"
9735     then
9736         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9737         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9738         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9739     fi
9740     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9741 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h.  */
9744 #include <gnutls/gnutls.h>
9745 int
9746 main ()
9747 {
9748 typeof(gnutls_mac_get_key_size) *pfunc;
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 if ac_fn_c_try_compile "$LINENO"; then :
9754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9755 $as_echo_n "checking for -lgnutls... " >&6; }
9756 if ${ac_cv_lib_soname_gnutls+:} false; then :
9757   $as_echo_n "(cached) " >&6
9758 else
9759   ac_check_soname_save_LIBS=$LIBS
9760 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h.  */
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765    Use char because int might match the return type of a GCC
9766    builtin and then its argument prototype would still apply.  */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char gnutls_global_init ();
9771 int
9772 main ()
9773 {
9774 return gnutls_global_init ();
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780   case "$LIBEXT" in
9781     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9782     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'` ;;
9783     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9784   esac
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext \
9787     conftest$ac_exeext conftest.$ac_ext
9788   LIBS=$ac_check_soname_save_LIBS
9789 fi
9790 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9792 $as_echo "not found" >&6; }
9793
9794 else
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9796 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9797
9798 cat >>confdefs.h <<_ACEOF
9799 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9800 _ACEOF
9801
9802        GNUTLSINCL="$ac_gnutls_cflags"
9803
9804 fi
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808
9809
9810     CPPFLAGS="$ac_save_CPPFLAGS"
9811 fi
9812 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9813   case "x$with_gnutls" in
9814   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9815   xno) ;;
9816   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9817 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9818 esac
9819 fi
9820
9821 CURSESLIBS=""
9822 if test "$ac_cv_header_ncurses_h" = "yes"
9823 then
9824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9825 $as_echo_n "checking for -lncurses... " >&6; }
9826 if ${ac_cv_lib_soname_ncurses+:} false; then :
9827   $as_echo_n "(cached) " >&6
9828 else
9829   ac_check_soname_save_LIBS=$LIBS
9830 LIBS="-lncurses  $LIBS"
9831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h.  */
9833
9834 /* Override any GCC internal prototype to avoid an error.
9835    Use char because int might match the return type of a GCC
9836    builtin and then its argument prototype would still apply.  */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char waddch ();
9841 int
9842 main ()
9843 {
9844 return waddch ();
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850   case "$LIBEXT" in
9851     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9852     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'` ;;
9853     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9854   esac
9855 fi
9856 rm -f core conftest.err conftest.$ac_objext \
9857     conftest$ac_exeext conftest.$ac_ext
9858   LIBS=$ac_check_soname_save_LIBS
9859 fi
9860 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9862 $as_echo "not found" >&6; }
9863
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9866 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9867
9868 cat >>confdefs.h <<_ACEOF
9869 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9870 _ACEOF
9871
9872        CURSESLIBS="-lncurses"
9873 fi
9874 elif test "$ac_cv_header_curses_h" = "yes"
9875 then
9876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9877 $as_echo_n "checking for -lcurses... " >&6; }
9878 if ${ac_cv_lib_soname_curses+:} false; then :
9879   $as_echo_n "(cached) " >&6
9880 else
9881   ac_check_soname_save_LIBS=$LIBS
9882 LIBS="-lcurses  $LIBS"
9883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h.  */
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887    Use char because int might match the return type of a GCC
9888    builtin and then its argument prototype would still apply.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char waddch ();
9893 int
9894 main ()
9895 {
9896 return waddch ();
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902   case "$LIBEXT" in
9903     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9904     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'` ;;
9905     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9906   esac
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext \
9909     conftest$ac_exeext conftest.$ac_ext
9910   LIBS=$ac_check_soname_save_LIBS
9911 fi
9912 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9914 $as_echo "not found" >&6; }
9915
9916 else
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9918 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9919
9920 cat >>confdefs.h <<_ACEOF
9921 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9922 _ACEOF
9923
9924        CURSESLIBS="-lcurses"
9925 fi
9926 fi
9927 ac_save_LIBS="$LIBS"
9928 LIBS="$LIBS $CURSESLIBS"
9929 for ac_func in mousemask
9930 do :
9931   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9932 if test "x$ac_cv_func_mousemask" = xyes; then :
9933   cat >>confdefs.h <<_ACEOF
9934 #define HAVE_MOUSEMASK 1
9935 _ACEOF
9936
9937 fi
9938 done
9939
9940 LIBS="$ac_save_LIBS"
9941 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9942   case "x$with_curses" in
9943   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9944   xno) ;;
9945   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9946 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9947 esac
9948 fi
9949
9950 if test "x$with_sane" != "xno"
9951 then
9952     ac_save_CPPFLAGS="$CPPFLAGS"
9953     # Extract the first word of "sane-config", so it can be a program name with args.
9954 set dummy sane-config; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_prog_sane_devel+:} false; then :
9958   $as_echo_n "(cached) " >&6
9959 else
9960   if test -n "$sane_devel"; then
9961   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9962 else
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9965 do
9966   IFS=$as_save_IFS
9967   test -z "$as_dir" && as_dir=.
9968     for ac_exec_ext in '' $ac_executable_extensions; do
9969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970     ac_cv_prog_sane_devel="sane-config"
9971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972     break 2
9973   fi
9974 done
9975   done
9976 IFS=$as_save_IFS
9977
9978   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9979 fi
9980 fi
9981 sane_devel=$ac_cv_prog_sane_devel
9982 if test -n "$sane_devel"; then
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9984 $as_echo "$sane_devel" >&6; }
9985 else
9986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9988 fi
9989
9990
9991     if test "$sane_devel" != "no"
9992     then
9993         ac_sane_incl="`$sane_devel --cflags`"
9994         ac_sane_libs="`$sane_devel --ldflags`"
9995         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9996     fi
9997     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9998 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10000 $as_echo_n "checking for -lsane... " >&6; }
10001 if ${ac_cv_lib_soname_sane+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   ac_check_soname_save_LIBS=$LIBS
10005 LIBS="-lsane $ac_sane_libs $LIBS"
10006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h.  */
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char sane_init ();
10016 int
10017 main ()
10018 {
10019 return sane_init ();
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025   case "$LIBEXT" in
10026     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10027     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'` ;;
10028     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10029   esac
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032     conftest$ac_exeext conftest.$ac_ext
10033   LIBS=$ac_check_soname_save_LIBS
10034 fi
10035 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10037 $as_echo "not found" >&6; }
10038
10039 else
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10041 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10042
10043 cat >>confdefs.h <<_ACEOF
10044 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10045 _ACEOF
10046
10047        SANEINCL="$ac_sane_incl"
10048
10049 fi
10050 fi
10051
10052
10053     CPPFLAGS="$ac_save_CPPFLAGS"
10054 fi
10055 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10056   case "x$with_sane" in
10057   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10058   xno) ;;
10059   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10060 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10061 esac
10062 fi
10063
10064 if test "x$with_v4l" != "xno"
10065 then
10066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10067 $as_echo_n "checking for -lv4l1... " >&6; }
10068 if ${ac_cv_lib_soname_v4l1+:} false; then :
10069   $as_echo_n "(cached) " >&6
10070 else
10071   ac_check_soname_save_LIBS=$LIBS
10072 LIBS="-lv4l1  $LIBS"
10073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h.  */
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077    Use char because int might match the return type of a GCC
10078    builtin and then its argument prototype would still apply.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char v4l1_open ();
10083 int
10084 main ()
10085 {
10086 return v4l1_open ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092   case "$LIBEXT" in
10093     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10094     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'` ;;
10095     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10096   esac
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099     conftest$ac_exeext conftest.$ac_ext
10100   LIBS=$ac_check_soname_save_LIBS
10101 fi
10102 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10104 $as_echo "not found" >&6; }
10105
10106 else
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10108 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10109
10110 cat >>confdefs.h <<_ACEOF
10111 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10112 _ACEOF
10113
10114
10115 fi
10116 fi
10117 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10118   case "x$with_v4l" in
10119   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10120   xno) ;;
10121   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10122 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10123 esac
10124 fi
10125
10126 if test "x$with_gphoto" != "xno"
10127 then
10128     ac_save_CPPFLAGS="$CPPFLAGS"
10129     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10130 set dummy gphoto2-config; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10134   $as_echo_n "(cached) " >&6
10135 else
10136   if test -n "$gphoto2_devel"; then
10137   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142   IFS=$as_save_IFS
10143   test -z "$as_dir" && as_dir=.
10144     for ac_exec_ext in '' $ac_executable_extensions; do
10145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146     ac_cv_prog_gphoto2_devel="gphoto2-config"
10147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10148     break 2
10149   fi
10150 done
10151   done
10152 IFS=$as_save_IFS
10153
10154   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10155 fi
10156 fi
10157 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10158 if test -n "$gphoto2_devel"; then
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10160 $as_echo "$gphoto2_devel" >&6; }
10161 else
10162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164 fi
10165
10166
10167     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10168 set dummy gphoto2-port-config; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10172   $as_echo_n "(cached) " >&6
10173 else
10174   if test -n "$gphoto2port_devel"; then
10175   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10176 else
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10179 do
10180   IFS=$as_save_IFS
10181   test -z "$as_dir" && as_dir=.
10182     for ac_exec_ext in '' $ac_executable_extensions; do
10183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186     break 2
10187   fi
10188 done
10189   done
10190 IFS=$as_save_IFS
10191
10192   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10193 fi
10194 fi
10195 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10196 if test -n "$gphoto2port_devel"; then
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10198 $as_echo "$gphoto2port_devel" >&6; }
10199 else
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10202 fi
10203
10204
10205     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10206     then
10207         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10208         ac_gphoto2_libs=""
10209         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10210         do
10211             case "$i" in
10212             -L/usr/lib|-L/usr/lib64) ;;
10213             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10214             esac
10215         done
10216         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10217     fi
10218     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10219     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10220 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10222 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10223 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10224   $as_echo_n "(cached) " >&6
10225 else
10226   ac_check_lib_save_LIBS=$LIBS
10227 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h.  */
10230
10231 /* Override any GCC internal prototype to avoid an error.
10232    Use char because int might match the return type of a GCC
10233    builtin and then its argument prototype would still apply.  */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char gp_camera_new ();
10238 int
10239 main ()
10240 {
10241 return gp_camera_new ();
10242   ;
10243   return 0;
10244 }
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10247   ac_cv_lib_gphoto2_gp_camera_new=yes
10248 else
10249   ac_cv_lib_gphoto2_gp_camera_new=no
10250 fi
10251 rm -f core conftest.err conftest.$ac_objext \
10252     conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10256 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10257 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10258
10259 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10260
10261                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10262
10263                                    GPHOTO2INCL="$ac_gphoto2_incl"
10264
10265 fi
10266
10267 fi
10268
10269
10270     CPPFLAGS="$ac_save_CPPFLAGS"
10271 fi
10272 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10273   case "x$with_gphoto" in
10274   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10275   xno) ;;
10276   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10277 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10278 esac
10279 fi
10280
10281
10282 if test "$ac_cv_header_resolv_h" = "yes"
10283 then
10284     ac_save_LIBS="$LIBS"
10285     for lib in '' -lresolv
10286     do
10287       LIBS="$lib $ac_save_LIBS"
10288       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h.  */
10290 #ifdef HAVE_NETINET_IN_H
10291 #include <netinet/in.h>
10292 #endif
10293 #include <resolv.h>
10294 int
10295 main ()
10296 {
10297 res_query("foo",ns_c_in,0,0,0);
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303
10304 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10305
10306          RESOLVLIBS="$lib"
10307
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext \
10310     conftest$ac_exeext conftest.$ac_ext
10311       if test "${RESOLVLIBS+set}" = set; then
10312         break
10313       fi
10314     done
10315     LIBS="$ac_save_LIBS"
10316 fi
10317
10318 LCMSLIBS=""
10319
10320 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10321 then
10322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10323 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10324 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-llcms  $LIBS"
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h.  */
10331
10332 /* Override any GCC internal prototype to avoid an error.
10333    Use char because int might match the return type of a GCC
10334    builtin and then its argument prototype would still apply.  */
10335 #ifdef __cplusplus
10336 extern "C"
10337 #endif
10338 char cmsOpenProfileFromFile ();
10339 int
10340 main ()
10341 {
10342 return cmsOpenProfileFromFile ();
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 if ac_fn_c_try_link "$LINENO"; then :
10348   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10349 else
10350   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext \
10353     conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10355 fi
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10357 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10358 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10359
10360 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10361
10362          LCMSLIBS="-llcms"
10363 fi
10364
10365 fi
10366 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10367   case "x$with_cms" in
10368   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10369   xno) ;;
10370   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10371 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10372 esac
10373 fi
10374
10375 if test "x$with_freetype" != "xno"
10376 then
10377     for ac_prog in freetype-config freetype2-config
10378 do
10379   # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_prog_ft_devel+:} false; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   if test -n "$ft_devel"; then
10387   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10391 do
10392   IFS=$as_save_IFS
10393   test -z "$as_dir" && as_dir=.
10394     for ac_exec_ext in '' $ac_executable_extensions; do
10395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396     ac_cv_prog_ft_devel="$ac_prog"
10397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398     break 2
10399   fi
10400 done
10401   done
10402 IFS=$as_save_IFS
10403
10404 fi
10405 fi
10406 ft_devel=$ac_cv_prog_ft_devel
10407 if test -n "$ft_devel"; then
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10409 $as_echo "$ft_devel" >&6; }
10410 else
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414
10415
10416   test -n "$ft_devel" && break
10417 done
10418 test -n "$ft_devel" || ft_devel="no"
10419
10420     if test "$ft_devel" != "no"
10421     then
10422         ac_freetype_incl=`$ft_devel --cflags`
10423         ac_freetype_libs=`$ft_devel --libs`
10424     fi
10425     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10427 $as_echo_n "checking for -lfreetype... " >&6; }
10428 if ${ac_cv_lib_soname_freetype+:} false; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431   ac_check_soname_save_LIBS=$LIBS
10432 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h.  */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437    Use char because int might match the return type of a GCC
10438    builtin and then its argument prototype would still apply.  */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char FT_Init_FreeType ();
10443 int
10444 main ()
10445 {
10446 return FT_Init_FreeType ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452   case "$LIBEXT" in
10453     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10454     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'` ;;
10455     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10456   esac
10457 fi
10458 rm -f core conftest.err conftest.$ac_objext \
10459     conftest$ac_exeext conftest.$ac_ext
10460   LIBS=$ac_check_soname_save_LIBS
10461 fi
10462 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10464 $as_echo "not found" >&6; }
10465        ft_lib=no
10466 else
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10468 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10472 _ACEOF
10473
10474        ft_lib=yes
10475 fi
10476     if test "$ft_lib" = "yes"
10477     then
10478         ac_save_CPPFLAGS="$CPPFLAGS"
10479         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10480         for ac_header in ft2build.h \
10481                          freetype/freetype.h \
10482                          freetype/ftglyph.h \
10483                          freetype/fttypes.h \
10484                          freetype/tttables.h \
10485                          freetype/ftsnames.h \
10486                          freetype/ttnameid.h \
10487                          freetype/ftoutln.h \
10488                          freetype/ftwinfnt.h \
10489                          freetype/ftmodapi.h \
10490                          freetype/ftlcdfil.h \
10491                          freetype/internal/sfnt.h
10492 do :
10493   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10495                           # include <ft2build.h>
10496                           #endif
10497 "
10498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10499   cat >>confdefs.h <<_ACEOF
10500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10501 _ACEOF
10502
10503 fi
10504
10505 done
10506
10507         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h.  */
10509 #include <ft2build.h>
10510                     #include <freetype/fttrigon.h>
10511 _ACEOF
10512 if ac_fn_c_try_cpp "$LINENO"; then :
10513
10514 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10515
10516                     wine_cv_fttrigon=yes
10517 else
10518   wine_cv_fttrigon=no
10519 fi
10520 rm -f conftest.err conftest.i conftest.$ac_ext
10521         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10522 "
10523 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10524
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_FT_TRUETYPEENGINETYPE 1
10527 _ACEOF
10528
10529
10530 fi
10531
10532         ac_save_CFLAGS="$CFLAGS"
10533         CFLAGS="$CFLAGS $ac_freetype_libs"
10534         for ac_func in FT_Load_Sfnt_Table
10535 do :
10536   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10537 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
10538   cat >>confdefs.h <<_ACEOF
10539 #define HAVE_FT_LOAD_SFNT_TABLE 1
10540 _ACEOF
10541
10542 fi
10543 done
10544
10545         CFLAGS="$ac_save_CFLAGS"
10546         CPPFLAGS="$ac_save_CPPFLAGS"
10547                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10548         then
10549
10550 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10551
10552             FREETYPELIBS="$ac_freetype_libs"
10553
10554             FREETYPEINCL="$ac_freetype_incl"
10555
10556         fi
10557     fi
10558 fi
10559 if test "x$FREETYPELIBS" = "x"; then :
10560   case "x$with_freetype" in
10561   xno) ;;
10562   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10563 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10564 esac
10565 fi
10566 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10567
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10569 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10570 if ${ac_cv_c_ppdev+:} false; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h.  */
10575 #ifdef HAVE_SYS_IOCTL_H
10576 # include <sys/ioctl.h>
10577 #endif
10578 #include <linux/ppdev.h>
10579 int
10580 main ()
10581 {
10582 ioctl (1,PPCLAIM,0)
10583   ;
10584   return 0;
10585 }
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588   ac_cv_c_ppdev="yes"
10589 else
10590   ac_cv_c_ppdev="no"
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10595 $as_echo "$ac_cv_c_ppdev" >&6; }
10596 if test "$ac_cv_c_ppdev" = "yes"
10597 then
10598
10599 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10600
10601 fi
10602
10603 ac_wine_check_funcs_save_LIBS="$LIBS"
10604 LIBS="$LIBS $LIBPTHREAD"
10605 for ac_func in \
10606         pthread_attr_get_np \
10607         pthread_getattr_np \
10608         pthread_get_stackaddr_np \
10609         pthread_get_stacksize_np
10610 do :
10611   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10614   cat >>confdefs.h <<_ACEOF
10615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10616 _ACEOF
10617
10618 fi
10619 done
10620
10621 LIBS="$ac_wine_check_funcs_save_LIBS"
10622
10623 if test "$ac_cv_header_zlib_h" = "yes"
10624 then
10625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10626 $as_echo_n "checking for inflate in -lz... " >&6; }
10627 if ${ac_cv_lib_z_inflate+:} false; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   ac_check_lib_save_LIBS=$LIBS
10631 LIBS="-lz  $LIBS"
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h.  */
10634
10635 /* Override any GCC internal prototype to avoid an error.
10636    Use char because int might match the return type of a GCC
10637    builtin and then its argument prototype would still apply.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 char inflate ();
10642 int
10643 main ()
10644 {
10645 return inflate ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 if ac_fn_c_try_link "$LINENO"; then :
10651   ac_cv_lib_z_inflate=yes
10652 else
10653   ac_cv_lib_z_inflate=no
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext \
10656     conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10660 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10661 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10662
10663 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10664
10665                             ZLIB="-lz"
10666
10667 fi
10668
10669 fi
10670 if test "x$ZLIB" = "x"; then :
10671   case "x$with_zlib" in
10672   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10673   xno) ;;
10674   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10675 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10676 esac
10677 fi
10678
10679 if test "x$enable_tools" != xno
10680 then
10681     if test "$ac_cv_header_gettext_po_h" = "yes"
10682     then
10683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10684 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10685 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688   ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-lgettextpo  $LIBS"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h.  */
10692
10693 /* Override any GCC internal prototype to avoid an error.
10694    Use char because int might match the return type of a GCC
10695    builtin and then its argument prototype would still apply.  */
10696 #ifdef __cplusplus
10697 extern "C"
10698 #endif
10699 char po_message_msgctxt ();
10700 int
10701 main ()
10702 {
10703 return po_message_msgctxt ();
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10710 else
10711   ac_cv_lib_gettextpo_po_message_msgctxt=no
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext \
10714     conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10716 fi
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10718 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10719 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10720
10721 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10722
10723                       LIBGETTEXTPO="-lgettextpo"
10724
10725 fi
10726
10727     fi
10728     if test "x$LIBGETTEXTPO" = "x"; then :
10729   case "x$with_gettextpo" in
10730   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10731   xno) ;;
10732   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10733 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10734 esac
10735 fi
10736 fi
10737
10738 if test "x$with_esd" != xno
10739 then
10740     save_CFLAGS="$CFLAGS"
10741     # Extract the first word of "esd-config", so it can be a program name with args.
10742 set dummy esd-config; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_ESDCONFIG+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   case $ESDCONFIG in
10749   [\\/]* | ?:[\\/]*)
10750   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10751   ;;
10752   *)
10753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756   IFS=$as_save_IFS
10757   test -z "$as_dir" && as_dir=.
10758     for ac_exec_ext in '' $ac_executable_extensions; do
10759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762     break 2
10763   fi
10764 done
10765   done
10766 IFS=$as_save_IFS
10767
10768   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10769   ;;
10770 esac
10771 fi
10772 ESDCONFIG=$ac_cv_path_ESDCONFIG
10773 if test -n "$ESDCONFIG"; then
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10775 $as_echo "$ESDCONFIG" >&6; }
10776 else
10777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10779 fi
10780
10781
10782     if test "x$ESDCONFIG" != "xno"
10783     then
10784         ac_esd_incl=""
10785         for i in `$ESDCONFIG --cflags`
10786         do
10787             case "$i" in
10788                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10789             esac
10790         done
10791         ac_esd_libs=`$ESDCONFIG --libs`
10792         CFLAGS="$CFLAGS $ac_esd_incl"
10793     fi
10794     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10795     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10796 if test "x$ac_cv_header_esd_h" = xyes; then :
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10798 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10799 if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
10800   $as_echo_n "(cached) " >&6
10801 else
10802   ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-lesd $ac_esd_libs $LIBS"
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h.  */
10806
10807 /* Override any GCC internal prototype to avoid an error.
10808    Use char because int might match the return type of a GCC
10809    builtin and then its argument prototype would still apply.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 char esd_open_sound ();
10814 int
10815 main ()
10816 {
10817 return esd_open_sound ();
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823   ac_cv_lib_esd_esd_open_sound=yes
10824 else
10825   ac_cv_lib_esd_esd_open_sound=no
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext \
10828     conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10832 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10833 if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
10834   ESDINCL="$ac_esd_incl"
10835
10836              ESDLIBS="$ac_esd_libs"
10837
10838 fi
10839
10840 fi
10841
10842
10843     CFLAGS="$save_CFLAGS"
10844 fi
10845
10846 if test "x$with_gstreamer" != "xno"
10847 then
10848     ac_save_CPPFLAGS="$CPPFLAGS"
10849     if test "$PKG_CONFIG" != "false"; then
10850         ac_gst_incl=""
10851         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10852         do
10853             case "$i" in
10854                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10855             esac
10856         done
10857         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10858         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10859         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10860 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10861   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10862 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10864 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10865 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-lgstreamer-0.10  $LIBS"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h.  */
10872
10873 /* Override any GCC internal prototype to avoid an error.
10874    Use char because int might match the return type of a GCC
10875    builtin and then its argument prototype would still apply.  */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char gst_pad_get_caps_reffed ();
10880 int
10881 main ()
10882 {
10883 return gst_pad_get_caps_reffed ();
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10890 else
10891   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894     conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10898 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10899 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10901 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10902 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10903   $as_echo_n "(cached) " >&6
10904 else
10905   ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char gst_app_buffer_new ();
10917 int
10918 main ()
10919 {
10920 return gst_app_buffer_new ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10927 else
10928   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext \
10931     conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10935 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10936 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10937   GSTREAMER_LIBS="$ac_gst_libs"
10938
10939                      GSTREAMER_INCL="$ac_gst_incl"
10940
10941 fi
10942
10943 fi
10944
10945 fi
10946
10947
10948 fi
10949
10950
10951     fi
10952     CPPFLAGS="$ac_save_CPPFLAGS"
10953 fi
10954 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10955   case "x$with_gstreamer" in
10956   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10957   xno) ;;
10958   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10959 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10960 esac
10961 fi
10962 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10963
10964 ALSALIBS=""
10965
10966 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10967 then
10968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10969 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10970 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-lasound  $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h.  */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979    Use char because int might match the return type of a GCC
10980    builtin and then its argument prototype would still apply.  */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char snd_pcm_hw_params_get_access_mask ();
10985 int
10986 main ()
10987 {
10988 return snd_pcm_hw_params_get_access_mask ();
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10995 else
10996   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999     conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11003 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11004 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h.  */
11007 #ifdef HAVE_ALSA_ASOUNDLIB_H
11008 #include <alsa/asoundlib.h>
11009 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11010 #include <sys/asoundlib.h>
11011 #endif
11012 int
11013 main ()
11014 {
11015 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_compile "$LINENO"; then :
11021   ALSALIBS="-lasound"
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 fi
11025
11026 fi
11027
11028 if test "x$with_oss" != xno
11029 then
11030     ac_save_CPPFLAGS="$CPPFLAGS"
11031     if test -f /etc/oss.conf
11032     then
11033         . /etc/oss.conf
11034     fi
11035     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11036     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11037     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11038 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11039   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11040 "
11041 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11042
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11045 _ACEOF
11046
11047 OSS4INCL="$ac_oss_incl"
11048
11049 fi
11050
11051 fi
11052
11053
11054     CPPFLAGS="$ac_save_CPPFLAGS"
11055     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11056     then
11057         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11058     fi
11059 fi
11060
11061
11062 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11063 then
11064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11065 $as_echo_n "checking for -lcapi20... " >&6; }
11066 if ${ac_cv_lib_soname_capi20+:} false; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   ac_check_soname_save_LIBS=$LIBS
11070 LIBS="-lcapi20  $LIBS"
11071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h.  */
11073
11074 /* Override any GCC internal prototype to avoid an error.
11075    Use char because int might match the return type of a GCC
11076    builtin and then its argument prototype would still apply.  */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char capi20_register ();
11081 int
11082 main ()
11083 {
11084 return capi20_register ();
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090   case "$LIBEXT" in
11091     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11092     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'` ;;
11093     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11094   esac
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext \
11097     conftest$ac_exeext conftest.$ac_ext
11098   LIBS=$ac_check_soname_save_LIBS
11099 fi
11100 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11102 $as_echo "not found" >&6; }
11103
11104 else
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11106 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11107
11108 cat >>confdefs.h <<_ACEOF
11109 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11110 _ACEOF
11111
11112
11113 fi
11114 fi
11115 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11116   case "x$with_capi" in
11117   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11118   xno) ;;
11119   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11120 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11121 esac
11122 fi
11123
11124 CUPSINCL=""
11125
11126 if test "x$with_cups" != "xno"
11127 then
11128     ac_save_CPPFLAGS="$CPPFLAGS"
11129     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11130     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11131     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11132     for ac_header in cups/cups.h
11133 do :
11134   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11135 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11136   cat >>confdefs.h <<_ACEOF
11137 #define HAVE_CUPS_CUPS_H 1
11138 _ACEOF
11139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11140 $as_echo_n "checking for -lcups... " >&6; }
11141 if ${ac_cv_lib_soname_cups+:} false; then :
11142   $as_echo_n "(cached) " >&6
11143 else
11144   ac_check_soname_save_LIBS=$LIBS
11145 LIBS="-lcups $ac_cups_libs $LIBS"
11146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150    Use char because int might match the return type of a GCC
11151    builtin and then its argument prototype would still apply.  */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char cupsGetDefault ();
11156 int
11157 main ()
11158 {
11159 return cupsGetDefault ();
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165   case "$LIBEXT" in
11166     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11167     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'` ;;
11168     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11169   esac
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172     conftest$ac_exeext conftest.$ac_ext
11173   LIBS=$ac_check_soname_save_LIBS
11174 fi
11175 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11177 $as_echo "not found" >&6; }
11178
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11181 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11182
11183 cat >>confdefs.h <<_ACEOF
11184 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11185 _ACEOF
11186
11187        CUPSINCL="$ac_cups_cflags"
11188 fi
11189 fi
11190
11191 done
11192
11193     CPPFLAGS="$ac_save_CPPFLAGS"
11194 fi
11195 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11196   case "x$with_cups" in
11197   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11198   xno) ;;
11199   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11200 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11201 esac
11202 fi
11203
11204 if test "$ac_cv_header_jack_jack_h" = "yes"
11205 then
11206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11207 $as_echo_n "checking for -ljack... " >&6; }
11208 if ${ac_cv_lib_soname_jack+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   ac_check_soname_save_LIBS=$LIBS
11212 LIBS="-ljack  $LIBS"
11213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h.  */
11215
11216 /* Override any GCC internal prototype to avoid an error.
11217    Use char because int might match the return type of a GCC
11218    builtin and then its argument prototype would still apply.  */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char jack_client_new ();
11223 int
11224 main ()
11225 {
11226 return jack_client_new ();
11227   ;
11228   return 0;
11229 }
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"; then :
11232   case "$LIBEXT" in
11233     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11234     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'` ;;
11235     *) 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'` ;;
11236   esac
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239     conftest$ac_exeext conftest.$ac_ext
11240   LIBS=$ac_check_soname_save_LIBS
11241 fi
11242 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11244 $as_echo "not found" >&6; }
11245
11246 else
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11248 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11249
11250 cat >>confdefs.h <<_ACEOF
11251 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11252 _ACEOF
11253
11254
11255 fi
11256 fi
11257
11258 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11259 then
11260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11261 $as_echo_n "checking for -lfontconfig... " >&6; }
11262 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   ac_check_soname_save_LIBS=$LIBS
11266 LIBS="-lfontconfig  $LIBS"
11267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h.  */
11269
11270 /* Override any GCC internal prototype to avoid an error.
11271    Use char because int might match the return type of a GCC
11272    builtin and then its argument prototype would still apply.  */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char FcInit ();
11277 int
11278 main ()
11279 {
11280 return FcInit ();
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286   case "$LIBEXT" in
11287     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11288     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'` ;;
11289     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11290   esac
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293     conftest$ac_exeext conftest.$ac_ext
11294   LIBS=$ac_check_soname_save_LIBS
11295 fi
11296 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11298 $as_echo "not found" >&6; }
11299
11300 else
11301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11302 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11303
11304 cat >>confdefs.h <<_ACEOF
11305 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11306 _ACEOF
11307
11308
11309 fi
11310 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11311 then
11312         ac_save_CPPFLAGS="$CPPFLAGS"
11313     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11314     $as_unset ac_cv_header_fontconfig_fontconfig_h
11315     for ac_header in fontconfig/fontconfig.h
11316 do :
11317   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11318 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11319   cat >>confdefs.h <<_ACEOF
11320 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11321 _ACEOF
11322
11323 fi
11324
11325 done
11326
11327     CPPFLAGS="$ac_save_CPPFLAGS"
11328     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11329     then
11330         FONTCONFIGINCL="$X_CFLAGS"
11331
11332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11333 $as_echo_n "checking for -lfontconfig... " >&6; }
11334 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337   ac_check_soname_save_LIBS=$LIBS
11338 LIBS="-lfontconfig $X_LIBS $LIBS"
11339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h.  */
11341
11342 /* Override any GCC internal prototype to avoid an error.
11343    Use char because int might match the return type of a GCC
11344    builtin and then its argument prototype would still apply.  */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char FcInit ();
11349 int
11350 main ()
11351 {
11352 return FcInit ();
11353   ;
11354   return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358   case "$LIBEXT" in
11359     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11360     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'` ;;
11361     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11362   esac
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365     conftest$ac_exeext conftest.$ac_ext
11366   LIBS=$ac_check_soname_save_LIBS
11367 fi
11368 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11370 $as_echo "not found" >&6; }
11371
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11374 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11378 _ACEOF
11379
11380
11381 fi
11382     fi
11383 fi
11384 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11385   case "x$with_fontconfig" in
11386   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11387   xno) ;;
11388   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11389 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11390 esac
11391 fi
11392
11393 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11394 then
11395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11396 $as_echo_n "checking for -lssl... " >&6; }
11397 if ${ac_cv_lib_soname_ssl+:} false; then :
11398   $as_echo_n "(cached) " >&6
11399 else
11400   ac_check_soname_save_LIBS=$LIBS
11401 LIBS="-lssl  $LIBS"
11402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h.  */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406    Use char because int might match the return type of a GCC
11407    builtin and then its argument prototype would still apply.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char SSL_library_init ();
11412 int
11413 main ()
11414 {
11415 return SSL_library_init ();
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421   case "$LIBEXT" in
11422     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11423     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'` ;;
11424     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11425   esac
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428     conftest$ac_exeext conftest.$ac_ext
11429   LIBS=$ac_check_soname_save_LIBS
11430 fi
11431 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11433 $as_echo "not found" >&6; }
11434
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11437 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11438
11439 cat >>confdefs.h <<_ACEOF
11440 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11441 _ACEOF
11442
11443
11444 fi
11445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11446 $as_echo_n "checking for -lcrypto... " >&6; }
11447 if ${ac_cv_lib_soname_crypto+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   ac_check_soname_save_LIBS=$LIBS
11451 LIBS="-lcrypto  $LIBS"
11452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char BIO_new_socket ();
11462 int
11463 main ()
11464 {
11465 return BIO_new_socket ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471   case "$LIBEXT" in
11472     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11473     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'` ;;
11474     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11475   esac
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478     conftest$ac_exeext conftest.$ac_ext
11479   LIBS=$ac_check_soname_save_LIBS
11480 fi
11481 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11483 $as_echo "not found" >&6; }
11484
11485 else
11486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11487 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11488
11489 cat >>confdefs.h <<_ACEOF
11490 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11491 _ACEOF
11492
11493
11494 fi
11495 fi
11496 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11497   case "x$with_openssl" in
11498   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11499   xno) ;;
11500   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11501 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11502 esac
11503 fi
11504
11505 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11506 then
11507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11508 $as_echo_n "checking for -lgsm... " >&6; }
11509 if ${ac_cv_lib_soname_gsm+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   ac_check_soname_save_LIBS=$LIBS
11513 LIBS="-lgsm  $LIBS"
11514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h.  */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518    Use char because int might match the return type of a GCC
11519    builtin and then its argument prototype would still apply.  */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char gsm_create ();
11524 int
11525 main ()
11526 {
11527 return gsm_create ();
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533   case "$LIBEXT" in
11534     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11535     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'` ;;
11536     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11537   esac
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext \
11540     conftest$ac_exeext conftest.$ac_ext
11541   LIBS=$ac_check_soname_save_LIBS
11542 fi
11543 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11545 $as_echo "not found" >&6; }
11546
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11549 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11553 _ACEOF
11554
11555
11556 fi
11557 fi
11558 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11559   case "x$with_gsm" in
11560   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11561   xno) ;;
11562   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11563 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11564 esac
11565 fi
11566
11567 if test "$ac_cv_header_jpeglib_h" = "yes"
11568 then
11569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11570 $as_echo_n "checking for -ljpeg... " >&6; }
11571 if ${ac_cv_lib_soname_jpeg+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   ac_check_soname_save_LIBS=$LIBS
11575 LIBS="-ljpeg  $LIBS"
11576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h.  */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580    Use char because int might match the return type of a GCC
11581    builtin and then its argument prototype would still apply.  */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char jpeg_start_decompress ();
11586 int
11587 main ()
11588 {
11589 return jpeg_start_decompress ();
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595   case "$LIBEXT" in
11596     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11597     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'` ;;
11598     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11599   esac
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602     conftest$ac_exeext conftest.$ac_ext
11603   LIBS=$ac_check_soname_save_LIBS
11604 fi
11605 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11607 $as_echo "not found" >&6; }
11608
11609 else
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11611 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11612
11613 cat >>confdefs.h <<_ACEOF
11614 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11615 _ACEOF
11616
11617
11618 fi
11619 fi
11620 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11621   case "x$with_jpeg" in
11622   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11623   xno) ;;
11624   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11625 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11626 esac
11627 fi
11628
11629 if test "$ac_cv_header_png_h" = "yes"
11630 then
11631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11632 $as_echo_n "checking for -lpng... " >&6; }
11633 if ${ac_cv_lib_soname_png+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   ac_check_soname_save_LIBS=$LIBS
11637 LIBS="-lpng -lm -lz $LIBS"
11638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642    Use char because int might match the return type of a GCC
11643    builtin and then its argument prototype would still apply.  */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char png_create_read_struct ();
11648 int
11649 main ()
11650 {
11651 return png_create_read_struct ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657   case "$LIBEXT" in
11658     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11659     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'` ;;
11660     *) 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'` ;;
11661   esac
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664     conftest$ac_exeext conftest.$ac_ext
11665   LIBS=$ac_check_soname_save_LIBS
11666 fi
11667 if test "x$ac_cv_lib_soname_png" = "x"; then :
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11669 $as_echo "not found" >&6; }
11670
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11673 $as_echo "$ac_cv_lib_soname_png" >&6; }
11674
11675 cat >>confdefs.h <<_ACEOF
11676 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11677 _ACEOF
11678
11679
11680 fi
11681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11682 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11683 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-lpng -lm -lz $LIBS"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h.  */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692    Use char because int might match the return type of a GCC
11693    builtin and then its argument prototype would still apply.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char png_set_expand_gray_1_2_4_to_8 ();
11698 int
11699 main ()
11700 {
11701 return png_set_expand_gray_1_2_4_to_8 ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11708 else
11709   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext \
11712     conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11716 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11717 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11718
11719 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11720
11721
11722 fi
11723
11724 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11725 then
11726         ac_save_CPPFLAGS="$CPPFLAGS"
11727     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11728     $as_unset ac_cv_header_png_h
11729     for ac_header in png.h
11730 do :
11731   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11732 if test "x$ac_cv_header_png_h" = xyes; then :
11733   cat >>confdefs.h <<_ACEOF
11734 #define HAVE_PNG_H 1
11735 _ACEOF
11736
11737 fi
11738
11739 done
11740
11741     CPPFLAGS="$ac_save_CPPFLAGS"
11742     if test "$ac_cv_header_png_h" = "yes"
11743     then
11744         PNGINCL="$X_CFLAGS"
11745
11746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11747 $as_echo_n "checking for -lpng... " >&6; }
11748 if ${ac_cv_lib_soname_png+:} false; then :
11749   $as_echo_n "(cached) " >&6
11750 else
11751   ac_check_soname_save_LIBS=$LIBS
11752 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h.  */
11755
11756 /* Override any GCC internal prototype to avoid an error.
11757    Use char because int might match the return type of a GCC
11758    builtin and then its argument prototype would still apply.  */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 char png_create_read_struct ();
11763 int
11764 main ()
11765 {
11766 return png_create_read_struct ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_link "$LINENO"; then :
11772   case "$LIBEXT" in
11773     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11774     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'` ;;
11775     *) 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'` ;;
11776   esac
11777 fi
11778 rm -f core conftest.err conftest.$ac_objext \
11779     conftest$ac_exeext conftest.$ac_ext
11780   LIBS=$ac_check_soname_save_LIBS
11781 fi
11782 if test "x$ac_cv_lib_soname_png" = "x"; then :
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11784 $as_echo "not found" >&6; }
11785
11786 else
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11788 $as_echo "$ac_cv_lib_soname_png" >&6; }
11789
11790 cat >>confdefs.h <<_ACEOF
11791 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11792 _ACEOF
11793
11794
11795 fi
11796         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11797 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11798 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h.  */
11805
11806 /* Override any GCC internal prototype to avoid an error.
11807    Use char because int might match the return type of a GCC
11808    builtin and then its argument prototype would still apply.  */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 char png_set_expand_gray_1_2_4_to_8 ();
11813 int
11814 main ()
11815 {
11816 return png_set_expand_gray_1_2_4_to_8 ();
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11823 else
11824   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827     conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_check_lib_save_LIBS
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11831 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11832 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11833   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11834
11835 fi
11836
11837     fi
11838 fi
11839 if test "x$ac_cv_lib_soname_png" = "x"; then :
11840   case "x$with_png" in
11841   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11842   xno) ;;
11843   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11844 This is an error since --with-png was requested." "$LINENO" 5 ;;
11845 esac
11846 fi
11847
11848 if test "$ac_cv_header_tiffio_h" = "yes"
11849 then
11850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11851 $as_echo_n "checking for -ltiff... " >&6; }
11852 if ${ac_cv_lib_soname_tiff+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_soname_save_LIBS=$LIBS
11856 LIBS="-ltiff  $LIBS"
11857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char TIFFClientOpen ();
11867 int
11868 main ()
11869 {
11870 return TIFFClientOpen ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   case "$LIBEXT" in
11877     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11878     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'` ;;
11879     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11880   esac
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883     conftest$ac_exeext conftest.$ac_ext
11884   LIBS=$ac_check_soname_save_LIBS
11885 fi
11886 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11888 $as_echo "not found" >&6; }
11889
11890 else
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11892 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11896 _ACEOF
11897
11898
11899 fi
11900 fi
11901 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11902   case "x$with_tiff" in
11903   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11904   xno) ;;
11905   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11906 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11907 esac
11908 fi
11909
11910 if test "$ac_cv_header_mpg123_h" = "yes"
11911 then
11912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11913 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11914 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11915   $as_echo_n "(cached) " >&6
11916 else
11917   ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-lmpg123  $LIBS"
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h.  */
11921
11922 /* Override any GCC internal prototype to avoid an error.
11923    Use char because int might match the return type of a GCC
11924    builtin and then its argument prototype would still apply.  */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 char mpg123_feed ();
11929 int
11930 main ()
11931 {
11932 return mpg123_feed ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 if ac_fn_c_try_link "$LINENO"; then :
11938   ac_cv_lib_mpg123_mpg123_feed=yes
11939 else
11940   ac_cv_lib_mpg123_mpg123_feed=no
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext \
11943     conftest$ac_exeext conftest.$ac_ext
11944 LIBS=$ac_check_lib_save_LIBS
11945 fi
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11947 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11948 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11949   LIBMPG123="-lmpg123"
11950
11951 fi
11952
11953 fi
11954 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11955   case "x$with_mpg123" in
11956   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11957   xno) ;;
11958   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11959 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11960 esac
11961 fi
11962 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}
11963
11964 if test "$ac_cv_header_AL_al_h" = "yes"
11965 then
11966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11967 $as_echo_n "checking for -lopenal... " >&6; }
11968 if ${ac_cv_lib_soname_openal+:} false; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   ac_check_soname_save_LIBS=$LIBS
11972 LIBS="-lopenal  $LIBS"
11973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h.  */
11975
11976 /* Override any GCC internal prototype to avoid an error.
11977    Use char because int might match the return type of a GCC
11978    builtin and then its argument prototype would still apply.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char alGetSource3i ();
11983 int
11984 main ()
11985 {
11986 return alGetSource3i ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992   case "$LIBEXT" in
11993     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11994     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'` ;;
11995     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11996   esac
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999     conftest$ac_exeext conftest.$ac_ext
12000   LIBS=$ac_check_soname_save_LIBS
12001 fi
12002 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12004 $as_echo "not found" >&6; }
12005
12006 else
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12008 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12009
12010 cat >>confdefs.h <<_ACEOF
12011 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12012 _ACEOF
12013
12014        LIBOPENAL="-lopenal"
12015
12016                       ac_cv_lib_openal=yes
12017
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_OPENAL 1
12020 _ACEOF
12021
12022 fi
12023 fi
12024 if test "x$ac_cv_lib_openal" != xyes; then :
12025   case "x$with_openal" in
12026   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12027   xno) ;;
12028   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12029 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12030 esac
12031 fi
12032 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12033
12034 if test "$ac_cv_header_kstat_h" = "yes"
12035 then
12036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12037 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12038 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   ac_check_lib_save_LIBS=$LIBS
12042 LIBS="-lkstat  $LIBS"
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045
12046 /* Override any GCC internal prototype to avoid an error.
12047    Use char because int might match the return type of a GCC
12048    builtin and then its argument prototype would still apply.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char kstat_open ();
12053 int
12054 main ()
12055 {
12056 return kstat_open ();
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062   ac_cv_lib_kstat_kstat_open=yes
12063 else
12064   ac_cv_lib_kstat_kstat_open=no
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext \
12067     conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12071 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12072 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12073
12074 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12075
12076                   LIBKSTAT="-lkstat"
12077
12078 fi
12079
12080 fi
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12083 $as_echo_n "checking for -lodbc... " >&6; }
12084 if ${ac_cv_lib_soname_odbc+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   ac_check_soname_save_LIBS=$LIBS
12088 LIBS="-lodbc  $LIBS"
12089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h.  */
12091
12092 /* Override any GCC internal prototype to avoid an error.
12093    Use char because int might match the return type of a GCC
12094    builtin and then its argument prototype would still apply.  */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 char SQLConnect ();
12099 int
12100 main ()
12101 {
12102 return SQLConnect ();
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 if ac_fn_c_try_link "$LINENO"; then :
12108   case "$LIBEXT" in
12109     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12110     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'` ;;
12111     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12112   esac
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext \
12115     conftest$ac_exeext conftest.$ac_ext
12116   LIBS=$ac_check_soname_save_LIBS
12117 fi
12118 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12120 $as_echo "not found" >&6; }
12121        cat >>confdefs.h <<_ACEOF
12122 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12123 _ACEOF
12124
12125 else
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12127 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12128
12129 cat >>confdefs.h <<_ACEOF
12130 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12131 _ACEOF
12132
12133
12134 fi
12135
12136 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12137 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12138 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12139 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12140 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12141 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12142 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12143
12144 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12145         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12146         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12147 then
12148     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12149 fi
12150
12151
12152 EXTRACFLAGS=""
12153
12154 if test "x${GCC}" = "xyes"
12155 then
12156   EXTRACFLAGS="-Wall -pipe"
12157
12158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12159 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12160 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12161   $as_echo_n "(cached) " >&6
12162 else
12163   if test "$cross_compiling" = yes; then :
12164   ac_cv_c_gcc_strength_bug="yes"
12165 else
12166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h.  */
12168 int L[4] = {0,1,2,3};
12169 int
12170 main ()
12171 {
12172 static int Array[3];
12173   unsigned int B = 3;
12174   int i;
12175   for(i=0; i<B; i++) Array[i] = i - 3;
12176   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12177   L[i] = 4;
12178   return (Array[1] != -2 || L[2] != 3)
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_run "$LINENO"; then :
12184   ac_cv_c_gcc_strength_bug="no"
12185 else
12186   ac_cv_c_gcc_strength_bug="yes"
12187 fi
12188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12189   conftest.$ac_objext conftest.beam conftest.$ac_ext
12190 fi
12191
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12194 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12195   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12196   then
12197     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12198   fi
12199
12200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12201 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12202 if ${ac_cv_cflags__fno_builtin+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   ac_wine_try_cflags_saved=$CFLAGS
12206 CFLAGS="$CFLAGS -fno-builtin"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h.  */
12209 int main(int argc, char **argv) { return 0; }
12210 _ACEOF
12211 if ac_fn_c_try_link "$LINENO"; then :
12212   ac_cv_cflags__fno_builtin=yes
12213 else
12214   ac_cv_cflags__fno_builtin=no
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext \
12217     conftest$ac_exeext conftest.$ac_ext
12218 CFLAGS=$ac_wine_try_cflags_saved
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12221 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12222 if test $ac_cv_cflags__fno_builtin = yes; then :
12223   BUILTINFLAG="-fno-builtin"
12224
12225 fi
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12227 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12228 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   ac_wine_try_cflags_saved=$CFLAGS
12232 CFLAGS="$CFLAGS -fno-strict-aliasing"
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h.  */
12235 int main(int argc, char **argv) { return 0; }
12236 _ACEOF
12237 if ac_fn_c_try_link "$LINENO"; then :
12238   ac_cv_cflags__fno_strict_aliasing=yes
12239 else
12240   ac_cv_cflags__fno_strict_aliasing=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext \
12243     conftest$ac_exeext conftest.$ac_ext
12244 CFLAGS=$ac_wine_try_cflags_saved
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12247 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12248 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12249   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12250 fi
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12252 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12253 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   ac_wine_try_cflags_saved=$CFLAGS
12257 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h.  */
12260 int main(int argc, char **argv) { return 0; }
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"; then :
12263   ac_cv_cflags__Wdeclaration_after_statement=yes
12264 else
12265   ac_cv_cflags__Wdeclaration_after_statement=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268     conftest$ac_exeext conftest.$ac_ext
12269 CFLAGS=$ac_wine_try_cflags_saved
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12272 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12273 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12274   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12275 fi
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12277 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12278 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   ac_wine_try_cflags_saved=$CFLAGS
12282 CFLAGS="$CFLAGS -Wstrict-prototypes"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285 int main(int argc, char **argv) { return 0; }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288   ac_cv_cflags__Wstrict_prototypes=yes
12289 else
12290   ac_cv_cflags__Wstrict_prototypes=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext \
12293     conftest$ac_exeext conftest.$ac_ext
12294 CFLAGS=$ac_wine_try_cflags_saved
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12297 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12298 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12299   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12300 fi
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12302 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12303 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   ac_wine_try_cflags_saved=$CFLAGS
12307 CFLAGS="$CFLAGS -Wtype-limits"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h.  */
12310 int main(int argc, char **argv) { return 0; }
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313   ac_cv_cflags__Wtype_limits=yes
12314 else
12315   ac_cv_cflags__Wtype_limits=no
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318     conftest$ac_exeext conftest.$ac_ext
12319 CFLAGS=$ac_wine_try_cflags_saved
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12322 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12323 if test $ac_cv_cflags__Wtype_limits = yes; then :
12324   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12325 fi
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12327 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12328 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   ac_wine_try_cflags_saved=$CFLAGS
12332 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335 int main(int argc, char **argv) { return 0; }
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338   ac_cv_cflags__Wunused_but_set_parameter=yes
12339 else
12340   ac_cv_cflags__Wunused_but_set_parameter=no
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext \
12343     conftest$ac_exeext conftest.$ac_ext
12344 CFLAGS=$ac_wine_try_cflags_saved
12345 fi
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12347 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12348 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12349   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12350 fi
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12352 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12353 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   ac_wine_try_cflags_saved=$CFLAGS
12357 CFLAGS="$CFLAGS -Wwrite-strings"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h.  */
12360 int main(int argc, char **argv) { return 0; }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363   ac_cv_cflags__Wwrite_strings=yes
12364 else
12365   ac_cv_cflags__Wwrite_strings=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368     conftest$ac_exeext conftest.$ac_ext
12369 CFLAGS=$ac_wine_try_cflags_saved
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12372 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12373 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12374   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12375 fi
12376
12377     saved_CFLAGS="$CFLAGS"
12378   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12380 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12381 if ${ac_cv_c_string_h_warnings+:} false; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12386 #include <string.h>
12387 int
12388 main ()
12389 {
12390
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396   ac_cv_c_string_h_warnings=no
12397 else
12398   ac_cv_c_string_h_warnings=yes
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12403 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12404   CFLAGS="$saved_CFLAGS"
12405   if test "$ac_cv_c_string_h_warnings" = "no"
12406   then
12407     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12408   fi
12409
12410     saved_CFLAGS="$CFLAGS"
12411   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12413 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12414 if ${ac_cv_c_logicalop_noisy+:} false; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h.  */
12419 #include <string.h>
12420 int
12421 main ()
12422 {
12423 char*f(const char *h,char n) {return strchr(h,n);}
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429   ac_cv_c_logicalop_noisy=no
12430 else
12431   ac_cv_c_logicalop_noisy=yes
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12436 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12437   CFLAGS="$saved_CFLAGS"
12438   if test "$ac_cv_c_logicalop_noisy" = "no"
12439   then
12440     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12441   fi
12442
12443     if test "x$enable_maintainer_mode" = "xyes"
12444   then
12445       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12446 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12447 if ${ac_cv_cflags__Werror+:} false; then :
12448   $as_echo_n "(cached) " >&6
12449 else
12450   ac_wine_try_cflags_saved=$CFLAGS
12451 CFLAGS="$CFLAGS -Werror"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454 int main(int argc, char **argv) { return 0; }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457   ac_cv_cflags__Werror=yes
12458 else
12459   ac_cv_cflags__Werror=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 CFLAGS=$ac_wine_try_cflags_saved
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12466 $as_echo "$ac_cv_cflags__Werror" >&6; }
12467 if test $ac_cv_cflags__Werror = yes; then :
12468   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12469 fi
12470   fi
12471
12472     saved_CFLAGS="$CFLAGS"
12473   CFLAGS="$CFLAGS -Werror"
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12475 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12476 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h.  */
12481 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12482 int
12483 main ()
12484 {
12485
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_compile "$LINENO"; then :
12491   ac_cv_have_ms_hook_prologue="yes"
12492 else
12493   ac_cv_have_ms_hook_prologue="no"
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12498 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12499   CFLAGS="$saved_CFLAGS"
12500   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12501   then
12502
12503 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12504
12505   else
12506       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12507
12508   fi
12509 fi
12510
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12513 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12514 if ${ac_cv_c_fortify_enabled+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h.  */
12519 #include <string.h>
12520 int
12521 main ()
12522 {
12523 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12524 #error Fortify enabled
12525 #endif
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_compile "$LINENO"; then :
12531   ac_cv_c_fortify_enabled=no
12532 else
12533   ac_cv_c_fortify_enabled=yes
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12538 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12539 if test "$ac_cv_c_fortify_enabled" = yes
12540 then
12541     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12542 fi
12543
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12546 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12547 if ${ac_cv_c_extern_prefix+:} false; then :
12548   $as_echo_n "(cached) " >&6
12549 else
12550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h.  */
12552 extern int ac_test;
12553 int
12554 main ()
12555 {
12556 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562   ac_cv_c_extern_prefix="yes"
12563 else
12564   ac_cv_c_extern_prefix="no"
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567     conftest$ac_exeext conftest.$ac_ext
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12570 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12571
12572 case $host_cpu in
12573   *i[3456789]86*)
12574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12575 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12576 if ${ac_cv_c_stdcall_suffix+:} false; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h.  */
12581 #ifndef _MSC_VER
12582 #define __stdcall __attribute__((__stdcall__))
12583 #endif
12584 int __stdcall ac_test(int i) { return i; }
12585 int
12586 main ()
12587 {
12588 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594   ac_cv_c_stdcall_suffix="yes"
12595 else
12596   ac_cv_c_stdcall_suffix="no"
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599     conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12602 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12603   *) ac_cv_c_stdcall_suffix="no" ;;
12604 esac
12605
12606
12607 if test "$ac_cv_c_extern_prefix" = "yes"
12608 then
12609     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12610
12611     asm_name_prefix="_"
12612 else
12613     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12614
12615     asm_name_prefix=""
12616 fi
12617
12618
12619 if test "$ac_cv_c_stdcall_suffix" = "yes"
12620 then
12621     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12622
12623 else
12624     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12625
12626 fi
12627
12628
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12630 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12631 if ${ac_cv_asm_func_def+:} false; then :
12632   $as_echo_n "(cached) " >&6
12633 else
12634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h.  */
12636
12637 int
12638 main ()
12639 {
12640 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12646   ac_cv_asm_func_def=".def"
12647 else
12648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650
12651 int
12652 main ()
12653 {
12654 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_link "$LINENO"; then :
12660   ac_cv_asm_func_def=".type @function"
12661 else
12662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h.  */
12664
12665 int
12666 main ()
12667 {
12668 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674   ac_cv_asm_func_def=".type 2"
12675 else
12676   ac_cv_asm_func_def="unknown"
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679     conftest$ac_exeext conftest.$ac_ext
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext \
12682     conftest$ac_exeext conftest.$ac_ext
12683 fi
12684 rm -f core conftest.err conftest.$ac_objext \
12685     conftest$ac_exeext conftest.$ac_ext
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12688 $as_echo "$ac_cv_asm_func_def" >&6; }
12689
12690
12691 case "$ac_cv_asm_func_def" in
12692   ".def")
12693      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12694
12695      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12696   ".type @function")
12697      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12698
12699      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12700   ".type 2")
12701      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12702
12703      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12704   *)
12705      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12706
12707      asm_func_header="" ;;
12708 esac
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12711 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12712 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717 asm(".text\n\t.long 0");
12718 int
12719 main ()
12720 {
12721
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_compile "$LINENO"; then :
12727   ac_cv_c_asm_outside_funcs="yes"
12728 else
12729   ac_cv_c_asm_outside_funcs="no"
12730 fi
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12734 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12737 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12738 if ${ac_cv_c_dot_previous+:} false; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747 asm(".text\nac_test:\t.long 0\n\t.previous");
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_c_try_link "$LINENO"; then :
12753   ac_cv_c_dot_previous="yes"
12754 else
12755   ac_cv_c_dot_previous="no"
12756 fi
12757 rm -f core conftest.err conftest.$ac_objext \
12758     conftest$ac_exeext conftest.$ac_ext
12759 fi
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12761 $as_echo "$ac_cv_c_dot_previous" >&6; }
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12764 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12765 if ${ac_cv_c_cfi_support+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12771 int
12772 main ()
12773 {
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780   ac_cv_c_cfi_support="yes"
12781 else
12782   ac_cv_c_cfi_support="no"
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 fi
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12787 $as_echo "$ac_cv_c_cfi_support" >&6; }
12788
12789 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12790 asm_func_trailer=""
12791 if test "$ac_cv_c_dot_previous" = "yes"
12792 then
12793    asm_func_trailer="\\n\\t.previous"
12794 fi
12795 if test "$ac_cv_c_cfi_support" = "yes"
12796 then
12797    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12798    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12799
12800 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12801
12802    UNWINDFLAGS=-fasynchronous-unwind-tables
12803
12804 else
12805    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12806
12807 fi
12808
12809 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12810
12811
12812 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12813 then
12814     cat >>confdefs.h <<_ACEOF
12815 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12816 _ACEOF
12817
12818 else
12819     cat >>confdefs.h <<_ACEOF
12820 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12821 _ACEOF
12822
12823 fi
12824
12825 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12826
12827
12828 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12829
12830
12831
12832 LDPATH=""
12833
12834 case $build_os in
12835   cygwin*|mingw32*)
12836     TOOLSEXT=".exe"
12837
12838     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12839     ;;
12840   darwin*|macosx*)
12841     ;;
12842   *)
12843     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12844     ;;
12845 esac
12846
12847 case $host_os in
12848   mingw32*)
12849     CRTLIBS="-lmsvcrt"
12850
12851     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12852
12853     ;;
12854 esac
12855
12856 MAIN_BINARY="wine"
12857
12858 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12859
12860 case $host_os in
12861   linux*)
12862     case $host_cpu in
12863       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12864  ;;
12865       x86_64*) EXTRA_BINARIES="wine64-preloader"
12866  ;;
12867     esac
12868     ;;
12869 esac
12870
12871
12872 ac_save_CFLAGS="$CFLAGS"
12873 CFLAGS="$CFLAGS $BUILTINFLAG"
12874 for ac_func in \
12875         _pclose \
12876         _popen \
12877         _snprintf \
12878         _spawnvp \
12879         _strdup \
12880         _stricmp \
12881         _strnicmp \
12882         _strtoi64 \
12883         _strtoui64 \
12884         _vsnprintf \
12885         asctime_r \
12886         chsize \
12887         dlopen \
12888         epoll_create \
12889         ffs \
12890         finite \
12891         fnmatch \
12892         fork \
12893         fpclass \
12894         fstatfs \
12895         fstatvfs \
12896         ftruncate \
12897         futimes \
12898         futimesat \
12899         getattrlist \
12900         getdirentries \
12901         getopt_long \
12902         getpagesize \
12903         getpwuid \
12904         gettimeofday \
12905         getuid \
12906         kqueue \
12907         lstat \
12908         memmove \
12909         mmap \
12910         pclose \
12911         pipe2 \
12912         poll \
12913         popen \
12914         port_create \
12915         prctl \
12916         pread \
12917         pwrite \
12918         readdir \
12919         readlink \
12920         sched_yield \
12921         select \
12922         setproctitle \
12923         setrlimit \
12924         settimeofday \
12925         sigaltstack \
12926         sigprocmask \
12927         snprintf \
12928         spawnvp \
12929         statfs \
12930         statvfs \
12931         strcasecmp \
12932         strdup \
12933         strerror \
12934         strncasecmp \
12935         strtold \
12936         strtoll \
12937         strtoull \
12938         symlink \
12939         tcgetattr \
12940         thr_kill2 \
12941         timegm \
12942         usleep \
12943         vsnprintf \
12944         wait4 \
12945         waitpid \
12946
12947 do :
12948   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12951   cat >>confdefs.h <<_ACEOF
12952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12953 _ACEOF
12954
12955 fi
12956 done
12957
12958 CFLAGS="$ac_save_CFLAGS"
12959
12960 if test "$ac_cv_func_dlopen" = no
12961 then
12962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12963 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12964 if ${ac_cv_lib_dl_dlopen+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ldl  $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h.  */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973    Use char because int might match the return type of a GCC
12974    builtin and then its argument prototype would still apply.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char dlopen ();
12979 int
12980 main ()
12981 {
12982 return dlopen ();
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988   ac_cv_lib_dl_dlopen=yes
12989 else
12990   ac_cv_lib_dl_dlopen=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993     conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12997 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12998 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12999   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13000  LIBDL="-ldl"
13001
13002 fi
13003
13004 fi
13005 ac_wine_check_funcs_save_LIBS="$LIBS"
13006 LIBS="$LIBS $LIBDL"
13007 for ac_func in dladdr
13008 do :
13009   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13010 if test "x$ac_cv_func_dladdr" = xyes; then :
13011   cat >>confdefs.h <<_ACEOF
13012 #define HAVE_DLADDR 1
13013 _ACEOF
13014
13015 fi
13016 done
13017
13018 LIBS="$ac_wine_check_funcs_save_LIBS"
13019
13020 if test "$ac_cv_func_poll" = no
13021 then
13022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13023 $as_echo_n "checking for poll in -lpoll... " >&6; }
13024 if ${ac_cv_lib_poll_poll+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-lpoll  $LIBS"
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h.  */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033    Use char because int might match the return type of a GCC
13034    builtin and then its argument prototype would still apply.  */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char poll ();
13039 int
13040 main ()
13041 {
13042 return poll ();
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048   ac_cv_lib_poll_poll=yes
13049 else
13050   ac_cv_lib_poll_poll=no
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext \
13053     conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13057 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13058 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13059   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13060  LIBPOLL="-lpoll"
13061
13062 fi
13063
13064 fi
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13067 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13068 if ${ac_cv_search_gethostbyname+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_func_search_save_LIBS=$LIBS
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h.  */
13074
13075 /* Override any GCC internal prototype to avoid an error.
13076    Use char because int might match the return type of a GCC
13077    builtin and then its argument prototype would still apply.  */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 char gethostbyname ();
13082 int
13083 main ()
13084 {
13085 return gethostbyname ();
13086   ;
13087   return 0;
13088 }
13089 _ACEOF
13090 for ac_lib in '' nsl; do
13091   if test -z "$ac_lib"; then
13092     ac_res="none required"
13093   else
13094     ac_res=-l$ac_lib
13095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13096   fi
13097   if ac_fn_c_try_link "$LINENO"; then :
13098   ac_cv_search_gethostbyname=$ac_res
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101     conftest$ac_exeext
13102   if ${ac_cv_search_gethostbyname+:} false; then :
13103   break
13104 fi
13105 done
13106 if ${ac_cv_search_gethostbyname+:} false; then :
13107
13108 else
13109   ac_cv_search_gethostbyname=no
13110 fi
13111 rm conftest.$ac_ext
13112 LIBS=$ac_func_search_save_LIBS
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13115 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13116 ac_res=$ac_cv_search_gethostbyname
13117 if test "$ac_res" != no; then :
13118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13119
13120 fi
13121
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13124 $as_echo_n "checking for library containing connect... " >&6; }
13125 if ${ac_cv_search_connect+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   ac_func_search_save_LIBS=$LIBS
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h.  */
13131
13132 /* Override any GCC internal prototype to avoid an error.
13133    Use char because int might match the return type of a GCC
13134    builtin and then its argument prototype would still apply.  */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char connect ();
13139 int
13140 main ()
13141 {
13142 return connect ();
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 for ac_lib in '' socket; do
13148   if test -z "$ac_lib"; then
13149     ac_res="none required"
13150   else
13151     ac_res=-l$ac_lib
13152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13153   fi
13154   if ac_fn_c_try_link "$LINENO"; then :
13155   ac_cv_search_connect=$ac_res
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext \
13158     conftest$ac_exeext
13159   if ${ac_cv_search_connect+:} false; then :
13160   break
13161 fi
13162 done
13163 if ${ac_cv_search_connect+:} false; then :
13164
13165 else
13166   ac_cv_search_connect=no
13167 fi
13168 rm conftest.$ac_ext
13169 LIBS=$ac_func_search_save_LIBS
13170 fi
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13172 $as_echo "$ac_cv_search_connect" >&6; }
13173 ac_res=$ac_cv_search_connect
13174 if test "$ac_res" != no; then :
13175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13176
13177 fi
13178
13179
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13181 $as_echo_n "checking for library containing inet_aton... " >&6; }
13182 if ${ac_cv_search_inet_aton+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   ac_func_search_save_LIBS=$LIBS
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h.  */
13188
13189 /* Override any GCC internal prototype to avoid an error.
13190    Use char because int might match the return type of a GCC
13191    builtin and then its argument prototype would still apply.  */
13192 #ifdef __cplusplus
13193 extern "C"
13194 #endif
13195 char inet_aton ();
13196 int
13197 main ()
13198 {
13199 return inet_aton ();
13200   ;
13201   return 0;
13202 }
13203 _ACEOF
13204 for ac_lib in '' resolv; do
13205   if test -z "$ac_lib"; then
13206     ac_res="none required"
13207   else
13208     ac_res=-l$ac_lib
13209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13210   fi
13211   if ac_fn_c_try_link "$LINENO"; then :
13212   ac_cv_search_inet_aton=$ac_res
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext \
13215     conftest$ac_exeext
13216   if ${ac_cv_search_inet_aton+:} false; then :
13217   break
13218 fi
13219 done
13220 if ${ac_cv_search_inet_aton+:} false; then :
13221
13222 else
13223   ac_cv_search_inet_aton=no
13224 fi
13225 rm conftest.$ac_ext
13226 LIBS=$ac_func_search_save_LIBS
13227 fi
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13229 $as_echo "$ac_cv_search_inet_aton" >&6; }
13230 ac_res=$ac_cv_search_inet_aton
13231 if test "$ac_res" != no; then :
13232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13233
13234 fi
13235
13236
13237 for ac_func in \
13238         getaddrinfo \
13239         getnameinfo \
13240         getnetbyname \
13241         getprotobyname \
13242         getprotobynumber \
13243         getservbyport \
13244         inet_network \
13245         inet_ntop \
13246         inet_pton \
13247         sendmsg \
13248         socketpair \
13249
13250 do :
13251   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13254   cat >>confdefs.h <<_ACEOF
13255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13256 _ACEOF
13257
13258 fi
13259 done
13260
13261
13262 LDAPLIBS=""
13263
13264 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13265 then
13266     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13267 "
13268 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13270 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13271 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280    Use char because int might match the return type of a GCC
13281    builtin and then its argument prototype would still apply.  */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char ldap_initialize ();
13286 int
13287 main ()
13288 {
13289 return ldap_initialize ();
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_link "$LINENO"; then :
13295   ac_cv_lib_ldap_r_ldap_initialize=yes
13296 else
13297   ac_cv_lib_ldap_r_ldap_initialize=no
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300     conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13304 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13305 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13307 $as_echo_n "checking for ber_init in -llber... " >&6; }
13308 if ${ac_cv_lib_lber_ber_init+:} false; then :
13309   $as_echo_n "(cached) " >&6
13310 else
13311   ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-llber $LIBPTHREAD $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h.  */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317    Use char because int might match the return type of a GCC
13318    builtin and then its argument prototype would still apply.  */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char ber_init ();
13323 int
13324 main ()
13325 {
13326 return ber_init ();
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 if ac_fn_c_try_link "$LINENO"; then :
13332   ac_cv_lib_lber_ber_init=yes
13333 else
13334   ac_cv_lib_lber_ber_init=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext \
13337     conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13341 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13342 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13343
13344 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13345
13346                  LDAPLIBS="-lldap_r -llber"
13347 fi
13348
13349 fi
13350
13351 fi
13352
13353     ac_wine_check_funcs_save_LIBS="$LIBS"
13354 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13355 for ac_func in \
13356         ldap_count_references \
13357         ldap_first_reference \
13358         ldap_next_reference \
13359         ldap_parse_reference \
13360         ldap_parse_sort_control \
13361         ldap_parse_sortresponse_control \
13362         ldap_parse_vlv_control \
13363         ldap_parse_vlvresponse_control
13364 do :
13365   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13368   cat >>confdefs.h <<_ACEOF
13369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13370 _ACEOF
13371
13372 fi
13373 done
13374
13375 LIBS="$ac_wine_check_funcs_save_LIBS"
13376 fi
13377 if test "x$LDAPLIBS" = "x"; then :
13378   case "x$with_ldap" in
13379   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13380   xno) ;;
13381   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13382 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13383 esac
13384 fi
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13387 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13388 if ${wine_cv_one_arg_mkdir+:} false; then :
13389   $as_echo_n "(cached) " >&6
13390 else
13391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h.  */
13393 #include <sys/stat.h>
13394 int
13395 main ()
13396 {
13397 mkdir("foo");
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403   wine_cv_one_arg_mkdir=yes
13404 else
13405   wine_cv_one_arg_mkdir=no
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13410 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13411 if test "$wine_cv_one_arg_mkdir" = "yes"
13412 then
13413
13414 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13415
13416 fi
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13419 $as_echo_n "checking for sched_setaffinity... " >&6; }
13420 if ${wine_cv_have_sched_setaffinity+:} false; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h.  */
13425 #define _GNU_SOURCE
13426 #include <sched.h>
13427 int
13428 main ()
13429 {
13430 sched_setaffinity(0, 0, 0);
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436   wine_cv_have_sched_setaffinity=yes
13437 else
13438   wine_cv_have_sched_setaffinity=no
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext \
13441     conftest$ac_exeext conftest.$ac_ext
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13444 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13445 if test "$wine_cv_have_sched_setaffinity" = "yes"
13446 then
13447
13448 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13449
13450 fi
13451
13452
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13454 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13455 if ${ac_cv_c_const+:} false; then :
13456   $as_echo_n "(cached) " >&6
13457 else
13458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h.  */
13460
13461 int
13462 main ()
13463 {
13464 /* FIXME: Include the comments suggested by Paul. */
13465 #ifndef __cplusplus
13466   /* Ultrix mips cc rejects this.  */
13467   typedef int charset[2];
13468   const charset cs;
13469   /* SunOS 4.1.1 cc rejects this.  */
13470   char const *const *pcpcc;
13471   char **ppc;
13472   /* NEC SVR4.0.2 mips cc rejects this.  */
13473   struct point {int x, y;};
13474   static struct point const zero = {0,0};
13475   /* AIX XL C 1.02.0.0 rejects this.
13476      It does not let you subtract one const X* pointer from another in
13477      an arm of an if-expression whose if-part is not a constant
13478      expression */
13479   const char *g = "string";
13480   pcpcc = &g + (g ? g-g : 0);
13481   /* HPUX 7.0 cc rejects these. */
13482   ++pcpcc;
13483   ppc = (char**) pcpcc;
13484   pcpcc = (char const *const *) ppc;
13485   { /* SCO 3.2v4 cc rejects this.  */
13486     char *t;
13487     char const *s = 0 ? (char *) 0 : (char const *) 0;
13488
13489     *t++ = 0;
13490     if (s) return 0;
13491   }
13492   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13493     int x[] = {25, 17};
13494     const int *foo = &x[0];
13495     ++foo;
13496   }
13497   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13498     typedef const int *iptr;
13499     iptr p = 0;
13500     ++p;
13501   }
13502   { /* AIX XL C 1.02.0.0 rejects this saying
13503        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13504     struct s { int j; const int *ap[3]; };
13505     struct s *b; b->j = 5;
13506   }
13507   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13508     const int foo = 10;
13509     if (!foo) return 0;
13510   }
13511   return !cs[0] && !zero.x;
13512 #endif
13513
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_compile "$LINENO"; then :
13519   ac_cv_c_const=yes
13520 else
13521   ac_cv_c_const=no
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13526 $as_echo "$ac_cv_c_const" >&6; }
13527 if test $ac_cv_c_const = no; then
13528
13529 $as_echo "#define const /**/" >>confdefs.h
13530
13531 fi
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13534 $as_echo_n "checking for inline... " >&6; }
13535 if ${ac_cv_c_inline+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   ac_cv_c_inline=no
13539 for ac_kw in inline __inline__ __inline; do
13540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542 #ifndef __cplusplus
13543 typedef int foo_t;
13544 static $ac_kw foo_t static_foo () {return 0; }
13545 $ac_kw foo_t foo () {return 0; }
13546 #endif
13547
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550   ac_cv_c_inline=$ac_kw
13551 fi
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553   test "$ac_cv_c_inline" != no && break
13554 done
13555
13556 fi
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13558 $as_echo "$ac_cv_c_inline" >&6; }
13559
13560 case $ac_cv_c_inline in
13561   inline | yes) ;;
13562   *)
13563     case $ac_cv_c_inline in
13564       no) ac_val=;;
13565       *) ac_val=$ac_cv_c_inline;;
13566     esac
13567     cat >>confdefs.h <<_ACEOF
13568 #ifndef __cplusplus
13569 #define inline $ac_val
13570 #endif
13571 _ACEOF
13572     ;;
13573 esac
13574
13575 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13576 if test "x$ac_cv_type_mode_t" = xyes; then :
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define HAVE_MODE_T 1
13580 _ACEOF
13581
13582
13583 fi
13584 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_off_t" = xyes; then :
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_OFF_T 1
13589 _ACEOF
13590
13591
13592 fi
13593 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13594 if test "x$ac_cv_type_pid_t" = xyes; then :
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_PID_T 1
13598 _ACEOF
13599
13600
13601 fi
13602 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13603 if test "x$ac_cv_type_size_t" = xyes; then :
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_SIZE_T 1
13607 _ACEOF
13608
13609
13610 fi
13611 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13612 if test "x$ac_cv_type_ssize_t" = xyes; then :
13613
13614 cat >>confdefs.h <<_ACEOF
13615 #define HAVE_SSIZE_T 1
13616 _ACEOF
13617
13618
13619 fi
13620 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13621 if test "x$ac_cv_type_long_long" = xyes; then :
13622
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_LONG_LONG 1
13625 _ACEOF
13626
13627
13628 fi
13629 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13630 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_FSBLKCNT_T 1
13634 _ACEOF
13635
13636
13637 fi
13638 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13639 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define HAVE_FSFILCNT_T 1
13643 _ACEOF
13644
13645
13646 fi
13647
13648 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13649 #include <signal.h>
13650 "
13651 if test "x$ac_cv_type_sigset_t" = xyes; then :
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define HAVE_SIGSET_T 1
13655 _ACEOF
13656
13657
13658 fi
13659
13660 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13661 "
13662 if test "x$ac_cv_type_request_sense" = xyes; then :
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_REQUEST_SENSE 1
13666 _ACEOF
13667
13668
13669 fi
13670
13671
13672 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13673 #ifdef HAVE_SYS_SOCKET_H
13674 #include <sys/socket.h>
13675 #endif
13676 #ifdef HAVE_SYS_SOCKETVAR_H
13677 #include <sys/socketvar.h>
13678 #endif
13679 #ifdef HAVE_NET_ROUTE_H
13680 #include <net/route.h>
13681 #endif
13682 #ifdef HAVE_NETINET_IN_H
13683 #include <netinet/in.h>
13684 #endif
13685 #ifdef HAVE_NETINET_IN_SYSTM_H
13686 #include <netinet/in_systm.h>
13687 #endif
13688 #ifdef HAVE_NETINET_IP_H
13689 #include <netinet/ip.h>
13690 #endif
13691 #ifdef HAVE_NETINET_IN_PCB_H
13692 #include <netinet/in_pcb.h>
13693 #endif
13694 "
13695 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define HAVE_STRUCT_XINPGEN 1
13699 _ACEOF
13700
13701
13702 fi
13703
13704
13705 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13706 #include <linux/input.h>
13707 #endif
13708 "
13709 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13710
13711 cat >>confdefs.h <<_ACEOF
13712 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13713 _ACEOF
13714
13715
13716 fi
13717
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13720 $as_echo_n "checking for sigaddset... " >&6; }
13721 if ${wine_cv_have_sigaddset+:} false; then :
13722   $as_echo_n "(cached) " >&6
13723 else
13724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h.  */
13726 #include <signal.h>
13727 int
13728 main ()
13729 {
13730 sigset_t set; sigaddset(&set,SIGTERM);
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736   wine_cv_have_sigaddset=yes
13737 else
13738   wine_cv_have_sigaddset=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741     conftest$ac_exeext conftest.$ac_ext
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13744 $as_echo "$wine_cv_have_sigaddset" >&6; }
13745 if test "$wine_cv_have_sigaddset" = "yes"
13746 then
13747
13748 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13749
13750 fi
13751
13752
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13754 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13755 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13756   $as_echo_n "(cached) " >&6
13757 else
13758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760 #include <netdb.h>
13761 int
13762 main ()
13763 {
13764
13765     char *name=0;
13766     struct hostent he;
13767     struct hostent *result;
13768     char *buf=0;
13769     int bufsize=0;
13770     int res,errnr;
13771     char *addr=0;
13772     int addrlen=0;
13773     int addrtype=0;
13774     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13775     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13776
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782   wine_cv_linux_gethostbyname_r_6=yes
13783 else
13784   wine_cv_linux_gethostbyname_r_6=no
13785
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788     conftest$ac_exeext conftest.$ac_ext
13789
13790 fi
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13792 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13793    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13794    then
13795
13796 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13797
13798    fi
13799
13800 if test "$ac_cv_header_linux_joystick_h" = "yes"
13801 then
13802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13803 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13804 if ${wine_cv_linux_joystick_22_api+:} false; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809
13810         #include <sys/ioctl.h>
13811         #include <sys/types.h>
13812         #include <linux/joystick.h>
13813
13814         struct js_event blub;
13815         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13816         #error "no 2.2 header"
13817         #endif
13818
13819 int
13820 main ()
13821 {
13822 /*empty*/
13823   ;
13824   return 0;
13825 }
13826 _ACEOF
13827 if ac_fn_c_try_compile "$LINENO"; then :
13828   wine_cv_linux_joystick_22_api=yes
13829 else
13830   wine_cv_linux_joystick_22_api=no
13831 fi
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13836 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13837    if test "$wine_cv_linux_joystick_22_api" = "yes"
13838    then
13839
13840 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13841
13842    fi
13843 fi
13844
13845
13846 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_PARAM_H
13848 # include <sys/param.h>
13849 #endif
13850 #ifdef HAVE_SYS_MOUNT_H
13851 # include <sys/mount.h>
13852 #endif
13853 #ifdef HAVE_SYS_VFS_H
13854 # include <sys/vfs.h>
13855 #endif
13856 #ifdef HAVE_SYS_STATFS_H
13857 # include <sys/statfs.h>
13858 #endif
13859 "
13860 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_STRUCT_STATFS_F_BFREE 1
13864 _ACEOF
13865
13866
13867 fi
13868 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13869 #ifdef HAVE_SYS_PARAM_H
13870 # include <sys/param.h>
13871 #endif
13872 #ifdef HAVE_SYS_MOUNT_H
13873 # include <sys/mount.h>
13874 #endif
13875 #ifdef HAVE_SYS_VFS_H
13876 # include <sys/vfs.h>
13877 #endif
13878 #ifdef HAVE_SYS_STATFS_H
13879 # include <sys/statfs.h>
13880 #endif
13881 "
13882 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13883
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13886 _ACEOF
13887
13888
13889 fi
13890 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13891 #ifdef HAVE_SYS_PARAM_H
13892 # include <sys/param.h>
13893 #endif
13894 #ifdef HAVE_SYS_MOUNT_H
13895 # include <sys/mount.h>
13896 #endif
13897 #ifdef HAVE_SYS_VFS_H
13898 # include <sys/vfs.h>
13899 #endif
13900 #ifdef HAVE_SYS_STATFS_H
13901 # include <sys/statfs.h>
13902 #endif
13903 "
13904 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13905
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13908 _ACEOF
13909
13910
13911 fi
13912 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13913 #ifdef HAVE_SYS_PARAM_H
13914 # include <sys/param.h>
13915 #endif
13916 #ifdef HAVE_SYS_MOUNT_H
13917 # include <sys/mount.h>
13918 #endif
13919 #ifdef HAVE_SYS_VFS_H
13920 # include <sys/vfs.h>
13921 #endif
13922 #ifdef HAVE_SYS_STATFS_H
13923 # include <sys/statfs.h>
13924 #endif
13925 "
13926 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13927
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_STRUCT_STATFS_F_FFREE 1
13930 _ACEOF
13931
13932
13933 fi
13934 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13935 #ifdef HAVE_SYS_PARAM_H
13936 # include <sys/param.h>
13937 #endif
13938 #ifdef HAVE_SYS_MOUNT_H
13939 # include <sys/mount.h>
13940 #endif
13941 #ifdef HAVE_SYS_VFS_H
13942 # include <sys/vfs.h>
13943 #endif
13944 #ifdef HAVE_SYS_STATFS_H
13945 # include <sys/statfs.h>
13946 #endif
13947 "
13948 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13949
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13952 _ACEOF
13953
13954
13955 fi
13956 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13957 #ifdef HAVE_SYS_PARAM_H
13958 # include <sys/param.h>
13959 #endif
13960 #ifdef HAVE_SYS_MOUNT_H
13961 # include <sys/mount.h>
13962 #endif
13963 #ifdef HAVE_SYS_VFS_H
13964 # include <sys/vfs.h>
13965 #endif
13966 #ifdef HAVE_SYS_STATFS_H
13967 # include <sys/statfs.h>
13968 #endif
13969 "
13970 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13971
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13974 _ACEOF
13975
13976
13977 fi
13978
13979
13980 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13981 #include <sys/statvfs.h>
13982 #endif
13983 "
13984 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13985
13986 cat >>confdefs.h <<_ACEOF
13987 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13988 _ACEOF
13989
13990
13991 fi
13992
13993
13994 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13995 #ifdef HAVE_SYS_SOCKET_H
13996 # include <sys/socket.h>
13997 #endif
13998 #ifdef HAVE_SYS_UN_H
13999 # include <sys/un.h>
14000 #endif
14001 "
14002 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14003
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14006 _ACEOF
14007
14008
14009 fi
14010 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14011 #ifdef HAVE_SYS_SOCKET_H
14012 # include <sys/socket.h>
14013 #endif
14014 #ifdef HAVE_SYS_UN_H
14015 # include <sys/un.h>
14016 #endif
14017 "
14018 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14022 _ACEOF
14023
14024
14025 fi
14026 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14027 #ifdef HAVE_SYS_SOCKET_H
14028 # include <sys/socket.h>
14029 #endif
14030 #ifdef HAVE_SYS_UN_H
14031 # include <sys/un.h>
14032 #endif
14033 "
14034 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14035
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14038 _ACEOF
14039
14040
14041 fi
14042
14043
14044 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14045 #ifdef HAVE_SCSI_SG_H
14046 #include <scsi/sg.h>
14047 #endif
14048 "
14049 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14050
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_SCSIREQ_T_CMD 1
14053 _ACEOF
14054
14055
14056 fi
14057 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>
14058 #ifdef HAVE_SCSI_SG_H
14059 #include <scsi/sg.h>
14060 #endif
14061 "
14062 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14063
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14066 _ACEOF
14067
14068
14069 fi
14070
14071
14072 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14073 "
14074 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14075
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_SIGINFO_T_SI_FD 1
14078 _ACEOF
14079
14080
14081 fi
14082
14083
14084 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14085 #ifdef HAVE_SYS_MTIO_H
14086 #include <sys/mtio.h>
14087 #endif
14088 "
14089 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14090
14091 cat >>confdefs.h <<_ACEOF
14092 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14093 _ACEOF
14094
14095
14096 fi
14097 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14098 #ifdef HAVE_SYS_MTIO_H
14099 #include <sys/mtio.h>
14100 #endif
14101 "
14102 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14106 _ACEOF
14107
14108
14109 fi
14110 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14111 #ifdef HAVE_SYS_MTIO_H
14112 #include <sys/mtio.h>
14113 #endif
14114 "
14115 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14116
14117 cat >>confdefs.h <<_ACEOF
14118 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14119 _ACEOF
14120
14121
14122 fi
14123
14124
14125 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14126 #include <getopt.h>
14127 #endif
14128 "
14129 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_STRUCT_OPTION_NAME 1
14133 _ACEOF
14134
14135
14136 fi
14137
14138
14139 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14140 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14141
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14144 _ACEOF
14145
14146
14147 fi
14148 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14149 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14150
14151 cat >>confdefs.h <<_ACEOF
14152 #define HAVE_STRUCT_STAT_ST_MTIM 1
14153 _ACEOF
14154
14155
14156 fi
14157 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14158 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14159
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_STRUCT_STAT_ST_CTIM 1
14162 _ACEOF
14163
14164
14165 fi
14166 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14167 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14168
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_STRUCT_STAT_ST_ATIM 1
14171 _ACEOF
14172
14173
14174 fi
14175
14176
14177 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
14178 #include <sys/types.h>
14179 #endif
14180 #ifdef HAVE_NETINET_IN_H
14181 #include <netinet/in.h>
14182 #endif
14183 "
14184 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14185
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14188 _ACEOF
14189
14190
14191 fi
14192
14193
14194 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14195 #include <sys/types.h>
14196 #endif
14197 #ifdef HAVE_NETINET_IN_H
14198 # include <netinet/in.h>
14199 #endif
14200 #ifdef HAVE_ARPA_NAMESER_H
14201 # include <arpa/nameser.h>
14202 #endif
14203 "
14204 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14205
14206 cat >>confdefs.h <<_ACEOF
14207 #define HAVE_NS_MSG__MSG_PTR 1
14208 _ACEOF
14209
14210
14211 fi
14212
14213
14214 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14215 #include <sys/types.h>
14216 #endif
14217 #ifdef HAVE_ALIAS_H
14218 #include <alias.h>
14219 #endif
14220 #ifdef HAVE_SYS_SOCKET_H
14221 #include <sys/socket.h>
14222 #endif
14223 #ifdef HAVE_SYS_SOCKETVAR_H
14224 #include <sys/socketvar.h>
14225 #endif
14226 #ifdef HAVE_SYS_TIMEOUT_H
14227 #include <sys/timeout.h>
14228 #endif
14229 #ifdef HAVE_NETINET_IN_H
14230 #include <netinet/in.h>
14231 #endif
14232 #ifdef HAVE_NETINET_IN_SYSTM_H
14233 #include <netinet/in_systm.h>
14234 #endif
14235 #ifdef HAVE_NETINET_IP_H
14236 #include <netinet/ip.h>
14237 #endif
14238 #ifdef HAVE_NETINET_IP_VAR_H
14239 #include <netinet/ip_var.h>
14240 #endif
14241 #ifdef HAVE_NETINET_IP_ICMP_H
14242 #include <netinet/ip_icmp.h>
14243 #endif
14244 #ifdef HAVE_NETINET_ICMP_VAR
14245 #include <netinet/icmp_var.h>
14246 #endif
14247 "
14248 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14249
14250 cat >>confdefs.h <<_ACEOF
14251 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14252 _ACEOF
14253
14254
14255 fi
14256
14257
14258 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14259 #include <sys/types.h>
14260 #endif
14261 #ifdef HAVE_NET_IF_H
14262 # include <net/if.h>
14263 #endif
14264 "
14265 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14266
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14269 _ACEOF
14270
14271
14272 fi
14273
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14276 $as_echo_n "checking for timezone variable... " >&6; }
14277 if ${ac_cv_have_timezone+:} false; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h.  */
14282 #include <time.h>
14283 int
14284 main ()
14285 {
14286 timezone = 1
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"; then :
14292   ac_cv_have_timezone="yes"
14293 else
14294   ac_cv_have_timezone="no"
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297     conftest$ac_exeext conftest.$ac_ext
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14300 $as_echo "$ac_cv_have_timezone" >&6; }
14301 if test "$ac_cv_have_timezone" = "yes"
14302 then
14303
14304 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14305
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14308 $as_echo_n "checking for daylight variable... " >&6; }
14309 if ${ac_cv_have_daylight+:} false; then :
14310   $as_echo_n "(cached) " >&6
14311 else
14312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h.  */
14314 #include <time.h>
14315 int
14316 main ()
14317 {
14318 daylight = 1
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324   ac_cv_have_daylight="yes"
14325 else
14326   ac_cv_have_daylight="no"
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext \
14329     conftest$ac_exeext conftest.$ac_ext
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14332 $as_echo "$ac_cv_have_daylight" >&6; }
14333 if test "$ac_cv_have_daylight" = "yes"
14334 then
14335
14336 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14337
14338 fi
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14341 $as_echo_n "checking for isinf... " >&6; }
14342 if ${ac_cv_have_isinf+:} false; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347 #include <math.h>
14348 int
14349 main ()
14350 {
14351 float f = 0.0; int i=isinf(f)
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357   ac_cv_have_isinf="yes"
14358 else
14359   ac_cv_have_isinf="no"
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362     conftest$ac_exeext conftest.$ac_ext
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14365 $as_echo "$ac_cv_have_isinf" >&6; }
14366 if test "$ac_cv_have_isinf" = "yes"
14367 then
14368
14369 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14370
14371 fi
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14374 $as_echo_n "checking for isnan... " >&6; }
14375 if ${ac_cv_have_isnan+:} false; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h.  */
14380 #include <math.h>
14381 int
14382 main ()
14383 {
14384 float f = 0.0; int i=isnan(f)
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"; then :
14390   ac_cv_have_isnan="yes"
14391 else
14392   ac_cv_have_isnan="no"
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395     conftest$ac_exeext conftest.$ac_ext
14396 fi
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14398 $as_echo "$ac_cv_have_isnan" >&6; }
14399 if test "$ac_cv_have_isnan" = "yes"
14400 then
14401
14402 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14403
14404 fi
14405
14406
14407 case $host_cpu in
14408   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14409 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14410 if ${ac_cv_cpp_def___i386__+:} false; then :
14411   $as_echo_n "(cached) " >&6
14412 else
14413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h.  */
14415 #ifndef __i386__
14416 yes
14417 #endif
14418 _ACEOF
14419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14420   $EGREP "yes" >/dev/null 2>&1; then :
14421   ac_cv_cpp_def___i386__=yes
14422 else
14423   ac_cv_cpp_def___i386__=no
14424 fi
14425 rm -f conftest*
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14429 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14430 if test $ac_cv_cpp_def___i386__ = yes; then :
14431   CFLAGS="$CFLAGS -D__i386__"
14432   LINTFLAGS="$LINTFLAGS -D__i386__"
14433 fi ;;
14434   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14435 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14436 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14437   $as_echo_n "(cached) " >&6
14438 else
14439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h.  */
14441 #ifndef __x86_64__
14442 yes
14443 #endif
14444 _ACEOF
14445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14446   $EGREP "yes" >/dev/null 2>&1; then :
14447   ac_cv_cpp_def___x86_64__=yes
14448 else
14449   ac_cv_cpp_def___x86_64__=no
14450 fi
14451 rm -f conftest*
14452
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14455 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14456 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14457   CFLAGS="$CFLAGS -D__x86_64__"
14458   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14459 fi ;;
14460   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14461 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14462 if ${ac_cv_cpp_def___sparc__+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 #ifndef __sparc__
14468 yes
14469 #endif
14470 _ACEOF
14471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14472   $EGREP "yes" >/dev/null 2>&1; then :
14473   ac_cv_cpp_def___sparc__=yes
14474 else
14475   ac_cv_cpp_def___sparc__=no
14476 fi
14477 rm -f conftest*
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14481 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14482 if test $ac_cv_cpp_def___sparc__ = yes; then :
14483   CFLAGS="$CFLAGS -D__sparc__"
14484   LINTFLAGS="$LINTFLAGS -D__sparc__"
14485 fi ;;
14486   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14487 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14488 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h.  */
14493 #ifndef __powerpc__
14494 yes
14495 #endif
14496 _ACEOF
14497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14498   $EGREP "yes" >/dev/null 2>&1; then :
14499   ac_cv_cpp_def___powerpc__=yes
14500 else
14501   ac_cv_cpp_def___powerpc__=no
14502 fi
14503 rm -f conftest*
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14507 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14508 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14509   CFLAGS="$CFLAGS -D__powerpc__"
14510   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14511 fi ;;
14512   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14513 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14514 if ${ac_cv_cpp_def___arm__+:} false; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14519 #ifndef __arm__
14520 yes
14521 #endif
14522 _ACEOF
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524   $EGREP "yes" >/dev/null 2>&1; then :
14525   ac_cv_cpp_def___arm__=yes
14526 else
14527   ac_cv_cpp_def___arm__=no
14528 fi
14529 rm -f conftest*
14530
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14533 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14534 if test $ac_cv_cpp_def___arm__ = yes; then :
14535   CFLAGS="$CFLAGS -D__arm__"
14536   LINTFLAGS="$LINTFLAGS -D__arm__"
14537 fi ;;
14538 esac
14539
14540 case $host_vendor in
14541   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14542 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14543 if ${ac_cv_cpp_def___sun__+:} false; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h.  */
14548 #ifndef __sun__
14549 yes
14550 #endif
14551 _ACEOF
14552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14553   $EGREP "yes" >/dev/null 2>&1; then :
14554   ac_cv_cpp_def___sun__=yes
14555 else
14556   ac_cv_cpp_def___sun__=no
14557 fi
14558 rm -f conftest*
14559
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14562 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14563 if test $ac_cv_cpp_def___sun__ = yes; then :
14564   CFLAGS="$CFLAGS -D__sun__"
14565   LINTFLAGS="$LINTFLAGS -D__sun__"
14566 fi ;;
14567 esac
14568
14569
14570
14571
14572
14573 ac_config_commands="$ac_config_commands include/stamp-h"
14574
14575
14576 ALL_MAKEFILE_DEPENDS="
14577 # Rules automatically generated by configure
14578
14579 .INIT: Makefile
14580 .MAKEFILEDEPS:
14581 all: Makefile
14582 Makefile: Makefile.in Make.vars.in Make.rules config.status
14583         @./config.status Make.tmp Makefile"
14584
14585 ALL_POT_FILES=""
14586 ALL_WINETEST_DEPENDS="# Test binaries"
14587
14588 ALL_TEST_BINARIES=""
14589
14590
14591 wine_fn_append_file ()
14592 {
14593     as_fn_append $1 " \\$as_nl  $2"
14594 }
14595
14596 wine_fn_append_rule ()
14597 {
14598     as_fn_append $1 "$as_nl$2"
14599 }
14600
14601 wine_fn_has_flag ()
14602 {
14603     expr ",$2," : ".*,$1,.*" >/dev/null
14604 }
14605
14606 wine_fn_all_dir_rules ()
14607 {
14608     ac_dir=$1
14609     ac_alldeps=$2
14610     ac_makedep="\$(MAKEDEP)"
14611     ac_input=Make.vars.in:$ac_dir/Makefile.in
14612     if test $ac_dir != tools
14613     then
14614                 ac_alldeps="$2 $ac_makedep"
14615     fi
14616     case $2 in
14617       *.in) ac_input=$ac_input:$2 ;;
14618       *) ac_makedep="$2 $ac_makedep" ;;
14619     esac
14620
14621     wine_fn_append_file ALL_DIRS $ac_dir
14622     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14623 "__clean__: $ac_dir/__clean__
14624 .PHONY: $ac_dir/__clean__
14625 $ac_dir/__clean__: $ac_dir/Makefile
14626         @cd $ac_dir && \$(MAKE) clean
14627         \$(RM) $ac_dir/Makefile
14628 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14629         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14630 depend: $ac_dir/__depend__
14631 .PHONY: $ac_dir/__depend__
14632 $ac_dir/__depend__: $ac_makedep dummy
14633         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14634 }
14635
14636 wine_fn_config_makefile ()
14637 {
14638     ac_dir=$1
14639     ac_enable=$2
14640     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14641   return 0
14642 fi
14643
14644     wine_fn_all_dir_rules $ac_dir Make.rules
14645     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14646 "all: $ac_dir
14647 .PHONY: $ac_dir
14648 $ac_dir: $ac_dir/Makefile dummy
14649         @cd $ac_dir && \$(MAKE)
14650 install:: $ac_dir
14651         @cd $ac_dir && \$(MAKE) install
14652 install-lib:: $ac_dir
14653         @cd $ac_dir && \$(MAKE) install-lib
14654 install-dev:: $ac_dir
14655         @cd $ac_dir && \$(MAKE) install-dev
14656 uninstall:: $ac_dir/Makefile
14657         @cd $ac_dir && \$(MAKE) uninstall"
14658 }
14659
14660 wine_fn_config_lib ()
14661 {
14662     ac_name=$1
14663     ac_dir=dlls/$ac_name
14664     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14665     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14666 "all __builddeps__: $ac_dir
14667 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14668         @cd $ac_dir && \$(MAKE)
14669 install install-dev:: $ac_dir
14670         @cd $ac_dir && \$(MAKE) install
14671 uninstall:: $ac_dir/Makefile
14672         @cd $ac_dir && \$(MAKE) uninstall"
14673 }
14674
14675 wine_fn_config_dll ()
14676 {
14677     ac_name=$1
14678     ac_dir=dlls/$ac_name
14679     ac_enable=$2
14680     ac_flags=$3
14681     ac_implib=${4:-$ac_name}
14682     ac_file=$ac_dir/lib$ac_implib
14683     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14684     ac_implibflags=""
14685
14686     case $ac_name in
14687       *16) ac_implibflags=" -m16" ;;
14688     esac
14689
14690     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14691
14692     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14693                 test "$ac_enable" != enable_win16 || return 0
14694 else
14695   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14696 "all: $ac_dir
14697 .PHONY: $ac_dir
14698 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14699         @cd $ac_dir && \$(MAKE)
14700 install:: $ac_dir/Makefile __builddeps__
14701         @cd $ac_dir && \$(MAKE) install
14702 install-lib:: $ac_dir/Makefile __builddeps__
14703         @cd $ac_dir && \$(MAKE) install-lib
14704 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14705         @cd $ac_dir && \$(MAKE) \$@"
14706
14707         if test "x$enable_maintainer_mode" = xyes
14708         then
14709             if wine_fn_has_flag mc $ac_flags
14710             then
14711                 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14712                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14713 "$ac_dir/msg.pot: $ac_dir"
14714             fi
14715             if wine_fn_has_flag po $ac_flags
14716             then
14717                 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14718                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14719 "$ac_dir/rsrc.pot: $ac_dir"
14720             fi
14721         fi
14722 fi
14723
14724     if wine_fn_has_flag staticimplib $ac_flags
14725     then
14726         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14728 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14729 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14730         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14731 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14732         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14733 install-dev:: $ac_dir/Makefile __builddeps__
14734         @cd $ac_dir && \$(MAKE) install-dev"
14735         if test "x$CROSSTEST_DISABLE" = x
14736         then
14737             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14738 "__builddeps__: $ac_file.cross.a
14739 $ac_file.cross.a: $ac_dir/Makefile dummy
14740         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14741         fi
14742
14743     elif wine_fn_has_flag implib $ac_flags
14744     then
14745         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14746 "__builddeps__: $ac_file.$IMPLIBEXT
14747 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14748         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14749 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14750         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14751 install-dev:: $ac_dir/Makefile __builddeps__
14752         @cd $ac_dir && \$(MAKE) install-dev"
14753         if test "x$CROSSTEST_DISABLE" = x
14754         then
14755             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14756 "__builddeps__: $ac_file.cross.a
14757 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14758         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14759         fi
14760
14761         if test "$ac_name" != "$ac_implib"
14762         then
14763             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14764 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14765 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14766         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14767 clean::
14768         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14769             if test "x$CROSSTEST_DISABLE" = x
14770             then
14771                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14772 "__builddeps__: dlls/lib$ac_implib.cross.a
14773 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14774         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14775             fi
14776         fi
14777     fi
14778 }
14779
14780 wine_fn_config_program ()
14781 {
14782     ac_name=$1
14783     ac_dir=programs/$ac_name
14784     ac_enable=$2
14785     ac_flags=$3
14786     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14787
14788     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14789
14790 else
14791   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14792 "all: $ac_dir
14793 .PHONY: $ac_dir
14794 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14795         @cd $ac_dir && \$(MAKE)"
14796
14797     if test "x$enable_maintainer_mode" = xyes
14798     then
14799         if wine_fn_has_flag mc $ac_flags
14800         then
14801             wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14802             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14803 "$ac_dir/msg.pot: $ac_dir"
14804         fi
14805         if wine_fn_has_flag po $ac_flags
14806         then
14807             wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14808             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14809 "$ac_dir/rsrc.pot: $ac_dir"
14810         fi
14811     fi
14812
14813     wine_fn_has_flag install $ac_flags || return
14814     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14815 "install install-lib:: $ac_dir/Makefile __builddeps__
14816         @cd $ac_dir && \$(MAKE) install
14817 uninstall:: $ac_dir/Makefile
14818         @cd $ac_dir && \$(MAKE) uninstall"
14819     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14820     then
14821         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14822 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14823         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14824 uninstall::
14825         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14826     fi
14827 fi
14828 }
14829
14830 wine_fn_config_test ()
14831 {
14832     ac_dir=$1
14833     ac_name=$2
14834     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14835     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14836 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14837         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14838 $ac_name.rc:
14839         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14840 $ac_name.res: $ac_name.rc $ac_name.exe"
14841     wine_fn_all_dir_rules $ac_dir Maketest.rules
14842
14843     if test "x$enable_tests" = xno; then :
14844
14845 else
14846   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14847 "all programs/winetest: $ac_dir
14848 .PHONY: $ac_dir
14849 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14850         @cd $ac_dir && \$(MAKE)
14851 test: $ac_dir/__test__
14852 .PHONY: $ac_dir/__test__
14853 $ac_dir/__test__: dummy
14854         @cd $ac_dir && \$(MAKE) test
14855 testclean::
14856         \$(RM) $ac_dir/*.ok"
14857
14858         if test "x$CROSSTEST_DISABLE" = x
14859         then
14860             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14861 "crosstest: $ac_dir/__crosstest__
14862 .PHONY: $ac_dir/__crosstest__
14863 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14864         @cd $ac_dir && \$(MAKE) crosstest"
14865         fi
14866 fi
14867 }
14868
14869 wine_fn_config_tool ()
14870 {
14871     ac_dir=$1
14872     wine_fn_all_dir_rules $ac_dir Make.rules
14873
14874     if test "x$enable_tools" = xno; then :
14875
14876 else
14877   case $ac_dir in
14878             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14879 "install:: $ac_dir
14880         @cd $ac_dir && \$(MAKE) install
14881 install-lib:: $ac_dir
14882         @cd $ac_dir && \$(MAKE) install-lib
14883 install-dev:: $ac_dir
14884         @cd $ac_dir && \$(MAKE) install-dev" ;;
14885       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14886 "install install-dev:: $ac_dir
14887         @cd $ac_dir && \$(MAKE) install" ;;
14888       esac
14889       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14890 "uninstall:: $ac_dir/Makefile
14891         @cd $ac_dir && \$(MAKE) uninstall
14892 all __tooldeps__: $ac_dir
14893 .PHONY: $ac_dir
14894 $ac_dir: $ac_dir/Makefile libs/port dummy
14895         @cd $ac_dir && \$(MAKE)"
14896       case $ac_dir in
14897         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14898       esac
14899 fi
14900 }
14901
14902 wine_fn_config_makerules ()
14903 {
14904     ac_rules=$1
14905     ac_deps=$2
14906     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14907 "$ac_rules: $ac_rules.in $ac_deps config.status
14908         @./config.status $ac_rules
14909 distclean::
14910         \$(RM) $ac_rules"
14911 }
14912
14913 wine_fn_config_symlink ()
14914 {
14915     ac_link=$1
14916     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14917 "$ac_link:
14918         @./config.status $ac_link
14919 distclean::
14920         \$(RM) $ac_link"
14921 }
14922
14923 if test "x$CROSSTEST_DISABLE" != x
14924 then
14925     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14926 "crosstest:
14927         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14928 fi
14929 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14930 wine_fn_config_symlink dlls/shell32/AUTHORS
14931 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14932 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14933 if test "x$enable_fonts" != xno; then
14934 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14935 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14936 fi
14937 if test "x$enable_fonts" != xno; then
14938 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14939 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14940 fi
14941 if test "x$enable_fonts" != xno; then
14942 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14943 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14944 fi
14945 if test "x$enable_fonts" != xno; then
14946 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14947 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14948 fi
14949 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14950 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14951 ac_config_links="$ac_config_links wine:tools/winewrapper"
14952 wine_fn_config_symlink wine
14953
14954 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14955
14956 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14957
14958 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14959
14960 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14961
14962 ac_config_commands="$ac_config_commands dlls/user32/resources"
14963
14964 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14965
14966 ac_config_commands="$ac_config_commands include/wine"
14967
14968
14969 wine_fn_config_makerules Make.rules
14970 MAKE_RULES=Make.rules
14971 ac_config_files="$ac_config_files Make.rules"
14972
14973 wine_fn_config_makerules Maketest.rules Make.rules
14974 MAKE_TEST_RULES=Maketest.rules
14975 ac_config_files="$ac_config_files Maketest.rules"
14976
14977 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14978 MAKE_DLL_RULES=dlls/Makedll.rules
14979 ac_config_files="$ac_config_files dlls/Makedll.rules"
14980
14981 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14982 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14983 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14984
14985 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14986 MAKE_PROG_RULES=programs/Makeprog.rules
14987 ac_config_files="$ac_config_files programs/Makeprog.rules"
14988
14989
14990 wine_fn_config_dll acledit enable_acledit
14991 wine_fn_config_dll aclui enable_aclui implib
14992 wine_fn_config_dll activeds enable_activeds implib
14993 wine_fn_config_dll actxprxy enable_actxprxy
14994 wine_fn_config_lib adsiid
14995 wine_fn_config_dll advapi32 enable_advapi32 implib
14996 wine_fn_config_test dlls/advapi32/tests advapi32_test
14997 wine_fn_config_dll advpack enable_advpack implib
14998 wine_fn_config_test dlls/advpack/tests advpack_test
14999 wine_fn_config_dll amstream enable_amstream
15000 wine_fn_config_test dlls/amstream/tests amstream_test
15001 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15002 wine_fn_config_dll atl enable_atl implib
15003 wine_fn_config_test dlls/atl/tests atl_test
15004 wine_fn_config_dll authz enable_authz
15005 wine_fn_config_dll avicap32 enable_avicap32 implib
15006 wine_fn_config_dll avifil32 enable_avifil32 po,implib
15007 wine_fn_config_test dlls/avifil32/tests avifil32_test
15008 wine_fn_config_dll avifile.dll16 enable_win16
15009 wine_fn_config_dll avrt enable_avrt implib
15010 wine_fn_config_dll bcrypt enable_bcrypt
15011 wine_fn_config_dll browseui enable_browseui po
15012 wine_fn_config_test dlls/browseui/tests browseui_test
15013 wine_fn_config_dll cabinet enable_cabinet implib
15014 wine_fn_config_test dlls/cabinet/tests cabinet_test
15015 wine_fn_config_dll capi2032 enable_capi2032 implib
15016 wine_fn_config_dll cards enable_cards implib
15017 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15018 wine_fn_config_dll clusapi enable_clusapi implib
15019 wine_fn_config_dll comcat enable_comcat
15020 wine_fn_config_test dlls/comcat/tests comcat_test
15021 wine_fn_config_dll comctl32 enable_comctl32 po,implib
15022 wine_fn_config_test dlls/comctl32/tests comctl32_test
15023 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
15024 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15025 wine_fn_config_dll comm.drv16 enable_win16
15026 wine_fn_config_dll commdlg.dll16 enable_win16
15027 wine_fn_config_dll compobj.dll16 enable_win16
15028 wine_fn_config_dll compstui enable_compstui implib
15029 wine_fn_config_dll credui enable_credui po,implib
15030 wine_fn_config_test dlls/credui/tests credui_test
15031 wine_fn_config_dll crtdll enable_crtdll implib
15032 wine_fn_config_dll crypt32 enable_crypt32 po,implib
15033 wine_fn_config_test dlls/crypt32/tests crypt32_test
15034 wine_fn_config_dll cryptdlg enable_cryptdlg po
15035 wine_fn_config_dll cryptdll enable_cryptdll implib
15036 wine_fn_config_dll cryptnet enable_cryptnet implib
15037 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15038 wine_fn_config_dll cryptui enable_cryptui po,implib
15039 wine_fn_config_test dlls/cryptui/tests cryptui_test
15040 wine_fn_config_dll ctapi32 enable_ctapi32
15041 wine_fn_config_dll ctl3d.dll16 enable_win16
15042 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15043 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15044 wine_fn_config_dll d3d10 enable_d3d10 implib
15045 wine_fn_config_test dlls/d3d10/tests d3d10_test
15046 wine_fn_config_dll d3d10core enable_d3d10core implib
15047 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15048 wine_fn_config_dll d3d8 enable_d3d8 implib
15049 wine_fn_config_test dlls/d3d8/tests d3d8_test
15050 wine_fn_config_dll d3d9 enable_d3d9 implib
15051 wine_fn_config_test dlls/d3d9/tests d3d9_test
15052 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15053 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15054 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15055 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15056 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15057 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15058 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15059 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15060 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15061 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15062 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15063 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15064 wine_fn_config_dll d3dim enable_d3dim implib
15065 wine_fn_config_dll d3drm enable_d3drm implib
15066 wine_fn_config_test dlls/d3drm/tests d3drm_test
15067 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15068 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15069 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15070 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15071 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15072 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15073 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15074 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15075 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15076 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15077 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15078 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15079 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15080 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15081 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15082 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15083 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15084 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15085 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15086 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15087 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15088 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15089 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15090 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15091 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15092 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15093 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15094 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15095 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15096 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15097 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15098 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15099 wine_fn_config_dll d3dxof enable_d3dxof implib
15100 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15101 wine_fn_config_dll dbgeng enable_dbgeng implib
15102 wine_fn_config_dll dbghelp enable_dbghelp implib
15103 wine_fn_config_dll dciman32 enable_dciman32 implib
15104 wine_fn_config_dll ddeml.dll16 enable_win16
15105 wine_fn_config_dll ddraw enable_ddraw implib
15106 wine_fn_config_test dlls/ddraw/tests ddraw_test
15107 wine_fn_config_dll ddrawex enable_ddrawex
15108 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15109 wine_fn_config_dll devenum enable_devenum po
15110 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15111 wine_fn_config_test dlls/dinput/tests dinput_test
15112 wine_fn_config_dll dinput8 enable_dinput8 implib
15113 wine_fn_config_test dlls/dinput8/tests dinput8_test
15114 wine_fn_config_dll dispdib.dll16 enable_win16
15115 wine_fn_config_dll dispex enable_dispex
15116 wine_fn_config_test dlls/dispex/tests dispex_test
15117 wine_fn_config_dll display.drv16 enable_win16
15118 wine_fn_config_dll dmband enable_dmband
15119 wine_fn_config_dll dmcompos enable_dmcompos
15120 wine_fn_config_dll dmime enable_dmime
15121 wine_fn_config_test dlls/dmime/tests dmime_test
15122 wine_fn_config_dll dmloader enable_dmloader
15123 wine_fn_config_test dlls/dmloader/tests dmloader_test
15124 wine_fn_config_dll dmscript enable_dmscript
15125 wine_fn_config_dll dmstyle enable_dmstyle
15126 wine_fn_config_dll dmsynth enable_dmsynth
15127 wine_fn_config_dll dmusic enable_dmusic
15128 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15129 wine_fn_config_dll dnsapi enable_dnsapi implib
15130 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15131 wine_fn_config_dll dplay enable_dplay implib
15132 wine_fn_config_dll dplayx enable_dplayx implib
15133 wine_fn_config_test dlls/dplayx/tests dplayx_test
15134 wine_fn_config_dll dpnaddr enable_dpnaddr
15135 wine_fn_config_dll dpnet enable_dpnet implib
15136 wine_fn_config_dll dpnhpast enable_dpnhpast
15137 wine_fn_config_dll dpnlobby enable_dpnlobby
15138 wine_fn_config_dll dpwsockx enable_dpwsockx
15139 wine_fn_config_dll drmclien enable_drmclien
15140 wine_fn_config_dll dsound enable_dsound implib
15141 wine_fn_config_test dlls/dsound/tests dsound_test
15142 wine_fn_config_dll dssenh enable_dssenh
15143 wine_fn_config_dll dswave enable_dswave
15144 wine_fn_config_dll dwmapi enable_dwmapi implib
15145 wine_fn_config_dll dxdiagn enable_dxdiagn po
15146 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15147 wine_fn_config_lib dxerr8
15148 wine_fn_config_lib dxerr9
15149 wine_fn_config_dll dxgi enable_dxgi implib
15150 wine_fn_config_test dlls/dxgi/tests dxgi_test
15151 wine_fn_config_lib dxguid
15152 wine_fn_config_dll explorerframe enable_explorerframe
15153 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15154 wine_fn_config_dll faultrep enable_faultrep implib
15155 wine_fn_config_test dlls/faultrep/tests faultrep_test
15156 wine_fn_config_dll fltlib enable_fltlib
15157 wine_fn_config_dll fusion enable_fusion
15158 wine_fn_config_test dlls/fusion/tests fusion_test
15159 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15160 wine_fn_config_dll gameux enable_gameux
15161 wine_fn_config_test dlls/gameux/tests gameux_test
15162 wine_fn_config_dll gdi.exe16 enable_win16
15163 wine_fn_config_dll gdi32 enable_gdi32 implib
15164 wine_fn_config_test dlls/gdi32/tests gdi32_test
15165 wine_fn_config_dll gdiplus enable_gdiplus implib
15166 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15167 wine_fn_config_dll glu32 enable_glu32 implib
15168 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15169 wine_fn_config_dll gpkcsp enable_gpkcsp
15170 wine_fn_config_dll hal enable_hal
15171 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15172 wine_fn_config_dll hid enable_hid implib
15173 wine_fn_config_dll hlink enable_hlink implib
15174 wine_fn_config_test dlls/hlink/tests hlink_test
15175 wine_fn_config_dll hnetcfg enable_hnetcfg
15176 wine_fn_config_dll httpapi enable_httpapi
15177 wine_fn_config_dll iccvid enable_iccvid po
15178 wine_fn_config_dll icmp enable_icmp
15179 wine_fn_config_dll ifsmgr.vxd enable_win16
15180 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15181 wine_fn_config_dll imagehlp enable_imagehlp implib
15182 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15183 wine_fn_config_dll imm.dll16 enable_win16
15184 wine_fn_config_dll imm32 enable_imm32 implib
15185 wine_fn_config_test dlls/imm32/tests imm32_test
15186 wine_fn_config_dll inetcomm enable_inetcomm implib
15187 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15188 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15189 wine_fn_config_dll inetmib1 enable_inetmib1
15190 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15191 wine_fn_config_dll infosoft enable_infosoft
15192 wine_fn_config_test dlls/infosoft/tests infosoft_test
15193 wine_fn_config_dll initpki enable_initpki
15194 wine_fn_config_dll inkobj enable_inkobj
15195 wine_fn_config_dll inseng enable_inseng
15196 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15197 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15198 wine_fn_config_dll itircl enable_itircl
15199 wine_fn_config_dll itss enable_itss
15200 wine_fn_config_test dlls/itss/tests itss_test
15201 wine_fn_config_dll jscript enable_jscript po
15202 wine_fn_config_test dlls/jscript/tests jscript_test
15203 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15204 wine_fn_config_test dlls/kernel32/tests kernel32_test
15205 wine_fn_config_dll keyboard.drv16 enable_win16
15206 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15207 wine_fn_config_dll ktmw32 enable_ktmw32
15208 wine_fn_config_dll loadperf enable_loadperf implib
15209 wine_fn_config_dll localspl enable_localspl po
15210 wine_fn_config_test dlls/localspl/tests localspl_test
15211 wine_fn_config_dll localui enable_localui po
15212 wine_fn_config_test dlls/localui/tests localui_test
15213 wine_fn_config_dll lz32 enable_lz32 implib
15214 wine_fn_config_test dlls/lz32/tests lz32_test
15215 wine_fn_config_dll lzexpand.dll16 enable_win16
15216 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15217 wine_fn_config_test dlls/mapi32/tests mapi32_test
15218 wine_fn_config_dll mapistub enable_mapistub
15219 wine_fn_config_dll mciavi32 enable_mciavi32
15220 wine_fn_config_dll mcicda enable_mcicda
15221 wine_fn_config_dll mciqtz32 enable_mciqtz32
15222 wine_fn_config_dll mciseq enable_mciseq
15223 wine_fn_config_dll mciwave enable_mciwave
15224 wine_fn_config_dll midimap enable_midimap
15225 wine_fn_config_dll mlang enable_mlang implib
15226 wine_fn_config_test dlls/mlang/tests mlang_test
15227 wine_fn_config_dll mmdevapi enable_mmdevapi
15228 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15229 wine_fn_config_dll mmdevldr.vxd enable_win16
15230 wine_fn_config_dll mmsystem.dll16 enable_win16
15231 wine_fn_config_dll monodebg.vxd enable_win16
15232 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15233 wine_fn_config_dll mouse.drv16 enable_win16
15234 wine_fn_config_dll mpr enable_mpr po,implib
15235 wine_fn_config_dll mprapi enable_mprapi implib
15236 wine_fn_config_dll msacm.dll16 enable_win16
15237 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15238 wine_fn_config_dll msacm32 enable_msacm32 implib
15239 wine_fn_config_test dlls/msacm32/tests msacm32_test
15240 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15241 wine_fn_config_dll mscat32 enable_mscat32
15242 wine_fn_config_dll mscms enable_mscms implib
15243 wine_fn_config_test dlls/mscms/tests mscms_test
15244 wine_fn_config_dll mscoree enable_mscoree
15245 wine_fn_config_test dlls/mscoree/tests mscoree_test
15246 wine_fn_config_dll msctf enable_msctf
15247 wine_fn_config_test dlls/msctf/tests msctf_test
15248 wine_fn_config_dll msdaps enable_msdaps
15249 wine_fn_config_dll msdmo enable_msdmo implib
15250 wine_fn_config_dll msftedit enable_msftedit
15251 wine_fn_config_dll msg711.acm enable_msg711_acm
15252 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15253 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15254 wine_fn_config_dll mshtml enable_mshtml po,implib
15255 wine_fn_config_test dlls/mshtml/tests mshtml_test
15256 wine_fn_config_dll msi enable_msi po,implib
15257 wine_fn_config_test dlls/msi/tests msi_test
15258 wine_fn_config_dll msimg32 enable_msimg32 implib
15259 wine_fn_config_dll msimsg enable_msimsg
15260 wine_fn_config_dll msimtf enable_msimtf
15261 wine_fn_config_dll msisip enable_msisip
15262 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15263 wine_fn_config_dll msnet32 enable_msnet32
15264 wine_fn_config_dll mspatcha enable_mspatcha
15265 wine_fn_config_dll msrle32 enable_msrle32 po
15266 wine_fn_config_dll mssign32 enable_mssign32
15267 wine_fn_config_dll mssip32 enable_mssip32
15268 wine_fn_config_dll mstask enable_mstask
15269 wine_fn_config_test dlls/mstask/tests mstask_test
15270 wine_fn_config_dll msvcirt enable_msvcirt
15271 wine_fn_config_dll msvcp100 enable_msvcp100
15272 wine_fn_config_dll msvcp60 enable_msvcp60
15273 wine_fn_config_dll msvcp70 enable_msvcp70
15274 wine_fn_config_dll msvcp71 enable_msvcp71
15275 wine_fn_config_dll msvcp80 enable_msvcp80
15276 wine_fn_config_dll msvcp90 enable_msvcp90
15277 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15278 wine_fn_config_dll msvcr100 enable_msvcr100
15279 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15280 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15281 wine_fn_config_dll msvcr80 enable_msvcr80
15282 wine_fn_config_dll msvcr90 enable_msvcr90
15283 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15284 wine_fn_config_dll msvcrt enable_msvcrt implib
15285 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15286 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15287 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15288 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15289 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15290 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15291 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15292 wine_fn_config_dll msvidc32 enable_msvidc32 po
15293 wine_fn_config_dll msvideo.dll16 enable_win16
15294 wine_fn_config_dll mswsock enable_mswsock implib
15295 wine_fn_config_dll msxml enable_msxml
15296 wine_fn_config_dll msxml2 enable_msxml2
15297 wine_fn_config_dll msxml3 enable_msxml3
15298 wine_fn_config_test dlls/msxml3/tests msxml3_test
15299 wine_fn_config_dll msxml4 enable_msxml4
15300 wine_fn_config_dll msxml6 enable_msxml6
15301 wine_fn_config_dll nddeapi enable_nddeapi implib
15302 wine_fn_config_dll netapi32 enable_netapi32 implib
15303 wine_fn_config_test dlls/netapi32/tests netapi32_test
15304 wine_fn_config_dll newdev enable_newdev implib
15305 wine_fn_config_dll normaliz enable_normaliz implib
15306 wine_fn_config_dll npmshtml enable_npmshtml
15307 wine_fn_config_dll ntdll enable_ntdll implib
15308 wine_fn_config_test dlls/ntdll/tests ntdll_test
15309 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15310 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15311 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15312 wine_fn_config_dll ntprint enable_ntprint
15313 wine_fn_config_test dlls/ntprint/tests ntprint_test
15314 wine_fn_config_dll objsel enable_objsel
15315 wine_fn_config_dll odbc32 enable_odbc32 implib
15316 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15317 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15318 wine_fn_config_dll ole2.dll16 enable_win16
15319 wine_fn_config_dll ole2conv.dll16 enable_win16
15320 wine_fn_config_dll ole2disp.dll16 enable_win16
15321 wine_fn_config_dll ole2nls.dll16 enable_win16
15322 wine_fn_config_dll ole2prox.dll16 enable_win16
15323 wine_fn_config_dll ole2thk.dll16 enable_win16
15324 wine_fn_config_dll ole32 enable_ole32 implib
15325 wine_fn_config_test dlls/ole32/tests ole32_test
15326 wine_fn_config_dll oleacc enable_oleacc po,implib
15327 wine_fn_config_test dlls/oleacc/tests oleacc_test
15328 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15329 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15330 wine_fn_config_dll olecli.dll16 enable_win16
15331 wine_fn_config_dll olecli32 enable_olecli32 implib
15332 wine_fn_config_dll oledb32 enable_oledb32
15333 wine_fn_config_test dlls/oledb32/tests oledb32_test
15334 wine_fn_config_dll oledlg enable_oledlg po,implib
15335 wine_fn_config_dll olepro32 enable_olepro32 implib
15336 wine_fn_config_dll olesvr.dll16 enable_win16
15337 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15338 wine_fn_config_dll olethk32 enable_olethk32
15339 wine_fn_config_dll openal32 enable_openal32
15340 wine_fn_config_dll opencl enable_opencl
15341 wine_fn_config_dll opengl32 enable_opengl32 implib
15342 wine_fn_config_test dlls/opengl32/tests opengl32_test
15343 wine_fn_config_dll pdh enable_pdh implib
15344 wine_fn_config_test dlls/pdh/tests pdh_test
15345 wine_fn_config_dll pidgen enable_pidgen
15346 wine_fn_config_dll powrprof enable_powrprof implib
15347 wine_fn_config_dll printui enable_printui
15348 wine_fn_config_dll propsys enable_propsys implib
15349 wine_fn_config_test dlls/propsys/tests propsys_test
15350 wine_fn_config_dll psapi enable_psapi implib
15351 wine_fn_config_test dlls/psapi/tests psapi_test
15352 wine_fn_config_dll pstorec enable_pstorec
15353 wine_fn_config_dll qcap enable_qcap
15354 wine_fn_config_dll qedit enable_qedit
15355 wine_fn_config_test dlls/qedit/tests qedit_test
15356 wine_fn_config_dll qmgr enable_qmgr
15357 wine_fn_config_test dlls/qmgr/tests qmgr_test
15358 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15359 wine_fn_config_dll quartz enable_quartz implib
15360 wine_fn_config_test dlls/quartz/tests quartz_test
15361 wine_fn_config_dll query enable_query
15362 wine_fn_config_dll rasapi16.dll16 enable_win16
15363 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15364 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15365 wine_fn_config_dll rasdlg enable_rasdlg implib
15366 wine_fn_config_dll resutils enable_resutils implib
15367 wine_fn_config_dll riched20 enable_riched20 implib
15368 wine_fn_config_test dlls/riched20/tests riched20_test
15369 wine_fn_config_dll riched32 enable_riched32
15370 wine_fn_config_test dlls/riched32/tests riched32_test
15371 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15372 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15373 wine_fn_config_dll rsabase enable_rsabase
15374 wine_fn_config_dll rsaenh enable_rsaenh implib
15375 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15376 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15377 wine_fn_config_dll rtutils enable_rtutils implib
15378 wine_fn_config_dll samlib enable_samlib
15379 wine_fn_config_dll sane.ds enable_sane_ds po
15380 wine_fn_config_dll scarddlg enable_scarddlg
15381 wine_fn_config_dll sccbase enable_sccbase
15382 wine_fn_config_dll schannel enable_schannel
15383 wine_fn_config_test dlls/schannel/tests schannel_test
15384 wine_fn_config_dll secur32 enable_secur32 implib
15385 wine_fn_config_test dlls/secur32/tests secur32_test
15386 wine_fn_config_dll security enable_security
15387 wine_fn_config_dll sensapi enable_sensapi implib
15388 wine_fn_config_dll serialui enable_serialui implib
15389 wine_fn_config_test dlls/serialui/tests serialui_test
15390 wine_fn_config_dll setupapi enable_setupapi po,implib
15391 wine_fn_config_test dlls/setupapi/tests setupapi_test
15392 wine_fn_config_dll setupx.dll16 enable_win16
15393 wine_fn_config_dll sfc enable_sfc implib
15394 wine_fn_config_dll sfc_os enable_sfc_os implib
15395 wine_fn_config_dll shdoclc enable_shdoclc po
15396 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15397 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15398 wine_fn_config_dll shell.dll16 enable_win16
15399 wine_fn_config_dll shell32 enable_shell32 po,implib
15400 wine_fn_config_test dlls/shell32/tests shell32_test
15401 wine_fn_config_dll shfolder enable_shfolder implib
15402 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15403 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15404 wine_fn_config_dll slbcsp enable_slbcsp
15405 wine_fn_config_dll slc enable_slc implib
15406 wine_fn_config_dll snmpapi enable_snmpapi implib
15407 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15408 wine_fn_config_dll softpub enable_softpub
15409 wine_fn_config_dll sound.drv16 enable_win16
15410 wine_fn_config_dll spoolss enable_spoolss implib
15411 wine_fn_config_test dlls/spoolss/tests spoolss_test
15412 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15413 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15414 wine_fn_config_dll sti enable_sti implib
15415 wine_fn_config_test dlls/sti/tests sti_test
15416 wine_fn_config_dll storage.dll16 enable_win16
15417 wine_fn_config_dll stress.dll16 enable_win16
15418 wine_fn_config_lib strmbase
15419 wine_fn_config_lib strmiids
15420 wine_fn_config_dll svrapi enable_svrapi
15421 wine_fn_config_dll sxs enable_sxs
15422 wine_fn_config_dll system.drv16 enable_win16
15423 wine_fn_config_dll t2embed enable_t2embed
15424 wine_fn_config_dll tapi32 enable_tapi32 implib
15425 wine_fn_config_dll toolhelp.dll16 enable_win16
15426 wine_fn_config_dll traffic enable_traffic
15427 wine_fn_config_dll twain.dll16 enable_win16
15428 wine_fn_config_dll twain_32 enable_twain_32
15429 wine_fn_config_test dlls/twain_32/tests twain_32_test
15430 wine_fn_config_dll typelib.dll16 enable_win16
15431 wine_fn_config_dll unicows enable_unicows implib
15432 wine_fn_config_dll updspapi enable_updspapi
15433 wine_fn_config_dll url enable_url implib
15434 wine_fn_config_dll urlmon enable_urlmon implib
15435 wine_fn_config_test dlls/urlmon/tests urlmon_test
15436 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15437 wine_fn_config_dll user.exe16 enable_win16
15438 wine_fn_config_dll user32 enable_user32 po,implib
15439 wine_fn_config_test dlls/user32/tests user32_test
15440 wine_fn_config_dll userenv enable_userenv implib
15441 wine_fn_config_test dlls/userenv/tests userenv_test
15442 wine_fn_config_dll usp10 enable_usp10 implib
15443 wine_fn_config_test dlls/usp10/tests usp10_test
15444 wine_fn_config_lib uuid
15445 wine_fn_config_dll uxtheme enable_uxtheme implib
15446 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15447 wine_fn_config_dll vcomp enable_vcomp
15448 wine_fn_config_dll vdhcp.vxd enable_win16
15449 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15450 wine_fn_config_dll ver.dll16 enable_win16
15451 wine_fn_config_dll version enable_version implib
15452 wine_fn_config_test dlls/version/tests version_test
15453 wine_fn_config_dll vmm.vxd enable_win16
15454 wine_fn_config_dll vnbt.vxd enable_win16
15455 wine_fn_config_dll vnetbios.vxd enable_win16
15456 wine_fn_config_dll vtdapi.vxd enable_win16
15457 wine_fn_config_dll vwin32.vxd enable_win16
15458 wine_fn_config_dll w32skrnl enable_win16
15459 wine_fn_config_dll w32sys.dll16 enable_win16
15460 wine_fn_config_dll wbemprox enable_wbemprox
15461 wine_fn_config_dll wer enable_wer implib
15462 wine_fn_config_test dlls/wer/tests wer_test
15463 wine_fn_config_dll wiaservc enable_wiaservc
15464 wine_fn_config_dll win32s16.dll16 enable_win16
15465 wine_fn_config_dll win87em.dll16 enable_win16
15466 wine_fn_config_dll winaspi.dll16 enable_win16
15467 wine_fn_config_dll windebug.dll16 enable_win16
15468 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15469 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15470 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15471 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15472 wine_fn_config_lib winecrt0
15473 wine_fn_config_dll wined3d enable_wined3d implib
15474 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15475 wine_fn_config_dll winegstreamer enable_winegstreamer
15476 wine_fn_config_dll winejack.drv enable_winejack_drv
15477 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15478 wine_fn_config_dll winemapi enable_winemapi
15479 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15480 wine_fn_config_dll winenas.drv enable_winenas_drv
15481 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15482 wine_fn_config_dll wineps.drv enable_wineps_drv
15483 wine_fn_config_dll wineps16.drv16 enable_win16
15484 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15485 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15486 wine_fn_config_dll winex11.drv enable_winex11_drv
15487 wine_fn_config_dll wing.dll16 enable_win16
15488 wine_fn_config_dll wing32 enable_wing32
15489 wine_fn_config_dll winhttp enable_winhttp implib
15490 wine_fn_config_test dlls/winhttp/tests winhttp_test
15491 wine_fn_config_dll wininet enable_wininet po,implib
15492 wine_fn_config_test dlls/wininet/tests wininet_test
15493 wine_fn_config_dll winmm enable_winmm po,implib
15494 wine_fn_config_test dlls/winmm/tests winmm_test
15495 wine_fn_config_dll winnls.dll16 enable_win16
15496 wine_fn_config_dll winnls32 enable_winnls32 implib
15497 wine_fn_config_dll winscard enable_winscard implib
15498 wine_fn_config_dll winsock.dll16 enable_win16
15499 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15500 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15501 wine_fn_config_dll wintab.dll16 enable_win16
15502 wine_fn_config_dll wintab32 enable_wintab32 implib
15503 wine_fn_config_test dlls/wintab32/tests wintab32_test
15504 wine_fn_config_dll wintrust enable_wintrust implib
15505 wine_fn_config_test dlls/wintrust/tests wintrust_test
15506 wine_fn_config_dll wlanapi enable_wlanapi
15507 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15508 wine_fn_config_test dlls/wldap32/tests wldap32_test
15509 wine_fn_config_dll wmi enable_wmi
15510 wine_fn_config_dll wmiutils enable_wmiutils
15511 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15512 wine_fn_config_dll wow32 enable_win16 implib
15513 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15514 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15515 wine_fn_config_dll wsock32 enable_wsock32 implib
15516 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15517 wine_fn_config_dll wuapi enable_wuapi
15518 wine_fn_config_dll wuaueng enable_wuaueng
15519 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15520 wine_fn_config_dll xinput1_1 enable_xinput1_1
15521 wine_fn_config_dll xinput1_2 enable_xinput1_2
15522 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15523 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15524 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15525 wine_fn_config_dll xmllite enable_xmllite
15526 wine_fn_config_test dlls/xmllite/tests xmllite_test
15527 wine_fn_config_makefile documentation enable_documentation
15528 wine_fn_config_makefile fonts enable_fonts
15529 wine_fn_config_makefile include enable_include
15530 wine_fn_config_makefile libs/port enable_libs_port
15531 wine_fn_config_makefile libs/wine enable_libs_wine
15532 wine_fn_config_makefile libs/wpp enable_libs_wpp
15533 wine_fn_config_makefile loader enable_loader
15534 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15535 wine_fn_config_program attrib enable_attrib install
15536 wine_fn_config_program cabarc enable_cabarc install
15537 wine_fn_config_program cacls enable_cacls install
15538 wine_fn_config_program clock enable_clock po,install
15539 wine_fn_config_program cmd enable_cmd po,install
15540 wine_fn_config_test programs/cmd/tests cmd.exe_test
15541 wine_fn_config_program cmdlgtst enable_cmdlgtst
15542 wine_fn_config_program control enable_control install
15543 wine_fn_config_program dxdiag enable_dxdiag install
15544 wine_fn_config_program eject enable_eject install
15545 wine_fn_config_program expand enable_expand install
15546 wine_fn_config_program explorer enable_explorer install
15547 wine_fn_config_program extrac32 enable_extrac32 install
15548 wine_fn_config_program hh enable_hh install
15549 wine_fn_config_program icinfo enable_icinfo install
15550 wine_fn_config_program iexplore enable_iexplore install
15551 wine_fn_config_program ipconfig enable_ipconfig po,install
15552 wine_fn_config_program lodctr enable_lodctr install
15553 wine_fn_config_program mofcomp enable_mofcomp install
15554 wine_fn_config_program mshta enable_mshta install
15555 wine_fn_config_program msiexec enable_msiexec install,installbin
15556 wine_fn_config_program net enable_net po,install
15557 wine_fn_config_program netsh enable_netsh install
15558 wine_fn_config_program ngen enable_ngen install
15559 wine_fn_config_program notepad enable_notepad po,install,installbin
15560 wine_fn_config_program oleview enable_oleview po,install
15561 wine_fn_config_program ping enable_ping install
15562 wine_fn_config_program plugplay enable_plugplay install
15563 wine_fn_config_program progman enable_progman po,install
15564 wine_fn_config_program reg enable_reg po,install
15565 wine_fn_config_program regedit enable_regedit po,install,installbin
15566 wine_fn_config_test programs/regedit/tests regedit.exe_test
15567 wine_fn_config_program regsvcs enable_regsvcs install
15568 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15569 wine_fn_config_program rpcss enable_rpcss install
15570 wine_fn_config_program rundll.exe16 enable_win16 install
15571 wine_fn_config_program rundll32 enable_rundll32 install
15572 wine_fn_config_program sc enable_sc install
15573 wine_fn_config_program secedit enable_secedit install
15574 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15575 wine_fn_config_program services enable_services install
15576 wine_fn_config_program spoolsv enable_spoolsv install
15577 wine_fn_config_program start enable_start po,install
15578 wine_fn_config_program svchost enable_svchost install
15579 wine_fn_config_program taskkill enable_taskkill po,install
15580 wine_fn_config_program taskmgr enable_taskmgr po,install
15581 wine_fn_config_program termsv enable_termsv install
15582 wine_fn_config_program uninstaller enable_uninstaller po,install
15583 wine_fn_config_program unlodctr enable_unlodctr install
15584 wine_fn_config_program view enable_view po
15585 wine_fn_config_program wineboot enable_wineboot install,installbin
15586 wine_fn_config_program winebrowser enable_winebrowser install
15587 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15588 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15589 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15590 wine_fn_config_program winedevice enable_winedevice install
15591 wine_fn_config_program winefile enable_winefile po,install,installbin
15592 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15593 wine_fn_config_program winemine enable_winemine po,install,installbin
15594 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15595 wine_fn_config_program winepath enable_winepath install,installbin
15596 wine_fn_config_program winetest enable_winetest
15597 wine_fn_config_program winevdm enable_win16 install
15598 wine_fn_config_program winhelp.exe16 enable_win16 install
15599 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15600 wine_fn_config_program winoldap.mod16 enable_win16 install
15601 wine_fn_config_program winver enable_winver install
15602 wine_fn_config_program wmic enable_wmic install
15603 wine_fn_config_program wordpad enable_wordpad po,install
15604 wine_fn_config_program write enable_write po,install
15605 wine_fn_config_program wscript enable_wscript install
15606 wine_fn_config_test programs/wscript/tests wscript.exe_test
15607 wine_fn_config_program xcopy enable_xcopy po,install
15608 wine_fn_config_makefile server enable_server
15609 wine_fn_config_tool tools
15610 wine_fn_config_tool tools/widl
15611 wine_fn_config_tool tools/winebuild
15612 wine_fn_config_tool tools/winedump
15613 wine_fn_config_tool tools/winegcc
15614 wine_fn_config_tool tools/wmc
15615 wine_fn_config_tool tools/wrc
15616
15617 LINGUAS="\
15618 ar \
15619 bg \
15620 ca \
15621 cs \
15622 da \
15623 de \
15624 el \
15625 en \
15626 en_US \
15627 eo \
15628 es \
15629 fa \
15630 fi \
15631 fr \
15632 he \
15633 hi \
15634 hu \
15635 it \
15636 ja \
15637 ko \
15638 lt \
15639 ml \
15640 nb_NO \
15641 nl \
15642 or \
15643 pa \
15644 pl \
15645 pt_BR \
15646 pt_PT \
15647 rm \
15648 ro \
15649 ru \
15650 sk \
15651 sl \
15652 sr_RS@cyrillic \
15653 sr_RS@latin \
15654 sv \
15655 te \
15656 th \
15657 tr \
15658 uk \
15659 wa \
15660 zh_CN \
15661 zh_TW"
15662
15663
15664
15665 ac_config_commands="$ac_config_commands Makefile"
15666
15667
15668 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15669
15670
15671
15672 if test "x$enable_maintainer_mode" = xyes
15673 then
15674     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15675         cd \$(srcdir) && autoconf --warnings=all
15676 \$(srcdir)/include/config.h.in: include/stamp-h.in
15677 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15678         cd \$(srcdir) && autoheader --warnings=all
15679         @echo timestamp > \$@
15680
15681 ALL_POT_FILES =$ALL_POT_FILES
15682 all: \$(ALL_PO_FILES)
15683 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15684         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15685 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15686         msgcat -o \$@ \$(ALL_POT_FILES)"
15687 fi
15688
15689 if test -n "$with_wine64"
15690 then
15691 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15692 fonts server:
15693         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15694 $with_wine64/loader/wine:
15695         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15696 $with_wine64/loader/wine-preloader:
15697         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15698 clean::
15699         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15700 fi
15701
15702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15703         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15704
15705 cat >confcache <<\_ACEOF
15706 # This file is a shell script that caches the results of configure
15707 # tests run on this system so they can be shared between configure
15708 # scripts and configure runs, see configure's option --config-cache.
15709 # It is not useful on other systems.  If it contains results you don't
15710 # want to keep, you may remove or edit it.
15711 #
15712 # config.status only pays attention to the cache file if you give it
15713 # the --recheck option to rerun configure.
15714 #
15715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15717 # following values.
15718
15719 _ACEOF
15720
15721 # The following way of writing the cache mishandles newlines in values,
15722 # but we know of no workaround that is simple, portable, and efficient.
15723 # So, we kill variables containing newlines.
15724 # Ultrix sh set writes to stderr and can't be redirected directly,
15725 # and sets the high bit in the cache file unless we assign to the vars.
15726 (
15727   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15728     eval ac_val=\$$ac_var
15729     case $ac_val in #(
15730     *${as_nl}*)
15731       case $ac_var in #(
15732       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15734       esac
15735       case $ac_var in #(
15736       _ | IFS | as_nl) ;; #(
15737       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15738       *) { eval $ac_var=; unset $ac_var;} ;;
15739       esac ;;
15740     esac
15741   done
15742
15743   (set) 2>&1 |
15744     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15745     *${as_nl}ac_space=\ *)
15746       # `set' does not quote correctly, so add quotes: double-quote
15747       # substitution turns \\\\ into \\, and sed turns \\ into \.
15748       sed -n \
15749         "s/'/'\\\\''/g;
15750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15751       ;; #(
15752     *)
15753       # `set' quotes correctly as required by POSIX, so do not add quotes.
15754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15755       ;;
15756     esac |
15757     sort
15758 ) |
15759   sed '
15760      /^ac_cv_env_/b end
15761      t clear
15762      :clear
15763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15764      t end
15765      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15766      :end' >>confcache
15767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15768   if test -w "$cache_file"; then
15769     if test "x$cache_file" != "x/dev/null"; then
15770       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15771 $as_echo "$as_me: updating cache $cache_file" >&6;}
15772       if test ! -f "$cache_file" || test -h "$cache_file"; then
15773         cat confcache >"$cache_file"
15774       else
15775         case $cache_file in #(
15776         */* | ?:*)
15777           mv -f confcache "$cache_file"$$ &&
15778           mv -f "$cache_file"$$ "$cache_file" ;; #(
15779         *)
15780           mv -f confcache "$cache_file" ;;
15781         esac
15782       fi
15783     fi
15784   else
15785     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15787   fi
15788 fi
15789 rm -f confcache
15790
15791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15792 # Let make expand exec_prefix.
15793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15794
15795 DEFS=-DHAVE_CONFIG_H
15796
15797 ac_libobjs=
15798 ac_ltlibobjs=
15799 U=
15800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15801   # 1. Remove the extension, and $U if already installed.
15802   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15803   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15804   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15805   #    will be set to the directory where LIBOBJS objects are built.
15806   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15807   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15808 done
15809 LIBOBJS=$ac_libobjs
15810
15811 LTLIBOBJS=$ac_ltlibobjs
15812
15813
15814
15815 : "${CONFIG_STATUS=./config.status}"
15816 ac_write_fail=0
15817 ac_clean_files_save=$ac_clean_files
15818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15821 as_write_fail=0
15822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15823 #! $SHELL
15824 # Generated by $as_me.
15825 # Run this file to recreate the current configuration.
15826 # Compiler output produced by configure, useful for debugging
15827 # configure, is in config.log if it exists.
15828
15829 debug=false
15830 ac_cs_recheck=false
15831 ac_cs_silent=false
15832
15833 SHELL=\${CONFIG_SHELL-$SHELL}
15834 export SHELL
15835 _ASEOF
15836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15837 ## -------------------- ##
15838 ## M4sh Initialization. ##
15839 ## -------------------- ##
15840
15841 # Be more Bourne compatible
15842 DUALCASE=1; export DUALCASE # for MKS sh
15843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15844   emulate sh
15845   NULLCMD=:
15846   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15847   # is contrary to our usage.  Disable this feature.
15848   alias -g '${1+"$@"}'='"$@"'
15849   setopt NO_GLOB_SUBST
15850 else
15851   case `(set -o) 2>/dev/null` in #(
15852   *posix*) :
15853     set -o posix ;; #(
15854   *) :
15855      ;;
15856 esac
15857 fi
15858
15859
15860 as_nl='
15861 '
15862 export as_nl
15863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15867 # Prefer a ksh shell builtin over an external printf program on Solaris,
15868 # but without wasting forks for bash or zsh.
15869 if test -z "$BASH_VERSION$ZSH_VERSION" \
15870     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15871   as_echo='print -r --'
15872   as_echo_n='print -rn --'
15873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15874   as_echo='printf %s\n'
15875   as_echo_n='printf %s'
15876 else
15877   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15878     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15879     as_echo_n='/usr/ucb/echo -n'
15880   else
15881     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15882     as_echo_n_body='eval
15883       arg=$1;
15884       case $arg in #(
15885       *"$as_nl"*)
15886         expr "X$arg" : "X\\(.*\\)$as_nl";
15887         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15888       esac;
15889       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15890     '
15891     export as_echo_n_body
15892     as_echo_n='sh -c $as_echo_n_body as_echo'
15893   fi
15894   export as_echo_body
15895   as_echo='sh -c $as_echo_body as_echo'
15896 fi
15897
15898 # The user is always right.
15899 if test "${PATH_SEPARATOR+set}" != set; then
15900   PATH_SEPARATOR=:
15901   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15902     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15903       PATH_SEPARATOR=';'
15904   }
15905 fi
15906
15907
15908 # IFS
15909 # We need space, tab and new line, in precisely that order.  Quoting is
15910 # there to prevent editors from complaining about space-tab.
15911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15912 # splitting by setting IFS to empty value.)
15913 IFS=" ""        $as_nl"
15914
15915 # Find who we are.  Look in the path if we contain no directory separator.
15916 as_myself=
15917 case $0 in #((
15918   *[\\/]* ) as_myself=$0 ;;
15919   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15921 do
15922   IFS=$as_save_IFS
15923   test -z "$as_dir" && as_dir=.
15924     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15925   done
15926 IFS=$as_save_IFS
15927
15928      ;;
15929 esac
15930 # We did not find ourselves, most probably we were run as `sh COMMAND'
15931 # in which case we are not to be found in the path.
15932 if test "x$as_myself" = x; then
15933   as_myself=$0
15934 fi
15935 if test ! -f "$as_myself"; then
15936   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15937   exit 1
15938 fi
15939
15940 # Unset variables that we do not need and which cause bugs (e.g. in
15941 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15942 # suppresses any "Segmentation fault" message there.  '((' could
15943 # trigger a bug in pdksh 5.2.14.
15944 for as_var in BASH_ENV ENV MAIL MAILPATH
15945 do eval test x\${$as_var+set} = xset \
15946   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15947 done
15948 PS1='$ '
15949 PS2='> '
15950 PS4='+ '
15951
15952 # NLS nuisances.
15953 LC_ALL=C
15954 export LC_ALL
15955 LANGUAGE=C
15956 export LANGUAGE
15957
15958 # CDPATH.
15959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15960
15961
15962 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15963 # ----------------------------------------
15964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15966 # script with STATUS, using 1 if that was 0.
15967 as_fn_error ()
15968 {
15969   as_status=$1; test $as_status -eq 0 && as_status=1
15970   if test "$4"; then
15971     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15972     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15973   fi
15974   $as_echo "$as_me: error: $2" >&2
15975   as_fn_exit $as_status
15976 } # as_fn_error
15977
15978
15979 # as_fn_set_status STATUS
15980 # -----------------------
15981 # Set $? to STATUS, without forking.
15982 as_fn_set_status ()
15983 {
15984   return $1
15985 } # as_fn_set_status
15986
15987 # as_fn_exit STATUS
15988 # -----------------
15989 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15990 as_fn_exit ()
15991 {
15992   set +e
15993   as_fn_set_status $1
15994   exit $1
15995 } # as_fn_exit
15996
15997 # as_fn_unset VAR
15998 # ---------------
15999 # Portably unset VAR.
16000 as_fn_unset ()
16001 {
16002   { eval $1=; unset $1;}
16003 }
16004 as_unset=as_fn_unset
16005 # as_fn_append VAR VALUE
16006 # ----------------------
16007 # Append the text in VALUE to the end of the definition contained in VAR. Take
16008 # advantage of any shell optimizations that allow amortized linear growth over
16009 # repeated appends, instead of the typical quadratic growth present in naive
16010 # implementations.
16011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16012   eval 'as_fn_append ()
16013   {
16014     eval $1+=\$2
16015   }'
16016 else
16017   as_fn_append ()
16018   {
16019     eval $1=\$$1\$2
16020   }
16021 fi # as_fn_append
16022
16023 # as_fn_arith ARG...
16024 # ------------------
16025 # Perform arithmetic evaluation on the ARGs, and store the result in the
16026 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16027 # must be portable across $(()) and expr.
16028 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16029   eval 'as_fn_arith ()
16030   {
16031     as_val=$(( $* ))
16032   }'
16033 else
16034   as_fn_arith ()
16035   {
16036     as_val=`expr "$@" || test $? -eq 1`
16037   }
16038 fi # as_fn_arith
16039
16040
16041 if expr a : '\(a\)' >/dev/null 2>&1 &&
16042    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16043   as_expr=expr
16044 else
16045   as_expr=false
16046 fi
16047
16048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16049   as_basename=basename
16050 else
16051   as_basename=false
16052 fi
16053
16054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16055   as_dirname=dirname
16056 else
16057   as_dirname=false
16058 fi
16059
16060 as_me=`$as_basename -- "$0" ||
16061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16062          X"$0" : 'X\(//\)$' \| \
16063          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16064 $as_echo X/"$0" |
16065     sed '/^.*\/\([^/][^/]*\)\/*$/{
16066             s//\1/
16067             q
16068           }
16069           /^X\/\(\/\/\)$/{
16070             s//\1/
16071             q
16072           }
16073           /^X\/\(\/\).*/{
16074             s//\1/
16075             q
16076           }
16077           s/.*/./; q'`
16078
16079 # Avoid depending upon Character Ranges.
16080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16083 as_cr_digits='0123456789'
16084 as_cr_alnum=$as_cr_Letters$as_cr_digits
16085
16086 ECHO_C= ECHO_N= ECHO_T=
16087 case `echo -n x` in #(((((
16088 -n*)
16089   case `echo 'xy\c'` in
16090   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16091   xy)  ECHO_C='\c';;
16092   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16093        ECHO_T=' ';;
16094   esac;;
16095 *)
16096   ECHO_N='-n';;
16097 esac
16098
16099 rm -f conf$$ conf$$.exe conf$$.file
16100 if test -d conf$$.dir; then
16101   rm -f conf$$.dir/conf$$.file
16102 else
16103   rm -f conf$$.dir
16104   mkdir conf$$.dir 2>/dev/null
16105 fi
16106 if (echo >conf$$.file) 2>/dev/null; then
16107   if ln -s conf$$.file conf$$ 2>/dev/null; then
16108     as_ln_s='ln -s'
16109     # ... but there are two gotchas:
16110     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16111     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16112     # In both cases, we have to default to `cp -p'.
16113     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16114       as_ln_s='cp -p'
16115   elif ln conf$$.file conf$$ 2>/dev/null; then
16116     as_ln_s=ln
16117   else
16118     as_ln_s='cp -p'
16119   fi
16120 else
16121   as_ln_s='cp -p'
16122 fi
16123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16124 rmdir conf$$.dir 2>/dev/null
16125
16126
16127 # as_fn_mkdir_p
16128 # -------------
16129 # Create "$as_dir" as a directory, including parents if necessary.
16130 as_fn_mkdir_p ()
16131 {
16132
16133   case $as_dir in #(
16134   -*) as_dir=./$as_dir;;
16135   esac
16136   test -d "$as_dir" || eval $as_mkdir_p || {
16137     as_dirs=
16138     while :; do
16139       case $as_dir in #(
16140       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16141       *) as_qdir=$as_dir;;
16142       esac
16143       as_dirs="'$as_qdir' $as_dirs"
16144       as_dir=`$as_dirname -- "$as_dir" ||
16145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146          X"$as_dir" : 'X\(//\)[^/]' \| \
16147          X"$as_dir" : 'X\(//\)$' \| \
16148          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16149 $as_echo X"$as_dir" |
16150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151             s//\1/
16152             q
16153           }
16154           /^X\(\/\/\)[^/].*/{
16155             s//\1/
16156             q
16157           }
16158           /^X\(\/\/\)$/{
16159             s//\1/
16160             q
16161           }
16162           /^X\(\/\).*/{
16163             s//\1/
16164             q
16165           }
16166           s/.*/./; q'`
16167       test -d "$as_dir" && break
16168     done
16169     test -z "$as_dirs" || eval "mkdir $as_dirs"
16170   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16171
16172
16173 } # as_fn_mkdir_p
16174 if mkdir -p . 2>/dev/null; then
16175   as_mkdir_p='mkdir -p "$as_dir"'
16176 else
16177   test -d ./-p && rmdir ./-p
16178   as_mkdir_p=false
16179 fi
16180
16181 if test -x / >/dev/null 2>&1; then
16182   as_test_x='test -x'
16183 else
16184   if ls -dL / >/dev/null 2>&1; then
16185     as_ls_L_option=L
16186   else
16187     as_ls_L_option=
16188   fi
16189   as_test_x='
16190     eval sh -c '\''
16191       if test -d "$1"; then
16192         test -d "$1/.";
16193       else
16194         case $1 in #(
16195         -*)set "./$1";;
16196         esac;
16197         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16198         ???[sx]*):;;*)false;;esac;fi
16199     '\'' sh
16200   '
16201 fi
16202 as_executable_p=$as_test_x
16203
16204 # Sed expression to map a string onto a valid CPP name.
16205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16206
16207 # Sed expression to map a string onto a valid variable name.
16208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16209
16210
16211 exec 6>&1
16212 ## ----------------------------------- ##
16213 ## Main body of $CONFIG_STATUS script. ##
16214 ## ----------------------------------- ##
16215 _ASEOF
16216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 # Save the log message, to keep $0 and so on meaningful, and to
16220 # report actual input values of CONFIG_FILES etc. instead of their
16221 # values after options handling.
16222 ac_log="
16223 This file was extended by Wine $as_me 1.3.19, which was
16224 generated by GNU Autoconf 2.68.  Invocation command line was
16225
16226   CONFIG_FILES    = $CONFIG_FILES
16227   CONFIG_HEADERS  = $CONFIG_HEADERS
16228   CONFIG_LINKS    = $CONFIG_LINKS
16229   CONFIG_COMMANDS = $CONFIG_COMMANDS
16230   $ $0 $@
16231
16232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16233 "
16234
16235 _ACEOF
16236
16237 case $ac_config_files in *"
16238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16239 esac
16240
16241 case $ac_config_headers in *"
16242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16243 esac
16244
16245
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 # Files that config.status was made for.
16248 config_files="$ac_config_files"
16249 config_headers="$ac_config_headers"
16250 config_links="$ac_config_links"
16251 config_commands="$ac_config_commands"
16252
16253 _ACEOF
16254
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256 ac_cs_usage="\
16257 \`$as_me' instantiates files and other configuration actions
16258 from templates according to the current configuration.  Unless the files
16259 and actions are specified as TAGs, all are instantiated by default.
16260
16261 Usage: $0 [OPTION]... [TAG]...
16262
16263   -h, --help       print this help, then exit
16264   -V, --version    print version number and configuration settings, then exit
16265       --config     print configuration, then exit
16266   -q, --quiet, --silent
16267                    do not print progress messages
16268   -d, --debug      don't remove temporary files
16269       --recheck    update $as_me by reconfiguring in the same conditions
16270       --file=FILE[:TEMPLATE]
16271                    instantiate the configuration file FILE
16272       --header=FILE[:TEMPLATE]
16273                    instantiate the configuration header FILE
16274
16275 Configuration files:
16276 $config_files
16277
16278 Configuration headers:
16279 $config_headers
16280
16281 Configuration links:
16282 $config_links
16283
16284 Configuration commands:
16285 $config_commands
16286
16287 Report bugs to <wine-devel@winehq.org>.
16288 Wine home page: <http://www.winehq.org>."
16289
16290 _ACEOF
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16292 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16293 ac_cs_version="\\
16294 Wine config.status 1.3.19
16295 configured by $0, generated by GNU Autoconf 2.68,
16296   with options \\"\$ac_cs_config\\"
16297
16298 Copyright (C) 2010 Free Software Foundation, Inc.
16299 This config.status script is free software; the Free Software Foundation
16300 gives unlimited permission to copy, distribute and modify it."
16301
16302 ac_pwd='$ac_pwd'
16303 srcdir='$srcdir'
16304 INSTALL='$INSTALL'
16305 test -n "\$AWK" || AWK=awk
16306 _ACEOF
16307
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309 # The default lists apply if the user does not specify any file.
16310 ac_need_defaults=:
16311 while test $# != 0
16312 do
16313   case $1 in
16314   --*=?*)
16315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16316     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16317     ac_shift=:
16318     ;;
16319   --*=)
16320     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16321     ac_optarg=
16322     ac_shift=:
16323     ;;
16324   *)
16325     ac_option=$1
16326     ac_optarg=$2
16327     ac_shift=shift
16328     ;;
16329   esac
16330
16331   case $ac_option in
16332   # Handling of the options.
16333   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16334     ac_cs_recheck=: ;;
16335   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16336     $as_echo "$ac_cs_version"; exit ;;
16337   --config | --confi | --conf | --con | --co | --c )
16338     $as_echo "$ac_cs_config"; exit ;;
16339   --debug | --debu | --deb | --de | --d | -d )
16340     debug=: ;;
16341   --file | --fil | --fi | --f )
16342     $ac_shift
16343     case $ac_optarg in
16344     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16345     '') as_fn_error $? "missing file argument" ;;
16346     esac
16347     as_fn_append CONFIG_FILES " '$ac_optarg'"
16348     ac_need_defaults=false;;
16349   --header | --heade | --head | --hea )
16350     $ac_shift
16351     case $ac_optarg in
16352     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16353     esac
16354     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16355     ac_need_defaults=false;;
16356   --he | --h)
16357     # Conflict between --help and --header
16358     as_fn_error $? "ambiguous option: \`$1'
16359 Try \`$0 --help' for more information.";;
16360   --help | --hel | -h )
16361     $as_echo "$ac_cs_usage"; exit ;;
16362   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16363   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16364     ac_cs_silent=: ;;
16365
16366   # This is an error.
16367   -*) as_fn_error $? "unrecognized option: \`$1'
16368 Try \`$0 --help' for more information." ;;
16369
16370   *) as_fn_append ac_config_targets " $1"
16371      ac_need_defaults=false ;;
16372
16373   esac
16374   shift
16375 done
16376
16377 ac_configure_extra_args=
16378
16379 if $ac_cs_silent; then
16380   exec 6>/dev/null
16381   ac_configure_extra_args="$ac_configure_extra_args --silent"
16382 fi
16383
16384 _ACEOF
16385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16386 if \$ac_cs_recheck; then
16387   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16388   shift
16389   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16390   CONFIG_SHELL='$SHELL'
16391   export CONFIG_SHELL
16392   exec "\$@"
16393 fi
16394
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397 exec 5>>config.log
16398 {
16399   echo
16400   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16401 ## Running $as_me. ##
16402 _ASBOX
16403   $as_echo "$ac_log"
16404 } >&5
16405
16406 _ACEOF
16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 #
16409 # INIT-COMMANDS
16410 #
16411 wine_fn_output_makefile ()
16412 {
16413     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16414 $ALL_MAKEFILE_DEPENDS
16415 _WINE_EOF
16416     as_fn_error $? "could not create Makefile" "$LINENO" 5
16417 }
16418
16419 _ACEOF
16420
16421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422
16423 # Handling of arguments.
16424 for ac_config_target in $ac_config_targets
16425 do
16426   case $ac_config_target in
16427     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16428     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16429     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16430     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16431     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16432     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16433     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16434     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16435     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16436     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16437     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16438     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16439     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16440     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16441     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16442     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16443     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16444     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16445     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16446     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16447     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16448     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16449     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16450     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16451
16452   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16453   esac
16454 done
16455
16456
16457 # If the user did not use the arguments to specify the items to instantiate,
16458 # then the envvar interface is used.  Set only those that are not.
16459 # We use the long form for the default assignment because of an extremely
16460 # bizarre bug on SunOS 4.1.3.
16461 if $ac_need_defaults; then
16462   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16463   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16464   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16465   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16466 fi
16467
16468 # Have a temporary directory for convenience.  Make it in the build tree
16469 # simply because there is no reason against having it here, and in addition,
16470 # creating and moving files from /tmp can sometimes cause problems.
16471 # Hook for its removal unless debugging.
16472 # Note that there is a small window in which the directory will not be cleaned:
16473 # after its creation but before its name has been assigned to `$tmp'.
16474 $debug ||
16475 {
16476   tmp= ac_tmp=
16477   trap 'exit_status=$?
16478   : "${ac_tmp:=$tmp}"
16479   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16480 ' 0
16481   trap 'as_fn_exit 1' 1 2 13 15
16482 }
16483 # Create a (secure) tmp directory for tmp files.
16484
16485 {
16486   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16487   test -d "$tmp"
16488 }  ||
16489 {
16490   tmp=./conf$$-$RANDOM
16491   (umask 077 && mkdir "$tmp")
16492 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16493 ac_tmp=$tmp
16494
16495 # Set up the scripts for CONFIG_FILES section.
16496 # No need to generate them if there are no CONFIG_FILES.
16497 # This happens for instance with `./config.status config.h'.
16498 if test -n "$CONFIG_FILES"; then
16499
16500 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16501   ac_cs_awk_getline=:
16502   ac_cs_awk_pipe_init=
16503   ac_cs_awk_read_file='
16504       while ((getline aline < (F[key])) > 0)
16505         print(aline)
16506       close(F[key])'
16507   ac_cs_awk_pipe_fini=
16508 else
16509   ac_cs_awk_getline=false
16510   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16511   ac_cs_awk_read_file='
16512       print "|#_!!_#|"
16513       print "cat " F[key] " &&"
16514       '$ac_cs_awk_pipe_init
16515   # The final `:' finishes the AND list.
16516   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16517 fi
16518 ac_cr=`echo X | tr X '\015'`
16519 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16520 # But we know of no other shell where ac_cr would be empty at this
16521 # point, so we can use a bashism as a fallback.
16522 if test "x$ac_cr" = x; then
16523   eval ac_cr=\$\'\\r\'
16524 fi
16525 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16526 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16527   ac_cs_awk_cr='\\r'
16528 else
16529   ac_cs_awk_cr=$ac_cr
16530 fi
16531
16532 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16533 _ACEOF
16534
16535 # Create commands to substitute file output variables.
16536 {
16537   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16538   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16539   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16540   echo "_ACAWK" &&
16541   echo "_ACEOF"
16542 } >conf$$files.sh &&
16543 . ./conf$$files.sh ||
16544   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16545 rm -f conf$$files.sh
16546
16547 {
16548   echo "cat >conf$$subs.awk <<_ACEOF" &&
16549   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16550   echo "_ACEOF"
16551 } >conf$$subs.sh ||
16552   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16553 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16554 ac_delim='%!_!# '
16555 for ac_last_try in false false false false false :; do
16556   . ./conf$$subs.sh ||
16557     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16558
16559   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16560   if test $ac_delim_n = $ac_delim_num; then
16561     break
16562   elif $ac_last_try; then
16563     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16564   else
16565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16566   fi
16567 done
16568 rm -f conf$$subs.sh
16569
16570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16571 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16572 _ACEOF
16573 sed -n '
16574 h
16575 s/^/S["/; s/!.*/"]=/
16576 p
16577 g
16578 s/^[^!]*!//
16579 :repl
16580 t repl
16581 s/'"$ac_delim"'$//
16582 t delim
16583 :nl
16584 h
16585 s/\(.\{148\}\)..*/\1/
16586 t more1
16587 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16588 p
16589 n
16590 b repl
16591 :more1
16592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16593 p
16594 g
16595 s/.\{148\}//
16596 t nl
16597 :delim
16598 h
16599 s/\(.\{148\}\)..*/\1/
16600 t more2
16601 s/["\\]/\\&/g; s/^/"/; s/$/"/
16602 p
16603 b
16604 :more2
16605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16606 p
16607 g
16608 s/.\{148\}//
16609 t delim
16610 ' <conf$$subs.awk | sed '
16611 /^[^""]/{
16612   N
16613   s/\n//
16614 }
16615 ' >>$CONFIG_STATUS || ac_write_fail=1
16616 rm -f conf$$subs.awk
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 _ACAWK
16619 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16620   for (key in S) S_is_set[key] = 1
16621   FS = "\a"
16622   \$ac_cs_awk_pipe_init
16623 }
16624 {
16625   line = $ 0
16626   nfields = split(line, field, "@")
16627   substed = 0
16628   len = length(field[1])
16629   for (i = 2; i < nfields; i++) {
16630     key = field[i]
16631     keylen = length(key)
16632     if (S_is_set[key]) {
16633       value = S[key]
16634       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16635       len += length(value) + length(field[++i])
16636       substed = 1
16637     } else
16638       len += 1 + keylen
16639   }
16640   if (nfields == 3 && !substed) {
16641     key = field[2]
16642     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16643       \$ac_cs_awk_read_file
16644       next
16645     }
16646   }
16647   print line
16648 }
16649 \$ac_cs_awk_pipe_fini
16650 _ACAWK
16651 _ACEOF
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16654   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16655 else
16656   cat
16657 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16658   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16659 _ACEOF
16660
16661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16663 # trailing colons and then remove the whole line if VPATH becomes empty
16664 # (actually we leave an empty line to preserve line numbers).
16665 if test "x$srcdir" = x.; then
16666   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16667 h
16668 s///
16669 s/^/:/
16670 s/[      ]*$/:/
16671 s/:\$(srcdir):/:/g
16672 s/:\${srcdir}:/:/g
16673 s/:@srcdir@:/:/g
16674 s/^:*//
16675 s/:*$//
16676 x
16677 s/\(=[   ]*\).*/\1/
16678 G
16679 s/\n//
16680 s/^[^=]*=[       ]*$//
16681 }'
16682 fi
16683
16684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16685 fi # test -n "$CONFIG_FILES"
16686
16687 # Set up the scripts for CONFIG_HEADERS section.
16688 # No need to generate them if there are no CONFIG_HEADERS.
16689 # This happens for instance with `./config.status Makefile'.
16690 if test -n "$CONFIG_HEADERS"; then
16691 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16692 BEGIN {
16693 _ACEOF
16694
16695 # Transform confdefs.h into an awk script `defines.awk', embedded as
16696 # here-document in config.status, that substitutes the proper values into
16697 # config.h.in to produce config.h.
16698
16699 # Create a delimiter string that does not exist in confdefs.h, to ease
16700 # handling of long lines.
16701 ac_delim='%!_!# '
16702 for ac_last_try in false false :; do
16703   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16704   if test -z "$ac_tt"; then
16705     break
16706   elif $ac_last_try; then
16707     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16708   else
16709     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16710   fi
16711 done
16712
16713 # For the awk script, D is an array of macro values keyed by name,
16714 # likewise P contains macro parameters if any.  Preserve backslash
16715 # newline sequences.
16716
16717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16718 sed -n '
16719 s/.\{148\}/&'"$ac_delim"'/g
16720 t rset
16721 :rset
16722 s/^[     ]*#[    ]*define[       ][      ]*/ /
16723 t def
16724 d
16725 :def
16726 s/\\$//
16727 t bsnl
16728 s/["\\]/\\&/g
16729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16730 D["\1"]=" \3"/p
16731 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16732 d
16733 :bsnl
16734 s/["\\]/\\&/g
16735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16736 D["\1"]=" \3\\\\\\n"\\/p
16737 t cont
16738 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16739 t cont
16740 d
16741 :cont
16742 n
16743 s/.\{148\}/&'"$ac_delim"'/g
16744 t clear
16745 :clear
16746 s/\\$//
16747 t bsnlc
16748 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16749 d
16750 :bsnlc
16751 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16752 b cont
16753 ' <confdefs.h | sed '
16754 s/'"$ac_delim"'/"\\\
16755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16756
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758   for (key in D) D_is_set[key] = 1
16759   FS = "\a"
16760 }
16761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16762   line = \$ 0
16763   split(line, arg, " ")
16764   if (arg[1] == "#") {
16765     defundef = arg[2]
16766     mac1 = arg[3]
16767   } else {
16768     defundef = substr(arg[1], 2)
16769     mac1 = arg[2]
16770   }
16771   split(mac1, mac2, "(") #)
16772   macro = mac2[1]
16773   prefix = substr(line, 1, index(line, defundef) - 1)
16774   if (D_is_set[macro]) {
16775     # Preserve the white space surrounding the "#".
16776     print prefix "define", macro P[macro] D[macro]
16777     next
16778   } else {
16779     # Replace #undef with comments.  This is necessary, for example,
16780     # in the case of _POSIX_SOURCE, which is predefined and required
16781     # on some systems where configure will not decide to define it.
16782     if (defundef == "undef") {
16783       print "/*", prefix defundef, macro, "*/"
16784       next
16785     }
16786   }
16787 }
16788 { print }
16789 _ACAWK
16790 _ACEOF
16791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16792   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16793 fi # test -n "$CONFIG_HEADERS"
16794
16795
16796 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16797 shift
16798 for ac_tag
16799 do
16800   case $ac_tag in
16801   :[FHLC]) ac_mode=$ac_tag; continue;;
16802   esac
16803   case $ac_mode$ac_tag in
16804   :[FHL]*:*);;
16805   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16806   :[FH]-) ac_tag=-:-;;
16807   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16808   esac
16809   ac_save_IFS=$IFS
16810   IFS=:
16811   set x $ac_tag
16812   IFS=$ac_save_IFS
16813   shift
16814   ac_file=$1
16815   shift
16816
16817   case $ac_mode in
16818   :L) ac_source=$1;;
16819   :[FH])
16820     ac_file_inputs=
16821     for ac_f
16822     do
16823       case $ac_f in
16824       -) ac_f="$ac_tmp/stdin";;
16825       *) # Look for the file first in the build tree, then in the source tree
16826          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16827          # because $ac_f cannot contain `:'.
16828          test -f "$ac_f" ||
16829            case $ac_f in
16830            [\\/$]*) false;;
16831            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16832            esac ||
16833            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16834       esac
16835       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16836       as_fn_append ac_file_inputs " '$ac_f'"
16837     done
16838
16839     # Let's still pretend it is `configure' which instantiates (i.e., don't
16840     # use $as_me), people would be surprised to read:
16841     #    /* config.h.  Generated by config.status.  */
16842     configure_input='Generated from '`
16843           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16844         `' by configure.'
16845     if test x"$ac_file" != x-; then
16846       configure_input="$ac_file.  $configure_input"
16847       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16848 $as_echo "$as_me: creating $ac_file" >&6;}
16849     fi
16850     # Neutralize special characters interpreted by sed in replacement strings.
16851     case $configure_input in #(
16852     *\&* | *\|* | *\\* )
16853        ac_sed_conf_input=`$as_echo "$configure_input" |
16854        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16855     *) ac_sed_conf_input=$configure_input;;
16856     esac
16857
16858     case $ac_tag in
16859     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16860       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16861     esac
16862     ;;
16863   esac
16864
16865   ac_dir=`$as_dirname -- "$ac_file" ||
16866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16867          X"$ac_file" : 'X\(//\)[^/]' \| \
16868          X"$ac_file" : 'X\(//\)$' \| \
16869          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16870 $as_echo X"$ac_file" |
16871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16872             s//\1/
16873             q
16874           }
16875           /^X\(\/\/\)[^/].*/{
16876             s//\1/
16877             q
16878           }
16879           /^X\(\/\/\)$/{
16880             s//\1/
16881             q
16882           }
16883           /^X\(\/\).*/{
16884             s//\1/
16885             q
16886           }
16887           s/.*/./; q'`
16888   as_dir="$ac_dir"; as_fn_mkdir_p
16889   ac_builddir=.
16890
16891 case "$ac_dir" in
16892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16893 *)
16894   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16895   # A ".." for each directory in $ac_dir_suffix.
16896   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16897   case $ac_top_builddir_sub in
16898   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16899   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16900   esac ;;
16901 esac
16902 ac_abs_top_builddir=$ac_pwd
16903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16904 # for backward compatibility:
16905 ac_top_builddir=$ac_top_build_prefix
16906
16907 case $srcdir in
16908   .)  # We are building in place.
16909     ac_srcdir=.
16910     ac_top_srcdir=$ac_top_builddir_sub
16911     ac_abs_top_srcdir=$ac_pwd ;;
16912   [\\/]* | ?:[\\/]* )  # Absolute name.
16913     ac_srcdir=$srcdir$ac_dir_suffix;
16914     ac_top_srcdir=$srcdir
16915     ac_abs_top_srcdir=$srcdir ;;
16916   *) # Relative name.
16917     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16918     ac_top_srcdir=$ac_top_build_prefix$srcdir
16919     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16920 esac
16921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16922
16923
16924   case $ac_mode in
16925   :F)
16926   #
16927   # CONFIG_FILE
16928   #
16929
16930   case $INSTALL in
16931   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16932   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16933   esac
16934 _ACEOF
16935
16936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 # If the template does not know about datarootdir, expand it.
16938 # FIXME: This hack should be removed a few years after 2.60.
16939 ac_datarootdir_hack=; ac_datarootdir_seen=
16940 ac_sed_dataroot='
16941 /datarootdir/ {
16942   p
16943   q
16944 }
16945 /@datadir@/p
16946 /@docdir@/p
16947 /@infodir@/p
16948 /@localedir@/p
16949 /@mandir@/p'
16950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16951 *datarootdir*) ac_datarootdir_seen=yes;;
16952 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16954 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16955 _ACEOF
16956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16957   ac_datarootdir_hack='
16958   s&@datadir@&$datadir&g
16959   s&@docdir@&$docdir&g
16960   s&@infodir@&$infodir&g
16961   s&@localedir@&$localedir&g
16962   s&@mandir@&$mandir&g
16963   s&\\\${datarootdir}&$datarootdir&g' ;;
16964 esac
16965 _ACEOF
16966
16967 # Neutralize VPATH when `$srcdir' = `.'.
16968 # Shell code in configure.ac might set extrasub.
16969 # FIXME: do we really want to maintain this feature?
16970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16971 ac_sed_extra="$ac_vpsub
16972 $extrasub
16973 _ACEOF
16974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16975 :t
16976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16977 s|@configure_input@|$ac_sed_conf_input|;t t
16978 s&@top_builddir@&$ac_top_builddir_sub&;t t
16979 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16980 s&@srcdir@&$ac_srcdir&;t t
16981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16982 s&@top_srcdir@&$ac_top_srcdir&;t t
16983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16984 s&@builddir@&$ac_builddir&;t t
16985 s&@abs_builddir@&$ac_abs_builddir&;t t
16986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16987 s&@INSTALL@&$ac_INSTALL&;t t
16988 $ac_datarootdir_hack
16989 "
16990 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16991 if $ac_cs_awk_getline; then
16992   $AWK -f "$ac_tmp/subs.awk"
16993 else
16994   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16995 fi \
16996   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16997
16998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16999   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17000   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17001       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17003 which seems to be undefined.  Please make sure it is defined" >&5
17004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17005 which seems to be undefined.  Please make sure it is defined" >&2;}
17006
17007   rm -f "$ac_tmp/stdin"
17008   case $ac_file in
17009   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17010   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17011   esac \
17012   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17013  ;;
17014   :H)
17015   #
17016   # CONFIG_HEADER
17017   #
17018   if test x"$ac_file" != x-; then
17019     {
17020       $as_echo "/* $configure_input  */" \
17021       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17022     } >"$ac_tmp/config.h" \
17023       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17024     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17025       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17026 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17027     else
17028       rm -f "$ac_file"
17029       mv "$ac_tmp/config.h" "$ac_file" \
17030         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17031     fi
17032   else
17033     $as_echo "/* $configure_input  */" \
17034       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17035       || as_fn_error $? "could not create -" "$LINENO" 5
17036   fi
17037  ;;
17038   :L)
17039   #
17040   # CONFIG_LINK
17041   #
17042
17043   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17044     :
17045   else
17046     # Prefer the file from the source tree if names are identical.
17047     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17048       ac_source=$srcdir/$ac_source
17049     fi
17050
17051     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17052 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17053
17054     if test ! -r "$ac_source"; then
17055       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17056     fi
17057     rm -f "$ac_file"
17058
17059     # Try a relative symlink, then a hard link, then a copy.
17060     case $ac_source in
17061     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17062         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17063     esac
17064     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17065       ln "$ac_source" "$ac_file" 2>/dev/null ||
17066       cp -p "$ac_source" "$ac_file" ||
17067       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17068   fi
17069  ;;
17070   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17071 $as_echo "$as_me: executing $ac_file commands" >&6;}
17072  ;;
17073   esac
17074
17075
17076   case $ac_file$ac_mode in
17077     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17078     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17079 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17080     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17081 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17082     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17083 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17084     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17085 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17086     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17087 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17088     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17089 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17090     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17091 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17092     "Makefile":C) wine_fn_output_makefile Makefile ;;
17093
17094   esac
17095 done # for ac_tag
17096
17097
17098 as_fn_exit 0
17099 _ACEOF
17100 ac_clean_files=$ac_clean_files_save
17101
17102 test $ac_write_fail = 0 ||
17103   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17104
17105
17106 # configure is writing to config.log, and then calls config.status.
17107 # config.status does its own redirection, appending to config.log.
17108 # Unfortunately, on DOS this fails, as config.log is still kept open
17109 # by configure, so config.status won't be able to write to it; its
17110 # output is simply discarded.  So we exec the FD to /dev/null,
17111 # effectively closing config.log, so it can be properly (re)opened and
17112 # appended to by config.status.  When coming back to configure, we
17113 # need to make the FD available again.
17114 if test "$no_create" != yes; then
17115   ac_cs_success=:
17116   ac_config_status_args=
17117   test "$silent" = yes &&
17118     ac_config_status_args="$ac_config_status_args --quiet"
17119   exec 5>/dev/null
17120   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17121   exec 5>>config.log
17122   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17123   # would make configure fail if this is the last instruction.
17124   $ac_cs_success || as_fn_exit 1
17125 fi
17126 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17127   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17128 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17129 fi
17130
17131
17132 if test "$no_create" = "yes"
17133 then
17134   exit 0
17135 fi
17136
17137 ac_save_IFS="$IFS"
17138 if test "x$wine_notices != "x; then
17139     echo >&6
17140     IFS="|"
17141     for msg in $wine_notices; do
17142         IFS="$ac_save_IFS"
17143         if test -n "$msg"; then
17144             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17145 $as_echo "$as_me: $msg" >&6;}
17146         fi
17147     done
17148 fi
17149 IFS="|"
17150 for msg in $wine_warnings; do
17151     IFS="$ac_save_IFS"
17152     if test -n "$msg"; then
17153         echo >&2
17154         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17155 $as_echo "$as_me: WARNING: $msg" >&2;}
17156     fi
17157 done
17158 IFS="$ac_save_IFS"
17159
17160 echo "
17161 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17162 " >&6
17163