configure: Check if version of msgfmt (from gettext) is recent enough.
[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.4.
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.4'
564 PACKAGE_STRING='Wine 1.4'
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 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 APPLICATIONSERVICESLIB
670 IOKITLIB
671 COREFOUNDATIONLIB
672 DLLWRAP
673 DLLTOOL
674 LDD
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
683 CPP
684 OPENGL_LIBS
685 XLIB
686 MAINTAINER_MODE
687 MSGFMT
688 ICOTOOL
689 CONVERT
690 RSVG
691 PKG_CONFIG
692 FONTFORGE
693 LINTFLAGS
694 LINT
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LDCONFIG
699 EGREP
700 GREP
701 LN_S
702 RANLIB
703 ARFLAGS
704 ac_ct_AR
705 AR
706 BISON
707 FLEX
708 TOOLSDIR
709 WOW64_DISABLE
710 TARGETFLAGS
711 CPPBIN
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 SET_MAKE
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_dbus
787 with_fontconfig
788 with_freetype
789 with_gettext
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jpeg
798 with_ldap
799 with_mpg123
800 with_openal
801 with_opencl
802 with_opengl
803 with_openssl
804 with_oss
805 with_png
806 with_pthread
807 with_sane
808 with_tiff
809 with_v4l
810 with_xcomposite
811 with_xcursor
812 with_xinerama
813 with_xinput
814 with_xinput2
815 with_xml
816 with_xrandr
817 with_xrender
818 with_xshape
819 with_xslt
820 with_xxf86vm
821 with_zlib
822 with_wine_tools
823 with_wine64
824 enable_largefile
825 with_x
826 '
827       ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CXX
836 CXXFLAGS
837 CCC
838 CPP
839 XMKMF'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894   # If the previous option needs an argument, assign it.
895   if test -n "$ac_prev"; then
896     eval $ac_prev=\$ac_option
897     ac_prev=
898     continue
899   fi
900
901   case $ac_option in
902   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903   *=)   ac_optarg= ;;
904   *)    ac_optarg=yes ;;
905   esac
906
907   # Accept the important Cygnus configure options, so we can diagnose typos.
908
909   case $ac_dashdash$ac_option in
910   --)
911     ac_dashdash=yes ;;
912
913   -bindir | --bindir | --bindi | --bind | --bin | --bi)
914     ac_prev=bindir ;;
915   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916     bindir=$ac_optarg ;;
917
918   -build | --build | --buil | --bui | --bu)
919     ac_prev=build_alias ;;
920   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921     build_alias=$ac_optarg ;;
922
923   -cache-file | --cache-file | --cache-fil | --cache-fi \
924   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925     ac_prev=cache_file ;;
926   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928     cache_file=$ac_optarg ;;
929
930   --config-cache | -C)
931     cache_file=config.cache ;;
932
933   -datadir | --datadir | --datadi | --datad)
934     ac_prev=datadir ;;
935   -datadir=* | --datadir=* | --datadi=* | --datad=*)
936     datadir=$ac_optarg ;;
937
938   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939   | --dataroo | --dataro | --datar)
940     ac_prev=datarootdir ;;
941   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943     datarootdir=$ac_optarg ;;
944
945   -disable-* | --disable-*)
946     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949       as_fn_error $? "invalid feature name: $ac_useropt"
950     ac_useropt_orig=$ac_useropt
951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952     case $ac_user_opts in
953       *"
954 "enable_$ac_useropt"
955 "*) ;;
956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957          ac_unrecognized_sep=', ';;
958     esac
959     eval enable_$ac_useropt=no ;;
960
961   -docdir | --docdir | --docdi | --doc | --do)
962     ac_prev=docdir ;;
963   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964     docdir=$ac_optarg ;;
965
966   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967     ac_prev=dvidir ;;
968   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969     dvidir=$ac_optarg ;;
970
971   -enable-* | --enable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error $? "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179       as_fn_error $? "invalid package name: $ac_useropt"
1180     ac_useropt_orig=$ac_useropt
1181     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182     case $ac_user_opts in
1183       *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187          ac_unrecognized_sep=', ';;
1188     esac
1189     eval with_$ac_useropt=\$ac_optarg ;;
1190
1191   -without-* | --without-*)
1192     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195       as_fn_error $? "invalid package name: $ac_useropt"
1196     ac_useropt_orig=$ac_useropt
1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198     case $ac_user_opts in
1199       *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203          ac_unrecognized_sep=', ';;
1204     esac
1205     eval with_$ac_useropt=no ;;
1206
1207   --x)
1208     # Obsolete; use --with-x.
1209     with_x=yes ;;
1210
1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212   | --x-incl | --x-inc | --x-in | --x-i)
1213     ac_prev=x_includes ;;
1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216     x_includes=$ac_optarg ;;
1217
1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220     ac_prev=x_libraries ;;
1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223     x_libraries=$ac_optarg ;;
1224
1225   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1227     ;;
1228
1229   *=*)
1230     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231     # Reject names that are not valid shell variable names.
1232     case $ac_envvar in #(
1233       '' | [0-9]* | *[!_$as_cr_alnum]* )
1234       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235     esac
1236     eval $ac_envvar=\$ac_optarg
1237     export $ac_envvar ;;
1238
1239   *)
1240     # FIXME: should be removed in autoconf 3.0.
1241     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245     ;;
1246
1247   esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252   as_fn_error $? "missing argument to $ac_option"
1253 fi
1254
1255 if test -n "$ac_unrecognized_opts"; then
1256   case $enable_option_checking in
1257     no) ;;
1258     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260   esac
1261 fi
1262
1263 # Check all directory arguments for consistency.
1264 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265                 datadir sysconfdir sharedstatedir localstatedir includedir \
1266                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267                 libdir localedir mandir
1268 do
1269   eval ac_val=\$$ac_var
1270   # Remove trailing slashes.
1271   case $ac_val in
1272     */ )
1273       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274       eval $ac_var=\$ac_val;;
1275   esac
1276   # Be sure to have absolute directory names.
1277   case $ac_val in
1278     [\\/$]* | ?:[\\/]* )  continue;;
1279     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280   esac
1281   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293   if test "x$build_alias" = x; then
1294     cross_compiling=maybe
1295     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296     If a cross compiler is detected then cross compile mode will be used" >&2
1297   elif test "x$build_alias" != "x$host_alias"; then
1298     cross_compiling=yes
1299   fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311   as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313   as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318   ac_srcdir_defaulted=yes
1319   # Try the directory containing this script, then the parent directory.
1320   ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322          X"$as_myself" : 'X\(//\)[^/]' \| \
1323          X"$as_myself" : 'X\(//\)$' \| \
1324          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)[^/].*/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\).*/{
1339             s//\1/
1340             q
1341           }
1342           s/.*/./; q'`
1343   srcdir=$ac_confdir
1344   if test ! -r "$srcdir/$ac_unique_file"; then
1345     srcdir=..
1346   fi
1347 else
1348   ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357         pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360   srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_env_${ac_var}_value=\$${ac_var}
1371   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379   # Omit some internal or obsolete options to make the list less imposing.
1380   # This message is too long to be a string in the A/UX 3.1 sh.
1381   cat <<_ACEOF
1382 \`configure' configures Wine 1.4 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392   -h, --help              display this help and exit
1393       --help=short        display options specific to this package
1394       --help=recursive    display the short help of all the included packages
1395   -V, --version           display version information and exit
1396   -q, --quiet, --silent   do not print \`checking ...' messages
1397       --cache-file=FILE   cache test results in FILE [disabled]
1398   -C, --config-cache      alias for \`--cache-file=config.cache'
1399   -n, --no-create         do not create output files
1400       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403   --prefix=PREFIX         install architecture-independent files in PREFIX
1404                           [$ac_default_prefix]
1405   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                           [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416   --bindir=DIR            user executables [EPREFIX/bin]
1417   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418   --libexecdir=DIR        program executables [EPREFIX/libexec]
1419   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422   --libdir=DIR            object code libraries [EPREFIX/lib]
1423   --includedir=DIR        C header files [PREFIX/include]
1424   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427   --infodir=DIR           info documentation [DATAROOTDIR/info]
1428   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429   --mandir=DIR            man documentation [DATAROOTDIR/man]
1430   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1431   --htmldir=DIR           html documentation [DOCDIR]
1432   --dvidir=DIR            dvi documentation [DOCDIR]
1433   --pdfdir=DIR            pdf documentation [DOCDIR]
1434   --psdir=DIR             ps documentation [DOCDIR]
1435 _ACEOF
1436
1437   cat <<\_ACEOF
1438
1439 X features:
1440   --x-includes=DIR    X include files are in DIR
1441   --x-libraries=DIR   X library files are in DIR
1442
1443 System types:
1444   --build=BUILD     configure for building on BUILD [guessed]
1445   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450   case $ac_init_help in
1451      short | recursive ) echo "Configuration of Wine 1.4:";;
1452    esac
1453   cat <<\_ACEOF
1454
1455 Optional Features:
1456   --disable-option-checking  ignore unrecognized --enable/--with options
1457   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459   --disable-win16         do not include Win16 support
1460   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1461                           binaries)
1462   --disable-tests         do not build the regression tests
1463   --enable-maintainer-mode
1464                           enable maintainer-specific build rules
1465   --disable-largefile     omit support for large files
1466
1467 Optional Packages:
1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470   --without-alsa          do not use the Alsa sound support
1471   --without-capi          do not use CAPI (ISDN support)
1472   --without-cms           do not use CMS (color management support)
1473   --without-coreaudio     do not use the CoreAudio sound support
1474   --without-cups          do not use CUPS
1475   --without-curses        do not use (n)curses
1476   --without-dbus          do not use DBus (dynamic device support)
1477   --without-fontconfig    do not use fontconfig
1478   --without-freetype      do not use the FreeType library
1479   --without-gettext       do not use gettext
1480   --with-gettextpo        use the GetTextPO library to rebuild po files
1481   --without-gphoto        do not use gphoto (Digital Camera support)
1482   --without-glu           do not use the GLU library
1483   --without-gnutls        do not use GnuTLS (schannel support)
1484   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1485   --without-gstreamer     do not use GStreamer (codecs support)
1486   --without-hal           do not use HAL (dynamic device support)
1487   --without-jpeg          do not use JPEG
1488   --without-ldap          do not use LDAP
1489   --without-mpg123        do not use the mpg123 library
1490   --without-openal        do not use OpenAL
1491   --without-opencl        do not use OpenCL
1492   --without-opengl        do not use OpenGL
1493   --without-openssl       do not use OpenSSL
1494   --without-oss           do not use the OSS sound support
1495   --without-png           do not use PNG
1496   --without-pthread       do not use the pthread library
1497   --without-sane          do not use SANE (scanner support)
1498   --without-tiff          do not use TIFF
1499   --without-v4l           do not use v4l1 (v4l support)
1500   --without-xcomposite    do not use the Xcomposite extension
1501   --without-xcursor       do not use the Xcursor extension
1502   --without-xinerama      do not use Xinerama (multi-monitor support)
1503   --without-xinput        do not use the Xinput extension
1504   --without-xinput2       do not use the Xinput 2 extension
1505   --without-xml           do not use XML
1506   --without-xrandr        do not use Xrandr (resolution changes)
1507   --without-xrender       do not use the Xrender extension
1508   --without-xshape        do not use the Xshape extension
1509   --without-xslt          do not use XSLT
1510   --without-xxf86vm       do not use XFree video mode extension
1511   --without-zlib          do not use Zlib (data compression)
1512   --with-wine-tools=DIR   use Wine tools from directory DIR
1513   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1514   --with-x                use the X Window System
1515
1516 Some influential environment variables:
1517   CC          C compiler command
1518   CFLAGS      C compiler flags
1519   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520               nonstandard directory <lib dir>
1521   LIBS        libraries to pass to the linker, e.g. -l<library>
1522   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CXX         C++ compiler command
1525   CXXFLAGS    C++ compiler flags
1526   CPP         C preprocessor
1527   XMKMF       Path to xmkmf, Makefile generator for X Window System
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <wine-devel@winehq.org>.
1533 Wine home page: <http://www.winehq.org>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539   # If there are subdirs, report their specific --help.
1540   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541     test -d "$ac_dir" ||
1542       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543       continue
1544     ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550   # A ".." for each directory in $ac_dir_suffix.
1551   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552   case $ac_top_builddir_sub in
1553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555   esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563   .)  # We are building in place.
1564     ac_srcdir=.
1565     ac_top_srcdir=$ac_top_builddir_sub
1566     ac_abs_top_srcdir=$ac_pwd ;;
1567   [\\/]* | ?:[\\/]* )  # Absolute name.
1568     ac_srcdir=$srcdir$ac_dir_suffix;
1569     ac_top_srcdir=$srcdir
1570     ac_abs_top_srcdir=$srcdir ;;
1571   *) # Relative name.
1572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573     ac_top_srcdir=$ac_top_build_prefix$srcdir
1574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578     cd "$ac_dir" || { ac_status=$?; continue; }
1579     # Check for guested configure.
1580     if test -f "$ac_srcdir/configure.gnu"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583     elif test -f "$ac_srcdir/configure"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure" --help=recursive
1586     else
1587       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588     fi || ac_status=$?
1589     cd "$ac_pwd" || { ac_status=$?; break; }
1590   done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595   cat <<\_ACEOF
1596 Wine configure 1.4
1597 generated by GNU Autoconf 2.68
1598
1599 Copyright (C) 2010 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   rm -f conftest.$ac_objext
1617   if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620   *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624   (eval "$ac_compile") 2>conftest.err
1625   ac_status=$?
1626   if test -s conftest.err; then
1627     grep -v '^ *+' conftest.err >conftest.er1
1628     cat conftest.er1 >&5
1629     mv -f conftest.er1 conftest.err
1630   fi
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && {
1633          test -z "$ac_c_werror_flag" ||
1634          test ! -s conftest.err
1635        } && test -s conftest.$ac_objext; then :
1636   ac_retval=0
1637 else
1638   $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641         ac_retval=1
1642 fi
1643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644   as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_compile
1647
1648 # ac_fn_cxx_try_compile LINENO
1649 # ----------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_cxx_try_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext
1655   if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_compile") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_cxx_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest.$ac_objext; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679         ac_retval=1
1680 fi
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_cxx_try_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext conftest$ac_exeext
1693   if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_link") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest$ac_exeext && {
1712          test "$cross_compiling" = yes ||
1713          $as_test_x conftest$ac_exeext
1714        }; then :
1715   ac_retval=0
1716 else
1717   $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720         ac_retval=1
1721 fi
1722   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724   # interfere with the next link command; also delete a directory that is
1725   # left behind by Apple's compiler.  We do this before executing the actions.
1726   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728   as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } > conftest.i && {
1754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762     ac_retval=1
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_cpp
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if eval \${$3+:} false; then :
1778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781   $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787   # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h.  */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796   ac_header_compiler=yes
1797 else
1798   ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812   ac_header_preproc=yes
1813 else
1814   ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So?  What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822   yes:no: )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827     ;;
1828   no:yes:* )
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ( $as_echo "## ------------------------------------ ##
1840 ## Report this to wine-devel@winehq.org ##
1841 ## ------------------------------------ ##"
1842      ) | sed "s/^/$as_me: WARNING:     /" >&2
1843     ;;
1844 esac
1845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848   $as_echo_n "(cached) " >&6
1849 else
1850   eval "$3=\$ac_header_compiler"
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 fi
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_mongrel
1859
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_link") 2>&5
1875   ac_status=$?
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878   { { case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_try") 2>&5
1885   ac_status=$?
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; }; }; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: program exited with status $ac_status" >&5
1891        $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894        ac_retval=$ac_status
1895 fi
1896   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898   as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_run
1901
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912   $as_echo_n "(cached) " >&6
1913 else
1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   eval "$3=yes"
1921 else
1922   eval "$3=no"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_compile
1932
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1948 #define $2 innocuous_$2
1949
1950 /* System header to define __stub macros and hopefully few prototypes,
1951     which can conflict with char $2 (); below.
1952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953     <limits.h> exists even on freestanding compilers.  */
1954
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1960
1961 #undef $2
1962
1963 /* Override any GCC internal prototype to avoid an error.
1964    Use char because int might match the return type of a GCC
1965    builtin and then its argument prototype would still apply.  */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971     to always fail with ENOSYS.  Some functions are actually named
1972     something starting with __ and the normal name is an alias.  */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1976
1977 int
1978 main ()
1979 {
1980 return $2 ();
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986   eval "$3=yes"
1987 else
1988   eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext \
1991     conftest$ac_exeext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_func
1999
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval \${$4+:} false; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 $5
2015 int
2016 main ()
2017 {
2018 static $2 ac_aggr;
2019 if (ac_aggr.$3)
2020 return 0;
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   eval "$4=yes"
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $5
2031 int
2032 main ()
2033 {
2034 static $2 ac_aggr;
2035 if (sizeof ac_aggr.$3)
2036 return 0;
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   eval "$4=yes"
2043 else
2044   eval "$4=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$4
2051                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_member
2056
2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058 # -------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_c_check_type ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   eval "$3=no"
2070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h.  */
2072 $4
2073 int
2074 main ()
2075 {
2076 if (sizeof ($2))
2077          return 0;
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 int
2087 main ()
2088 {
2089 if (sizeof (($2)))
2090             return 0;
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096
2097 else
2098   eval "$3=yes"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_c_check_type
2110 cat >config.log <<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2113
2114 It was created by Wine $as_me 1.4, which was
2115 generated by GNU Autoconf 2.68.  Invocation command line was
2116
2117   $ $0 $@
2118
2119 _ACEOF
2120 exec 5>>config.log
2121 {
2122 cat <<_ASUNAME
2123 ## --------- ##
2124 ## Platform. ##
2125 ## --------- ##
2126
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2135
2136 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2137 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2140 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2141 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2142 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2143
2144 _ASUNAME
2145
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151     $as_echo "PATH: $as_dir"
2152   done
2153 IFS=$as_save_IFS
2154
2155 } >&5
2156
2157 cat >&5 <<_ACEOF
2158
2159
2160 ## ----------- ##
2161 ## Core tests. ##
2162 ## ----------- ##
2163
2164 _ACEOF
2165
2166
2167 # Keep a trace of the command line.
2168 # Strip out --no-create and --no-recursion so they do not pile up.
2169 # Strip out --silent because we don't want to record it for future runs.
2170 # Also quote any args containing shell meta-characters.
2171 # Make two passes to allow for proper duplicate-argument suppression.
2172 ac_configure_args=
2173 ac_configure_args0=
2174 ac_configure_args1=
2175 ac_must_keep_next=false
2176 for ac_pass in 1 2
2177 do
2178   for ac_arg
2179   do
2180     case $ac_arg in
2181     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2182     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2183     | -silent | --silent | --silen | --sile | --sil)
2184       continue ;;
2185     *\'*)
2186       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2187     esac
2188     case $ac_pass in
2189     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2190     2)
2191       as_fn_append ac_configure_args1 " '$ac_arg'"
2192       if test $ac_must_keep_next = true; then
2193         ac_must_keep_next=false # Got value, back to normal.
2194       else
2195         case $ac_arg in
2196           *=* | --config-cache | -C | -disable-* | --disable-* \
2197           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2198           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2199           | -with-* | --with-* | -without-* | --without-* | --x)
2200             case "$ac_configure_args0 " in
2201               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2202             esac
2203             ;;
2204           -* ) ac_must_keep_next=true ;;
2205         esac
2206       fi
2207       as_fn_append ac_configure_args " '$ac_arg'"
2208       ;;
2209     esac
2210   done
2211 done
2212 { ac_configure_args0=; unset ac_configure_args0;}
2213 { ac_configure_args1=; unset ac_configure_args1;}
2214
2215 # When interrupted or exit'd, cleanup temporary files, and complete
2216 # config.log.  We remove comments because anyway the quotes in there
2217 # would cause problems or look ugly.
2218 # WARNING: Use '\'' to represent an apostrophe within the trap.
2219 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2220 trap 'exit_status=$?
2221   # Save into config.log some information that might help in debugging.
2222   {
2223     echo
2224
2225     $as_echo "## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##"
2228     echo
2229     # The following way of writing the cache mishandles newlines in values,
2230 (
2231   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232     eval ac_val=\$$ac_var
2233     case $ac_val in #(
2234     *${as_nl}*)
2235       case $ac_var in #(
2236       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238       esac
2239       case $ac_var in #(
2240       _ | IFS | as_nl) ;; #(
2241       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242       *) { eval $ac_var=; unset $ac_var;} ;;
2243       esac ;;
2244     esac
2245   done
2246   (set) 2>&1 |
2247     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248     *${as_nl}ac_space=\ *)
2249       sed -n \
2250         "s/'\''/'\''\\\\'\'''\''/g;
2251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252       ;; #(
2253     *)
2254       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255       ;;
2256     esac |
2257     sort
2258 )
2259     echo
2260
2261     $as_echo "## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##"
2264     echo
2265     for ac_var in $ac_subst_vars
2266     do
2267       eval ac_val=\$$ac_var
2268       case $ac_val in
2269       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270       esac
2271       $as_echo "$ac_var='\''$ac_val'\''"
2272     done | sort
2273     echo
2274
2275     if test -n "$ac_subst_files"; then
2276       $as_echo "## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##"
2279       echo
2280       for ac_var in $ac_subst_files
2281       do
2282         eval ac_val=\$$ac_var
2283         case $ac_val in
2284         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285         esac
2286         $as_echo "$ac_var='\''$ac_val'\''"
2287       done | sort
2288       echo
2289     fi
2290
2291     if test -s confdefs.h; then
2292       $as_echo "## ----------- ##
2293 ## confdefs.h. ##
2294 ## ----------- ##"
2295       echo
2296       cat confdefs.h
2297       echo
2298     fi
2299     test "$ac_signal" != 0 &&
2300       $as_echo "$as_me: caught signal $ac_signal"
2301     $as_echo "$as_me: exit $exit_status"
2302   } >&5
2303   rm -f core *.core core.conftest.* &&
2304     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2305     exit $exit_status
2306 ' 0
2307 for ac_signal in 1 2 13 15; do
2308   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2309 done
2310 ac_signal=0
2311
2312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2313 rm -f -r conftest* confdefs.h
2314
2315 $as_echo "/* confdefs.h */" > confdefs.h
2316
2317 # Predefined preprocessor variables.
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_NAME "$PACKAGE_NAME"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_STRING "$PACKAGE_STRING"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_URL "$PACKAGE_URL"
2341 _ACEOF
2342
2343
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer an explicitly selected file to automatically selected ones.
2346 ac_site_file1=NONE
2347 ac_site_file2=NONE
2348 if test -n "$CONFIG_SITE"; then
2349   # We do not want a PATH search for config.site.
2350   case $CONFIG_SITE in #((
2351     -*)  ac_site_file1=./$CONFIG_SITE;;
2352     */*) ac_site_file1=$CONFIG_SITE;;
2353     *)   ac_site_file1=./$CONFIG_SITE;;
2354   esac
2355 elif test "x$prefix" != xNONE; then
2356   ac_site_file1=$prefix/share/config.site
2357   ac_site_file2=$prefix/etc/config.site
2358 else
2359   ac_site_file1=$ac_default_prefix/share/config.site
2360   ac_site_file2=$ac_default_prefix/etc/config.site
2361 fi
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2363 do
2364   test "x$ac_site_file" = xNONE && continue
2365   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2366     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368     sed 's/^/| /' "$ac_site_file" >&5
2369     . "$ac_site_file" \
2370       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $? "failed to load site script $ac_site_file
2373 See \`config.log' for more details" "$LINENO" 5; }
2374   fi
2375 done
2376
2377 if test -r "$cache_file"; then
2378   # Some versions of bash will fail to source /dev/null (special files
2379   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2380   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2383     case $cache_file in
2384       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385       *)                      . "./$cache_file";;
2386     esac
2387   fi
2388 else
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2391   >$cache_file
2392 fi
2393
2394 # Check that the precious variables saved in the cache have kept the same
2395 # value.
2396 ac_cache_corrupted=false
2397 for ac_var in $ac_precious_vars; do
2398   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399   eval ac_new_set=\$ac_env_${ac_var}_set
2400   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401   eval ac_new_val=\$ac_env_${ac_var}_value
2402   case $ac_old_set,$ac_new_set in
2403     set,)
2404       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2406       ac_cache_corrupted=: ;;
2407     ,set)
2408       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2410       ac_cache_corrupted=: ;;
2411     ,);;
2412     *)
2413       if test "x$ac_old_val" != "x$ac_new_val"; then
2414         # differences in whitespace do not lead to failure.
2415         ac_old_val_w=`echo x $ac_old_val`
2416         ac_new_val_w=`echo x $ac_new_val`
2417         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2418           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2419 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2420           ac_cache_corrupted=:
2421         else
2422           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2423 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2424           eval $ac_var=\$ac_old_val
2425         fi
2426         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2427 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2428         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2429 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2430       fi;;
2431   esac
2432   # Pass precious variables to config.status.
2433   if test "$ac_new_set" = set; then
2434     case $ac_new_val in
2435     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2436     *) ac_arg=$ac_var=$ac_new_val ;;
2437     esac
2438     case " $ac_configure_args " in
2439       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2440       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2441     esac
2442   fi
2443 done
2444 if $ac_cache_corrupted; then
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2448 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2449   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2450 fi
2451 ## -------------------- ##
2452 ## Main body of script. ##
2453 ## -------------------- ##
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460
2461
2462
2463 ac_config_headers="$ac_config_headers include/config.h"
2464
2465 ac_aux_dir=
2466 for ac_dir in tools "$srcdir"/tools; do
2467   if test -f "$ac_dir/install-sh"; then
2468     ac_aux_dir=$ac_dir
2469     ac_install_sh="$ac_aux_dir/install-sh -c"
2470     break
2471   elif test -f "$ac_dir/install.sh"; then
2472     ac_aux_dir=$ac_dir
2473     ac_install_sh="$ac_aux_dir/install.sh -c"
2474     break
2475   elif test -f "$ac_dir/shtool"; then
2476     ac_aux_dir=$ac_dir
2477     ac_install_sh="$ac_aux_dir/shtool install -c"
2478     break
2479   fi
2480 done
2481 if test -z "$ac_aux_dir"; then
2482   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2483 fi
2484
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2490 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2491 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2492
2493
2494
2495
2496
2497 # Check whether --enable-win16 was given.
2498 if test "${enable_win16+set}" = set; then :
2499   enableval=$enable_win16;
2500 fi
2501
2502 # Check whether --enable-win64 was given.
2503 if test "${enable_win64+set}" = set; then :
2504   enableval=$enable_win64;
2505 fi
2506
2507 # Check whether --enable-tests was given.
2508 if test "${enable_tests+set}" = set; then :
2509   enableval=$enable_tests;
2510 fi
2511
2512 # Check whether --enable-maintainer-mode was given.
2513 if test "${enable_maintainer_mode+set}" = set; then :
2514   enableval=$enable_maintainer_mode;
2515 fi
2516
2517
2518
2519 # Check whether --with-alsa was given.
2520 if test "${with_alsa+set}" = set; then :
2521   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2522 fi
2523
2524
2525 # Check whether --with-capi was given.
2526 if test "${with_capi+set}" = set; then :
2527   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2528 fi
2529
2530
2531 # Check whether --with-cms was given.
2532 if test "${with_cms+set}" = set; then :
2533   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2534 fi
2535
2536
2537 # Check whether --with-coreaudio was given.
2538 if test "${with_coreaudio+set}" = set; then :
2539   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2540 fi
2541
2542
2543 # Check whether --with-cups was given.
2544 if test "${with_cups+set}" = set; then :
2545   withval=$with_cups;
2546 fi
2547
2548
2549 # Check whether --with-curses was given.
2550 if test "${with_curses+set}" = set; then :
2551   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2552 fi
2553
2554
2555 # Check whether --with-dbus was given.
2556 if test "${with_dbus+set}" = set; then :
2557   withval=$with_dbus;
2558 fi
2559
2560
2561 # Check whether --with-fontconfig was given.
2562 if test "${with_fontconfig+set}" = set; then :
2563   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2564 fi
2565
2566
2567 # Check whether --with-freetype was given.
2568 if test "${with_freetype+set}" = set; then :
2569   withval=$with_freetype;
2570 fi
2571
2572
2573 # Check whether --with-gettext was given.
2574 if test "${with_gettext+set}" = set; then :
2575   withval=$with_gettext;
2576 fi
2577
2578
2579 # Check whether --with-gettextpo was given.
2580 if test "${with_gettextpo+set}" = set; then :
2581   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2582 fi
2583
2584
2585 # Check whether --with-gphoto was given.
2586 if test "${with_gphoto+set}" = set; then :
2587   withval=$with_gphoto;
2588 fi
2589
2590
2591 # Check whether --with-glu was given.
2592 if test "${with_glu+set}" = set; then :
2593   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2594 fi
2595
2596
2597 # Check whether --with-gnutls was given.
2598 if test "${with_gnutls+set}" = set; then :
2599   withval=$with_gnutls;
2600 fi
2601
2602
2603 # Check whether --with-gsm was given.
2604 if test "${with_gsm+set}" = set; then :
2605   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2606 fi
2607
2608
2609 # Check whether --with-gstreamer was given.
2610 if test "${with_gstreamer+set}" = set; then :
2611   withval=$with_gstreamer;
2612 fi
2613
2614
2615 # Check whether --with-hal was given.
2616 if test "${with_hal+set}" = set; then :
2617   withval=$with_hal;
2618 fi
2619
2620
2621 # Check whether --with-jpeg was given.
2622 if test "${with_jpeg+set}" = set; then :
2623   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2624 fi
2625
2626
2627 # Check whether --with-ldap was given.
2628 if test "${with_ldap+set}" = set; then :
2629   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2630 fi
2631
2632
2633 # Check whether --with-mpg123 was given.
2634 if test "${with_mpg123+set}" = set; then :
2635   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2636 fi
2637
2638
2639 # Check whether --with-openal was given.
2640 if test "${with_openal+set}" = set; then :
2641   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2642 fi
2643
2644
2645 # Check whether --with-opencl was given.
2646 if test "${with_opencl+set}" = set; then :
2647   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2648 fi
2649
2650
2651 # Check whether --with-opengl was given.
2652 if test "${with_opengl+set}" = set; then :
2653   withval=$with_opengl;
2654 fi
2655
2656
2657 # Check whether --with-openssl was given.
2658 if test "${with_openssl+set}" = set; then :
2659   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2660 fi
2661
2662
2663 # Check whether --with-oss was given.
2664 if test "${with_oss+set}" = set; then :
2665   withval=$with_oss;
2666 fi
2667
2668
2669 # Check whether --with-png was given.
2670 if test "${with_png+set}" = set; then :
2671   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2672 fi
2673
2674
2675 # Check whether --with-pthread was given.
2676 if test "${with_pthread+set}" = set; then :
2677   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2678 fi
2679
2680
2681 # Check whether --with-sane was given.
2682 if test "${with_sane+set}" = set; then :
2683   withval=$with_sane;
2684 fi
2685
2686
2687 # Check whether --with-tiff was given.
2688 if test "${with_tiff+set}" = set; then :
2689   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2690 fi
2691
2692
2693 # Check whether --with-v4l was given.
2694 if test "${with_v4l+set}" = set; then :
2695   withval=$with_v4l;
2696 fi
2697
2698
2699 # Check whether --with-xcomposite was given.
2700 if test "${with_xcomposite+set}" = set; then :
2701   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2702 fi
2703
2704
2705 # Check whether --with-xcursor was given.
2706 if test "${with_xcursor+set}" = set; then :
2707   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2708 fi
2709
2710
2711 # Check whether --with-xinerama was given.
2712 if test "${with_xinerama+set}" = set; then :
2713   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2714 fi
2715
2716
2717 # Check whether --with-xinput was given.
2718 if test "${with_xinput+set}" = set; then :
2719   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2720 fi
2721
2722
2723 # Check whether --with-xinput2 was given.
2724 if test "${with_xinput2+set}" = set; then :
2725   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2726 fi
2727
2728
2729 # Check whether --with-xml was given.
2730 if test "${with_xml+set}" = set; then :
2731   withval=$with_xml;
2732 fi
2733
2734
2735 # Check whether --with-xrandr was given.
2736 if test "${with_xrandr+set}" = set; then :
2737   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2738 fi
2739
2740
2741 # Check whether --with-xrender was given.
2742 if test "${with_xrender+set}" = set; then :
2743   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2744 fi
2745
2746
2747 # Check whether --with-xshape was given.
2748 if test "${with_xshape+set}" = set; then :
2749   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2750 fi
2751
2752
2753 # Check whether --with-xslt was given.
2754 if test "${with_xslt+set}" = set; then :
2755   withval=$with_xslt;
2756 fi
2757
2758
2759 # Check whether --with-xxf86vm was given.
2760 if test "${with_xxf86vm+set}" = set; then :
2761   withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2762 fi
2763
2764
2765 # Check whether --with-zlib was given.
2766 if test "${with_zlib+set}" = set; then :
2767   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2768 fi
2769
2770
2771
2772 # Check whether --with-wine-tools was given.
2773 if test "${with_wine_tools+set}" = set; then :
2774   withval=$with_wine_tools;
2775 fi
2776
2777
2778 # Check whether --with-wine64 was given.
2779 if test "${with_wine64+set}" = set; then :
2780   withval=$with_wine64;
2781 fi
2782
2783
2784 # Make sure we can run config.sub.
2785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2786   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2789 $as_echo_n "checking build system type... " >&6; }
2790 if ${ac_cv_build+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   ac_build_alias=$build_alias
2794 test "x$ac_build_alias" = x &&
2795   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2796 test "x$ac_build_alias" = x &&
2797   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2799   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2803 $as_echo "$ac_cv_build" >&6; }
2804 case $ac_cv_build in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2807 esac
2808 build=$ac_cv_build
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_build
2811 shift
2812 build_cpu=$1
2813 build_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 build_os=$*
2818 IFS=$ac_save_IFS
2819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2820
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2823 $as_echo_n "checking host system type... " >&6; }
2824 if ${ac_cv_host+:} false; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   if test "x$host_alias" = x; then
2828   ac_cv_host=$ac_cv_build
2829 else
2830   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2831     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2832 fi
2833
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2836 $as_echo "$ac_cv_host" >&6; }
2837 case $ac_cv_host in
2838 *-*-*) ;;
2839 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2840 esac
2841 host=$ac_cv_host
2842 ac_save_IFS=$IFS; IFS='-'
2843 set x $ac_cv_host
2844 shift
2845 host_cpu=$1
2846 host_vendor=$2
2847 shift; shift
2848 # Remember, the first character of IFS is used to create $*,
2849 # except with old shells:
2850 host_os=$*
2851 IFS=$ac_save_IFS
2852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2853
2854
2855
2856 case "$srcdir" in
2857  .) ;;
2858  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2859       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2860 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2861     fi ;;
2862 esac
2863
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2867 set x ${MAKE-make}
2868 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2869 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   cat >conftest.make <<\_ACEOF
2873 SHELL = /bin/sh
2874 all:
2875         @echo '@@@%%%=$(MAKE)=@@@%%%'
2876 _ACEOF
2877 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2878 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2879   *@@@%%%=?*=@@@%%%*)
2880     eval ac_cv_prog_make_${ac_make}_set=yes;;
2881   *)
2882     eval ac_cv_prog_make_${ac_make}_set=no;;
2883 esac
2884 rm -f conftest.make
2885 fi
2886 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889   SET_MAKE=
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893   SET_MAKE="MAKE=${MAKE-make}"
2894 fi
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$CC"; then
2910   ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 fi
2940 if test -z "$ac_cv_prog_CC"; then
2941   ac_ct_CC=$CC
2942   # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$ac_ct_CC"; then
2950   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     for ac_exec_ext in '' $ac_executable_extensions; do
2958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959     ac_cv_prog_ac_ct_CC="gcc"
2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964   done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2972 $as_echo "$ac_ct_CC" >&6; }
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978   if test "x$ac_ct_CC" = x; then
2979     CC=""
2980   else
2981     case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987     CC=$ac_ct_CC
2988   fi
2989 else
2990   CC="$ac_cv_prog_CC"
2991 fi
2992
2993 if test -z "$CC"; then
2994           if test -n "$ac_tool_prefix"; then
2995     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_CC="${ac_tool_prefix}cc"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032   fi
3033 fi
3034 if test -z "$CC"; then
3035   # Extract the first word of "cc", so it can be a program name with args.
3036 set dummy cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   if test -n "$CC"; then
3043   ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045   ac_prog_rejected=no
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054        ac_prog_rejected=yes
3055        continue
3056      fi
3057     ac_cv_prog_CC="cc"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 if test $ac_prog_rejected = yes; then
3066   # We found a bogon in the path, so make sure we never use it.
3067   set dummy $ac_cv_prog_CC
3068   shift
3069   if test $# != 0; then
3070     # We chose a different compiler from the bogus one.
3071     # However, it has the same basename, so the bogon will be chosen
3072     # first if we set CC to just the basename; use the full file name.
3073     shift
3074     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3075   fi
3076 fi
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 fi
3090 if test -z "$CC"; then
3091   if test -n "$ac_tool_prefix"; then
3092   for ac_prog in cl.exe
3093   do
3094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131     test -n "$CC" && break
3132   done
3133 fi
3134 if test -z "$CC"; then
3135   ac_ct_CC=$CC
3136   for ac_prog in cl.exe
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$ac_ct_CC"; then
3146   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_ac_ct_CC="$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175   test -n "$ac_ct_CC" && break
3176 done
3177
3178   if test "x$ac_ct_CC" = x; then
3179     CC=""
3180   else
3181     case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187     CC=$ac_ct_CC
3188   fi
3189 fi
3190
3191 fi
3192
3193
3194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "no acceptable C compiler found in \$PATH
3197 See \`config.log' for more details" "$LINENO" 5; }
3198
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3201 set X $ac_compile
3202 ac_compiler=$2
3203 for ac_option in --version -v -V -qversion; do
3204   { { ac_try="$ac_compiler $ac_option >&5"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212   ac_status=$?
3213   if test -s conftest.err; then
3214     sed '10a\
3215 ... rest of stderr output deleted ...
3216          10q' conftest.err >conftest.er1
3217     cat conftest.er1 >&5
3218   fi
3219   rm -f conftest.er1 conftest.err
3220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221   test $ac_status = 0; }
3222 done
3223
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3241 $as_echo_n "checking whether the C compiler works... " >&6; }
3242 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243
3244 # The possible output files:
3245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246
3247 ac_rmfiles=
3248 for ac_file in $ac_files
3249 do
3250   case $ac_file in
3251     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253   esac
3254 done
3255 rm -f $ac_rmfiles
3256
3257 if { { ac_try="$ac_link_default"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_link_default") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; then :
3268   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3272 # Autoconf.
3273 for ac_file in $ac_files ''
3274 do
3275   test -f "$ac_file" || continue
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278         ;;
3279     [ab].out )
3280         # We found the default executable, but exeext='' is most
3281         # certainly right.
3282         break;;
3283     *.* )
3284         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285         then :; else
3286            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287         fi
3288         # We set ac_cv_exeext here because the later test for it is not
3289         # safe: cross compilers may not add the suffix if given an `-o'
3290         # argument, so we may need to know it at that point already.
3291         # Even if this section looks crufty: it has the advantage of
3292         # actually working.
3293         break;;
3294     * )
3295         break;;
3296   esac
3297 done
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299
3300 else
3301   ac_file=''
3302 fi
3303 if test -z "$ac_file"; then :
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error 77 "C compiler cannot create executables
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 else
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3318 $as_echo_n "checking for C compiler default output file name... " >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320 $as_echo "$ac_file" >&6; }
3321 ac_exeext=$ac_cv_exeext
3322
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3326 $as_echo_n "checking for suffix of executables... " >&6; }
3327 if { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334   (eval "$ac_link") 2>&5
3335   ac_status=$?
3336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337   test $ac_status = 0; }; then :
3338   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3340 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 # `rm'.
3342 for ac_file in conftest.exe conftest conftest.*; do
3343   test -f "$ac_file" || continue
3344   case $ac_file in
3345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347           break;;
3348     * ) break;;
3349   esac
3350 done
3351 else
3352   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 fi
3357 rm -f conftest conftest$ac_cv_exeext
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3359 $as_echo "$ac_cv_exeext" >&6; }
3360
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h.  */
3366 #include <stdio.h>
3367 int
3368 main ()
3369 {
3370 FILE *f = fopen ("conftest.out", "w");
3371  return ferror (f) || fclose (f) != 0;
3372
3373   ;
3374   return 0;
3375 }
3376 _ACEOF
3377 ac_clean_files="$ac_clean_files conftest.out"
3378 # Check that the compiler produces executables we can run.  If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 if test "$cross_compiling" != yes; then
3383   { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390   (eval "$ac_link") 2>&5
3391   ac_status=$?
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }
3394   if { ac_try='./conftest$ac_cv_exeext'
3395   { { case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401   (eval "$ac_try") 2>&5
3402   ac_status=$?
3403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404   test $ac_status = 0; }; }; then
3405     cross_compiling=no
3406   else
3407     if test "$cross_compiling" = maybe; then
3408         cross_compiling=yes
3409     else
3410         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details" "$LINENO" 5; }
3415     fi
3416   fi
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3420
3421 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if ${ac_cv_objext+:} false; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_compile") 2>&5
3448   ac_status=$?
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }; then :
3451   for ac_file in conftest.o conftest.obj conftest.*; do
3452   test -f "$ac_file" || continue;
3453   case $ac_file in
3454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456        break;;
3457   esac
3458 done
3459 else
3460   $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details" "$LINENO" 5; }
3467 fi
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if ${ac_cv_c_compiler_gnu+:} false; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481
3482 int
3483 main ()
3484 {
3485 #ifndef __GNUC__
3486        choke me
3487 #endif
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494   ac_compiler_gnu=yes
3495 else
3496   ac_compiler_gnu=no
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3505   GCC=yes
3506 else
3507   GCC=
3508 fi
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if ${ac_cv_prog_cc_g+:} false; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   ac_save_c_werror_flag=$ac_c_werror_flag
3517    ac_c_werror_flag=yes
3518    ac_cv_prog_cc_g=no
3519    CFLAGS="-g"
3520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_cv_prog_cc_g=yes
3533 else
3534   CFLAGS=""
3535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547
3548 else
3549   ac_c_werror_flag=$ac_save_c_werror_flag
3550          CFLAGS="-g"
3551          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563   ac_cv_prog_cc_g=yes
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570    ac_c_werror_flag=$ac_save_c_werror_flag
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575   CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577   if test "$GCC" = yes; then
3578     CFLAGS="-g -O2"
3579   else
3580     CFLAGS="-g"
3581   fi
3582 else
3583   if test "$GCC" = yes; then
3584     CFLAGS="-O2"
3585   else
3586     CFLAGS=
3587   fi
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if ${ac_cv_prog_cc_c89+:} false; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606      char **p;
3607      int i;
3608 {
3609   return p[i];
3610 }
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3612 {
3613   char *s;
3614   va_list v;
3615   va_start (v,p);
3616   s = g (p, va_arg (v,int));
3617   va_end (v);
3618   return s;
3619 }
3620
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3622    function prototypes and stuff, but not '\xHH' hex character constants.
3623    These don't provoke an error unfortunately, instead are silently treated
3624    as 'x'.  The following induces an error, until -std is added to get
3625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3626    array size at least.  It's necessary to write '\x00'==0 to get something
3627    that's true only with -std.  */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631    inside strings and character constants.  */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3641 int
3642 main ()
3643 {
3644 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 do
3652   CC="$ac_save_CC $ac_arg"
3653   if ac_fn_c_try_compile "$LINENO"; then :
3654   ac_cv_prog_cc_c89=$ac_arg
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext
3657   test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3661
3662 fi
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3665   x)
3666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3668   xno)
3669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3671   *)
3672     CC="$CC $ac_cv_prog_cc_c89"
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3677
3678 fi
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686 ac_ext=cpp
3687 ac_cpp='$CXXCPP $CPPFLAGS'
3688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3691 if test -z "$CXX"; then
3692   if test -n "$CCC"; then
3693     CXX=$CCC
3694   else
3695     if test -n "$ac_tool_prefix"; then
3696   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3697   do
3698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_CXX+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -n "$CXX"; then
3706   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720   done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CXX=$ac_cv_prog_CXX
3726 if test -n "$CXX"; then
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3728 $as_echo "$CXX" >&6; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735     test -n "$CXX" && break
3736   done
3737 fi
3738 if test -z "$CXX"; then
3739   ac_ct_CXX=$CXX
3740   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3741 do
3742   # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3747   $as_echo_n "(cached) " >&6
3748 else
3749   if test -n "$ac_ct_CXX"; then
3750   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759     ac_cv_prog_ac_ct_CXX="$ac_prog"
3760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764   done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770 if test -n "$ac_ct_CXX"; then
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3772 $as_echo "$ac_ct_CXX" >&6; }
3773 else
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779   test -n "$ac_ct_CXX" && break
3780 done
3781
3782   if test "x$ac_ct_CXX" = x; then
3783     CXX="g++"
3784   else
3785     case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791     CXX=$ac_ct_CXX
3792   fi
3793 fi
3794
3795   fi
3796 fi
3797 # Provide some information about the compiler.
3798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3799 set X $ac_compile
3800 ac_compiler=$2
3801 for ac_option in --version -v -V -qversion; do
3802   { { ac_try="$ac_compiler $ac_option >&5"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3810   ac_status=$?
3811   if test -s conftest.err; then
3812     sed '10a\
3813 ... rest of stderr output deleted ...
3814          10q' conftest.err >conftest.er1
3815     cat conftest.er1 >&5
3816   fi
3817   rm -f conftest.er1 conftest.err
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }
3820 done
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3823 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3824 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3825   $as_echo_n "(cached) " >&6
3826 else
3827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833 #ifndef __GNUC__
3834        choke me
3835 #endif
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_cxx_try_compile "$LINENO"; then :
3842   ac_compiler_gnu=yes
3843 else
3844   ac_compiler_gnu=no
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3848
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3851 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3852 if test $ac_compiler_gnu = yes; then
3853   GXX=yes
3854 else
3855   GXX=
3856 fi
3857 ac_test_CXXFLAGS=${CXXFLAGS+set}
3858 ac_save_CXXFLAGS=$CXXFLAGS
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3860 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3861 if ${ac_cv_prog_cxx_g+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3865    ac_cxx_werror_flag=yes
3866    ac_cv_prog_cxx_g=no
3867    CXXFLAGS="-g"
3868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_cxx_try_compile "$LINENO"; then :
3880   ac_cv_prog_cxx_g=yes
3881 else
3882   CXXFLAGS=""
3883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_cxx_try_compile "$LINENO"; then :
3895
3896 else
3897   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3898          CXXFLAGS="-g"
3899          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h.  */
3901
3902 int
3903 main ()
3904 {
3905
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 if ac_fn_cxx_try_compile "$LINENO"; then :
3911   ac_cv_prog_cxx_g=yes
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3921 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3922 if test "$ac_test_CXXFLAGS" = set; then
3923   CXXFLAGS=$ac_save_CXXFLAGS
3924 elif test $ac_cv_prog_cxx_g = yes; then
3925   if test "$GXX" = yes; then
3926     CXXFLAGS="-g -O2"
3927   else
3928     CXXFLAGS="-g"
3929   fi
3930 else
3931   if test "$GXX" = yes; then
3932     CXXFLAGS="-O2"
3933   else
3934     CXXFLAGS=
3935   fi
3936 fi
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943 if test -n "$ac_tool_prefix"; then
3944   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3945 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_CPPBIN+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   if test -n "$CPPBIN"; then
3952   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959     for ac_exec_ext in '' $ac_executable_extensions; do
3960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963     break 2
3964   fi
3965 done
3966   done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 CPPBIN=$ac_cv_prog_CPPBIN
3972 if test -n "$CPPBIN"; then
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3974 $as_echo "$CPPBIN" >&6; }
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980
3981 fi
3982 if test -z "$ac_cv_prog_CPPBIN"; then
3983   ac_ct_CPPBIN=$CPPBIN
3984   # Extract the first word of "cpp", so it can be a program name with args.
3985 set dummy cpp; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   if test -n "$ac_ct_CPPBIN"; then
3992   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999     for ac_exec_ext in '' $ac_executable_extensions; do
4000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001     ac_cv_prog_ac_ct_CPPBIN="cpp"
4002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003     break 2
4004   fi
4005 done
4006   done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4012 if test -n "$ac_ct_CPPBIN"; then
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4014 $as_echo "$ac_ct_CPPBIN" >&6; }
4015 else
4016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020   if test "x$ac_ct_CPPBIN" = x; then
4021     CPPBIN="cpp"
4022   else
4023     case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029     CPPBIN=$ac_ct_CPPBIN
4030   fi
4031 else
4032   CPPBIN="$ac_cv_prog_CPPBIN"
4033 fi
4034
4035
4036 cat >>confdefs.h <<_ACEOF
4037 #define EXEEXT "$ac_exeext"
4038 _ACEOF
4039
4040
4041 case $host in
4042   *-darwin*)
4043     if test "x$enable_win64" = "xyes"
4044     then
4045       CC="$CC -m64"
4046       CXX="$CXX -m64"
4047       host_cpu="x86_64"
4048       notice_platform="64-bit "
4049       TARGETFLAGS="-m64"
4050
4051     else
4052       CC="$CC -m32"
4053       CXX="$CXX -m32"
4054       host_cpu="i386"
4055       notice_platform="32-bit "
4056       TARGETFLAGS="-m32"
4057
4058       enable_win16=${enable_win16:-yes}
4059     fi
4060     ;;
4061   x86_64*)
4062     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4063     then
4064       CC="$CC -m32"
4065       CXX="$CXX -m32"
4066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4067 $as_echo_n "checking whether $CC works... " >&6; }
4068
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071
4072 int
4073 main ()
4074 {
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_link "$LINENO"; then :
4081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082 $as_echo "yes" >&6; }
4083 else
4084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext \
4089     conftest$ac_exeext conftest.$ac_ext
4090       host_cpu="i386"
4091       notice_platform="32-bit "
4092       TARGETFLAGS="-m32"
4093
4094       enable_win16=${enable_win16:-yes}
4095     else
4096       if test "x${GCC}" = "xyes"
4097       then
4098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4099 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <stdarg.h>
4103 int
4104 main ()
4105 {
4106 void func(__builtin_ms_va_list *args);
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113 $as_echo "yes" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120       fi
4121       TARGETFLAGS="-m64"
4122
4123     fi
4124     ;;
4125   *-mingw32*|*-cygwin*)
4126     enable_win16=${enable_win16:-no}
4127     CFLAGS="$CFLAGS -D_WIN32"
4128     ;;
4129   i[3456789]86*)
4130     enable_win16=${enable_win16:-yes}
4131     ;;
4132 esac
4133
4134 enable_win16=${enable_win16:-no}
4135 enable_win64=${enable_win64:-no}
4136
4137 enable_winetest=${enable_winetest:-$enable_tests}
4138
4139 if test -n "$with_wine64"
4140 then
4141     if test "x$enable_win64" = "xyes"
4142     then
4143         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4144 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4145     fi
4146     WOW64_DISABLE=\#
4147
4148     enable_fonts=${enable_fonts:-no}
4149     enable_server=${enable_server:-no}
4150     enable_tools=${enable_tools:-no}
4151 elif test "x$enable_win64" = "xyes"
4152 then
4153     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4154 fi
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4157 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4158 if ${wine_cv_toolsdir+:} false; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   wine_cv_toolsdir="$with_wine_tools"
4162    if test -z "$with_wine_tools"; then
4163      if test "$cross_compiling" = "yes"; then
4164        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4165      elif test -n "$with_wine64"; then
4166        wine_cv_toolsdir="$with_wine64"
4167      fi
4168    fi
4169    if test -z "$wine_cv_toolsdir"; then
4170      wine_cv_toolsdir="\$(top_builddir)"
4171    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4172      case "$wine_cv_toolsdir" in
4173        /*) ;;
4174        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4175      esac
4176    else
4177      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4178    fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4181 $as_echo "$wine_cv_toolsdir" >&6; }
4182 TOOLSDIR=$wine_cv_toolsdir
4183
4184 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4185 then
4186     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4187
4188 fi
4189
4190 for ac_prog in flex
4191 do
4192   # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_FLEX+:} false; then :
4197   $as_echo_n "(cached) " >&6
4198 else
4199   if test -n "$FLEX"; then
4200   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209     ac_cv_prog_FLEX="$ac_prog"
4210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211     break 2
4212   fi
4213 done
4214   done
4215 IFS=$as_save_IFS
4216
4217 fi
4218 fi
4219 FLEX=$ac_cv_prog_FLEX
4220 if test -n "$FLEX"; then
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4222 $as_echo "$FLEX" >&6; }
4223 else
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4226 fi
4227
4228
4229   test -n "$FLEX" && break
4230 done
4231 test -n "$FLEX" || FLEX="none"
4232
4233 if test "$FLEX" = "none"
4234 then
4235   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4238 $as_echo_n "checking whether flex is recent enough... " >&6; }
4239 cat >conftest.l <<EOF
4240 %top{
4241 #include "prediluvian.h"
4242 }
4243 %%
4244 EOF
4245 if $FLEX -t conftest.l >/dev/null 2>&5
4246 then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4248 $as_echo "yes" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4253 fi
4254
4255 for ac_prog in bison
4256 do
4257   # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy $ac_prog; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_BISON+:} false; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   if test -n "$BISON"; then
4265   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272     for ac_exec_ext in '' $ac_executable_extensions; do
4273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274     ac_cv_prog_BISON="$ac_prog"
4275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279   done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 BISON=$ac_cv_prog_BISON
4285 if test -n "$BISON"; then
4286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4287 $as_echo "$BISON" >&6; }
4288 else
4289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 fi
4292
4293
4294   test -n "$BISON" && break
4295 done
4296 test -n "$BISON" || BISON="none"
4297
4298 if test "$BISON" = "none"
4299 then
4300   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4301 fi
4302
4303 if test -n "$ac_tool_prefix"; then
4304   for ac_prog in ar gar
4305   do
4306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_AR+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   if test -n "$AR"; then
4314   ac_cv_prog_AR="$AR" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321     for ac_exec_ext in '' $ac_executable_extensions; do
4322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328   done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 AR=$ac_cv_prog_AR
4334 if test -n "$AR"; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4336 $as_echo "$AR" >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343     test -n "$AR" && break
4344   done
4345 fi
4346 if test -z "$AR"; then
4347   ac_ct_AR=$AR
4348   for ac_prog in ar gar
4349 do
4350   # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test -n "$ac_ct_AR"; then
4358   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_prog_ac_ct_AR="$ac_prog"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378 if test -n "$ac_ct_AR"; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4380 $as_echo "$ac_ct_AR" >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387   test -n "$ac_ct_AR" && break
4388 done
4389
4390   if test "x$ac_ct_AR" = x; then
4391     AR="ar"
4392   else
4393     case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399     AR=$ac_ct_AR
4400   fi
4401 fi
4402
4403 ARFLAGS=rc
4404
4405 if test -n "$ac_tool_prefix"; then
4406   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_RANLIB+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   if test -n "$RANLIB"; then
4414   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421     for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428   done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 RANLIB=$ac_cv_prog_RANLIB
4434 if test -n "$RANLIB"; then
4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4436 $as_echo "$RANLIB" >&6; }
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440 fi
4441
4442
4443 fi
4444 if test -z "$ac_cv_prog_RANLIB"; then
4445   ac_ct_RANLIB=$RANLIB
4446   # Extract the first word of "ranlib", so it can be a program name with args.
4447 set dummy ranlib; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453   if test -n "$ac_ct_RANLIB"; then
4454   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461     for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_prog_ac_ct_RANLIB="ranlib"
4464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468   done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4474 if test -n "$ac_ct_RANLIB"; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4476 $as_echo "$ac_ct_RANLIB" >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482   if test "x$ac_ct_RANLIB" = x; then
4483     RANLIB=":"
4484   else
4485     case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491     RANLIB=$ac_ct_RANLIB
4492   fi
4493 else
4494   RANLIB="$ac_cv_prog_RANLIB"
4495 fi
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4498 $as_echo_n "checking whether ln -s works... " >&6; }
4499 LN_S=$as_ln_s
4500 if test "$LN_S" = "ln -s"; then
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 else
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4505 $as_echo "no, using $LN_S" >&6; }
4506 fi
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4509 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4510 if ${ac_cv_path_GREP+:} false; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513   if test -z "$GREP"; then
4514   ac_path_GREP_found=false
4515   # Loop through the user's path and test for each of PROGNAME-LIST
4516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521     for ac_prog in grep ggrep; do
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4524       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4525 # Check for GNU ac_path_GREP and select it if it is found.
4526   # Check for GNU $ac_path_GREP
4527 case `"$ac_path_GREP" --version 2>&1` in
4528 *GNU*)
4529   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4530 *)
4531   ac_count=0
4532   $as_echo_n 0123456789 >"conftest.in"
4533   while :
4534   do
4535     cat "conftest.in" "conftest.in" >"conftest.tmp"
4536     mv "conftest.tmp" "conftest.in"
4537     cp "conftest.in" "conftest.nl"
4538     $as_echo 'GREP' >> "conftest.nl"
4539     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541     as_fn_arith $ac_count + 1 && ac_count=$as_val
4542     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4543       # Best one so far, save it but keep looking for a better one
4544       ac_cv_path_GREP="$ac_path_GREP"
4545       ac_path_GREP_max=$ac_count
4546     fi
4547     # 10*(2^10) chars as input seems more than enough
4548     test $ac_count -gt 10 && break
4549   done
4550   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4552
4553       $ac_path_GREP_found && break 3
4554     done
4555   done
4556   done
4557 IFS=$as_save_IFS
4558   if test -z "$ac_cv_path_GREP"; then
4559     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560   fi
4561 else
4562   ac_cv_path_GREP=$GREP
4563 fi
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4567 $as_echo "$ac_cv_path_GREP" >&6; }
4568  GREP="$ac_cv_path_GREP"
4569
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4572 $as_echo_n "checking for egrep... " >&6; }
4573 if ${ac_cv_path_EGREP+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4577    then ac_cv_path_EGREP="$GREP -E"
4578    else
4579      if test -z "$EGREP"; then
4580   ac_path_EGREP_found=false
4581   # Loop through the user's path and test for each of PROGNAME-LIST
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587     for ac_prog in egrep; do
4588     for ac_exec_ext in '' $ac_executable_extensions; do
4589       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4590       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4591 # Check for GNU ac_path_EGREP and select it if it is found.
4592   # Check for GNU $ac_path_EGREP
4593 case `"$ac_path_EGREP" --version 2>&1` in
4594 *GNU*)
4595   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596 *)
4597   ac_count=0
4598   $as_echo_n 0123456789 >"conftest.in"
4599   while :
4600   do
4601     cat "conftest.in" "conftest.in" >"conftest.tmp"
4602     mv "conftest.tmp" "conftest.in"
4603     cp "conftest.in" "conftest.nl"
4604     $as_echo 'EGREP' >> "conftest.nl"
4605     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607     as_fn_arith $ac_count + 1 && ac_count=$as_val
4608     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609       # Best one so far, save it but keep looking for a better one
4610       ac_cv_path_EGREP="$ac_path_EGREP"
4611       ac_path_EGREP_max=$ac_count
4612     fi
4613     # 10*(2^10) chars as input seems more than enough
4614     test $ac_count -gt 10 && break
4615   done
4616   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4618
4619       $ac_path_EGREP_found && break 3
4620     done
4621   done
4622   done
4623 IFS=$as_save_IFS
4624   if test -z "$ac_cv_path_EGREP"; then
4625     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626   fi
4627 else
4628   ac_cv_path_EGREP=$EGREP
4629 fi
4630
4631    fi
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4634 $as_echo "$ac_cv_path_EGREP" >&6; }
4635  EGREP="$ac_cv_path_EGREP"
4636
4637
4638 # Extract the first word of "ldconfig", so it can be a program name with args.
4639 set dummy ldconfig; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_path_LDCONFIG+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   case $LDCONFIG in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in /sbin /usr/sbin $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662   done
4663 IFS=$as_save_IFS
4664
4665   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4666   ;;
4667 esac
4668 fi
4669 LDCONFIG=$ac_cv_path_LDCONFIG
4670 if test -n "$LDCONFIG"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4672 $as_echo "$LDCONFIG" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 # Find a good install program.  We prefer a C program (faster),
4680 # so one script is as good as another.  But avoid the broken or
4681 # incompatible versions:
4682 # SysV /etc/install, /usr/sbin/install
4683 # SunOS /usr/etc/install
4684 # IRIX /sbin/install
4685 # AIX /bin/install
4686 # AmigaOS /C/install, which installs bootblocks on floppy discs
4687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4690 # OS/2's system install, which has a completely different semantic
4691 # ./install, which can be erroneously created by make from ./install.sh.
4692 # Reject install programs that cannot install multiple files.
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4694 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4695 if test -z "$INSTALL"; then
4696 if ${ac_cv_path_install+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704     # Account for people who put trailing slashes in PATH elements.
4705 case $as_dir/ in #((
4706   ./ | .// | /[cC]/* | \
4707   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4708   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4709   /usr/ucb/* ) ;;
4710   *)
4711     # OSF1 and SCO ODT 3.0 have their own names for install.
4712     # Don't use installbsd from OSF since it installs stuff as root
4713     # by default.
4714     for ac_prog in ginstall scoinst install; do
4715       for ac_exec_ext in '' $ac_executable_extensions; do
4716         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4717           if test $ac_prog = install &&
4718             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719             # AIX install.  It has an incompatible calling convention.
4720             :
4721           elif test $ac_prog = install &&
4722             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4723             # program-specific install script used by HP pwplus--don't use.
4724             :
4725           else
4726             rm -rf conftest.one conftest.two conftest.dir
4727             echo one > conftest.one
4728             echo two > conftest.two
4729             mkdir conftest.dir
4730             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4731               test -s conftest.one && test -s conftest.two &&
4732               test -s conftest.dir/conftest.one &&
4733               test -s conftest.dir/conftest.two
4734             then
4735               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4736               break 3
4737             fi
4738           fi
4739         fi
4740       done
4741     done
4742     ;;
4743 esac
4744
4745   done
4746 IFS=$as_save_IFS
4747
4748 rm -rf conftest.one conftest.two conftest.dir
4749
4750 fi
4751   if test "${ac_cv_path_install+set}" = set; then
4752     INSTALL=$ac_cv_path_install
4753   else
4754     # As a last resort, use the slow shell script.  Don't cache a
4755     # value for INSTALL within a source directory, because that will
4756     # break other packages using the cache if that directory is
4757     # removed, or if the value is a relative name.
4758     INSTALL=$ac_install_sh
4759   fi
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4762 $as_echo "$INSTALL" >&6; }
4763
4764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4765 # It thinks the first close brace ends the variable substitution.
4766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4767
4768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4769
4770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4771
4772 case "$INSTALL" in
4773   [\\/$]* | ?:[\\/]* ) ;;
4774   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4775 esac
4776
4777 for ac_prog in lclint lint
4778 do
4779   # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_LINT+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   if test -n "$LINT"; then
4787   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_LINT="$ac_prog"
4797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801   done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 LINT=$ac_cv_prog_LINT
4807 if test -n "$LINT"; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4809 $as_echo "$LINT" >&6; }
4810 else
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814
4815
4816   test -n "$LINT" && break
4817 done
4818
4819 if test "$LINT" = "lint"
4820 then
4821   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4822   fi
4823
4824
4825 for ac_prog in fontforge
4826 do
4827   # Extract the first word of "$ac_prog", so it can be a program name with args.
4828 set dummy $ac_prog; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if ${ac_cv_prog_FONTFORGE+:} false; then :
4832   $as_echo_n "(cached) " >&6
4833 else
4834   if test -n "$FONTFORGE"; then
4835   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_prog_FONTFORGE="$ac_prog"
4845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849   done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 FONTFORGE=$ac_cv_prog_FONTFORGE
4855 if test -n "$FONTFORGE"; then
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4857 $as_echo "$FONTFORGE" >&6; }
4858 else
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862
4863
4864   test -n "$FONTFORGE" && break
4865 done
4866 test -n "$FONTFORGE" || FONTFORGE="false"
4867
4868 for ac_prog in pkg-config
4869 do
4870   # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy $ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if test -n "$PKG_CONFIG"; then
4878   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_PKG_CONFIG="$ac_prog"
4888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892   done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4898 if test -n "$PKG_CONFIG"; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4900 $as_echo "$PKG_CONFIG" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907   test -n "$PKG_CONFIG" && break
4908 done
4909 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4910
4911 for ac_prog in rsvg
4912 do
4913   # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy $ac_prog; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_RSVG+:} false; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if test -n "$RSVG"; then
4921   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_prog_RSVG="$ac_prog"
4931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935   done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 RSVG=$ac_cv_prog_RSVG
4941 if test -n "$RSVG"; then
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4943 $as_echo "$RSVG" >&6; }
4944 else
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 fi
4948
4949
4950   test -n "$RSVG" && break
4951 done
4952 test -n "$RSVG" || RSVG="false"
4953
4954 for ac_prog in convert
4955 do
4956   # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CONVERT+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$CONVERT"; then
4964   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     ac_cv_prog_CONVERT="$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 CONVERT=$ac_cv_prog_CONVERT
4984 if test -n "$CONVERT"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4986 $as_echo "$CONVERT" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993   test -n "$CONVERT" && break
4994 done
4995 test -n "$CONVERT" || CONVERT="false"
4996
4997 for ac_prog in icotool
4998 do
4999   # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_ICOTOOL+:} false; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   if test -n "$ICOTOOL"; then
5007   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014     for ac_exec_ext in '' $ac_executable_extensions; do
5015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016     ac_cv_prog_ICOTOOL="$ac_prog"
5017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021   done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 ICOTOOL=$ac_cv_prog_ICOTOOL
5027 if test -n "$ICOTOOL"; then
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5029 $as_echo "$ICOTOOL" >&6; }
5030 else
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036   test -n "$ICOTOOL" && break
5037 done
5038 test -n "$ICOTOOL" || ICOTOOL="false"
5039
5040 for ac_prog in msgfmt
5041 do
5042   # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_MSGFMT+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -n "$MSGFMT"; then
5050   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_prog_MSGFMT="$ac_prog"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 MSGFMT=$ac_cv_prog_MSGFMT
5070 if test -n "$MSGFMT"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5072 $as_echo "$MSGFMT" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079   test -n "$MSGFMT" && break
5080 done
5081 test -n "$MSGFMT" || MSGFMT="false"
5082
5083
5084 if test "x$enable_maintainer_mode" != "xyes"
5085 then
5086   MAINTAINER_MODE=\#
5087
5088 else
5089   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5090   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5091
5092     if test "$CONVERT" = false
5093   then
5094     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5095   else
5096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5097 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5098     convert_version=`convert --version | head -n1`
5099     if test "x$convert_version" != "x"
5100     then
5101       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5102       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5103       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5104       then
5105         CONVERT=false
5106       fi
5107     fi
5108     if test "$CONVERT" = false
5109     then
5110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5111 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5112       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5113     else
5114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5115 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5116     fi
5117   fi
5118
5119     if test "$ICOTOOL" = false
5120   then
5121     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5122   else
5123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5124 $as_echo_n "checking for recent enough icotool... " >&6; }
5125     icotool_version=`icotool --version | head -n1`
5126     if test "x$icotool_version" != "x"
5127     then
5128       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5129       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5130       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5131       then
5132         ICOTOOL=false
5133         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5134       fi
5135     fi
5136     if test "$ICOTOOL" = false
5137     then
5138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5139 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5140       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5141     else
5142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5143 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5144     fi
5145   fi
5146
5147     with_gettext=yes
5148   with_gettextpo=yes
5149   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5150 fi
5151
5152 test "x$with_gettext" != xno || MSGFMT=false
5153 if test "$MSGFMT" != "false"
5154 then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5156 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5157   cat >conftest.po <<EOF
5158 # comment
5159 msgctxt "ctxt"
5160 msgid "id"
5161 msgstr "str"
5162 EOF
5163   if $MSGFMT -o /dev/null conftest.po 2>&5
5164   then
5165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 $as_echo "yes" >&6; }
5167   else
5168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170     MSGFMT=false
5171   fi
5172 fi
5173 if test "$MSGFMT" = false; then :
5174   case "x$with_gettext" in
5175   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5176   xno) ;;
5177   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5178 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5179 esac
5180 fi
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5184 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5185 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   ac_check_lib_save_LIBS=$LIBS
5189 LIBS="-li386  $LIBS"
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h.  */
5192
5193 /* Override any GCC internal prototype to avoid an error.
5194    Use char because int might match the return type of a GCC
5195    builtin and then its argument prototype would still apply.  */
5196 #ifdef __cplusplus
5197 extern "C"
5198 #endif
5199 char i386_set_ldt ();
5200 int
5201 main ()
5202 {
5203 return i386_set_ldt ();
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_link "$LINENO"; then :
5209   ac_cv_lib_i386_i386_set_ldt=yes
5210 else
5211   ac_cv_lib_i386_i386_set_ldt=no
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext \
5214     conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5218 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5219 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5220   cat >>confdefs.h <<_ACEOF
5221 #define HAVE_LIBI386 1
5222 _ACEOF
5223
5224   LIBS="-li386 $LIBS"
5225
5226 fi
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5229 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5230 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lossaudio  $LIBS"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237
5238 /* Override any GCC internal prototype to avoid an error.
5239    Use char because int might match the return type of a GCC
5240    builtin and then its argument prototype would still apply.  */
5241 #ifdef __cplusplus
5242 extern "C"
5243 #endif
5244 char _oss_ioctl ();
5245 int
5246 main ()
5247 {
5248 return _oss_ioctl ();
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_link "$LINENO"; then :
5254   ac_cv_lib_ossaudio__oss_ioctl=yes
5255 else
5256   ac_cv_lib_ossaudio__oss_ioctl=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext \
5259     conftest$ac_exeext conftest.$ac_ext
5260 LIBS=$ac_check_lib_save_LIBS
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5263 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5264 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5265   cat >>confdefs.h <<_ACEOF
5266 #define HAVE_LIBOSSAUDIO 1
5267 _ACEOF
5268
5269   LIBS="-lossaudio $LIBS"
5270
5271 fi
5272
5273
5274 XLIB=""
5275
5276 OPENGL_LIBS=""
5277
5278
5279
5280 # Check whether --enable-largefile was given.
5281 if test "${enable_largefile+set}" = set; then :
5282   enableval=$enable_largefile;
5283 fi
5284
5285 if test "$enable_largefile" != no; then
5286
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5288 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5289 if ${ac_cv_sys_largefile_CC+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   ac_cv_sys_largefile_CC=no
5293      if test "$GCC" != yes; then
5294        ac_save_CC=$CC
5295        while :; do
5296          # IRIX 6.2 and later do not support large files by default,
5297          # so use the C compiler's -n32 option if that helps.
5298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300 #include <sys/types.h>
5301  /* Check that off_t can represent 2**63 - 1 correctly.
5302     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5303     since some C++ compilers masquerading as C compilers
5304     incorrectly reject 9223372036854775807.  */
5305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5306   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5307                        && LARGE_OFF_T % 2147483647 == 1)
5308                       ? 1 : -1];
5309 int
5310 main ()
5311 {
5312
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317          if ac_fn_c_try_compile "$LINENO"; then :
5318   break
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext
5321          CC="$CC -n32"
5322          if ac_fn_c_try_compile "$LINENO"; then :
5323   ac_cv_sys_largefile_CC=' -n32'; break
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext
5326          break
5327        done
5328        CC=$ac_save_CC
5329        rm -f conftest.$ac_ext
5330     fi
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5333 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5334   if test "$ac_cv_sys_largefile_CC" != no; then
5335     CC=$CC$ac_cv_sys_largefile_CC
5336   fi
5337
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5339 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5340 if ${ac_cv_sys_file_offset_bits+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   while :; do
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 #include <sys/types.h>
5347  /* Check that off_t can represent 2**63 - 1 correctly.
5348     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5349     since some C++ compilers masquerading as C compilers
5350     incorrectly reject 9223372036854775807.  */
5351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5352   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5353                        && LARGE_OFF_T % 2147483647 == 1)
5354                       ? 1 : -1];
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364   ac_cv_sys_file_offset_bits=no; break
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h.  */
5369 #define _FILE_OFFSET_BITS 64
5370 #include <sys/types.h>
5371  /* Check that off_t can represent 2**63 - 1 correctly.
5372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373     since some C++ compilers masquerading as C compilers
5374     incorrectly reject 9223372036854775807.  */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377                        && LARGE_OFF_T % 2147483647 == 1)
5378                       ? 1 : -1];
5379 int
5380 main ()
5381 {
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388   ac_cv_sys_file_offset_bits=64; break
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391   ac_cv_sys_file_offset_bits=unknown
5392   break
5393 done
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5396 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5397 case $ac_cv_sys_file_offset_bits in #(
5398   no | unknown) ;;
5399   *)
5400 cat >>confdefs.h <<_ACEOF
5401 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5402 _ACEOF
5403 ;;
5404 esac
5405 rm -rf conftest*
5406   if test $ac_cv_sys_file_offset_bits = unknown; then
5407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5408 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5409 if ${ac_cv_sys_large_files+:} false; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   while :; do
5413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h.  */
5415 #include <sys/types.h>
5416  /* Check that off_t can represent 2**63 - 1 correctly.
5417     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5418     since some C++ compilers masquerading as C compilers
5419     incorrectly reject 9223372036854775807.  */
5420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5421   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5422                        && LARGE_OFF_T % 2147483647 == 1)
5423                       ? 1 : -1];
5424 int
5425 main ()
5426 {
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433   ac_cv_sys_large_files=no; break
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h.  */
5438 #define _LARGE_FILES 1
5439 #include <sys/types.h>
5440  /* Check that off_t can represent 2**63 - 1 correctly.
5441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442     since some C++ compilers masquerading as C compilers
5443     incorrectly reject 9223372036854775807.  */
5444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446                        && LARGE_OFF_T % 2147483647 == 1)
5447                       ? 1 : -1];
5448 int
5449 main ()
5450 {
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457   ac_cv_sys_large_files=1; break
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460   ac_cv_sys_large_files=unknown
5461   break
5462 done
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5465 $as_echo "$ac_cv_sys_large_files" >&6; }
5466 case $ac_cv_sys_large_files in #(
5467   no | unknown) ;;
5468   *)
5469 cat >>confdefs.h <<_ACEOF
5470 #define _LARGE_FILES $ac_cv_sys_large_files
5471 _ACEOF
5472 ;;
5473 esac
5474 rm -rf conftest*
5475   fi
5476 fi
5477
5478
5479 ac_ext=c
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5486 # On Suns, sometimes $CPP names a directory.
5487 if test -n "$CPP" && test -d "$CPP"; then
5488   CPP=
5489 fi
5490 if test -z "$CPP"; then
5491   if ${ac_cv_prog_CPP+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494       # Double quotes because CPP needs to be expanded
5495     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5496     do
5497       ac_preproc_ok=false
5498 for ac_c_preproc_warn_flag in '' yes
5499 do
5500   # Use a header file that comes with gcc, so configuring glibc
5501   # with a fresh cross-compiler works.
5502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503   # <limits.h> exists even on freestanding compilers.
5504   # On the NeXT, cc -E runs the code through the compiler's parser,
5505   # not just through cpp. "Syntax error" is here to catch this case.
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #ifdef __STDC__
5509 # include <limits.h>
5510 #else
5511 # include <assert.h>
5512 #endif
5513                      Syntax error
5514 _ACEOF
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5516
5517 else
5518   # Broken: fails on valid input.
5519 continue
5520 fi
5521 rm -f conftest.err conftest.i conftest.$ac_ext
5522
5523   # OK, works on sane cases.  Now check whether nonexistent headers
5524   # can be detected and how.
5525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h.  */
5527 #include <ac_nonexistent.h>
5528 _ACEOF
5529 if ac_fn_c_try_cpp "$LINENO"; then :
5530   # Broken: success on invalid input.
5531 continue
5532 else
5533   # Passes both tests.
5534 ac_preproc_ok=:
5535 break
5536 fi
5537 rm -f conftest.err conftest.i conftest.$ac_ext
5538
5539 done
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.i conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then :
5543   break
5544 fi
5545
5546     done
5547     ac_cv_prog_CPP=$CPP
5548
5549 fi
5550   CPP=$ac_cv_prog_CPP
5551 else
5552   ac_cv_prog_CPP=$CPP
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5555 $as_echo "$CPP" >&6; }
5556 ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5558 do
5559   # Use a header file that comes with gcc, so configuring glibc
5560   # with a fresh cross-compiler works.
5561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562   # <limits.h> exists even on freestanding compilers.
5563   # On the NeXT, cc -E runs the code through the compiler's parser,
5564   # not just through cpp. "Syntax error" is here to catch this case.
5565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h.  */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5572                      Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5575
5576 else
5577   # Broken: fails on valid input.
5578 continue
5579 fi
5580 rm -f conftest.err conftest.i conftest.$ac_ext
5581
5582   # OK, works on sane cases.  Now check whether nonexistent headers
5583   # can be detected and how.
5584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5589   # Broken: success on invalid input.
5590 continue
5591 else
5592   # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5595 fi
5596 rm -f conftest.err conftest.i conftest.$ac_ext
5597
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.i conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then :
5602
5603 else
5604   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5607 See \`config.log' for more details" "$LINENO" 5; }
5608 fi
5609
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5618 $as_echo_n "checking for ANSI C header files... " >&6; }
5619 if ${ac_cv_header_stdc+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h.  */
5624 #include <stdlib.h>
5625 #include <stdarg.h>
5626 #include <string.h>
5627 #include <float.h>
5628
5629 int
5630 main ()
5631 {
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638   ac_cv_header_stdc=yes
5639 else
5640   ac_cv_header_stdc=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643
5644 if test $ac_cv_header_stdc = yes; then
5645   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 #include <string.h>
5649
5650 _ACEOF
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652   $EGREP "memchr" >/dev/null 2>&1; then :
5653
5654 else
5655   ac_cv_header_stdc=no
5656 fi
5657 rm -f conftest*
5658
5659 fi
5660
5661 if test $ac_cv_header_stdc = yes; then
5662   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665 #include <stdlib.h>
5666
5667 _ACEOF
5668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669   $EGREP "free" >/dev/null 2>&1; then :
5670
5671 else
5672   ac_cv_header_stdc=no
5673 fi
5674 rm -f conftest*
5675
5676 fi
5677
5678 if test $ac_cv_header_stdc = yes; then
5679   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5680   if test "$cross_compiling" = yes; then :
5681   :
5682 else
5683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685 #include <ctype.h>
5686 #include <stdlib.h>
5687 #if ((' ' & 0x0FF) == 0x020)
5688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690 #else
5691 # define ISLOWER(c) \
5692                    (('a' <= (c) && (c) <= 'i') \
5693                      || ('j' <= (c) && (c) <= 'r') \
5694                      || ('s' <= (c) && (c) <= 'z'))
5695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696 #endif
5697
5698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699 int
5700 main ()
5701 {
5702   int i;
5703   for (i = 0; i < 256; i++)
5704     if (XOR (islower (i), ISLOWER (i))
5705         || toupper (i) != TOUPPER (i))
5706       return 2;
5707   return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_run "$LINENO"; then :
5711
5712 else
5713   ac_cv_header_stdc=no
5714 fi
5715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716   conftest.$ac_objext conftest.beam conftest.$ac_ext
5717 fi
5718
5719 fi
5720 fi
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5722 $as_echo "$ac_cv_header_stdc" >&6; }
5723 if test $ac_cv_header_stdc = yes; then
5724
5725 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5726
5727 fi
5728
5729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5731                   inttypes.h stdint.h unistd.h
5732 do :
5733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5735 "
5736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5737   cat >>confdefs.h <<_ACEOF
5738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5739 _ACEOF
5740
5741 fi
5742
5743 done
5744
5745
5746 for ac_header in \
5747         AL/al.h \
5748         ApplicationServices/ApplicationServices.h \
5749         AudioToolbox/AudioConverter.h \
5750         AudioUnit/AudioUnit.h \
5751         AudioUnit/AudioComponent.h \
5752         CL/cl.h \
5753         Carbon/Carbon.h \
5754         CoreAudio/CoreAudio.h \
5755         DiskArbitration/DiskArbitration.h \
5756         IOKit/IOKitLib.h \
5757         IOKit/hid/IOHIDLib.h \
5758         OpenAL/al.h \
5759         OpenCL/opencl.h \
5760         QuickTime/ImageCompression.h \
5761         Security/Security.h \
5762         alias.h \
5763         alsa/asoundlib.h \
5764         arpa/inet.h \
5765         arpa/nameser.h \
5766         asm/types.h \
5767         capi20.h \
5768         curses.h \
5769         direct.h \
5770         dirent.h \
5771         dlfcn.h \
5772         elf.h \
5773         float.h \
5774         fnmatch.h \
5775         fontconfig/fontconfig.h \
5776         getopt.h \
5777         gettext-po.h \
5778         grp.h \
5779         gsm.h \
5780         gsm/gsm.h \
5781         ieeefp.h \
5782         inet/mib2.h \
5783         io.h \
5784         jpeglib.h \
5785         kstat.h \
5786         lber.h \
5787         lcms.h \
5788         lcms/lcms.h \
5789         ldap.h \
5790         link.h \
5791         linux/cdrom.h \
5792         linux/compiler.h \
5793         linux/hdreg.h \
5794         linux/input.h \
5795         linux/ioctl.h \
5796         linux/joystick.h \
5797         linux/major.h \
5798         linux/param.h \
5799         linux/serial.h \
5800         linux/types.h \
5801         linux/ucdrom.h \
5802         mach-o/nlist.h \
5803         mach-o/loader.h \
5804         mach/mach.h \
5805         mach/machine.h \
5806         machine/cpu.h \
5807         machine/limits.h \
5808         machine/sysarch.h \
5809         mntent.h \
5810         mpg123.h \
5811         ncurses.h \
5812         netdb.h \
5813         netinet/in.h \
5814         netinet/in_systm.h \
5815         netinet/tcp.h \
5816         netinet/tcp_fsm.h \
5817         openssl/err.h \
5818         openssl/ssl.h \
5819         png.h \
5820         poll.h \
5821         port.h \
5822         process.h \
5823         pthread.h \
5824         pwd.h \
5825         sched.h \
5826         scsi/scsi.h \
5827         scsi/scsi_ioctl.h \
5828         scsi/sg.h \
5829         stdbool.h \
5830         stdint.h \
5831         strings.h \
5832         stropts.h \
5833         sys/asoundlib.h \
5834         sys/attr.h \
5835         sys/cdio.h \
5836         sys/elf32.h \
5837         sys/epoll.h \
5838         sys/event.h \
5839         sys/exec_elf.h \
5840         sys/filio.h \
5841         sys/inotify.h \
5842         sys/ioctl.h \
5843         sys/ipc.h \
5844         sys/limits.h \
5845         sys/link.h \
5846         sys/mman.h \
5847         sys/modem.h \
5848         sys/msg.h \
5849         sys/mtio.h \
5850         sys/param.h \
5851         sys/poll.h \
5852         sys/prctl.h \
5853         sys/protosw.h \
5854         sys/ptrace.h \
5855         sys/resource.h \
5856         sys/scsiio.h \
5857         sys/shm.h \
5858         sys/signal.h \
5859         sys/socket.h \
5860         sys/socketvar.h \
5861         sys/sockio.h \
5862         sys/statvfs.h \
5863         sys/strtio.h \
5864         sys/syscall.h \
5865         sys/tihdr.h \
5866         sys/time.h \
5867         sys/timeout.h \
5868         sys/times.h \
5869         sys/uio.h \
5870         sys/un.h \
5871         sys/utsname.h \
5872         sys/vm86.h \
5873         sys/wait.h \
5874         syscall.h \
5875         termios.h \
5876         tiffio.h \
5877         unistd.h \
5878         utime.h \
5879         valgrind/memcheck.h \
5880         valgrind/valgrind.h \
5881         zlib.h
5882
5883 do :
5884   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5887   cat >>confdefs.h <<_ACEOF
5888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889 _ACEOF
5890
5891 fi
5892
5893 done
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5896 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5897 if ${ac_cv_header_stat_broken+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h.  */
5902 #include <sys/types.h>
5903 #include <sys/stat.h>
5904
5905 #if defined S_ISBLK && defined S_IFDIR
5906 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5907 #endif
5908
5909 #if defined S_ISBLK && defined S_IFCHR
5910 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5911 #endif
5912
5913 #if defined S_ISLNK && defined S_IFREG
5914 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5915 #endif
5916
5917 #if defined S_ISSOCK && defined S_IFREG
5918 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5919 #endif
5920
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923   ac_cv_header_stat_broken=no
5924 else
5925   ac_cv_header_stat_broken=yes
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5930 $as_echo "$ac_cv_header_stat_broken" >&6; }
5931 if test $ac_cv_header_stat_broken = yes; then
5932
5933 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5934
5935 fi
5936
5937
5938
5939 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5940 do :
5941   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5943      #ifdef HAVE_SYS_PARAM_H
5944      # include <sys/param.h>
5945      #endif
5946 "
5947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5948   cat >>confdefs.h <<_ACEOF
5949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 _ACEOF
5951
5952 fi
5953
5954 done
5955
5956
5957 for ac_header in \
5958         netinet/ip.h \
5959         net/if.h \
5960         net/if_arp.h \
5961         net/if_dl.h \
5962         net/if_types.h \
5963         net/route.h \
5964         netinet/if_ether.h \
5965         netinet/if_inarp.h \
5966         netinet/in_pcb.h \
5967         netinet/ip_icmp.h \
5968         netinet/ip_var.h \
5969         netinet/udp.h \
5970         netipx/ipx.h \
5971
5972 do :
5973   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5975      #ifdef HAVE_SYS_SOCKET_H
5976      # include <sys/socket.h>
5977      #endif
5978      #ifdef HAVE_SYS_SOCKETVAR_H
5979      # include <sys/socketvar.h>
5980      #endif
5981      #ifdef HAVE_NET_ROUTE_H
5982      # include <net/route.h>
5983      #endif
5984      #ifdef HAVE_NETINET_IN_H
5985      # include <netinet/in.h>
5986      #endif
5987      #ifdef HAVE_NETINET_IN_SYSTM_H
5988      # include <netinet/in_systm.h>
5989      #endif
5990      #ifdef HAVE_NET_IF_H
5991      # include <net/if.h>
5992      #endif
5993      #ifdef HAVE_NETINET_IP_H
5994      # include <netinet/ip.h>
5995      #endif
5996 "
5997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5998   cat >>confdefs.h <<_ACEOF
5999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 fi
6003
6004 done
6005
6006
6007 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6008 do :
6009   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6011      #ifdef HAVE_ALIAS_H
6012      # include <alias.h>
6013      #endif
6014      #ifdef HAVE_SYS_SOCKET_H
6015      # include <sys/socket.h>
6016      #endif
6017      #ifdef HAVE_SYS_SOCKETVAR_H
6018      # include <sys/socketvar.h>
6019      #endif
6020      #ifdef HAVE_SYS_TIMEOUT_H
6021      # include <sys/timeout.h>
6022      #endif
6023      #ifdef HAVE_NETINET_IN_H
6024      # include <netinet/in.h>
6025      #endif
6026      #ifdef HAVE_NETINET_IN_SYSTM_H
6027      # include <netinet/in_systm.h>
6028      #endif
6029      #ifdef HAVE_NETINET_IP_H
6030      # include <netinet/ip.h>
6031      #endif
6032      #ifdef HAVE_NETINET_IP_VAR_H
6033      # include <netinet/ip_var.h>
6034      #endif
6035      #ifdef HAVE_NETINET_IP_ICMP_H
6036      # include <netinet/ip_icmp.h>
6037      #endif
6038      #ifdef HAVE_NETINET_UDP_H
6039      # include <netinet/udp.h>
6040      #endif
6041      #ifdef HAVE_NETINET_TCP_H
6042      # include <netinet/tcp.h>
6043      #endif
6044      #ifdef HAVE_NETINET_TCP_TIMER_H
6045      #include <netinet/tcp_timer.h>
6046      #endif
6047 "
6048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6049   cat >>confdefs.h <<_ACEOF
6050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 _ACEOF
6052
6053 fi
6054
6055 done
6056
6057
6058 for ac_header in linux/ipx.h linux/irda.h
6059 do :
6060   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6062      #ifdef HAVE_ASM_TYPES_H
6063      # include <asm/types.h>
6064      #endif
6065      #ifdef HAVE_SYS_SOCKET_H
6066      # include <sys/socket.h>
6067      #endif
6068      #ifdef HAVE_LINUX_TYPES_H
6069      # include <linux/types.h>
6070      #endif
6071 "
6072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6073   cat >>confdefs.h <<_ACEOF
6074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081
6082 for ac_header in mach-o/dyld_images.h
6083 do :
6084   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6085      # include <stdbool.h>
6086      #endif
6087      #ifdef HAVE_STDINT_H
6088      # include <stdint.h>
6089      #endif
6090 "
6091 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6092   cat >>confdefs.h <<_ACEOF
6093 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6094 _ACEOF
6095
6096 fi
6097
6098 done
6099
6100
6101 for ac_header in resolv.h
6102 do :
6103   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6104      #ifdef HAVE_SYS_SOCKET_H
6105      # include <sys/socket.h>
6106      #endif
6107      #ifdef HAVE_NETINET_IN_H
6108      # include <netinet/in.h>
6109      #endif
6110      #ifdef HAVE_ARPA_NAMESER_H
6111      # include <arpa/nameser.h>
6112      #endif
6113 "
6114 if test "x$ac_cv_header_resolv_h" = xyes; then :
6115   cat >>confdefs.h <<_ACEOF
6116 #define HAVE_RESOLV_H 1
6117 _ACEOF
6118
6119 fi
6120
6121 done
6122
6123
6124 for ac_header in ifaddrs.h
6125 do :
6126   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6127 "
6128 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6129   cat >>confdefs.h <<_ACEOF
6130 #define HAVE_IFADDRS_H 1
6131 _ACEOF
6132
6133 fi
6134
6135 done
6136
6137
6138 for ac_header in ucontext.h
6139 do :
6140   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6141 "
6142 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define HAVE_UCONTEXT_H 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in sys/thr.h
6153 do :
6154   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6155 #ifdef HAVE_UCONTEXT_H
6156 #include <ucontext.h>
6157 #endif
6158 "
6159 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6160   cat >>confdefs.h <<_ACEOF
6161 #define HAVE_SYS_THR_H 1
6162 _ACEOF
6163
6164 fi
6165
6166 done
6167
6168
6169 for ac_header in pthread_np.h
6170 do :
6171   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6172 #include <pthread.h>
6173 #endif
6174 "
6175 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6176   cat >>confdefs.h <<_ACEOF
6177 #define HAVE_PTHREAD_NP_H 1
6178 _ACEOF
6179
6180 fi
6181
6182 done
6183
6184
6185 for ac_header in linux/videodev.h linux/videodev2.h
6186 do :
6187   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6189 #include <sys/time.h>
6190 #endif
6191 #include <sys/types.h>
6192 #ifdef HAVE_ASM_TYPES_H
6193 #include <asm/types.h>
6194 #endif
6195 "
6196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6197   cat >>confdefs.h <<_ACEOF
6198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6199 _ACEOF
6200
6201 fi
6202
6203 done
6204
6205
6206 for ac_header in linux/capi.h
6207 do :
6208   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6209 "
6210 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6211   cat >>confdefs.h <<_ACEOF
6212 #define HAVE_LINUX_CAPI_H 1
6213 _ACEOF
6214
6215 fi
6216
6217 done
6218
6219
6220
6221 DLLEXT=""
6222
6223 DLLFLAGS="-D_REENTRANT"
6224
6225 LDSHARED=""
6226
6227 LDDLLFLAGS=""
6228
6229 LIBEXT="so"
6230
6231 IMPLIBEXT="def"
6232
6233 LDRPATH_INSTALL=""
6234
6235 LDRPATH_LOCAL=""
6236
6237 STATIC_IMPLIBEXT="def.a"
6238 # Extract the first word of "ldd", so it can be a program name with args.
6239 set dummy ldd; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_path_LDD+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   case $LDD in
6246   [\\/]* | ?:[\\/]*)
6247   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6248   ;;
6249   *)
6250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 as_dummy="/sbin:/usr/sbin:$PATH"
6252 for as_dir in $as_dummy
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6267   ;;
6268 esac
6269 fi
6270 LDD=$ac_cv_path_LDD
6271 if test -n "$LDD"; then
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6273 $as_echo "$LDD" >&6; }
6274 else
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280
6281 case $host_os in
6282   cygwin*|mingw32*)
6283     if test -n "$ac_tool_prefix"; then
6284   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_DLLTOOL+:} false; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$DLLTOOL"; then
6292   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
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_prog_DLLTOOL="${ac_tool_prefix}dlltool"
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 fi
6310 fi
6311 DLLTOOL=$ac_cv_prog_DLLTOOL
6312 if test -n "$DLLTOOL"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6314 $as_echo "$DLLTOOL" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 fi
6322 if test -z "$ac_cv_prog_DLLTOOL"; then
6323   ac_ct_DLLTOOL=$DLLTOOL
6324   # Extract the first word of "dlltool", so it can be a program name with args.
6325 set dummy dlltool; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$ac_ct_DLLTOOL"; then
6332   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339     for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346   done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352 if test -n "$ac_ct_DLLTOOL"; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6354 $as_echo "$ac_ct_DLLTOOL" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360   if test "x$ac_ct_DLLTOOL" = x; then
6361     DLLTOOL="false"
6362   else
6363     case $cross_compiling:$ac_tool_warned in
6364 yes:)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6368 esac
6369     DLLTOOL=$ac_ct_DLLTOOL
6370   fi
6371 else
6372   DLLTOOL="$ac_cv_prog_DLLTOOL"
6373 fi
6374
6375     if test -n "$ac_tool_prefix"; then
6376   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_DLLWRAP+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$DLLWRAP"; then
6384   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 DLLWRAP=$ac_cv_prog_DLLWRAP
6404 if test -n "$DLLWRAP"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6406 $as_echo "$DLLWRAP" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_DLLWRAP"; then
6415   ac_ct_DLLWRAP=$DLLWRAP
6416   # Extract the first word of "dllwrap", so it can be a program name with args.
6417 set dummy dllwrap; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$ac_ct_DLLWRAP"; then
6424   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6444 if test -n "$ac_ct_DLLWRAP"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6446 $as_echo "$ac_ct_DLLWRAP" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452   if test "x$ac_ct_DLLWRAP" = x; then
6453     DLLWRAP="false"
6454   else
6455     case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461     DLLWRAP=$ac_ct_DLLWRAP
6462   fi
6463 else
6464   DLLWRAP="$ac_cv_prog_DLLWRAP"
6465 fi
6466
6467     if test "$DLLWRAP" = "false"; then
6468       LIBEXT="a"
6469     else
6470             LIBEXT="dll"
6471     fi
6472     IMPLIBEXT="a"
6473     STATIC_IMPLIBEXT="a"
6474         enable_iphlpapi=${enable_iphlpapi:-no}
6475     enable_kernel32=${enable_kernel32:-no}
6476     enable_msvcrt=${enable_msvcrt:-no}
6477     enable_ntdll=${enable_ntdll:-no}
6478     enable_ws2_32=${enable_ws2_32:-no}
6479     enable_loader=${enable_loader:-no}
6480     enable_server=${enable_server:-no}
6481         with_x=${with_x:-no}
6482     with_pthread=${with_pthread:-no}
6483     ;;
6484   darwin*|macosx*)
6485     DLLEXT=".so"
6486     LIBEXT="dylib"
6487     DLLFLAGS="$DLLFLAGS -fPIC"
6488     LDDLLFLAGS="-bundle -multiply_defined suppress"
6489     LIBWINE_LDFLAGS="-multiply_defined suppress"
6490     LDSHARED="\$(CC) -dynamiclib"
6491     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6492         COREFOUNDATIONLIB="-framework CoreFoundation"
6493
6494     IOKITLIB="-framework IOKit -framework CoreFoundation"
6495
6496     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6497
6498     case $host_os in
6499       darwin11*)
6500         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6501  ;;
6502       *)
6503         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6504  ;;
6505     esac
6506     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6507     then
6508                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6509
6510     fi
6511     if test "$ac_cv_header_Security_Security_h" = "yes"
6512     then
6513         SECURITYLIB="-framework Security -framework CoreFoundation"
6514
6515                 ac_save_LIBS="$LIBS"
6516         LIBS="$LIBS $SECURITYLIB"
6517         for ac_func in SSLCopyPeerCertificates
6518 do :
6519   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6520 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6521   cat >>confdefs.h <<_ACEOF
6522 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6523 _ACEOF
6524
6525 fi
6526 done
6527
6528         LIBS="$ac_save_LIBS"
6529         with_gnutls=${with_gnutls:-no}
6530     fi
6531     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6532     then
6533         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6534         then
6535             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6536
6537         else
6538                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6539
6540         fi
6541                 ac_save_LIBS="$LIBS"
6542         LIBS="$LIBS $COREAUDIO"
6543         for ac_func in AUGraphAddNode
6544 do :
6545   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6546 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6547   cat >>confdefs.h <<_ACEOF
6548 #define HAVE_AUGRAPHADDNODE 1
6549 _ACEOF
6550
6551 fi
6552 done
6553
6554         LIBS="$ac_save_LIBS"
6555     fi
6556     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6557     then
6558         FRAMEWORK_OPENAL="-framework OpenAL"
6559
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_OPENAL 1
6563 _ACEOF
6564
6565         ac_cv_lib_openal=yes
6566     fi
6567     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6568     then
6569         LIBOPENCL="-framework OpenCL"
6570
6571         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6572     fi
6573     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6574     then
6575         ac_save_LIBS="$LIBS"
6576         LIBS="$LIBS $IOKITLIB"
6577         for ac_func in IOHIDManagerCreate
6578 do :
6579   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6580 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6581   cat >>confdefs.h <<_ACEOF
6582 #define HAVE_IOHIDMANAGERCREATE 1
6583 _ACEOF
6584
6585 fi
6586 done
6587
6588         LIBS="$ac_save_LIBS"
6589     fi
6590     case $host_cpu in
6591       *powerpc*)
6592         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6593     esac
6594     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6595     then
6596         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6597
6598         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6599     else
6600         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6601     fi
6602         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6603     then
6604         CARBONLIB="-framework Carbon"
6605
6606         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6607     fi
6608         if test "x$enable_win16" = "xyes"
6609     then
6610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6611 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6612         if test "$cross_compiling" = yes; then :
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6614 $as_echo "cross-compiling, assuming yes" >&6; }
6615 else
6616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h.  */
6618 asm(".text\n"
6619                                             "bad:\tnop;nop\n"
6620                                             "good:\tnop;nop\n\t"
6621                                             ".globl _testfunc\n"
6622                                             "_testfunc:\tcallw good");
6623                                         extern void testfunc();
6624 int
6625 main ()
6626 {
6627 unsigned short *p = (unsigned short *)testfunc;
6628                                         return p[0] != 0xe866 || p[1] != 0xfffa
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_run "$LINENO"; then :
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }
6636 else
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639                                        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
6640 fi
6641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642   conftest.$ac_objext conftest.beam conftest.$ac_ext
6643 fi
6644
6645     fi
6646     ;;
6647   *)
6648     DLLFLAGS="$DLLFLAGS -fPIC"
6649     DLLEXT=".so"
6650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6651 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6652 if ${ac_cv_c_dll_gnuelf+:} false; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   ac_wine_try_cflags_saved=$CFLAGS
6656 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h.  */
6659 void myfunc() {}
6660 _ACEOF
6661 if ac_fn_c_try_link "$LINENO"; then :
6662   ac_cv_c_dll_gnuelf="yes"
6663 else
6664   ac_cv_c_dll_gnuelf="no"
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext \
6667     conftest$ac_exeext conftest.$ac_ext
6668 CFLAGS=$ac_wine_try_cflags_saved
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6671 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6672     if test "$ac_cv_c_dll_gnuelf" = "yes"
6673     then
6674       LDSHARED="\$(CC) -shared"
6675       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6676       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6677 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6678 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   ac_wine_try_cflags_saved=$CFLAGS
6682 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 int main(int argc, char **argv) { return 0; }
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"; then :
6688   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6689 else
6690   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext \
6693     conftest$ac_exeext conftest.$ac_ext
6694 CFLAGS=$ac_wine_try_cflags_saved
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6697 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6698 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6699   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6702 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6703 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   ac_wine_try_cflags_saved=$CFLAGS
6707 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h.  */
6710 int main(int argc, char **argv) { return 0; }
6711 _ACEOF
6712 if ac_fn_c_try_link "$LINENO"; then :
6713   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6714 else
6715   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext \
6718     conftest$ac_exeext conftest.$ac_ext
6719 CFLAGS=$ac_wine_try_cflags_saved
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6722 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6723 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6724   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6725 fi
6726 fi
6727
6728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6729 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6730 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   ac_wine_try_cflags_saved=$CFLAGS
6734 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h.  */
6737 int main(int argc, char **argv) { return 0; }
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"; then :
6740   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6741 else
6742   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext \
6745     conftest$ac_exeext conftest.$ac_ext
6746 CFLAGS=$ac_wine_try_cflags_saved
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6749 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6750 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6751   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6752 fi
6753
6754       { $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
6755 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6756 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   ac_wine_try_cflags_saved=$CFLAGS
6760 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763 int main(int argc, char **argv) { return 0; }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6766   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6767 else
6768   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext \
6771     conftest$ac_exeext conftest.$ac_ext
6772 CFLAGS=$ac_wine_try_cflags_saved
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6775 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6776 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6777   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6778 fi
6779
6780       echo '{ global: *; };' >conftest.map
6781       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6783 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6784 if eval \${$as_ac_var+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   ac_wine_try_cflags_saved=$CFLAGS
6788 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791 int main(int argc, char **argv) { return 0; }
6792 _ACEOF
6793 if ac_fn_c_try_link "$LINENO"; then :
6794   eval "$as_ac_var=yes"
6795 else
6796   eval "$as_ac_var=no"
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext \
6799     conftest$ac_exeext conftest.$ac_ext
6800 CFLAGS=$ac_wine_try_cflags_saved
6801 fi
6802 eval ac_res=\$$as_ac_var
6803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804 $as_echo "$ac_res" >&6; }
6805 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6806   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6807 fi
6808       rm -f conftest.map
6809
6810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6811 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6812 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   ac_wine_try_cflags_saved=$CFLAGS
6816 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h.  */
6819 int main(int argc, char **argv) { return 0; }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6823 else
6824   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext \
6827     conftest$ac_exeext conftest.$ac_ext
6828 CFLAGS=$ac_wine_try_cflags_saved
6829 fi
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6831 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6832 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6833   LDEXECFLAGS="-Wl,--export-dynamic"
6834
6835 fi
6836
6837       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6839 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6840 if eval \${$as_ac_var+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   ac_wine_try_cflags_saved=$CFLAGS
6844 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h.  */
6847 int main(int argc, char **argv) { return 0; }
6848 _ACEOF
6849 if ac_fn_c_try_link "$LINENO"; then :
6850   eval "$as_ac_var=yes"
6851 else
6852   eval "$as_ac_var=no"
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext \
6855     conftest$ac_exeext conftest.$ac_ext
6856 CFLAGS=$ac_wine_try_cflags_saved
6857 fi
6858 eval ac_res=\$$as_ac_var
6859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6861 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6862   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6863                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6864 else
6865   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6867 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6868 if eval \${$as_ac_var+:} false; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   ac_wine_try_cflags_saved=$CFLAGS
6872 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h.  */
6875 int main(int argc, char **argv) { return 0; }
6876 _ACEOF
6877 if ac_fn_c_try_link "$LINENO"; then :
6878   eval "$as_ac_var=yes"
6879 else
6880   eval "$as_ac_var=no"
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext \
6883     conftest$ac_exeext conftest.$ac_ext
6884 CFLAGS=$ac_wine_try_cflags_saved
6885 fi
6886 eval ac_res=\$$as_ac_var
6887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6888 $as_echo "$ac_res" >&6; }
6889 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6890   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6891                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6892 fi
6893 fi
6894
6895       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6896 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6897 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900   ac_wine_try_cflags_saved=$CFLAGS
6901 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h.  */
6904 int main(int argc, char **argv) { return 0; }
6905 _ACEOF
6906 if ac_fn_c_try_link "$LINENO"; then :
6907   ac_cv_cflags__Wl___enable_new_dtags=yes
6908 else
6909   ac_cv_cflags__Wl___enable_new_dtags=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext \
6912     conftest$ac_exeext conftest.$ac_ext
6913 CFLAGS=$ac_wine_try_cflags_saved
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6916 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6917 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6918   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6919 fi
6920
6921       case $host_cpu in
6922         *i[3456789]86* | x86_64)
6923           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6925 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6926 if eval \${$as_ac_var+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   ac_wine_try_cflags_saved=$CFLAGS
6930 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h.  */
6933 int main(int argc, char **argv) { return 0; }
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936   eval "$as_ac_var=yes"
6937 else
6938   eval "$as_ac_var=no"
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext \
6941     conftest$ac_exeext conftest.$ac_ext
6942 CFLAGS=$ac_wine_try_cflags_saved
6943 fi
6944 eval ac_res=\$$as_ac_var
6945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6946 $as_echo "$ac_res" >&6; }
6947 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6948   case $host_os in
6949                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6950                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6951                            esac
6952
6953 fi
6954           # Extract the first word of "prelink", so it can be a program name with args.
6955 set dummy prelink; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_path_PRELINK+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   case $PRELINK in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in /sbin /usr/sbin $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978   done
6979 IFS=$as_save_IFS
6980
6981   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6982   ;;
6983 esac
6984 fi
6985 PRELINK=$ac_cv_path_PRELINK
6986 if test -n "$PRELINK"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6988 $as_echo "$PRELINK" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994
6995           if test "x$PRELINK" = xfalse
6996           then
6997               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6998           fi
6999           ;;
7000       esac
7001
7002     else
7003       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7004 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7005 if ${ac_cv_c_dll_unixware+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   ac_wine_try_cflags_saved=$CFLAGS
7009 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h.  */
7012 void myfunc() {}
7013 _ACEOF
7014 if ac_fn_c_try_link "$LINENO"; then :
7015   ac_cv_c_dll_unixware="yes"
7016 else
7017   ac_cv_c_dll_unixware="no"
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext \
7020     conftest$ac_exeext conftest.$ac_ext
7021 CFLAGS=$ac_wine_try_cflags_saved
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7024 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7025       if test "$ac_cv_c_dll_unixware" = "yes"
7026       then
7027         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7028         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7029
7030       else
7031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7032 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7033 if ${ac_cv_c_dll_hpux+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   ac_wine_try_cflags_saved=$CFLAGS
7037 CFLAGS="$CFLAGS -shared"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h.  */
7040 void myfunc() {}
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043   ac_cv_c_dll_hpux="yes"
7044 else
7045   ac_cv_c_dll_hpux="no"
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext \
7048     conftest$ac_exeext conftest.$ac_ext
7049 CFLAGS=$ac_wine_try_cflags_saved
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7052 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7053         if test "$ac_cv_c_dll_hpux" = "yes"
7054         then
7055           LIBEXT="sl"
7056           DLLEXT=".sl"
7057           LDDLLFLAGS="-shared -fPIC"
7058           LDSHARED="\$(CC) -shared"
7059         fi
7060       fi
7061     fi
7062     ;;
7063 esac
7064
7065 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7066 enable_winequartz_drv=${enable_winequartz_drv:-no}
7067
7068 if test "$LIBEXT" = "a"; then
7069   as_fn_error $? "could not find a way to build shared libraries.
7070 It is currently not possible to build Wine without shared library
7071 (.so) support to allow transparent switch between .so and .dll files.
7072 If you are using Linux, you will need a newer binutils.
7073 " "$LINENO" 5
7074 fi
7075
7076 CROSSTEST_DISABLE=\#
7077
7078 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7079 then
7080     case "$host_cpu" in
7081   i[3456789]86*)
7082     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 " ;;
7083   x86_64)
7084     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 " ;;
7085   *)
7086     ac_prefix_list="" ;;
7087 esac
7088 for ac_prog in $ac_prefix_list
7089 do
7090   # Extract the first word of "$ac_prog", so it can be a program name with args.
7091 set dummy $ac_prog; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_CROSSCC+:} false; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   if test -n "$CROSSCC"; then
7098   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105     for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_prog_CROSSCC="$ac_prog"
7108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112   done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 CROSSCC=$ac_cv_prog_CROSSCC
7118 if test -n "$CROSSCC"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7120 $as_echo "$CROSSCC" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127   test -n "$CROSSCC" && break
7128 done
7129 test -n "$CROSSCC" || CROSSCC="false"
7130
7131     if test "$CROSSCC" != "false"
7132     then
7133         ac_save_CC="$CC"
7134         CC="$CROSSCC"
7135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7136 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h.  */
7139
7140 int
7141 main ()
7142 {
7143
7144   ;
7145   return 0;
7146 }
7147 _ACEOF
7148 if ac_fn_c_try_compile "$LINENO"; then :
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7150 $as_echo "yes" >&6; }
7151                            set x $CROSSCC
7152                            shift
7153                            target=""
7154                            while test $# -ge 1
7155                            do
7156                                case "$1" in
7157                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7158                                esac
7159                                shift
7160                            done
7161                            if test -n "$target"
7162                            then
7163                                CROSSTEST_DISABLE=""
7164                                CROSSTARGET="$target"
7165
7166                            fi
7167 else
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172         CC="$ac_save_CC"
7173     fi
7174 fi
7175
7176
7177 if test "$ac_cv_header_pthread_h" = "yes"
7178 then
7179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7180 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7181 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184   ac_check_lib_save_LIBS=$LIBS
7185 LIBS="-lpthread  $LIBS"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189 /* Override any GCC internal prototype to avoid an error.
7190    Use char because int might match the return type of a GCC
7191    builtin and then its argument prototype would still apply.  */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 char pthread_create ();
7196 int
7197 main ()
7198 {
7199 return pthread_create ();
7200   ;
7201   return 0;
7202 }
7203 _ACEOF
7204 if ac_fn_c_try_link "$LINENO"; then :
7205   ac_cv_lib_pthread_pthread_create=yes
7206 else
7207   ac_cv_lib_pthread_pthread_create=no
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext \
7210     conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7214 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7215 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7216   LIBPTHREAD="-lpthread"
7217
7218 fi
7219
7220 fi
7221 if test "x$LIBPTHREAD" = "x"; then :
7222   case "x$with_pthread" in
7223   xno) ;;
7224   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7225 Wine cannot support threads without libpthread.
7226 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7227 esac
7228 fi
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7232 $as_echo_n "checking for X... " >&6; }
7233
7234
7235 # Check whether --with-x was given.
7236 if test "${with_x+set}" = set; then :
7237   withval=$with_x;
7238 fi
7239
7240 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7241 if test "x$with_x" = xno; then
7242   # The user explicitly disabled X.
7243   have_x=disabled
7244 else
7245   case $x_includes,$x_libraries in #(
7246     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7247     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   # One or both of the vars are not set, and there is no cached value.
7251 ac_x_includes=no ac_x_libraries=no
7252 rm -f -r conftest.dir
7253 if mkdir conftest.dir; then
7254   cd conftest.dir
7255   cat >Imakefile <<'_ACEOF'
7256 incroot:
7257         @echo incroot='${INCROOT}'
7258 usrlibdir:
7259         @echo usrlibdir='${USRLIBDIR}'
7260 libdir:
7261         @echo libdir='${LIBDIR}'
7262 _ACEOF
7263   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7264     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7265     for ac_var in incroot usrlibdir libdir; do
7266       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7267     done
7268     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7269     for ac_extension in a so sl dylib la dll; do
7270       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7271          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7272         ac_im_usrlibdir=$ac_im_libdir; break
7273       fi
7274     done
7275     # Screen out bogus values from the imake configuration.  They are
7276     # bogus both because they are the default anyway, and because
7277     # using them would break gcc on systems where it needs fixed includes.
7278     case $ac_im_incroot in
7279         /usr/include) ac_x_includes= ;;
7280         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7281     esac
7282     case $ac_im_usrlibdir in
7283         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7284         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7285     esac
7286   fi
7287   cd ..
7288   rm -f -r conftest.dir
7289 fi
7290
7291 # Standard set of common directories for X headers.
7292 # Check X11 before X11Rn because it is often a symlink to the current release.
7293 ac_x_header_dirs='
7294 /usr/X11/include
7295 /usr/X11R7/include
7296 /usr/X11R6/include
7297 /usr/X11R5/include
7298 /usr/X11R4/include
7299
7300 /usr/include/X11
7301 /usr/include/X11R7
7302 /usr/include/X11R6
7303 /usr/include/X11R5
7304 /usr/include/X11R4
7305
7306 /usr/local/X11/include
7307 /usr/local/X11R7/include
7308 /usr/local/X11R6/include
7309 /usr/local/X11R5/include
7310 /usr/local/X11R4/include
7311
7312 /usr/local/include/X11
7313 /usr/local/include/X11R7
7314 /usr/local/include/X11R6
7315 /usr/local/include/X11R5
7316 /usr/local/include/X11R4
7317
7318 /usr/X386/include
7319 /usr/x386/include
7320 /usr/XFree86/include/X11
7321
7322 /usr/include
7323 /usr/local/include
7324 /usr/unsupported/include
7325 /usr/athena/include
7326 /usr/local/x11r5/include
7327 /usr/lpp/Xamples/include
7328
7329 /usr/openwin/include
7330 /usr/openwin/share/include'
7331
7332 if test "$ac_x_includes" = no; then
7333   # Guess where to find include files, by looking for Xlib.h.
7334   # First, try using that file with no special directory specified.
7335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h.  */
7337 #include <X11/Xlib.h>
7338 _ACEOF
7339 if ac_fn_c_try_cpp "$LINENO"; then :
7340   # We can compile using X headers with no special include directory.
7341 ac_x_includes=
7342 else
7343   for ac_dir in $ac_x_header_dirs; do
7344   if test -r "$ac_dir/X11/Xlib.h"; then
7345     ac_x_includes=$ac_dir
7346     break
7347   fi
7348 done
7349 fi
7350 rm -f conftest.err conftest.i conftest.$ac_ext
7351 fi # $ac_x_includes = no
7352
7353 if test "$ac_x_libraries" = no; then
7354   # Check for the libraries.
7355   # See if we find them without any special options.
7356   # Don't add to $LIBS permanently.
7357   ac_save_LIBS=$LIBS
7358   LIBS="-lX11 $LIBS"
7359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361 #include <X11/Xlib.h>
7362 int
7363 main ()
7364 {
7365 XrmInitialize ()
7366   ;
7367   return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371   LIBS=$ac_save_LIBS
7372 # We can link X programs with no special library path.
7373 ac_x_libraries=
7374 else
7375   LIBS=$ac_save_LIBS
7376 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7377 do
7378   # Don't even attempt the hair of trying to link an X program!
7379   for ac_extension in a so sl dylib la dll; do
7380     if test -r "$ac_dir/libX11.$ac_extension"; then
7381       ac_x_libraries=$ac_dir
7382       break 2
7383     fi
7384   done
7385 done
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext \
7388     conftest$ac_exeext conftest.$ac_ext
7389 fi # $ac_x_libraries = no
7390
7391 case $ac_x_includes,$ac_x_libraries in #(
7392   no,* | *,no | *\'*)
7393     # Didn't find X, or a directory has "'" in its name.
7394     ac_cv_have_x="have_x=no";; #(
7395   *)
7396     # Record where we found X for the cache.
7397     ac_cv_have_x="have_x=yes\
7398         ac_x_includes='$ac_x_includes'\
7399         ac_x_libraries='$ac_x_libraries'"
7400 esac
7401 fi
7402 ;; #(
7403     *) have_x=yes;;
7404   esac
7405   eval "$ac_cv_have_x"
7406 fi # $with_x != no
7407
7408 if test "$have_x" != yes; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7410 $as_echo "$have_x" >&6; }
7411   no_x=yes
7412 else
7413   # If each of the values was on the command line, it overrides each guess.
7414   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7415   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7416   # Update the cache value to reflect the command line values.
7417   ac_cv_have_x="have_x=yes\
7418         ac_x_includes='$x_includes'\
7419         ac_x_libraries='$x_libraries'"
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7421 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7422 fi
7423
7424 if test "$no_x" = yes; then
7425   # Not all programs may use this symbol, but it does not hurt to define it.
7426
7427 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7428
7429   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7430 else
7431   if test -n "$x_includes"; then
7432     X_CFLAGS="$X_CFLAGS -I$x_includes"
7433   fi
7434
7435   # It would also be nice to do this for all -L options, not just this one.
7436   if test -n "$x_libraries"; then
7437     X_LIBS="$X_LIBS -L$x_libraries"
7438     # For Solaris; some versions of Sun CC require a space after -R and
7439     # others require no space.  Words are not sufficient . . . .
7440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7441 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7442     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7443     ac_xsave_c_werror_flag=$ac_c_werror_flag
7444     ac_c_werror_flag=yes
7445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h.  */
7447
7448 int
7449 main ()
7450 {
7451
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_link "$LINENO"; then :
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459        X_LIBS="$X_LIBS -R$x_libraries"
7460 else
7461   LIBS="$ac_xsave_LIBS -R $x_libraries"
7462        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475 $as_echo "yes" >&6; }
7476           X_LIBS="$X_LIBS -R $x_libraries"
7477 else
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7479 $as_echo "neither works" >&6; }
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext \
7482     conftest$ac_exeext conftest.$ac_ext
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext \
7485     conftest$ac_exeext conftest.$ac_ext
7486     ac_c_werror_flag=$ac_xsave_c_werror_flag
7487     LIBS=$ac_xsave_LIBS
7488   fi
7489
7490   # Check for system-dependent libraries X programs must link with.
7491   # Do this before checking for the system-independent R6 libraries
7492   # (-lICE), since we may need -lsocket or whatever for X linking.
7493
7494   if test "$ISC" = yes; then
7495     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7496   else
7497     # Martyn Johnson says this is needed for Ultrix, if the X
7498     # libraries were built with DECnet support.  And Karl Berry says
7499     # the Alpha needs dnet_stub (dnet does not exist).
7500     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h.  */
7503
7504 /* Override any GCC internal prototype to avoid an error.
7505    Use char because int might match the return type of a GCC
7506    builtin and then its argument prototype would still apply.  */
7507 #ifdef __cplusplus
7508 extern "C"
7509 #endif
7510 char XOpenDisplay ();
7511 int
7512 main ()
7513 {
7514 return XOpenDisplay ();
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520
7521 else
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7523 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7524 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   ac_check_lib_save_LIBS=$LIBS
7528 LIBS="-ldnet  $LIBS"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531
7532 /* Override any GCC internal prototype to avoid an error.
7533    Use char because int might match the return type of a GCC
7534    builtin and then its argument prototype would still apply.  */
7535 #ifdef __cplusplus
7536 extern "C"
7537 #endif
7538 char dnet_ntoa ();
7539 int
7540 main ()
7541 {
7542 return dnet_ntoa ();
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_link "$LINENO"; then :
7548   ac_cv_lib_dnet_dnet_ntoa=yes
7549 else
7550   ac_cv_lib_dnet_dnet_ntoa=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext \
7553     conftest$ac_exeext conftest.$ac_ext
7554 LIBS=$ac_check_lib_save_LIBS
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7557 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7558 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7559   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7560 fi
7561
7562     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7564 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7565 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-ldnet_stub  $LIBS"
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572
7573 /* Override any GCC internal prototype to avoid an error.
7574    Use char because int might match the return type of a GCC
7575    builtin and then its argument prototype would still apply.  */
7576 #ifdef __cplusplus
7577 extern "C"
7578 #endif
7579 char dnet_ntoa ();
7580 int
7581 main ()
7582 {
7583 return dnet_ntoa ();
7584   ;
7585   return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_link "$LINENO"; then :
7589   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7590 else
7591   ac_cv_lib_dnet_stub_dnet_ntoa=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext \
7594     conftest$ac_exeext conftest.$ac_ext
7595 LIBS=$ac_check_lib_save_LIBS
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7598 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7599 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7600   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7601 fi
7602
7603     fi
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext \
7606     conftest$ac_exeext conftest.$ac_ext
7607     LIBS="$ac_xsave_LIBS"
7608
7609     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7610     # to get the SysV transport functions.
7611     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7612     # needs -lnsl.
7613     # The nsl library prevents programs from opening the X display
7614     # on Irix 5.2, according to T.E. Dickey.
7615     # The functions gethostbyname, getservbyname, and inet_addr are
7616     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7617     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7618 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7619
7620 fi
7621
7622     if test $ac_cv_func_gethostbyname = no; then
7623       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7624 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7625 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lnsl  $LIBS"
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h.  */
7632
7633 /* Override any GCC internal prototype to avoid an error.
7634    Use char because int might match the return type of a GCC
7635    builtin and then its argument prototype would still apply.  */
7636 #ifdef __cplusplus
7637 extern "C"
7638 #endif
7639 char gethostbyname ();
7640 int
7641 main ()
7642 {
7643 return gethostbyname ();
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_link "$LINENO"; then :
7649   ac_cv_lib_nsl_gethostbyname=yes
7650 else
7651   ac_cv_lib_nsl_gethostbyname=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext \
7654     conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7658 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7659 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7660   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7661 fi
7662
7663       if test $ac_cv_lib_nsl_gethostbyname = no; then
7664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7665 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7666 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   ac_check_lib_save_LIBS=$LIBS
7670 LIBS="-lbsd  $LIBS"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h.  */
7673
7674 /* Override any GCC internal prototype to avoid an error.
7675    Use char because int might match the return type of a GCC
7676    builtin and then its argument prototype would still apply.  */
7677 #ifdef __cplusplus
7678 extern "C"
7679 #endif
7680 char gethostbyname ();
7681 int
7682 main ()
7683 {
7684 return gethostbyname ();
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"; then :
7690   ac_cv_lib_bsd_gethostbyname=yes
7691 else
7692   ac_cv_lib_bsd_gethostbyname=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext \
7695     conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_check_lib_save_LIBS
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7699 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7700 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7701   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7702 fi
7703
7704       fi
7705     fi
7706
7707     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7708     # socket/setsockopt and other routines are undefined under SCO ODT
7709     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7710     # on later versions), says Simon Leinen: it contains gethostby*
7711     # variants that don't use the name server (or something).  -lsocket
7712     # must be given before -lnsl if both are needed.  We assume that
7713     # if connect needs -lnsl, so does gethostbyname.
7714     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7715 if test "x$ac_cv_func_connect" = xyes; then :
7716
7717 fi
7718
7719     if test $ac_cv_func_connect = no; then
7720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7721 $as_echo_n "checking for connect in -lsocket... " >&6; }
7722 if ${ac_cv_lib_socket_connect+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   ac_check_lib_save_LIBS=$LIBS
7726 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h.  */
7729
7730 /* Override any GCC internal prototype to avoid an error.
7731    Use char because int might match the return type of a GCC
7732    builtin and then its argument prototype would still apply.  */
7733 #ifdef __cplusplus
7734 extern "C"
7735 #endif
7736 char connect ();
7737 int
7738 main ()
7739 {
7740 return connect ();
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_c_try_link "$LINENO"; then :
7746   ac_cv_lib_socket_connect=yes
7747 else
7748   ac_cv_lib_socket_connect=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext \
7751     conftest$ac_exeext conftest.$ac_ext
7752 LIBS=$ac_check_lib_save_LIBS
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7755 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7756 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7757   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7758 fi
7759
7760     fi
7761
7762     # Guillermo Gomez says -lposix is necessary on A/UX.
7763     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7764 if test "x$ac_cv_func_remove" = xyes; then :
7765
7766 fi
7767
7768     if test $ac_cv_func_remove = no; then
7769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7770 $as_echo_n "checking for remove in -lposix... " >&6; }
7771 if ${ac_cv_lib_posix_remove+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lposix  $LIBS"
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778
7779 /* Override any GCC internal prototype to avoid an error.
7780    Use char because int might match the return type of a GCC
7781    builtin and then its argument prototype would still apply.  */
7782 #ifdef __cplusplus
7783 extern "C"
7784 #endif
7785 char remove ();
7786 int
7787 main ()
7788 {
7789 return remove ();
7790   ;
7791   return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_c_try_link "$LINENO"; then :
7795   ac_cv_lib_posix_remove=yes
7796 else
7797   ac_cv_lib_posix_remove=no
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext \
7800     conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7804 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7805 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7806   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7807 fi
7808
7809     fi
7810
7811     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7812     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7813 if test "x$ac_cv_func_shmat" = xyes; then :
7814
7815 fi
7816
7817     if test $ac_cv_func_shmat = no; then
7818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7819 $as_echo_n "checking for shmat in -lipc... " >&6; }
7820 if ${ac_cv_lib_ipc_shmat+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   ac_check_lib_save_LIBS=$LIBS
7824 LIBS="-lipc  $LIBS"
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h.  */
7827
7828 /* Override any GCC internal prototype to avoid an error.
7829    Use char because int might match the return type of a GCC
7830    builtin and then its argument prototype would still apply.  */
7831 #ifdef __cplusplus
7832 extern "C"
7833 #endif
7834 char shmat ();
7835 int
7836 main ()
7837 {
7838 return shmat ();
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_link "$LINENO"; then :
7844   ac_cv_lib_ipc_shmat=yes
7845 else
7846   ac_cv_lib_ipc_shmat=no
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext \
7849     conftest$ac_exeext conftest.$ac_ext
7850 LIBS=$ac_check_lib_save_LIBS
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7853 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7854 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7855   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7856 fi
7857
7858     fi
7859   fi
7860
7861   # Check for libraries that X11R6 Xt/Xaw programs need.
7862   ac_save_LDFLAGS=$LDFLAGS
7863   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7864   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7865   # check for ICE first), but we must link in the order -lSM -lICE or
7866   # we get undefined symbols.  So assume we have SM if we have ICE.
7867   # These have to be linked with before -lX11, unlike the other
7868   # libraries we check for below, so use a different variable.
7869   # John Interrante, Karl Berry
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7871 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7872 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875   ac_check_lib_save_LIBS=$LIBS
7876 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h.  */
7879
7880 /* Override any GCC internal prototype to avoid an error.
7881    Use char because int might match the return type of a GCC
7882    builtin and then its argument prototype would still apply.  */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 char IceConnectionNumber ();
7887 int
7888 main ()
7889 {
7890 return IceConnectionNumber ();
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896   ac_cv_lib_ICE_IceConnectionNumber=yes
7897 else
7898   ac_cv_lib_ICE_IceConnectionNumber=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901     conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7905 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7906 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7907   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7908 fi
7909
7910   LDFLAGS=$ac_save_LDFLAGS
7911
7912 fi
7913
7914
7915 if test "$have_x" = "yes"
7916 then
7917     XLIB="-lX11"
7918     ac_save_CPPFLAGS="$CPPFLAGS"
7919     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7920
7921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7922 $as_echo_n "checking for -lX11... " >&6; }
7923 if ${ac_cv_lib_soname_X11+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   ac_check_soname_save_LIBS=$LIBS
7927 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930
7931 /* Override any GCC internal prototype to avoid an error.
7932    Use char because int might match the return type of a GCC
7933    builtin and then its argument prototype would still apply.  */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 char XCreateWindow ();
7938 int
7939 main ()
7940 {
7941 return XCreateWindow ();
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947   case "$LIBEXT" in
7948     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7949     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'` ;;
7950     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7951   esac
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext \
7954     conftest$ac_exeext conftest.$ac_ext
7955   LIBS=$ac_check_soname_save_LIBS
7956 fi
7957 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7959 $as_echo "not found" >&6; }
7960
7961 else
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7963 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7967 _ACEOF
7968
7969
7970 fi
7971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7972 $as_echo_n "checking for -lXext... " >&6; }
7973 if ${ac_cv_lib_soname_Xext+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   ac_check_soname_save_LIBS=$LIBS
7977 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h.  */
7980
7981 /* Override any GCC internal prototype to avoid an error.
7982    Use char because int might match the return type of a GCC
7983    builtin and then its argument prototype would still apply.  */
7984 #ifdef __cplusplus
7985 extern "C"
7986 #endif
7987 char XextCreateExtension ();
7988 int
7989 main ()
7990 {
7991 return XextCreateExtension ();
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"; then :
7997   case "$LIBEXT" in
7998     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7999     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'` ;;
8000     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8001   esac
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext \
8004     conftest$ac_exeext conftest.$ac_ext
8005   LIBS=$ac_check_soname_save_LIBS
8006 fi
8007 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8009 $as_echo "not found" >&6; }
8010
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8013 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8014
8015 cat >>confdefs.h <<_ACEOF
8016 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8017 _ACEOF
8018
8019        XLIB="-lXext $XLIB"
8020 fi
8021
8022         for ac_header in X11/Xlib.h \
8023                       X11/XKBlib.h \
8024                       X11/Xutil.h \
8025                       X11/Xcursor/Xcursor.h \
8026                       X11/extensions/shape.h \
8027                       X11/extensions/XInput.h \
8028                       X11/extensions/XInput2.h \
8029                       X11/extensions/Xcomposite.h \
8030                       X11/extensions/Xinerama.h \
8031                       X11/extensions/Xrandr.h \
8032                       X11/extensions/Xrender.h \
8033                       X11/extensions/xf86vmode.h \
8034                       X11/extensions/xf86vmproto.h
8035 do :
8036   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8038 # include <X11/Xlib.h>
8039 #endif
8040 #ifdef HAVE_X11_XUTIL_H
8041 # include <X11/Xutil.h>
8042 #endif
8043 "
8044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8045   cat >>confdefs.h <<_ACEOF
8046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047 _ACEOF
8048
8049 fi
8050
8051 done
8052
8053
8054                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8055         then
8056               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8057 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8058 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   ac_check_lib_save_LIBS=$LIBS
8062 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065
8066 /* Override any GCC internal prototype to avoid an error.
8067    Use char because int might match the return type of a GCC
8068    builtin and then its argument prototype would still apply.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 char XkbQueryExtension ();
8073 int
8074 main ()
8075 {
8076 return XkbQueryExtension ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"; then :
8082   ac_cv_lib_X11_XkbQueryExtension=yes
8083 else
8084   ac_cv_lib_X11_XkbQueryExtension=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext \
8087     conftest$ac_exeext conftest.$ac_ext
8088 LIBS=$ac_check_lib_save_LIBS
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8091 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8092 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8093
8094 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8095
8096 fi
8097
8098         fi
8099
8100                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8101         then
8102             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8103 $as_echo_n "checking for -lXcursor... " >&6; }
8104 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   ac_check_soname_save_LIBS=$LIBS
8108 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h.  */
8111
8112 /* Override any GCC internal prototype to avoid an error.
8113    Use char because int might match the return type of a GCC
8114    builtin and then its argument prototype would still apply.  */
8115 #ifdef __cplusplus
8116 extern "C"
8117 #endif
8118 char XcursorImageLoadCursor ();
8119 int
8120 main ()
8121 {
8122 return XcursorImageLoadCursor ();
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128   case "$LIBEXT" in
8129     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8130     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'` ;;
8131     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8132   esac
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext \
8135     conftest$ac_exeext conftest.$ac_ext
8136   LIBS=$ac_check_soname_save_LIBS
8137 fi
8138 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8140 $as_echo "not found" >&6; }
8141
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8144 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8145
8146 cat >>confdefs.h <<_ACEOF
8147 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8148 _ACEOF
8149
8150
8151 fi
8152         fi
8153         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8154   case "x$with_xcursor" in
8155   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8156   xno) ;;
8157   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8158 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8159 esac
8160 fi
8161
8162                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8163         then
8164             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8165 $as_echo_n "checking for -lXi... " >&6; }
8166 if ${ac_cv_lib_soname_Xi+:} false; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   ac_check_soname_save_LIBS=$LIBS
8170 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h.  */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175    Use char because int might match the return type of a GCC
8176    builtin and then its argument prototype would still apply.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char XOpenDevice ();
8181 int
8182 main ()
8183 {
8184 return XOpenDevice ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190   case "$LIBEXT" in
8191     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8192     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'` ;;
8193     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8194   esac
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext \
8197     conftest$ac_exeext conftest.$ac_ext
8198   LIBS=$ac_check_soname_save_LIBS
8199 fi
8200 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8202 $as_echo "not found" >&6; }
8203
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8206 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8210 _ACEOF
8211
8212
8213 fi
8214         fi
8215         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8216   case "x$with_xinput" in
8217   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8218   xno) ;;
8219   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8220 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8221 esac
8222 fi
8223
8224                 if test "x$ac_cv_lib_soname_Xi" != x
8225         then
8226             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8227   case "x$with_xinput2" in
8228   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8229   xno) ;;
8230   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8231 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8232 esac
8233 fi
8234         fi
8235
8236                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8237         then
8238               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8239 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8240 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h.  */
8247
8248 /* Override any GCC internal prototype to avoid an error.
8249    Use char because int might match the return type of a GCC
8250    builtin and then its argument prototype would still apply.  */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 char XShapeQueryExtension ();
8255 int
8256 main ()
8257 {
8258 return XShapeQueryExtension ();
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264   ac_cv_lib_Xext_XShapeQueryExtension=yes
8265 else
8266   ac_cv_lib_Xext_XShapeQueryExtension=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext \
8269     conftest$ac_exeext conftest.$ac_ext
8270 LIBS=$ac_check_lib_save_LIBS
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8273 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8274 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8275
8276 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8277
8278 fi
8279
8280         fi
8281         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8282   case "x$with_xshape" in
8283   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8284   xno) ;;
8285   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8286 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8287 esac
8288 fi
8289
8290                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8291         then
8292             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8293 $as_echo_n "checking for -lXxf86vm... " >&6; }
8294 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   ac_check_soname_save_LIBS=$LIBS
8298 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301
8302 /* Override any GCC internal prototype to avoid an error.
8303    Use char because int might match the return type of a GCC
8304    builtin and then its argument prototype would still apply.  */
8305 #ifdef __cplusplus
8306 extern "C"
8307 #endif
8308 char XF86VidModeQueryExtension ();
8309 int
8310 main ()
8311 {
8312 return XF86VidModeQueryExtension ();
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318   case "$LIBEXT" in
8319     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8320     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'` ;;
8321     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8322   esac
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325     conftest$ac_exeext conftest.$ac_ext
8326   LIBS=$ac_check_soname_save_LIBS
8327 fi
8328 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8330 $as_echo "not found" >&6; }
8331
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8334 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8335
8336 cat >>confdefs.h <<_ACEOF
8337 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8338 _ACEOF
8339
8340
8341 fi
8342         fi
8343         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8344   case "x$with_xxf86vm" in
8345   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8346   xno) ;;
8347   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8348 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8349 esac
8350 fi
8351
8352                 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"
8353         then
8354             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8355 $as_echo_n "checking for -lXrender... " >&6; }
8356 if ${ac_cv_lib_soname_Xrender+:} false; then :
8357   $as_echo_n "(cached) " >&6
8358 else
8359   ac_check_soname_save_LIBS=$LIBS
8360 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363
8364 /* Override any GCC internal prototype to avoid an error.
8365    Use char because int might match the return type of a GCC
8366    builtin and then its argument prototype would still apply.  */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char XRenderQueryExtension ();
8371 int
8372 main ()
8373 {
8374 return XRenderQueryExtension ();
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380   case "$LIBEXT" in
8381     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8382     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'` ;;
8383     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8384   esac
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387     conftest$ac_exeext conftest.$ac_ext
8388   LIBS=$ac_check_soname_save_LIBS
8389 fi
8390 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8392 $as_echo "not found" >&6; }
8393
8394 else
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8396 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8400 _ACEOF
8401
8402        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8403 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8404 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   ac_check_lib_save_LIBS=$LIBS
8408 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h.  */
8411
8412 /* Override any GCC internal prototype to avoid an error.
8413    Use char because int might match the return type of a GCC
8414    builtin and then its argument prototype would still apply.  */
8415 #ifdef __cplusplus
8416 extern "C"
8417 #endif
8418 char XRenderSetPictureTransform ();
8419 int
8420 main ()
8421 {
8422 return XRenderSetPictureTransform ();
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 if ac_fn_c_try_link "$LINENO"; then :
8428   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8429 else
8430   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext \
8433     conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8437 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8438 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8439
8440 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8441
8442 fi
8443
8444                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8445 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8446 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   ac_check_lib_save_LIBS=$LIBS
8450 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h.  */
8453
8454 /* Override any GCC internal prototype to avoid an error.
8455    Use char because int might match the return type of a GCC
8456    builtin and then its argument prototype would still apply.  */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 char XRenderCreateLinearGradient ();
8461 int
8462 main ()
8463 {
8464 return XRenderCreateLinearGradient ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_link "$LINENO"; then :
8470   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8471 else
8472   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext \
8475     conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8479 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8480 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8481
8482 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8483
8484 fi
8485
8486 fi
8487
8488         fi
8489         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8490   case "x$with_xrender" in
8491   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8492   xno) ;;
8493   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8494 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8495 esac
8496 fi
8497
8498                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8499         then
8500                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502 #include <X11/Xlib.h>
8503 #include <X11/extensions/Xrandr.h>
8504 int
8505 main ()
8506 {
8507 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8514 $as_echo_n "checking for -lXrandr... " >&6; }
8515 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   ac_check_soname_save_LIBS=$LIBS
8519 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h.  */
8522
8523 /* Override any GCC internal prototype to avoid an error.
8524    Use char because int might match the return type of a GCC
8525    builtin and then its argument prototype would still apply.  */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 char XRRQueryExtension ();
8530 int
8531 main ()
8532 {
8533 return XRRQueryExtension ();
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_link "$LINENO"; then :
8539   case "$LIBEXT" in
8540     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8541     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'` ;;
8542     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8543   esac
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546     conftest$ac_exeext conftest.$ac_ext
8547   LIBS=$ac_check_soname_save_LIBS
8548 fi
8549 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8551 $as_echo "not found" >&6; }
8552
8553 else
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8555 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8556
8557 cat >>confdefs.h <<_ACEOF
8558 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8559 _ACEOF
8560
8561
8562 fi
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565         fi
8566         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8567   case "x$with_xrandr" in
8568   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8569   xno) ;;
8570   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8571 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8572 esac
8573 fi
8574
8575                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8576         then
8577                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h.  */
8579 #include <X11/Xlib.h>
8580 #include <X11/extensions/Xinerama.h>
8581 int
8582 main ()
8583 {
8584 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8591 $as_echo_n "checking for -lXinerama... " >&6; }
8592 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   ac_check_soname_save_LIBS=$LIBS
8596 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h.  */
8599
8600 /* Override any GCC internal prototype to avoid an error.
8601    Use char because int might match the return type of a GCC
8602    builtin and then its argument prototype would still apply.  */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 char XineramaQueryScreens ();
8607 int
8608 main ()
8609 {
8610 return XineramaQueryScreens ();
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616   case "$LIBEXT" in
8617     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8618     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'` ;;
8619     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8620   esac
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext \
8623     conftest$ac_exeext conftest.$ac_ext
8624   LIBS=$ac_check_soname_save_LIBS
8625 fi
8626 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8628 $as_echo "not found" >&6; }
8629
8630 else
8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8632 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8633
8634 cat >>confdefs.h <<_ACEOF
8635 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8636 _ACEOF
8637
8638
8639 fi
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642         fi
8643         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8644   case "x$with_xinerama" in
8645   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8646   xno) ;;
8647   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8648 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8649 esac
8650 fi
8651
8652                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8653         then
8654             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8655 $as_echo_n "checking for -lXcomposite... " >&6; }
8656 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   ac_check_soname_save_LIBS=$LIBS
8660 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663
8664 /* Override any GCC internal prototype to avoid an error.
8665    Use char because int might match the return type of a GCC
8666    builtin and then its argument prototype would still apply.  */
8667 #ifdef __cplusplus
8668 extern "C"
8669 #endif
8670 char XCompositeRedirectWindow ();
8671 int
8672 main ()
8673 {
8674 return XCompositeRedirectWindow ();
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_link "$LINENO"; then :
8680   case "$LIBEXT" in
8681     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8682     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'` ;;
8683     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8684   esac
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext \
8687     conftest$ac_exeext conftest.$ac_ext
8688   LIBS=$ac_check_soname_save_LIBS
8689 fi
8690 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8692 $as_echo "not found" >&6; }
8693
8694 else
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8696 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8697
8698 cat >>confdefs.h <<_ACEOF
8699 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8700 _ACEOF
8701
8702
8703 fi
8704         fi
8705         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8706   case "x$with_xcomposite" in
8707   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8708   xno) ;;
8709   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8710 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8711 esac
8712 fi
8713
8714                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8715 #include <X11/Xlib.h>
8716 #endif
8717 "
8718 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8719
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_XICCALLBACK_CALLBACK 1
8722 _ACEOF
8723
8724
8725 fi
8726 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8727 #include <X11/Xlib.h>
8728 #endif
8729 "
8730 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8731
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_XEVENT_XCOOKIE 1
8734 _ACEOF
8735
8736
8737 fi
8738
8739
8740
8741         opengl_msg=""
8742     if test "x$with_opengl" != "xno"
8743     then
8744         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8745 do :
8746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8748 # include <GL/glx.h>
8749 #endif
8750 "
8751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8752   cat >>confdefs.h <<_ACEOF
8753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8755
8756 fi
8757
8758 done
8759
8760         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8761         then
8762                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8763 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8764 if ${wine_cv_opengl_header_version_OK+:} false; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h.  */
8769 #include <GL/gl.h>
8770 int
8771 main ()
8772 {
8773 GLenum test = GL_UNSIGNED_SHORT_5_6_5;  return (test == GL_UNSIGNED_SHORT_5_6_5);
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_c_try_compile "$LINENO"; then :
8779   wine_cv_opengl_header_version_OK="yes"
8780 else
8781   wine_cv_opengl_header_version_OK="no"
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8786 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8787
8788             if test "$wine_cv_opengl_header_version_OK" = "yes"
8789             then
8790                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8791 $as_echo_n "checking for -lGL... " >&6; }
8792 if ${ac_cv_lib_soname_GL+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_check_soname_save_LIBS=$LIBS
8796 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h.  */
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801    Use char because int might match the return type of a GCC
8802    builtin and then its argument prototype would still apply.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char glXCreateContext ();
8807 int
8808 main ()
8809 {
8810 return glXCreateContext ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816   case "$LIBEXT" in
8817     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8818     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'` ;;
8819     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8820   esac
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823     conftest$ac_exeext conftest.$ac_ext
8824   LIBS=$ac_check_soname_save_LIBS
8825 fi
8826 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8828 $as_echo "not found" >&6; }
8829        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8830 $as_echo_n "checking for -lGL... " >&6; }
8831 if ${ac_cv_lib_soname_GL+:} false; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   ac_check_soname_save_LIBS=$LIBS
8835 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"
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 /* Override any GCC internal prototype to avoid an error.
8840    Use char because int might match the return type of a GCC
8841    builtin and then its argument prototype would still apply.  */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char glXCreateContext ();
8846 int
8847 main ()
8848 {
8849 return glXCreateContext ();
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855   case "$LIBEXT" in
8856     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8857     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'` ;;
8858     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8859   esac
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862     conftest$ac_exeext conftest.$ac_ext
8863   LIBS=$ac_check_soname_save_LIBS
8864 fi
8865 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8867 $as_echo "not found" >&6; }
8868        if test -f /usr/X11R6/lib/libGL.a
8869                                     then
8870                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8871 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8872                                     else
8873                                         opengl_msg="No OpenGL library found on this system."
8874                                     fi
8875 else
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8877 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8881 _ACEOF
8882
8883        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"
8884
8885 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8886
8887 fi
8888 else
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8890 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8891
8892 cat >>confdefs.h <<_ACEOF
8893 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8894 _ACEOF
8895
8896        OPENGL_LIBS="-lGL"
8897
8898 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8899
8900 fi
8901                  if test "$ac_cv_header_GL_glu_h" = "yes"
8902                  then
8903                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8904 $as_echo_n "checking for -lGLU... " >&6; }
8905 if ${ac_cv_lib_soname_GLU+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   ac_check_soname_save_LIBS=$LIBS
8909 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h.  */
8912
8913 /* Override any GCC internal prototype to avoid an error.
8914    Use char because int might match the return type of a GCC
8915    builtin and then its argument prototype would still apply.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char gluLookAt ();
8920 int
8921 main ()
8922 {
8923 return gluLookAt ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929   case "$LIBEXT" in
8930     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8931     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'` ;;
8932     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8933   esac
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext \
8936     conftest$ac_exeext conftest.$ac_ext
8937   LIBS=$ac_check_soname_save_LIBS
8938 fi
8939 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8941 $as_echo "not found" >&6; }
8942
8943 else
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8945 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8946
8947 cat >>confdefs.h <<_ACEOF
8948 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8949 _ACEOF
8950
8951
8952 fi
8953                  fi
8954                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8955   case "x$with_glu" in
8956   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8957   xno) ;;
8958   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8959 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8960 esac
8961 fi
8962              else
8963                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8964              fi
8965          else
8966              opengl_msg="OpenGL development headers not found."
8967          fi
8968          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8969          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8970     else
8971          enable_opengl32=${enable_opengl32:-no}
8972          enable_glu32=${enable_glu32:-no}
8973     fi
8974     if test -n "$opengl_msg"; then :
8975   case "x$with_opengl" in
8976   x)   as_fn_append wine_warnings "|$opengl_msg
8977 OpenGL and Direct3D won't be supported." ;;
8978   xno) ;;
8979   *)   as_fn_error $? "$opengl_msg
8980 OpenGL and Direct3D won't be supported.
8981 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8982 esac
8983 fi
8984
8985     CPPFLAGS="$ac_save_CPPFLAGS"
8986 else
8987     XLIB=""
8988     X_CFLAGS=""
8989     X_LIBS=""
8990     enable_winex11_drv=${enable_winex11_drv:-no}
8991     enable_opengl32=${enable_opengl32:-no}
8992     enable_glu32=${enable_glu32:-no}
8993 fi
8994 if test "x$XLIB" = "x"; then :
8995   case "x$with_x" in
8996   xno) ;;
8997   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
8998 without X support, which probably isn't what you want. You will need
8999 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9000 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9001 esac
9002 fi
9003
9004 if test "$ac_cv_header_CL_cl_h" = "yes"
9005 then
9006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9007 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9008 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   ac_check_lib_save_LIBS=$LIBS
9012 LIBS="-lOpenCL  $LIBS"
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h.  */
9015
9016 /* Override any GCC internal prototype to avoid an error.
9017    Use char because int might match the return type of a GCC
9018    builtin and then its argument prototype would still apply.  */
9019 #ifdef __cplusplus
9020 extern "C"
9021 #endif
9022 char clGetPlatformInfo ();
9023 int
9024 main ()
9025 {
9026 return clGetPlatformInfo ();
9027   ;
9028   return 0;
9029 }
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9033 else
9034   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext \
9037     conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9041 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9042 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9043   LIBOPENCL="-lOpenCL"
9044
9045 fi
9046
9047 fi
9048 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9049   case "x$with_opencl" in
9050   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9051   xno) ;;
9052   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9053 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9054 esac
9055 fi
9056 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9057
9058
9059 XML2LIBS=""
9060
9061 XML2INCL=""
9062
9063 XSLTINCL=""
9064
9065 if test "x$with_xml" != "xno"
9066 then
9067     ac_save_CPPFLAGS="$CPPFLAGS"
9068     if test "$PKG_CONFIG" != "false"
9069     then
9070         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9071         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9072     else
9073         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9074         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9075     fi
9076     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9077     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9078 do :
9079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9082   cat >>confdefs.h <<_ACEOF
9083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9084 _ACEOF
9085
9086 fi
9087
9088 done
9089
9090     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"
9091     then
9092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9093 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9094 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9095   $as_echo_n "(cached) " >&6
9096 else
9097   ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-lxml2 $ac_xml_libs $LIBS"
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h.  */
9101
9102 /* Override any GCC internal prototype to avoid an error.
9103    Use char because int might match the return type of a GCC
9104    builtin and then its argument prototype would still apply.  */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 char xmlParseMemory ();
9109 int
9110 main ()
9111 {
9112 return xmlParseMemory ();
9113   ;
9114   return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118   ac_cv_lib_xml2_xmlParseMemory=yes
9119 else
9120   ac_cv_lib_xml2_xmlParseMemory=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123     conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9127 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9128 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9129
9130 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9131
9132              XML2LIBS="$ac_xml_libs"
9133              XML2INCL="$ac_xml_cflags"
9134 fi
9135
9136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9137 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9138 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-lxml2 $ac_xml_libs $LIBS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h.  */
9145
9146 /* Override any GCC internal prototype to avoid an error.
9147    Use char because int might match the return type of a GCC
9148    builtin and then its argument prototype would still apply.  */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char xmlReadMemory ();
9153 int
9154 main ()
9155 {
9156 return xmlReadMemory ();
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162   ac_cv_lib_xml2_xmlReadMemory=yes
9163 else
9164   ac_cv_lib_xml2_xmlReadMemory=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext \
9167     conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_lib_save_LIBS
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9171 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9172 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9173
9174 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9175
9176 fi
9177
9178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9179 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9180 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   ac_check_lib_save_LIBS=$LIBS
9184 LIBS="-lxml2 $ac_xml_libs $LIBS"
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h.  */
9187
9188 /* Override any GCC internal prototype to avoid an error.
9189    Use char because int might match the return type of a GCC
9190    builtin and then its argument prototype would still apply.  */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char xmlNewDocPI ();
9195 int
9196 main ()
9197 {
9198 return xmlNewDocPI ();
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204   ac_cv_lib_xml2_xmlNewDocPI=yes
9205 else
9206   ac_cv_lib_xml2_xmlNewDocPI=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext \
9209     conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9213 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9214 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9215
9216 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9217
9218 fi
9219
9220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9221 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9222 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-lxml2 $ac_xml_libs $LIBS"
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h.  */
9229
9230 /* Override any GCC internal prototype to avoid an error.
9231    Use char because int might match the return type of a GCC
9232    builtin and then its argument prototype would still apply.  */
9233 #ifdef __cplusplus
9234 extern "C"
9235 #endif
9236 char xmlSchemaSetParserStructuredErrors ();
9237 int
9238 main ()
9239 {
9240 return xmlSchemaSetParserStructuredErrors ();
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"; then :
9246   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9247 else
9248   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext \
9251     conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9255 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9256 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9257
9258 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9259
9260 fi
9261
9262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9263 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9264 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9265   $as_echo_n "(cached) " >&6
9266 else
9267   ac_check_lib_save_LIBS=$LIBS
9268 LIBS="-lxml2 $ac_xml_libs $LIBS"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h.  */
9271
9272 /* Override any GCC internal prototype to avoid an error.
9273    Use char because int might match the return type of a GCC
9274    builtin and then its argument prototype would still apply.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char xmlSchemaSetValidStructuredErrors ();
9279 int
9280 main ()
9281 {
9282 return xmlSchemaSetValidStructuredErrors ();
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9289 else
9290   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext \
9293     conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9297 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9298 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9299
9300 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9301
9302 fi
9303
9304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9305 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9306 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9307   $as_echo_n "(cached) " >&6
9308 else
9309   ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-lxml2 $ac_xml_libs $LIBS"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h.  */
9313
9314 /* Override any GCC internal prototype to avoid an error.
9315    Use char because int might match the return type of a GCC
9316    builtin and then its argument prototype would still apply.  */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char xmlFirstElementChild ();
9321 int
9322 main ()
9323 {
9324 return xmlFirstElementChild ();
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330   ac_cv_lib_xml2_xmlFirstElementChild=yes
9331 else
9332   ac_cv_lib_xml2_xmlFirstElementChild=no
9333 fi
9334 rm -f core conftest.err conftest.$ac_objext \
9335     conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9339 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9340 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9341
9342 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9343
9344 fi
9345
9346         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9347 "
9348 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9349
9350 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9351
9352 fi
9353
9354     fi
9355     CPPFLAGS="$ac_save_CPPFLAGS"
9356 fi
9357 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9358   case "x$with_xml" in
9359   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9360   xno) ;;
9361   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9362 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9363 esac
9364 fi
9365
9366 if test "x$with_xslt" != "xno"
9367 then
9368     if test "$PKG_CONFIG" != "false"
9369     then
9370         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9371         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9372     else
9373         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9374         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9375     fi
9376     ac_save_CPPFLAGS="$CPPFLAGS"
9377     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9378     for ac_header in libxslt/pattern.h libxslt/transform.h
9379 do :
9380   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9381 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9382 # include <libxslt/pattern.h>
9383 #endif
9384 "
9385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9386   cat >>confdefs.h <<_ACEOF
9387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9388 _ACEOF
9389
9390 fi
9391
9392 done
9393
9394     CPPFLAGS="$ac_save_CPPFLAGS"
9395     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9396     then
9397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9398 $as_echo_n "checking for -lxslt... " >&6; }
9399 if ${ac_cv_lib_soname_xslt+:} false; then :
9400   $as_echo_n "(cached) " >&6
9401 else
9402   ac_check_soname_save_LIBS=$LIBS
9403 LIBS="-lxslt $ac_xslt_libs $LIBS"
9404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h.  */
9406
9407 /* Override any GCC internal prototype to avoid an error.
9408    Use char because int might match the return type of a GCC
9409    builtin and then its argument prototype would still apply.  */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char xsltCompilePattern ();
9414 int
9415 main ()
9416 {
9417 return xsltCompilePattern ();
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423   case "$LIBEXT" in
9424     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9425     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'` ;;
9426     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9427   esac
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext \
9430     conftest$ac_exeext conftest.$ac_ext
9431   LIBS=$ac_check_soname_save_LIBS
9432 fi
9433 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9435 $as_echo "not found" >&6; }
9436
9437 else
9438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9439 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9440
9441 cat >>confdefs.h <<_ACEOF
9442 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9443 _ACEOF
9444
9445        XSLTINCL="$ac_xslt_cflags"
9446 fi
9447     fi
9448 fi
9449 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9450   case "x$with_xslt" in
9451   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9452   xno) ;;
9453   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9454 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9455 esac
9456 fi
9457
9458 if test "x$with_dbus" != "xno"
9459 then
9460     ac_save_CPPFLAGS="$CPPFLAGS"
9461     if test "$PKG_CONFIG" != "false"
9462     then
9463         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9464         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9465         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9466     fi
9467     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9468 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9470 $as_echo_n "checking for -ldbus-1... " >&6; }
9471 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   ac_check_soname_save_LIBS=$LIBS
9475 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h.  */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480    Use char because int might match the return type of a GCC
9481    builtin and then its argument prototype would still apply.  */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char dbus_connection_close ();
9486 int
9487 main ()
9488 {
9489 return dbus_connection_close ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495   case "$LIBEXT" in
9496     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9497     dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9498     *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9499   esac
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502     conftest$ac_exeext conftest.$ac_ext
9503   LIBS=$ac_check_soname_save_LIBS
9504 fi
9505 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9507 $as_echo "not found" >&6; }
9508
9509 else
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9511 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9512
9513 cat >>confdefs.h <<_ACEOF
9514 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9515 _ACEOF
9516
9517        DBUSINCL="$ac_dbus_cflags"
9518
9519 fi
9520 fi
9521
9522
9523     CPPFLAGS="$ac_save_CPPFLAGS"
9524 fi
9525 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9526                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9527   case "x$with_dbus" in
9528   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9529   xno) ;;
9530   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9531 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9532 esac
9533 fi
9534
9535 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9536 then
9537     ac_save_CPPFLAGS="$CPPFLAGS"
9538     if test "$PKG_CONFIG" != "false"
9539     then
9540         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9541         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9542         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9543     fi
9544     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9545 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9547 $as_echo_n "checking for -lhal... " >&6; }
9548 if ${ac_cv_lib_soname_hal+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   ac_check_soname_save_LIBS=$LIBS
9552 LIBS="-lhal $ac_hal_libs $LIBS"
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char libhal_ctx_new ();
9563 int
9564 main ()
9565 {
9566 return libhal_ctx_new ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572   case "$LIBEXT" in
9573     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9574     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'` ;;
9575     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9576   esac
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579     conftest$ac_exeext conftest.$ac_ext
9580   LIBS=$ac_check_soname_save_LIBS
9581 fi
9582 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9584 $as_echo "not found" >&6; }
9585
9586 else
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9588 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9589
9590 cat >>confdefs.h <<_ACEOF
9591 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9592 _ACEOF
9593
9594        HALINCL="$ac_hal_cflags"
9595
9596 fi
9597 fi
9598
9599
9600     CPPFLAGS="$ac_save_CPPFLAGS"
9601     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9602                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9603   case "x$with_hal" in
9604   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9605   xno) ;;
9606   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9607 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9608 esac
9609 fi
9610 fi
9611
9612 if test "x$with_gnutls" != "xno"
9613 then
9614     ac_save_CPPFLAGS="$CPPFLAGS"
9615     if test "$PKG_CONFIG" != "false"
9616     then
9617         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9618         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9619         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9620     fi
9621     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9622 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h.  */
9625 #include <gnutls/gnutls.h>
9626 int
9627 main ()
9628 {
9629 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"; then :
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9636 $as_echo_n "checking for -lgnutls... " >&6; }
9637 if ${ac_cv_lib_soname_gnutls+:} false; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   ac_check_soname_save_LIBS=$LIBS
9641 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h.  */
9644
9645 /* Override any GCC internal prototype to avoid an error.
9646    Use char because int might match the return type of a GCC
9647    builtin and then its argument prototype would still apply.  */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char gnutls_global_init ();
9652 int
9653 main ()
9654 {
9655 return gnutls_global_init ();
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"; then :
9661   case "$LIBEXT" in
9662     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9663     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'` ;;
9664     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9665   esac
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668     conftest$ac_exeext conftest.$ac_ext
9669   LIBS=$ac_check_soname_save_LIBS
9670 fi
9671 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9673 $as_echo "not found" >&6; }
9674
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9677 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9678
9679 cat >>confdefs.h <<_ACEOF
9680 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9681 _ACEOF
9682
9683        GNUTLSINCL="$ac_gnutls_cflags"
9684
9685 fi
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689
9690
9691     CPPFLAGS="$ac_save_CPPFLAGS"
9692 fi
9693 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9694   case "x$with_gnutls" in
9695   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9696   xno) ;;
9697   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9698 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9699 esac
9700 fi
9701
9702 CURSESLIBS=""
9703 if test "$ac_cv_header_ncurses_h" = "yes"
9704 then
9705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9706 $as_echo_n "checking for -lncurses... " >&6; }
9707 if ${ac_cv_lib_soname_ncurses+:} false; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   ac_check_soname_save_LIBS=$LIBS
9711 LIBS="-lncurses  $LIBS"
9712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h.  */
9714
9715 /* Override any GCC internal prototype to avoid an error.
9716    Use char because int might match the return type of a GCC
9717    builtin and then its argument prototype would still apply.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char waddch ();
9722 int
9723 main ()
9724 {
9725 return waddch ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731   case "$LIBEXT" in
9732     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9733     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'` ;;
9734     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9735   esac
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738     conftest$ac_exeext conftest.$ac_ext
9739   LIBS=$ac_check_soname_save_LIBS
9740 fi
9741 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9743 $as_echo "not found" >&6; }
9744
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9747 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9748
9749 cat >>confdefs.h <<_ACEOF
9750 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9751 _ACEOF
9752
9753        CURSESLIBS="-lncurses"
9754 fi
9755 elif test "$ac_cv_header_curses_h" = "yes"
9756 then
9757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9758 $as_echo_n "checking for -lcurses... " >&6; }
9759 if ${ac_cv_lib_soname_curses+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   ac_check_soname_save_LIBS=$LIBS
9763 LIBS="-lcurses  $LIBS"
9764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h.  */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char waddch ();
9774 int
9775 main ()
9776 {
9777 return waddch ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783   case "$LIBEXT" in
9784     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9785     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'` ;;
9786     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9787   esac
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791   LIBS=$ac_check_soname_save_LIBS
9792 fi
9793 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9795 $as_echo "not found" >&6; }
9796
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9799 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9800
9801 cat >>confdefs.h <<_ACEOF
9802 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9803 _ACEOF
9804
9805        CURSESLIBS="-lcurses"
9806 fi
9807 fi
9808 ac_save_LIBS="$LIBS"
9809 LIBS="$LIBS $CURSESLIBS"
9810 for ac_func in mousemask
9811 do :
9812   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9813 if test "x$ac_cv_func_mousemask" = xyes; then :
9814   cat >>confdefs.h <<_ACEOF
9815 #define HAVE_MOUSEMASK 1
9816 _ACEOF
9817
9818 fi
9819 done
9820
9821 LIBS="$ac_save_LIBS"
9822 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9823   case "x$with_curses" in
9824   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9825   xno) ;;
9826   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9827 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9828 esac
9829 fi
9830
9831 if test "x$with_sane" != "xno"
9832 then
9833     ac_save_CPPFLAGS="$CPPFLAGS"
9834     # Extract the first word of "sane-config", so it can be a program name with args.
9835 set dummy sane-config; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_sane_devel+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   if test -n "$sane_devel"; then
9842   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847   IFS=$as_save_IFS
9848   test -z "$as_dir" && as_dir=.
9849     for ac_exec_ext in '' $ac_executable_extensions; do
9850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9851     ac_cv_prog_sane_devel="sane-config"
9852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853     break 2
9854   fi
9855 done
9856   done
9857 IFS=$as_save_IFS
9858
9859   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9860 fi
9861 fi
9862 sane_devel=$ac_cv_prog_sane_devel
9863 if test -n "$sane_devel"; then
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9865 $as_echo "$sane_devel" >&6; }
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870
9871
9872     if test "$sane_devel" != "no"
9873     then
9874         ac_sane_incl="`$sane_devel --cflags`"
9875         ac_sane_libs="`$sane_devel --ldflags`"
9876         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9877     fi
9878     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9879 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9881 $as_echo_n "checking for -lsane... " >&6; }
9882 if ${ac_cv_lib_soname_sane+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   ac_check_soname_save_LIBS=$LIBS
9886 LIBS="-lsane $ac_sane_libs $LIBS"
9887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h.  */
9889
9890 /* Override any GCC internal prototype to avoid an error.
9891    Use char because int might match the return type of a GCC
9892    builtin and then its argument prototype would still apply.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char sane_init ();
9897 int
9898 main ()
9899 {
9900 return sane_init ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 if ac_fn_c_try_link "$LINENO"; then :
9906   case "$LIBEXT" in
9907     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9908     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'` ;;
9909     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9910   esac
9911 fi
9912 rm -f core conftest.err conftest.$ac_objext \
9913     conftest$ac_exeext conftest.$ac_ext
9914   LIBS=$ac_check_soname_save_LIBS
9915 fi
9916 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9918 $as_echo "not found" >&6; }
9919
9920 else
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9922 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9926 _ACEOF
9927
9928        SANEINCL="$ac_sane_incl"
9929
9930 fi
9931 fi
9932
9933
9934     CPPFLAGS="$ac_save_CPPFLAGS"
9935 fi
9936 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9937   case "x$with_sane" in
9938   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9939   xno) ;;
9940   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9941 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9942 esac
9943 fi
9944
9945 if test "x$with_v4l" != "xno"
9946 then
9947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9948 $as_echo_n "checking for -lv4l1... " >&6; }
9949 if ${ac_cv_lib_soname_v4l1+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   ac_check_soname_save_LIBS=$LIBS
9953 LIBS="-lv4l1  $LIBS"
9954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956
9957 /* Override any GCC internal prototype to avoid an error.
9958    Use char because int might match the return type of a GCC
9959    builtin and then its argument prototype would still apply.  */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char v4l1_open ();
9964 int
9965 main ()
9966 {
9967 return v4l1_open ();
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973   case "$LIBEXT" in
9974     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9975     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'` ;;
9976     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9977   esac
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980     conftest$ac_exeext conftest.$ac_ext
9981   LIBS=$ac_check_soname_save_LIBS
9982 fi
9983 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9985 $as_echo "not found" >&6; }
9986
9987 else
9988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9989 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9990
9991 cat >>confdefs.h <<_ACEOF
9992 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9993 _ACEOF
9994
9995
9996 fi
9997 fi
9998 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9999   case "x$with_v4l" in
10000   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10001   xno) ;;
10002   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10003 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10004 esac
10005 fi
10006
10007 if test "x$with_gphoto" != "xno"
10008 then
10009     ac_save_CPPFLAGS="$CPPFLAGS"
10010     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10011 set dummy gphoto2-config; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   if test -n "$gphoto2_devel"; then
10018   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027     ac_cv_prog_gphoto2_devel="gphoto2-config"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034
10035   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10036 fi
10037 fi
10038 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10039 if test -n "$gphoto2_devel"; then
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10041 $as_echo "$gphoto2_devel" >&6; }
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046
10047
10048     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10049 set dummy gphoto2-port-config; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055   if test -n "$gphoto2port_devel"; then
10056   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072
10073   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10074 fi
10075 fi
10076 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10077 if test -n "$gphoto2port_devel"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10079 $as_echo "$gphoto2port_devel" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085
10086     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10087     then
10088         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10089         ac_gphoto2_libs=""
10090         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10091         do
10092             case "$i" in
10093             -L/usr/lib|-L/usr/lib64) ;;
10094             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10095             esac
10096         done
10097         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10098     fi
10099     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10100     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10101 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10103 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10104 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h.  */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char gp_camera_new ();
10119 int
10120 main ()
10121 {
10122 return gp_camera_new ();
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128   ac_cv_lib_gphoto2_gp_camera_new=yes
10129 else
10130   ac_cv_lib_gphoto2_gp_camera_new=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133     conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10137 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10138 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10139
10140 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10141
10142                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10143
10144                                    GPHOTO2INCL="$ac_gphoto2_incl"
10145
10146 fi
10147
10148 fi
10149
10150
10151     CPPFLAGS="$ac_save_CPPFLAGS"
10152 fi
10153 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10154   case "x$with_gphoto" in
10155   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10156   xno) ;;
10157   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10158 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10159 esac
10160 fi
10161
10162
10163 if test "$ac_cv_header_resolv_h" = "yes"
10164 then
10165     ac_save_LIBS="$LIBS"
10166     for lib in '' -lresolv
10167     do
10168       LIBS="$lib $ac_save_LIBS"
10169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h.  */
10171 #ifdef HAVE_NETINET_IN_H
10172 #include <netinet/in.h>
10173 #endif
10174 #include <resolv.h>
10175 int
10176 main ()
10177 {
10178 res_query("foo",ns_c_in,0,0,0);
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184
10185 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10186
10187          RESOLVLIBS="$lib"
10188
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext \
10191     conftest$ac_exeext conftest.$ac_ext
10192       if test "${RESOLVLIBS+set}" = set; then
10193         break
10194       fi
10195     done
10196     LIBS="$ac_save_LIBS"
10197 fi
10198
10199 LCMSLIBS=""
10200
10201 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10202 then
10203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10204 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10205 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-llcms  $LIBS"
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h.  */
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214    Use char because int might match the return type of a GCC
10215    builtin and then its argument prototype would still apply.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char cmsOpenProfileFromFile ();
10220 int
10221 main ()
10222 {
10223 return cmsOpenProfileFromFile ();
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10230 else
10231   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234     conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10236 fi
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10238 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10239 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10240
10241 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10242
10243          LCMSLIBS="-llcms"
10244 fi
10245
10246 fi
10247 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10248   case "x$with_cms" in
10249   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10250   xno) ;;
10251   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10252 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10253 esac
10254 fi
10255
10256 if test "x$with_freetype" != "xno"
10257 then
10258     for ac_prog in freetype-config freetype2-config
10259 do
10260   # Extract the first word of "$ac_prog", so it can be a program name with args.
10261 set dummy $ac_prog; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_ft_devel+:} false; then :
10265   $as_echo_n "(cached) " >&6
10266 else
10267   if test -n "$ft_devel"; then
10268   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10269 else
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10272 do
10273   IFS=$as_save_IFS
10274   test -z "$as_dir" && as_dir=.
10275     for ac_exec_ext in '' $ac_executable_extensions; do
10276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10277     ac_cv_prog_ft_devel="$ac_prog"
10278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279     break 2
10280   fi
10281 done
10282   done
10283 IFS=$as_save_IFS
10284
10285 fi
10286 fi
10287 ft_devel=$ac_cv_prog_ft_devel
10288 if test -n "$ft_devel"; then
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10290 $as_echo "$ft_devel" >&6; }
10291 else
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296
10297   test -n "$ft_devel" && break
10298 done
10299 test -n "$ft_devel" || ft_devel="no"
10300
10301     if test "$ft_devel" != "no"
10302     then
10303         ac_freetype_incl=`$ft_devel --cflags`
10304         ac_freetype_libs=`$ft_devel --libs`
10305     fi
10306     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10308 $as_echo_n "checking for -lfreetype... " >&6; }
10309 if ${ac_cv_lib_soname_freetype+:} false; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   ac_check_soname_save_LIBS=$LIBS
10313 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h.  */
10316
10317 /* Override any GCC internal prototype to avoid an error.
10318    Use char because int might match the return type of a GCC
10319    builtin and then its argument prototype would still apply.  */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char FT_Init_FreeType ();
10324 int
10325 main ()
10326 {
10327 return FT_Init_FreeType ();
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 if ac_fn_c_try_link "$LINENO"; then :
10333   case "$LIBEXT" in
10334     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10335     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'` ;;
10336     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10337   esac
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext \
10340     conftest$ac_exeext conftest.$ac_ext
10341   LIBS=$ac_check_soname_save_LIBS
10342 fi
10343 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10345 $as_echo "not found" >&6; }
10346        ft_lib=no
10347 else
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10349 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10353 _ACEOF
10354
10355        ft_lib=yes
10356 fi
10357     if test "$ft_lib" = "yes"
10358     then
10359         ac_save_CPPFLAGS="$CPPFLAGS"
10360         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10361         for ac_header in ft2build.h \
10362                          freetype/freetype.h \
10363                          freetype/ftglyph.h \
10364                          freetype/fttypes.h \
10365                          freetype/tttables.h \
10366                          freetype/ftsnames.h \
10367                          freetype/ttnameid.h \
10368                          freetype/ftoutln.h \
10369                          freetype/ftwinfnt.h \
10370                          freetype/ftmodapi.h \
10371                          freetype/ftlcdfil.h
10372 do :
10373   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10375                           # include <ft2build.h>
10376                           #endif
10377 "
10378 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10379   cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10381 _ACEOF
10382
10383 fi
10384
10385 done
10386
10387         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h.  */
10389 #include <ft2build.h>
10390                     #include <freetype/fttrigon.h>
10391 _ACEOF
10392 if ac_fn_c_try_cpp "$LINENO"; then :
10393
10394 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10395
10396                     wine_cv_fttrigon=yes
10397 else
10398   wine_cv_fttrigon=no
10399 fi
10400 rm -f conftest.err conftest.i conftest.$ac_ext
10401         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10402 "
10403 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10404
10405 cat >>confdefs.h <<_ACEOF
10406 #define HAVE_FT_TRUETYPEENGINETYPE 1
10407 _ACEOF
10408
10409
10410 fi
10411
10412                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10413         then
10414
10415 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10416
10417             FREETYPELIBS="$ac_freetype_libs"
10418
10419             FREETYPEINCL="$ac_freetype_incl"
10420
10421         fi
10422     fi
10423 fi
10424 if test "x$FREETYPELIBS" = "x"; then :
10425   case "x$with_freetype" in
10426   xno) ;;
10427   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10428 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10429 esac
10430 fi
10431 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10434 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10435 if ${ac_cv_c_ppdev+:} false; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h.  */
10440 #ifdef HAVE_SYS_IOCTL_H
10441 # include <sys/ioctl.h>
10442 #endif
10443 #include <linux/ppdev.h>
10444 int
10445 main ()
10446 {
10447 ioctl (1,PPCLAIM,0)
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453   ac_cv_c_ppdev="yes"
10454 else
10455   ac_cv_c_ppdev="no"
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10460 $as_echo "$ac_cv_c_ppdev" >&6; }
10461 if test "$ac_cv_c_ppdev" = "yes"
10462 then
10463
10464 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10465
10466 fi
10467
10468 ac_wine_check_funcs_save_LIBS="$LIBS"
10469 LIBS="$LIBS $LIBPTHREAD"
10470 for ac_func in \
10471         pthread_attr_get_np \
10472         pthread_getattr_np \
10473         pthread_get_stackaddr_np \
10474         pthread_get_stacksize_np
10475 do :
10476   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10479   cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10481 _ACEOF
10482
10483 fi
10484 done
10485
10486 LIBS="$ac_wine_check_funcs_save_LIBS"
10487
10488 if test "$ac_cv_header_zlib_h" = "yes"
10489 then
10490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10491 $as_echo_n "checking for inflate in -lz... " >&6; }
10492 if ${ac_cv_lib_z_inflate+:} false; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-lz  $LIBS"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501    Use char because int might match the return type of a GCC
10502    builtin and then its argument prototype would still apply.  */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char inflate ();
10507 int
10508 main ()
10509 {
10510 return inflate ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516   ac_cv_lib_z_inflate=yes
10517 else
10518   ac_cv_lib_z_inflate=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521     conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10525 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10526 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10527
10528 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10529
10530                             ZLIB="-lz"
10531
10532 fi
10533
10534 fi
10535 if test "x$ZLIB" = "x"; then :
10536   case "x$with_zlib" in
10537   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10538   xno) ;;
10539   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10540 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10541 esac
10542 fi
10543
10544 if test "x$enable_tools" != xno
10545 then
10546     if test "$ac_cv_header_gettext_po_h" = "yes"
10547     then
10548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10549 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10550 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10551   $as_echo_n "(cached) " >&6
10552 else
10553   ac_check_lib_save_LIBS=$LIBS
10554 LIBS="-lgettextpo  $LIBS"
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h.  */
10557
10558 /* Override any GCC internal prototype to avoid an error.
10559    Use char because int might match the return type of a GCC
10560    builtin and then its argument prototype would still apply.  */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char po_message_msgctxt ();
10565 int
10566 main ()
10567 {
10568 return po_message_msgctxt ();
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10575 else
10576   ac_cv_lib_gettextpo_po_message_msgctxt=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579     conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10581 fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10583 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10584 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10585
10586 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10587
10588                       LIBGETTEXTPO="-lgettextpo"
10589
10590 fi
10591
10592     fi
10593     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10594   case "x$with_gettextpo" in
10595   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10596   xno) ;;
10597   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10598 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10599 esac
10600 fi
10601 fi
10602
10603 if test "x$with_gstreamer" != "xno"
10604 then
10605     ac_save_CPPFLAGS="$CPPFLAGS"
10606     if test "$PKG_CONFIG" != "false"; then
10607         ac_gst_incl=""
10608         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10609         do
10610             case "$i" in
10611                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10612             esac
10613         done
10614         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10615         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10616         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10617 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10618   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10619 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10621 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10622               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624 #include <gst/app/gstappsink.h>
10625 int
10626 main ()
10627 {
10628 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_compile "$LINENO"; then :
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635 $as_echo "yes" >&6; }
10636                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10637 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10638 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lgstreamer-0.10  $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647    Use char because int might match the return type of a GCC
10648    builtin and then its argument prototype would still apply.  */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char gst_pad_get_caps_reffed ();
10653 int
10654 main ()
10655 {
10656 return gst_pad_get_caps_reffed ();
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10663 else
10664   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667     conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10671 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10672 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10674 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10675 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h.  */
10682
10683 /* Override any GCC internal prototype to avoid an error.
10684    Use char because int might match the return type of a GCC
10685    builtin and then its argument prototype would still apply.  */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char gst_app_buffer_new ();
10690 int
10691 main ()
10692 {
10693 return gst_app_buffer_new ();
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"; then :
10699   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10700 else
10701   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext \
10704     conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10708 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10709 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10710   GSTREAMER_LIBS="$ac_gst_libs"
10711
10712                        GSTREAMER_INCL="$ac_gst_incl"
10713
10714 fi
10715
10716 fi
10717
10718 else
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 fi
10724
10725
10726 fi
10727
10728
10729     fi
10730     CPPFLAGS="$ac_save_CPPFLAGS"
10731 fi
10732 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10733   case "x$with_gstreamer" in
10734   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10735   xno) ;;
10736   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10737 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10738 esac
10739 fi
10740 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10741
10742 ALSALIBS=""
10743
10744 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10745 then
10746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10747 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10748 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-lasound  $LIBS"
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h.  */
10755
10756 /* Override any GCC internal prototype to avoid an error.
10757    Use char because int might match the return type of a GCC
10758    builtin and then its argument prototype would still apply.  */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 char snd_pcm_hw_params_get_access_mask ();
10763 int
10764 main ()
10765 {
10766 return snd_pcm_hw_params_get_access_mask ();
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10772   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10773 else
10774   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext \
10777     conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10781 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10782 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785 #ifdef HAVE_ALSA_ASOUNDLIB_H
10786 #include <alsa/asoundlib.h>
10787 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10788 #include <sys/asoundlib.h>
10789 #endif
10790 int
10791 main ()
10792 {
10793 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799   ALSALIBS="-lasound"
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 fi
10803
10804 fi
10805
10806 if test "x$with_oss" != xno
10807 then
10808     ac_save_CPPFLAGS="$CPPFLAGS"
10809     if test -f /etc/oss.conf
10810     then
10811         . /etc/oss.conf
10812     fi
10813     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10814     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10815     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10816 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10817   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10818 "
10819 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10820
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10823 _ACEOF
10824
10825 OSS4INCL="$ac_oss_incl"
10826
10827 fi
10828
10829 fi
10830
10831
10832     CPPFLAGS="$ac_save_CPPFLAGS"
10833     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10834     then
10835         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10836     fi
10837 fi
10838
10839
10840 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10841 then
10842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10843 $as_echo_n "checking for -lcapi20... " >&6; }
10844 if ${ac_cv_lib_soname_capi20+:} false; then :
10845   $as_echo_n "(cached) " >&6
10846 else
10847   ac_check_soname_save_LIBS=$LIBS
10848 LIBS="-lcapi20  $LIBS"
10849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851
10852 /* Override any GCC internal prototype to avoid an error.
10853    Use char because int might match the return type of a GCC
10854    builtin and then its argument prototype would still apply.  */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char capi20_register ();
10859 int
10860 main ()
10861 {
10862 return capi20_register ();
10863   ;
10864   return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868   case "$LIBEXT" in
10869     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10870     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'` ;;
10871     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10872   esac
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875     conftest$ac_exeext conftest.$ac_ext
10876   LIBS=$ac_check_soname_save_LIBS
10877 fi
10878 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10880 $as_echo "not found" >&6; }
10881
10882 else
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10884 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10885
10886 cat >>confdefs.h <<_ACEOF
10887 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10888 _ACEOF
10889
10890
10891 fi
10892 fi
10893 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10894   case "x$with_capi" in
10895   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10896   xno) ;;
10897   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10898 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10899 esac
10900 fi
10901
10902 CUPSINCL=""
10903
10904 if test "x$with_cups" != "xno"
10905 then
10906     ac_save_CPPFLAGS="$CPPFLAGS"
10907     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10908     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10909     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10910     for ac_header in cups/cups.h
10911 do :
10912   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10913 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10914   cat >>confdefs.h <<_ACEOF
10915 #define HAVE_CUPS_CUPS_H 1
10916 _ACEOF
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10918 $as_echo_n "checking for -lcups... " >&6; }
10919 if ${ac_cv_lib_soname_cups+:} false; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   ac_check_soname_save_LIBS=$LIBS
10923 LIBS="-lcups $ac_cups_libs $LIBS"
10924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h.  */
10926
10927 /* Override any GCC internal prototype to avoid an error.
10928    Use char because int might match the return type of a GCC
10929    builtin and then its argument prototype would still apply.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 char cupsGetDefault ();
10934 int
10935 main ()
10936 {
10937 return cupsGetDefault ();
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"; then :
10943   case "$LIBEXT" in
10944     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10945     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'` ;;
10946     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10947   esac
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950     conftest$ac_exeext conftest.$ac_ext
10951   LIBS=$ac_check_soname_save_LIBS
10952 fi
10953 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10955 $as_echo "not found" >&6; }
10956
10957 else
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10959 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10960
10961 cat >>confdefs.h <<_ACEOF
10962 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10963 _ACEOF
10964
10965        CUPSINCL="$ac_cups_cflags"
10966 fi
10967 fi
10968
10969 done
10970
10971     CPPFLAGS="$ac_save_CPPFLAGS"
10972 fi
10973 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10974   case "x$with_cups" in
10975   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10976   xno) ;;
10977   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10978 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10979 esac
10980 fi
10981
10982 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10983 then
10984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10985 $as_echo_n "checking for -lfontconfig... " >&6; }
10986 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   ac_check_soname_save_LIBS=$LIBS
10990 LIBS="-lfontconfig  $LIBS"
10991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h.  */
10993
10994 /* Override any GCC internal prototype to avoid an error.
10995    Use char because int might match the return type of a GCC
10996    builtin and then its argument prototype would still apply.  */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char FcInit ();
11001 int
11002 main ()
11003 {
11004 return FcInit ();
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010   case "$LIBEXT" in
11011     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11012     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'` ;;
11013     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11014   esac
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext \
11017     conftest$ac_exeext conftest.$ac_ext
11018   LIBS=$ac_check_soname_save_LIBS
11019 fi
11020 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11022 $as_echo "not found" >&6; }
11023
11024 else
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11026 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11027
11028 cat >>confdefs.h <<_ACEOF
11029 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11030 _ACEOF
11031
11032
11033 fi
11034 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11035 then
11036         ac_save_CPPFLAGS="$CPPFLAGS"
11037     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11038     $as_unset ac_cv_header_fontconfig_fontconfig_h
11039     for ac_header in fontconfig/fontconfig.h
11040 do :
11041   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11042 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11043   cat >>confdefs.h <<_ACEOF
11044 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11045 _ACEOF
11046
11047 fi
11048
11049 done
11050
11051     CPPFLAGS="$ac_save_CPPFLAGS"
11052     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11053     then
11054         FONTCONFIGINCL="$X_CFLAGS"
11055
11056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11057 $as_echo_n "checking for -lfontconfig... " >&6; }
11058 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   ac_check_soname_save_LIBS=$LIBS
11062 LIBS="-lfontconfig $X_LIBS $LIBS"
11063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h.  */
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067    Use char because int might match the return type of a GCC
11068    builtin and then its argument prototype would still apply.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char FcInit ();
11073 int
11074 main ()
11075 {
11076 return FcInit ();
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082   case "$LIBEXT" in
11083     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11084     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'` ;;
11085     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11086   esac
11087 fi
11088 rm -f core conftest.err conftest.$ac_objext \
11089     conftest$ac_exeext conftest.$ac_ext
11090   LIBS=$ac_check_soname_save_LIBS
11091 fi
11092 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11094 $as_echo "not found" >&6; }
11095
11096 else
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11098 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11099
11100 cat >>confdefs.h <<_ACEOF
11101 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11102 _ACEOF
11103
11104
11105 fi
11106     fi
11107 fi
11108 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11109   case "x$with_fontconfig" in
11110   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11111   xno) ;;
11112   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11113 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11114 esac
11115 fi
11116
11117 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11118 then
11119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11120 $as_echo_n "checking for -lssl... " >&6; }
11121 if ${ac_cv_lib_soname_ssl+:} false; then :
11122   $as_echo_n "(cached) " >&6
11123 else
11124   ac_check_soname_save_LIBS=$LIBS
11125 LIBS="-lssl  $LIBS"
11126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h.  */
11128
11129 /* Override any GCC internal prototype to avoid an error.
11130    Use char because int might match the return type of a GCC
11131    builtin and then its argument prototype would still apply.  */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char SSL_library_init ();
11136 int
11137 main ()
11138 {
11139 return SSL_library_init ();
11140   ;
11141   return 0;
11142 }
11143 _ACEOF
11144 if ac_fn_c_try_link "$LINENO"; then :
11145   case "$LIBEXT" in
11146     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11147     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'` ;;
11148     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11149   esac
11150 fi
11151 rm -f core conftest.err conftest.$ac_objext \
11152     conftest$ac_exeext conftest.$ac_ext
11153   LIBS=$ac_check_soname_save_LIBS
11154 fi
11155 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11157 $as_echo "not found" >&6; }
11158
11159 else
11160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11161 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11162
11163 cat >>confdefs.h <<_ACEOF
11164 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11165 _ACEOF
11166
11167
11168 fi
11169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11170 $as_echo_n "checking for -lcrypto... " >&6; }
11171 if ${ac_cv_lib_soname_crypto+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   ac_check_soname_save_LIBS=$LIBS
11175 LIBS="-lcrypto  $LIBS"
11176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h.  */
11178
11179 /* Override any GCC internal prototype to avoid an error.
11180    Use char because int might match the return type of a GCC
11181    builtin and then its argument prototype would still apply.  */
11182 #ifdef __cplusplus
11183 extern "C"
11184 #endif
11185 char BIO_new_socket ();
11186 int
11187 main ()
11188 {
11189 return BIO_new_socket ();
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195   case "$LIBEXT" in
11196     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11197     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'` ;;
11198     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11199   esac
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203   LIBS=$ac_check_soname_save_LIBS
11204 fi
11205 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11207 $as_echo "not found" >&6; }
11208
11209 else
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11211 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11212
11213 cat >>confdefs.h <<_ACEOF
11214 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11215 _ACEOF
11216
11217
11218 fi
11219 fi
11220 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11221   case "x$with_openssl" in
11222   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11223   xno) ;;
11224   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11225 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11226 esac
11227 fi
11228
11229 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11230 then
11231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11232 $as_echo_n "checking for -lgsm... " >&6; }
11233 if ${ac_cv_lib_soname_gsm+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   ac_check_soname_save_LIBS=$LIBS
11237 LIBS="-lgsm  $LIBS"
11238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h.  */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242    Use char because int might match the return type of a GCC
11243    builtin and then its argument prototype would still apply.  */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char gsm_create ();
11248 int
11249 main ()
11250 {
11251 return gsm_create ();
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257   case "$LIBEXT" in
11258     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11259     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'` ;;
11260     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11261   esac
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264     conftest$ac_exeext conftest.$ac_ext
11265   LIBS=$ac_check_soname_save_LIBS
11266 fi
11267 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11269 $as_echo "not found" >&6; }
11270
11271 else
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11273 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11274
11275 cat >>confdefs.h <<_ACEOF
11276 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11277 _ACEOF
11278
11279
11280 fi
11281 fi
11282 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11283   case "x$with_gsm" in
11284   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11285   xno) ;;
11286   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11287 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11288 esac
11289 fi
11290
11291 if test "$ac_cv_header_jpeglib_h" = "yes"
11292 then
11293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11294 $as_echo_n "checking for -ljpeg... " >&6; }
11295 if ${ac_cv_lib_soname_jpeg+:} false; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   ac_check_soname_save_LIBS=$LIBS
11299 LIBS="-ljpeg  $LIBS"
11300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h.  */
11302
11303 /* Override any GCC internal prototype to avoid an error.
11304    Use char because int might match the return type of a GCC
11305    builtin and then its argument prototype would still apply.  */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char jpeg_start_decompress ();
11310 int
11311 main ()
11312 {
11313 return jpeg_start_decompress ();
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_link "$LINENO"; then :
11319   case "$LIBEXT" in
11320     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11321     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'` ;;
11322     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11323   esac
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327   LIBS=$ac_check_soname_save_LIBS
11328 fi
11329 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11331 $as_echo "not found" >&6; }
11332
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11335 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11336
11337 cat >>confdefs.h <<_ACEOF
11338 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11339 _ACEOF
11340
11341
11342 fi
11343 fi
11344 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11345   case "x$with_jpeg" in
11346   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11347   xno) ;;
11348   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11349 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11350 esac
11351 fi
11352
11353 if test "$ac_cv_header_png_h" = "yes"
11354 then
11355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11356 $as_echo_n "checking for -lpng... " >&6; }
11357 if ${ac_cv_lib_soname_png+:} false; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360   ac_check_soname_save_LIBS=$LIBS
11361 LIBS="-lpng -lm -lz $LIBS"
11362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h.  */
11364
11365 /* Override any GCC internal prototype to avoid an error.
11366    Use char because int might match the return type of a GCC
11367    builtin and then its argument prototype would still apply.  */
11368 #ifdef __cplusplus
11369 extern "C"
11370 #endif
11371 char png_create_read_struct ();
11372 int
11373 main ()
11374 {
11375 return png_create_read_struct ();
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381   case "$LIBEXT" in
11382     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11383     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'` ;;
11384     *) 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'` ;;
11385   esac
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388     conftest$ac_exeext conftest.$ac_ext
11389   LIBS=$ac_check_soname_save_LIBS
11390 fi
11391 if test "x$ac_cv_lib_soname_png" = "x"; then :
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11393 $as_echo "not found" >&6; }
11394
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11397 $as_echo "$ac_cv_lib_soname_png" >&6; }
11398
11399 cat >>confdefs.h <<_ACEOF
11400 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11401 _ACEOF
11402
11403
11404 fi
11405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11406 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11407 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410   ac_check_lib_save_LIBS=$LIBS
11411 LIBS="-lpng -lm -lz $LIBS"
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h.  */
11414
11415 /* Override any GCC internal prototype to avoid an error.
11416    Use char because int might match the return type of a GCC
11417    builtin and then its argument prototype would still apply.  */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 char png_set_expand_gray_1_2_4_to_8 ();
11422 int
11423 main ()
11424 {
11425 return png_set_expand_gray_1_2_4_to_8 ();
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_link "$LINENO"; then :
11431   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11432 else
11433   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext \
11436     conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11440 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11441 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11442
11443 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11444
11445
11446 fi
11447
11448 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11449 then
11450         ac_save_CPPFLAGS="$CPPFLAGS"
11451     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11452     $as_unset ac_cv_header_png_h
11453     for ac_header in png.h
11454 do :
11455   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11456 if test "x$ac_cv_header_png_h" = xyes; then :
11457   cat >>confdefs.h <<_ACEOF
11458 #define HAVE_PNG_H 1
11459 _ACEOF
11460
11461 fi
11462
11463 done
11464
11465     CPPFLAGS="$ac_save_CPPFLAGS"
11466     if test "$ac_cv_header_png_h" = "yes"
11467     then
11468         PNGINCL="$X_CFLAGS"
11469
11470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11471 $as_echo_n "checking for -lpng... " >&6; }
11472 if ${ac_cv_lib_soname_png+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   ac_check_soname_save_LIBS=$LIBS
11476 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481    Use char because int might match the return type of a GCC
11482    builtin and then its argument prototype would still apply.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char png_create_read_struct ();
11487 int
11488 main ()
11489 {
11490 return png_create_read_struct ();
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496   case "$LIBEXT" in
11497     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11498     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'` ;;
11499     *) 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'` ;;
11500   esac
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext \
11503     conftest$ac_exeext conftest.$ac_ext
11504   LIBS=$ac_check_soname_save_LIBS
11505 fi
11506 if test "x$ac_cv_lib_soname_png" = "x"; then :
11507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11508 $as_echo "not found" >&6; }
11509
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11512 $as_echo "$ac_cv_lib_soname_png" >&6; }
11513
11514 cat >>confdefs.h <<_ACEOF
11515 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11516 _ACEOF
11517
11518
11519 fi
11520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11521 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11522 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h.  */
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531    Use char because int might match the return type of a GCC
11532    builtin and then its argument prototype would still apply.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char png_set_expand_gray_1_2_4_to_8 ();
11537 int
11538 main ()
11539 {
11540 return png_set_expand_gray_1_2_4_to_8 ();
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_link "$LINENO"; then :
11546   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11547 else
11548   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551     conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11555 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11556 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11557   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11558
11559 fi
11560
11561     fi
11562 fi
11563 if test "x$ac_cv_lib_soname_png" = "x"; then :
11564   case "x$with_png" in
11565   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11566   xno) ;;
11567   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11568 This is an error since --with-png was requested." "$LINENO" 5 ;;
11569 esac
11570 fi
11571
11572 if test "$ac_cv_header_tiffio_h" = "yes"
11573 then
11574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11575 $as_echo_n "checking for -ltiff... " >&6; }
11576 if ${ac_cv_lib_soname_tiff+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   ac_check_soname_save_LIBS=$LIBS
11580 LIBS="-ltiff  $LIBS"
11581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h.  */
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585    Use char because int might match the return type of a GCC
11586    builtin and then its argument prototype would still apply.  */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char TIFFClientOpen ();
11591 int
11592 main ()
11593 {
11594 return TIFFClientOpen ();
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600   case "$LIBEXT" in
11601     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11602     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'` ;;
11603     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11604   esac
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607     conftest$ac_exeext conftest.$ac_ext
11608   LIBS=$ac_check_soname_save_LIBS
11609 fi
11610 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11612 $as_echo "not found" >&6; }
11613
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11616 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11617
11618 cat >>confdefs.h <<_ACEOF
11619 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11620 _ACEOF
11621
11622
11623 fi
11624 fi
11625 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11626   case "x$with_tiff" in
11627   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11628   xno) ;;
11629   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11630 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11631 esac
11632 fi
11633
11634 if test "$ac_cv_header_mpg123_h" = "yes"
11635 then
11636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11637 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11638 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-lmpg123  $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h.  */
11645
11646 /* Override any GCC internal prototype to avoid an error.
11647    Use char because int might match the return type of a GCC
11648    builtin and then its argument prototype would still apply.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char mpg123_feed ();
11653 int
11654 main ()
11655 {
11656 return mpg123_feed ();
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662   ac_cv_lib_mpg123_mpg123_feed=yes
11663 else
11664   ac_cv_lib_mpg123_mpg123_feed=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667     conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11671 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11672 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11673   LIBMPG123="-lmpg123"
11674
11675 fi
11676
11677 fi
11678 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11679   case "x$with_mpg123" in
11680   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11681   xno) ;;
11682   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11683 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11684 esac
11685 fi
11686 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}
11687
11688 if test "$ac_cv_header_AL_al_h" = "yes"
11689 then
11690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11691 $as_echo_n "checking for -lopenal... " >&6; }
11692 if ${ac_cv_lib_soname_openal+:} false; then :
11693   $as_echo_n "(cached) " >&6
11694 else
11695   ac_check_soname_save_LIBS=$LIBS
11696 LIBS="-lopenal  $LIBS"
11697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h.  */
11699
11700 /* Override any GCC internal prototype to avoid an error.
11701    Use char because int might match the return type of a GCC
11702    builtin and then its argument prototype would still apply.  */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char alGetSource3i ();
11707 int
11708 main ()
11709 {
11710 return alGetSource3i ();
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 if ac_fn_c_try_link "$LINENO"; then :
11716   case "$LIBEXT" in
11717     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11718     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'` ;;
11719     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11720   esac
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext \
11723     conftest$ac_exeext conftest.$ac_ext
11724   LIBS=$ac_check_soname_save_LIBS
11725 fi
11726 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11728 $as_echo "not found" >&6; }
11729
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11732 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11733
11734 cat >>confdefs.h <<_ACEOF
11735 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11736 _ACEOF
11737
11738        LIBOPENAL="-lopenal"
11739
11740                       ac_cv_lib_openal=yes
11741
11742 cat >>confdefs.h <<_ACEOF
11743 #define HAVE_OPENAL 1
11744 _ACEOF
11745
11746 fi
11747 fi
11748 if test "x$ac_cv_lib_openal" != xyes; then :
11749   case "x$with_openal" in
11750   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11751   xno) ;;
11752   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11753 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11754 esac
11755 fi
11756 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11757
11758 if test "$ac_cv_header_kstat_h" = "yes"
11759 then
11760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11761 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11762 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11763   $as_echo_n "(cached) " >&6
11764 else
11765   ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-lkstat  $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h.  */
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771    Use char because int might match the return type of a GCC
11772    builtin and then its argument prototype would still apply.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char kstat_open ();
11777 int
11778 main ()
11779 {
11780 return kstat_open ();
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786   ac_cv_lib_kstat_kstat_open=yes
11787 else
11788   ac_cv_lib_kstat_kstat_open=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791     conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11795 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11796 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11797
11798 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11799
11800                   LIBKSTAT="-lkstat"
11801
11802 fi
11803
11804 fi
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11807 $as_echo_n "checking for -lodbc... " >&6; }
11808 if ${ac_cv_lib_soname_odbc+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   ac_check_soname_save_LIBS=$LIBS
11812 LIBS="-lodbc  $LIBS"
11813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h.  */
11815
11816 /* Override any GCC internal prototype to avoid an error.
11817    Use char because int might match the return type of a GCC
11818    builtin and then its argument prototype would still apply.  */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 char SQLConnect ();
11823 int
11824 main ()
11825 {
11826 return SQLConnect ();
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832   case "$LIBEXT" in
11833     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11834     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'` ;;
11835     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11836   esac
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839     conftest$ac_exeext conftest.$ac_ext
11840   LIBS=$ac_check_soname_save_LIBS
11841 fi
11842 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11844 $as_echo "not found" >&6; }
11845        cat >>confdefs.h <<_ACEOF
11846 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11847 _ACEOF
11848
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11851 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11852
11853 cat >>confdefs.h <<_ACEOF
11854 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11855 _ACEOF
11856
11857
11858 fi
11859
11860 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11861 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11862 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11863 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11864
11865 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11866         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11867         "x$with_alsa$with_coreaudio$with_oss" != xnonono
11868 then
11869     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11870 fi
11871
11872
11873 EXTRACFLAGS=""
11874
11875 if test "x${GCC}" = "xyes"
11876 then
11877   EXTRACFLAGS="-Wall -pipe"
11878
11879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11880 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11881 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   if test "$cross_compiling" = yes; then :
11885   ac_cv_c_gcc_strength_bug="yes"
11886 else
11887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h.  */
11889 int L[4] = {0,1,2,3};
11890 int
11891 main ()
11892 {
11893 static int Array[3];
11894   unsigned int B = 3;
11895   int i;
11896   for(i=0; i<B; i++) Array[i] = i - 3;
11897   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11898   L[i] = 4;
11899   return (Array[1] != -2 || L[2] != 3)
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_run "$LINENO"; then :
11905   ac_cv_c_gcc_strength_bug="no"
11906 else
11907   ac_cv_c_gcc_strength_bug="yes"
11908 fi
11909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910   conftest.$ac_objext conftest.beam conftest.$ac_ext
11911 fi
11912
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11915 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11916   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11917   then
11918     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11919   fi
11920
11921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11922 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11923 if ${ac_cv_cflags__fno_builtin+:} false; then :
11924   $as_echo_n "(cached) " >&6
11925 else
11926   ac_wine_try_cflags_saved=$CFLAGS
11927 CFLAGS="$CFLAGS -fno-builtin"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h.  */
11930 int main(int argc, char **argv) { return 0; }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933   ac_cv_cflags__fno_builtin=yes
11934 else
11935   ac_cv_cflags__fno_builtin=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938     conftest$ac_exeext conftest.$ac_ext
11939 CFLAGS=$ac_wine_try_cflags_saved
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11942 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11943 if test $ac_cv_cflags__fno_builtin = yes; then :
11944   BUILTINFLAG="-fno-builtin"
11945
11946 fi
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11948 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11949 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11950   $as_echo_n "(cached) " >&6
11951 else
11952   ac_wine_try_cflags_saved=$CFLAGS
11953 CFLAGS="$CFLAGS -fno-strict-aliasing"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h.  */
11956 int main(int argc, char **argv) { return 0; }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959   ac_cv_cflags__fno_strict_aliasing=yes
11960 else
11961   ac_cv_cflags__fno_strict_aliasing=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext \
11964     conftest$ac_exeext conftest.$ac_ext
11965 CFLAGS=$ac_wine_try_cflags_saved
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11968 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11969 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11970   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11971 fi
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11973 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11974 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_wine_try_cflags_saved=$CFLAGS
11978 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981 int main(int argc, char **argv) { return 0; }
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984   ac_cv_cflags__Wdeclaration_after_statement=yes
11985 else
11986   ac_cv_cflags__Wdeclaration_after_statement=no
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989     conftest$ac_exeext conftest.$ac_ext
11990 CFLAGS=$ac_wine_try_cflags_saved
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11993 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11994 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11995   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11996 fi
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11998 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11999 if ${ac_cv_cflags__Wempty_body+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   ac_wine_try_cflags_saved=$CFLAGS
12003 CFLAGS="$CFLAGS -Wempty-body"
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006 int main(int argc, char **argv) { return 0; }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009   ac_cv_cflags__Wempty_body=yes
12010 else
12011   ac_cv_cflags__Wempty_body=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014     conftest$ac_exeext conftest.$ac_ext
12015 CFLAGS=$ac_wine_try_cflags_saved
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12018 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12019 if test $ac_cv_cflags__Wempty_body = yes; then :
12020   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12021 fi
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12023 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12024 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   ac_wine_try_cflags_saved=$CFLAGS
12028 CFLAGS="$CFLAGS -Wignored-qualifiers"
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h.  */
12031 int main(int argc, char **argv) { return 0; }
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034   ac_cv_cflags__Wignored_qualifiers=yes
12035 else
12036   ac_cv_cflags__Wignored_qualifiers=no
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext \
12039     conftest$ac_exeext conftest.$ac_ext
12040 CFLAGS=$ac_wine_try_cflags_saved
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12043 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12044 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12045   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12046 fi
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12048 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12049 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052   ac_wine_try_cflags_saved=$CFLAGS
12053 CFLAGS="$CFLAGS -Wstrict-prototypes"
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h.  */
12056 int main(int argc, char **argv) { return 0; }
12057 _ACEOF
12058 if ac_fn_c_try_link "$LINENO"; then :
12059   ac_cv_cflags__Wstrict_prototypes=yes
12060 else
12061   ac_cv_cflags__Wstrict_prototypes=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064     conftest$ac_exeext conftest.$ac_ext
12065 CFLAGS=$ac_wine_try_cflags_saved
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12068 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12069 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12070   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12071 fi
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12073 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12074 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   ac_wine_try_cflags_saved=$CFLAGS
12078 CFLAGS="$CFLAGS -Wtype-limits"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081 int main(int argc, char **argv) { return 0; }
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084   ac_cv_cflags__Wtype_limits=yes
12085 else
12086   ac_cv_cflags__Wtype_limits=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext \
12089     conftest$ac_exeext conftest.$ac_ext
12090 CFLAGS=$ac_wine_try_cflags_saved
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12093 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12094 if test $ac_cv_cflags__Wtype_limits = yes; then :
12095   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12096 fi
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12098 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12099 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12100   $as_echo_n "(cached) " >&6
12101 else
12102   ac_wine_try_cflags_saved=$CFLAGS
12103 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h.  */
12106 int main(int argc, char **argv) { return 0; }
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109   ac_cv_cflags__Wunused_but_set_parameter=yes
12110 else
12111   ac_cv_cflags__Wunused_but_set_parameter=no
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext \
12114     conftest$ac_exeext conftest.$ac_ext
12115 CFLAGS=$ac_wine_try_cflags_saved
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12118 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12119 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12120   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12121 fi
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12123 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12124 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12125   $as_echo_n "(cached) " >&6
12126 else
12127   ac_wine_try_cflags_saved=$CFLAGS
12128 CFLAGS="$CFLAGS -Wwrite-strings"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131 int main(int argc, char **argv) { return 0; }
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134   ac_cv_cflags__Wwrite_strings=yes
12135 else
12136   ac_cv_cflags__Wwrite_strings=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext \
12139     conftest$ac_exeext conftest.$ac_ext
12140 CFLAGS=$ac_wine_try_cflags_saved
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12143 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12144 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12145   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12146 fi
12147
12148     case $host_cpu in
12149     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12150 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12151 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   ac_wine_try_cflags_saved=$CFLAGS
12155 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158 int main(int argc, char **argv) { return 0; }
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161   ac_cv_cflags__fno_omit_frame_pointer=yes
12162 else
12163   ac_cv_cflags__fno_omit_frame_pointer=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext \
12166     conftest$ac_exeext conftest.$ac_ext
12167 CFLAGS=$ac_wine_try_cflags_saved
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12170 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12171 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12172   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12173 fi ;;
12174   esac
12175
12176     case $host in
12177     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12178 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12179 if ${ac_cv_cflags__Wno_format+:} false; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   ac_wine_try_cflags_saved=$CFLAGS
12183 CFLAGS="$CFLAGS -Wno-format"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186 int main(int argc, char **argv) { return 0; }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189   ac_cv_cflags__Wno_format=yes
12190 else
12191   ac_cv_cflags__Wno_format=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194     conftest$ac_exeext conftest.$ac_ext
12195 CFLAGS=$ac_wine_try_cflags_saved
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12198 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12199 if test $ac_cv_cflags__Wno_format = yes; then :
12200   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12201 fi ;;
12202   esac
12203
12204     saved_CFLAGS="$CFLAGS"
12205   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12207 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12208 if ${ac_cv_c_string_h_warnings+:} false; then :
12209   $as_echo_n "(cached) " >&6
12210 else
12211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h.  */
12213 #include <string.h>
12214 int
12215 main ()
12216 {
12217
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223   ac_cv_c_string_h_warnings=no
12224 else
12225   ac_cv_c_string_h_warnings=yes
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12230 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12231   CFLAGS="$saved_CFLAGS"
12232   if test "$ac_cv_c_string_h_warnings" = "no"
12233   then
12234     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12235   fi
12236
12237     saved_CFLAGS="$CFLAGS"
12238   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12240 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12241 if ${ac_cv_c_logicalop_noisy+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h.  */
12246 #include <string.h>
12247 int
12248 main ()
12249 {
12250 char*f(const char *h,char n) {return strchr(h,n);}
12251   ;
12252   return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256   ac_cv_c_logicalop_noisy=no
12257 else
12258   ac_cv_c_logicalop_noisy=yes
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12263 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12264   CFLAGS="$saved_CFLAGS"
12265   if test "$ac_cv_c_logicalop_noisy" = "no"
12266   then
12267     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12268   fi
12269
12270     if test "x$enable_maintainer_mode" = "xyes"
12271   then
12272       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12273 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12274 if ${ac_cv_cflags__Werror+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   ac_wine_try_cflags_saved=$CFLAGS
12278 CFLAGS="$CFLAGS -Werror"
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h.  */
12281 int main(int argc, char **argv) { return 0; }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"; then :
12284   ac_cv_cflags__Werror=yes
12285 else
12286   ac_cv_cflags__Werror=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext \
12289     conftest$ac_exeext conftest.$ac_ext
12290 CFLAGS=$ac_wine_try_cflags_saved
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12293 $as_echo "$ac_cv_cflags__Werror" >&6; }
12294 if test $ac_cv_cflags__Werror = yes; then :
12295   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12296 fi
12297   fi
12298
12299     saved_CFLAGS="$CFLAGS"
12300   CFLAGS="$CFLAGS -Werror"
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12302 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12303 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h.  */
12308 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12309 int
12310 main ()
12311 {
12312
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_compile "$LINENO"; then :
12318   ac_cv_have_ms_hook_prologue="yes"
12319 else
12320   ac_cv_have_ms_hook_prologue="no"
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 fi
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12325 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12326   CFLAGS="$saved_CFLAGS"
12327   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12328   then
12329
12330 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12331
12332   else
12333       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12334
12335   fi
12336 fi
12337
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12340 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12341 if ${ac_cv_c_fortify_enabled+:} false; then :
12342   $as_echo_n "(cached) " >&6
12343 else
12344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h.  */
12346 #include <string.h>
12347 int
12348 main ()
12349 {
12350 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12351 #error Fortify enabled
12352 #endif
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_compile "$LINENO"; then :
12358   ac_cv_c_fortify_enabled=no
12359 else
12360   ac_cv_c_fortify_enabled=yes
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12365 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12366 if test "$ac_cv_c_fortify_enabled" = yes
12367 then
12368     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12369 fi
12370
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12373 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12374 if ${ac_cv_c_extern_prefix+:} false; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h.  */
12379 extern int ac_test;
12380 int
12381 main ()
12382 {
12383 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12384   ;
12385   return 0;
12386 }
12387 _ACEOF
12388 if ac_fn_c_try_link "$LINENO"; then :
12389   ac_cv_c_extern_prefix="yes"
12390 else
12391   ac_cv_c_extern_prefix="no"
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext \
12394     conftest$ac_exeext conftest.$ac_ext
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12397 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12398
12399 case $host_cpu in
12400   *i[3456789]86*)
12401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12402 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12403 if ${ac_cv_c_stdcall_suffix+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408 #ifndef _MSC_VER
12409 #define __stdcall __attribute__((__stdcall__))
12410 #endif
12411 int __stdcall ac_test(int i) { return i; }
12412 int
12413 main ()
12414 {
12415 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421   ac_cv_c_stdcall_suffix="yes"
12422 else
12423   ac_cv_c_stdcall_suffix="no"
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext \
12426     conftest$ac_exeext conftest.$ac_ext
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12429 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12430   *) ac_cv_c_stdcall_suffix="no" ;;
12431 esac
12432
12433
12434 if test "$ac_cv_c_extern_prefix" = "yes"
12435 then
12436     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12437
12438     asm_name_prefix="_"
12439 else
12440     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12441
12442     asm_name_prefix=""
12443 fi
12444
12445
12446 if test "$ac_cv_c_stdcall_suffix" = "yes"
12447 then
12448     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12449
12450 else
12451     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12452
12453 fi
12454
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12457 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12458 if ${ac_cv_asm_func_def+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h.  */
12463
12464 int
12465 main ()
12466 {
12467 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473   ac_cv_asm_func_def=".def"
12474 else
12475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477
12478 int
12479 main ()
12480 {
12481 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_link "$LINENO"; then :
12487   ac_cv_asm_func_def=".type @function"
12488 else
12489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h.  */
12491
12492 int
12493 main ()
12494 {
12495 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501   ac_cv_asm_func_def=".type 2"
12502 else
12503   ac_cv_asm_func_def="unknown"
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext \
12506     conftest$ac_exeext conftest.$ac_ext
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext \
12509     conftest$ac_exeext conftest.$ac_ext
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext \
12512     conftest$ac_exeext conftest.$ac_ext
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12515 $as_echo "$ac_cv_asm_func_def" >&6; }
12516
12517
12518 case "$ac_cv_asm_func_def" in
12519   ".def")
12520      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12521
12522      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12523   ".type @function")
12524      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12525
12526      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12527   ".type 2")
12528      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12529
12530      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12531   *)
12532      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12533
12534      asm_func_header="" ;;
12535 esac
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12538 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12539 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12540   $as_echo_n "(cached) " >&6
12541 else
12542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h.  */
12544 asm(".text\n\t.long 0");
12545 int
12546 main ()
12547 {
12548
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554   ac_cv_c_asm_outside_funcs="yes"
12555 else
12556   ac_cv_c_asm_outside_funcs="no"
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12561 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12562
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12564 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12565 if ${ac_cv_c_dot_previous+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h.  */
12570
12571 int
12572 main ()
12573 {
12574 asm(".text\nac_test:\t.long 0\n\t.previous");
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"; then :
12580   ac_cv_c_dot_previous="yes"
12581 else
12582   ac_cv_c_dot_previous="no"
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext \
12585     conftest$ac_exeext conftest.$ac_ext
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12588 $as_echo "$ac_cv_c_dot_previous" >&6; }
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12591 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12592 if ${ac_cv_c_cfi_support+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12598 int
12599 main ()
12600 {
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607   ac_cv_c_cfi_support="yes"
12608 else
12609   ac_cv_c_cfi_support="no"
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12614 $as_echo "$ac_cv_c_cfi_support" >&6; }
12615
12616 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12617 asm_func_trailer=""
12618 if test "$ac_cv_c_dot_previous" = "yes"
12619 then
12620    asm_func_trailer="\\n\\t.previous"
12621 fi
12622 if test "$ac_cv_c_cfi_support" = "yes"
12623 then
12624    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12625    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12626
12627 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12628
12629    UNWINDFLAGS=-fasynchronous-unwind-tables
12630
12631 else
12632    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12633
12634 fi
12635
12636 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12637
12638
12639 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12640 then
12641     cat >>confdefs.h <<_ACEOF
12642 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12643 _ACEOF
12644
12645 else
12646     cat >>confdefs.h <<_ACEOF
12647 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12648 _ACEOF
12649
12650 fi
12651
12652 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12653
12654
12655 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12656
12657
12658
12659 LDPATH=""
12660
12661 case $build_os in
12662   cygwin*|mingw32*)
12663     TOOLSEXT=".exe"
12664
12665     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12666     ;;
12667   darwin*|macosx*)
12668     ;;
12669   *)
12670     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12671     ;;
12672 esac
12673
12674 case $host_os in
12675   mingw32*)
12676     CRTLIBS="-lmsvcrt"
12677
12678     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12679
12680     ;;
12681 esac
12682
12683 MAIN_BINARY="wine"
12684
12685 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12686
12687 case $host_os in
12688   linux*)
12689     case $host_cpu in
12690       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12691  ;;
12692       x86_64*) EXTRA_BINARIES="wine64-preloader"
12693  ;;
12694     esac
12695     ;;
12696 esac
12697
12698
12699 ac_save_CFLAGS="$CFLAGS"
12700 CFLAGS="$CFLAGS $BUILTINFLAG"
12701 for ac_func in \
12702         _finite \
12703         _isnan \
12704         _pclose \
12705         _popen \
12706         _snprintf \
12707         _spawnvp \
12708         _strdup \
12709         _stricmp \
12710         _strnicmp \
12711         _strtoi64 \
12712         _strtoui64 \
12713         _vsnprintf \
12714         asctime_r \
12715         chsize \
12716         dlopen \
12717         epoll_create \
12718         ffs \
12719         finite \
12720         fnmatch \
12721         fork \
12722         fpclass \
12723         fstatfs \
12724         fstatvfs \
12725         ftruncate \
12726         futimes \
12727         futimesat \
12728         getattrlist \
12729         getdirentries \
12730         getopt_long \
12731         getpagesize \
12732         getpwuid \
12733         gettimeofday \
12734         getuid \
12735         kqueue \
12736         lstat \
12737         memmove \
12738         mmap \
12739         pclose \
12740         pipe2 \
12741         poll \
12742         popen \
12743         port_create \
12744         prctl \
12745         pread \
12746         pwrite \
12747         readdir \
12748         readlink \
12749         sched_yield \
12750         select \
12751         setproctitle \
12752         setrlimit \
12753         settimeofday \
12754         sigaltstack \
12755         sigprocmask \
12756         snprintf \
12757         spawnvp \
12758         statfs \
12759         statvfs \
12760         strcasecmp \
12761         strdup \
12762         strerror \
12763         strncasecmp \
12764         strtold \
12765         strtoll \
12766         strtoull \
12767         symlink \
12768         tcgetattr \
12769         thr_kill2 \
12770         timegm \
12771         usleep \
12772         vsnprintf \
12773         wait4 \
12774         waitpid \
12775
12776 do :
12777   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12780   cat >>confdefs.h <<_ACEOF
12781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 _ACEOF
12783
12784 fi
12785 done
12786
12787 CFLAGS="$ac_save_CFLAGS"
12788
12789 if test "$ac_cv_func_dlopen" = no
12790 then
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldl  $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802    Use char because int might match the return type of a GCC
12803    builtin and then its argument prototype would still apply.  */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char dlopen ();
12808 int
12809 main ()
12810 {
12811 return dlopen ();
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817   ac_cv_lib_dl_dlopen=yes
12818 else
12819   ac_cv_lib_dl_dlopen=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12829  LIBDL="-ldl"
12830
12831 fi
12832
12833 fi
12834 ac_wine_check_funcs_save_LIBS="$LIBS"
12835 LIBS="$LIBS $LIBDL"
12836 for ac_func in dladdr
12837 do :
12838   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12839 if test "x$ac_cv_func_dladdr" = xyes; then :
12840   cat >>confdefs.h <<_ACEOF
12841 #define HAVE_DLADDR 1
12842 _ACEOF
12843
12844 fi
12845 done
12846
12847 LIBS="$ac_wine_check_funcs_save_LIBS"
12848
12849 if test "$ac_cv_func_poll" = no
12850 then
12851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12852 $as_echo_n "checking for poll in -lpoll... " >&6; }
12853 if ${ac_cv_lib_poll_poll+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   ac_check_lib_save_LIBS=$LIBS
12857 LIBS="-lpoll  $LIBS"
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h.  */
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862    Use char because int might match the return type of a GCC
12863    builtin and then its argument prototype would still apply.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char poll ();
12868 int
12869 main ()
12870 {
12871 return poll ();
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"; then :
12877   ac_cv_lib_poll_poll=yes
12878 else
12879   ac_cv_lib_poll_poll=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext \
12882     conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12886 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12887 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12888   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12889  LIBPOLL="-lpoll"
12890
12891 fi
12892
12893 fi
12894
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12896 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12897 if ${ac_cv_search_gethostbyname+:} false; then :
12898   $as_echo_n "(cached) " >&6
12899 else
12900   ac_func_search_save_LIBS=$LIBS
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905    Use char because int might match the return type of a GCC
12906    builtin and then its argument prototype would still apply.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char gethostbyname ();
12911 int
12912 main ()
12913 {
12914 return gethostbyname ();
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 for ac_lib in '' nsl; do
12920   if test -z "$ac_lib"; then
12921     ac_res="none required"
12922   else
12923     ac_res=-l$ac_lib
12924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12925   fi
12926   if ac_fn_c_try_link "$LINENO"; then :
12927   ac_cv_search_gethostbyname=$ac_res
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930     conftest$ac_exeext
12931   if ${ac_cv_search_gethostbyname+:} false; then :
12932   break
12933 fi
12934 done
12935 if ${ac_cv_search_gethostbyname+:} false; then :
12936
12937 else
12938   ac_cv_search_gethostbyname=no
12939 fi
12940 rm conftest.$ac_ext
12941 LIBS=$ac_func_search_save_LIBS
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12944 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12945 ac_res=$ac_cv_search_gethostbyname
12946 if test "$ac_res" != no; then :
12947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12948
12949 fi
12950
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12953 $as_echo_n "checking for library containing connect... " >&6; }
12954 if ${ac_cv_search_connect+:} false; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   ac_func_search_save_LIBS=$LIBS
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char connect ();
12968 int
12969 main ()
12970 {
12971 return connect ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 for ac_lib in '' socket; do
12977   if test -z "$ac_lib"; then
12978     ac_res="none required"
12979   else
12980     ac_res=-l$ac_lib
12981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12982   fi
12983   if ac_fn_c_try_link "$LINENO"; then :
12984   ac_cv_search_connect=$ac_res
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext \
12987     conftest$ac_exeext
12988   if ${ac_cv_search_connect+:} false; then :
12989   break
12990 fi
12991 done
12992 if ${ac_cv_search_connect+:} false; then :
12993
12994 else
12995   ac_cv_search_connect=no
12996 fi
12997 rm conftest.$ac_ext
12998 LIBS=$ac_func_search_save_LIBS
12999 fi
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13001 $as_echo "$ac_cv_search_connect" >&6; }
13002 ac_res=$ac_cv_search_connect
13003 if test "$ac_res" != no; then :
13004   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13005
13006 fi
13007
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13010 $as_echo_n "checking for library containing inet_aton... " >&6; }
13011 if ${ac_cv_search_inet_aton+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   ac_func_search_save_LIBS=$LIBS
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h.  */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019    Use char because int might match the return type of a GCC
13020    builtin and then its argument prototype would still apply.  */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char inet_aton ();
13025 int
13026 main ()
13027 {
13028 return inet_aton ();
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 for ac_lib in '' resolv; do
13034   if test -z "$ac_lib"; then
13035     ac_res="none required"
13036   else
13037     ac_res=-l$ac_lib
13038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13039   fi
13040   if ac_fn_c_try_link "$LINENO"; then :
13041   ac_cv_search_inet_aton=$ac_res
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext \
13044     conftest$ac_exeext
13045   if ${ac_cv_search_inet_aton+:} false; then :
13046   break
13047 fi
13048 done
13049 if ${ac_cv_search_inet_aton+:} false; then :
13050
13051 else
13052   ac_cv_search_inet_aton=no
13053 fi
13054 rm conftest.$ac_ext
13055 LIBS=$ac_func_search_save_LIBS
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13058 $as_echo "$ac_cv_search_inet_aton" >&6; }
13059 ac_res=$ac_cv_search_inet_aton
13060 if test "$ac_res" != no; then :
13061   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13062
13063 fi
13064
13065
13066 for ac_func in \
13067         getaddrinfo \
13068         getnameinfo \
13069         getnetbyname \
13070         getprotobyname \
13071         getprotobynumber \
13072         getservbyport \
13073         inet_network \
13074         inet_ntop \
13075         inet_pton \
13076         sendmsg \
13077         socketpair \
13078
13079 do :
13080   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13082 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13083   cat >>confdefs.h <<_ACEOF
13084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 _ACEOF
13086
13087 fi
13088 done
13089
13090
13091 LDAPLIBS=""
13092
13093 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13094 then
13095     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13096 "
13097 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13099 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13100 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13101   $as_echo_n "(cached) " >&6
13102 else
13103   ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h.  */
13107
13108 /* Override any GCC internal prototype to avoid an error.
13109    Use char because int might match the return type of a GCC
13110    builtin and then its argument prototype would still apply.  */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char ldap_initialize ();
13115 int
13116 main ()
13117 {
13118 return ldap_initialize ();
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124   ac_cv_lib_ldap_r_ldap_initialize=yes
13125 else
13126   ac_cv_lib_ldap_r_ldap_initialize=no
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext \
13129     conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13133 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13134 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13136 $as_echo_n "checking for ber_init in -llber... " >&6; }
13137 if ${ac_cv_lib_lber_ber_init+:} false; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   ac_check_lib_save_LIBS=$LIBS
13141 LIBS="-llber $LIBPTHREAD $LIBS"
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h.  */
13144
13145 /* Override any GCC internal prototype to avoid an error.
13146    Use char because int might match the return type of a GCC
13147    builtin and then its argument prototype would still apply.  */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char ber_init ();
13152 int
13153 main ()
13154 {
13155 return ber_init ();
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"; then :
13161   ac_cv_lib_lber_ber_init=yes
13162 else
13163   ac_cv_lib_lber_ber_init=no
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext \
13166     conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13168 fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13170 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13171 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13172
13173 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13174
13175                  LDAPLIBS="-lldap_r -llber"
13176 fi
13177
13178 fi
13179
13180 fi
13181
13182     ac_wine_check_funcs_save_LIBS="$LIBS"
13183 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13184 for ac_func in \
13185         ldap_count_references \
13186         ldap_first_reference \
13187         ldap_next_reference \
13188         ldap_parse_reference \
13189         ldap_parse_sort_control \
13190         ldap_parse_sortresponse_control \
13191         ldap_parse_vlv_control \
13192         ldap_parse_vlvresponse_control
13193 do :
13194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13197   cat >>confdefs.h <<_ACEOF
13198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13199 _ACEOF
13200
13201 fi
13202 done
13203
13204 LIBS="$ac_wine_check_funcs_save_LIBS"
13205 fi
13206 if test "x$LDAPLIBS" = "x"; then :
13207   case "x$with_ldap" in
13208   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13209   xno) ;;
13210   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13211 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13212 esac
13213 fi
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13216 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13217 if ${wine_cv_one_arg_mkdir+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h.  */
13222 #include <sys/stat.h>
13223 int
13224 main ()
13225 {
13226 mkdir("foo");
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232   wine_cv_one_arg_mkdir=yes
13233 else
13234   wine_cv_one_arg_mkdir=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13239 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13240 if test "$wine_cv_one_arg_mkdir" = "yes"
13241 then
13242
13243 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13244
13245 fi
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13248 $as_echo_n "checking for sched_setaffinity... " >&6; }
13249 if ${wine_cv_have_sched_setaffinity+:} false; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h.  */
13254 #define _GNU_SOURCE
13255 #include <sched.h>
13256 int
13257 main ()
13258 {
13259 sched_setaffinity(0, 0, 0);
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_link "$LINENO"; then :
13265   wine_cv_have_sched_setaffinity=yes
13266 else
13267   wine_cv_have_sched_setaffinity=no
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext \
13270     conftest$ac_exeext conftest.$ac_ext
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13273 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13274 if test "$wine_cv_have_sched_setaffinity" = "yes"
13275 then
13276
13277 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13278
13279 fi
13280
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13283 $as_echo_n "checking for inline... " >&6; }
13284 if ${ac_cv_c_inline+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   ac_cv_c_inline=no
13288 for ac_kw in inline __inline__ __inline; do
13289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291 #ifndef __cplusplus
13292 typedef int foo_t;
13293 static $ac_kw foo_t static_foo () {return 0; }
13294 $ac_kw foo_t foo () {return 0; }
13295 #endif
13296
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299   ac_cv_c_inline=$ac_kw
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302   test "$ac_cv_c_inline" != no && break
13303 done
13304
13305 fi
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13307 $as_echo "$ac_cv_c_inline" >&6; }
13308
13309 case $ac_cv_c_inline in
13310   inline | yes) ;;
13311   *)
13312     case $ac_cv_c_inline in
13313       no) ac_val=;;
13314       *) ac_val=$ac_cv_c_inline;;
13315     esac
13316     cat >>confdefs.h <<_ACEOF
13317 #ifndef __cplusplus
13318 #define inline $ac_val
13319 #endif
13320 _ACEOF
13321     ;;
13322 esac
13323
13324 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13325 if test "x$ac_cv_type_mode_t" = xyes; then :
13326
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_MODE_T 1
13329 _ACEOF
13330
13331
13332 fi
13333 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13334 if test "x$ac_cv_type_off_t" = xyes; then :
13335
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_OFF_T 1
13338 _ACEOF
13339
13340
13341 fi
13342 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13343 if test "x$ac_cv_type_pid_t" = xyes; then :
13344
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_PID_T 1
13347 _ACEOF
13348
13349
13350 fi
13351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13352 if test "x$ac_cv_type_size_t" = xyes; then :
13353
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_SIZE_T 1
13356 _ACEOF
13357
13358
13359 fi
13360 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13361 if test "x$ac_cv_type_ssize_t" = xyes; then :
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_SSIZE_T 1
13365 _ACEOF
13366
13367
13368 fi
13369 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13370 if test "x$ac_cv_type_long_long" = xyes; then :
13371
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_LONG_LONG 1
13374 _ACEOF
13375
13376
13377 fi
13378 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13379 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13380
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE_FSBLKCNT_T 1
13383 _ACEOF
13384
13385
13386 fi
13387 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13388 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13389
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_FSFILCNT_T 1
13392 _ACEOF
13393
13394
13395 fi
13396
13397 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13398 #include <signal.h>
13399 "
13400 if test "x$ac_cv_type_sigset_t" = xyes; then :
13401
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_SIGSET_T 1
13404 _ACEOF
13405
13406
13407 fi
13408
13409 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13410 "
13411 if test "x$ac_cv_type_request_sense" = xyes; then :
13412
13413 cat >>confdefs.h <<_ACEOF
13414 #define HAVE_REQUEST_SENSE 1
13415 _ACEOF
13416
13417
13418 fi
13419
13420
13421 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13422 #ifdef HAVE_SYS_SOCKET_H
13423 #include <sys/socket.h>
13424 #endif
13425 #ifdef HAVE_SYS_SOCKETVAR_H
13426 #include <sys/socketvar.h>
13427 #endif
13428 #ifdef HAVE_NET_ROUTE_H
13429 #include <net/route.h>
13430 #endif
13431 #ifdef HAVE_NETINET_IN_H
13432 #include <netinet/in.h>
13433 #endif
13434 #ifdef HAVE_NETINET_IN_SYSTM_H
13435 #include <netinet/in_systm.h>
13436 #endif
13437 #ifdef HAVE_NETINET_IP_H
13438 #include <netinet/ip.h>
13439 #endif
13440 #ifdef HAVE_NETINET_IN_PCB_H
13441 #include <netinet/in_pcb.h>
13442 #endif
13443 "
13444 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13445
13446 cat >>confdefs.h <<_ACEOF
13447 #define HAVE_STRUCT_XINPGEN 1
13448 _ACEOF
13449
13450
13451 fi
13452
13453
13454 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13455 #include <linux/input.h>
13456 #endif
13457 "
13458 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13459
13460 cat >>confdefs.h <<_ACEOF
13461 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13462 _ACEOF
13463
13464
13465 fi
13466
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13469 $as_echo_n "checking for sigaddset... " >&6; }
13470 if ${wine_cv_have_sigaddset+:} false; then :
13471   $as_echo_n "(cached) " >&6
13472 else
13473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h.  */
13475 #include <signal.h>
13476 int
13477 main ()
13478 {
13479 sigset_t set; sigaddset(&set,SIGTERM);
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485   wine_cv_have_sigaddset=yes
13486 else
13487   wine_cv_have_sigaddset=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490     conftest$ac_exeext conftest.$ac_ext
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13493 $as_echo "$wine_cv_have_sigaddset" >&6; }
13494 if test "$wine_cv_have_sigaddset" = "yes"
13495 then
13496
13497 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13498
13499 fi
13500
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13503 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13504 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13505   $as_echo_n "(cached) " >&6
13506 else
13507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h.  */
13509 #include <netdb.h>
13510 int
13511 main ()
13512 {
13513
13514     char *name=0;
13515     struct hostent he;
13516     struct hostent *result;
13517     char *buf=0;
13518     int bufsize=0;
13519     int errnr;
13520     char *addr=0;
13521     int addrlen=0;
13522     int addrtype=0;
13523     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13524     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13525
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_link "$LINENO"; then :
13531   wine_cv_linux_gethostbyname_r_6=yes
13532 else
13533   wine_cv_linux_gethostbyname_r_6=no
13534
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext \
13537     conftest$ac_exeext conftest.$ac_ext
13538
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13541 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13542    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13543    then
13544
13545 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13546
13547    fi
13548
13549 if test "$ac_cv_header_linux_joystick_h" = "yes"
13550 then
13551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13552 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13553 if ${wine_cv_linux_joystick_22_api+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558
13559         #include <sys/ioctl.h>
13560         #include <sys/types.h>
13561         #include <linux/joystick.h>
13562
13563         struct js_event blub;
13564         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13565         #error "no 2.2 header"
13566         #endif
13567
13568 int
13569 main ()
13570 {
13571 /*empty*/
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577   wine_cv_linux_joystick_22_api=yes
13578 else
13579   wine_cv_linux_joystick_22_api=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582
13583 fi
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13585 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13586    if test "$wine_cv_linux_joystick_22_api" = "yes"
13587    then
13588
13589 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13590
13591    fi
13592 fi
13593
13594
13595 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13596 #ifdef HAVE_SYS_PARAM_H
13597 # include <sys/param.h>
13598 #endif
13599 #ifdef HAVE_SYS_MOUNT_H
13600 # include <sys/mount.h>
13601 #endif
13602 #ifdef HAVE_SYS_VFS_H
13603 # include <sys/vfs.h>
13604 #endif
13605 #ifdef HAVE_SYS_STATFS_H
13606 # include <sys/statfs.h>
13607 #endif
13608 "
13609 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13610
13611 cat >>confdefs.h <<_ACEOF
13612 #define HAVE_STRUCT_STATFS_F_BFREE 1
13613 _ACEOF
13614
13615
13616 fi
13617 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13618 #ifdef HAVE_SYS_PARAM_H
13619 # include <sys/param.h>
13620 #endif
13621 #ifdef HAVE_SYS_MOUNT_H
13622 # include <sys/mount.h>
13623 #endif
13624 #ifdef HAVE_SYS_VFS_H
13625 # include <sys/vfs.h>
13626 #endif
13627 #ifdef HAVE_SYS_STATFS_H
13628 # include <sys/statfs.h>
13629 #endif
13630 "
13631 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13635 _ACEOF
13636
13637
13638 fi
13639 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13640 #ifdef HAVE_SYS_PARAM_H
13641 # include <sys/param.h>
13642 #endif
13643 #ifdef HAVE_SYS_MOUNT_H
13644 # include <sys/mount.h>
13645 #endif
13646 #ifdef HAVE_SYS_VFS_H
13647 # include <sys/vfs.h>
13648 #endif
13649 #ifdef HAVE_SYS_STATFS_H
13650 # include <sys/statfs.h>
13651 #endif
13652 "
13653 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13654
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13657 _ACEOF
13658
13659
13660 fi
13661 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13662 #ifdef HAVE_SYS_PARAM_H
13663 # include <sys/param.h>
13664 #endif
13665 #ifdef HAVE_SYS_MOUNT_H
13666 # include <sys/mount.h>
13667 #endif
13668 #ifdef HAVE_SYS_VFS_H
13669 # include <sys/vfs.h>
13670 #endif
13671 #ifdef HAVE_SYS_STATFS_H
13672 # include <sys/statfs.h>
13673 #endif
13674 "
13675 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define HAVE_STRUCT_STATFS_F_FFREE 1
13679 _ACEOF
13680
13681
13682 fi
13683 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13684 #ifdef HAVE_SYS_PARAM_H
13685 # include <sys/param.h>
13686 #endif
13687 #ifdef HAVE_SYS_MOUNT_H
13688 # include <sys/mount.h>
13689 #endif
13690 #ifdef HAVE_SYS_VFS_H
13691 # include <sys/vfs.h>
13692 #endif
13693 #ifdef HAVE_SYS_STATFS_H
13694 # include <sys/statfs.h>
13695 #endif
13696 "
13697 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13701 _ACEOF
13702
13703
13704 fi
13705 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13706 #ifdef HAVE_SYS_PARAM_H
13707 # include <sys/param.h>
13708 #endif
13709 #ifdef HAVE_SYS_MOUNT_H
13710 # include <sys/mount.h>
13711 #endif
13712 #ifdef HAVE_SYS_VFS_H
13713 # include <sys/vfs.h>
13714 #endif
13715 #ifdef HAVE_SYS_STATFS_H
13716 # include <sys/statfs.h>
13717 #endif
13718 "
13719 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13723 _ACEOF
13724
13725
13726 fi
13727
13728
13729 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13730 #include <sys/statvfs.h>
13731 #endif
13732 "
13733 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13734
13735 cat >>confdefs.h <<_ACEOF
13736 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13737 _ACEOF
13738
13739
13740 fi
13741
13742
13743 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13744 #ifdef HAVE_SYS_SOCKET_H
13745 # include <sys/socket.h>
13746 #endif
13747 #ifdef HAVE_SYS_UN_H
13748 # include <sys/un.h>
13749 #endif
13750 "
13751 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13752
13753 cat >>confdefs.h <<_ACEOF
13754 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13755 _ACEOF
13756
13757
13758 fi
13759 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13760 #ifdef HAVE_SYS_SOCKET_H
13761 # include <sys/socket.h>
13762 #endif
13763 #ifdef HAVE_SYS_UN_H
13764 # include <sys/un.h>
13765 #endif
13766 "
13767 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13768
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13771 _ACEOF
13772
13773
13774 fi
13775 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13776 #ifdef HAVE_SYS_SOCKET_H
13777 # include <sys/socket.h>
13778 #endif
13779 #ifdef HAVE_SYS_UN_H
13780 # include <sys/un.h>
13781 #endif
13782 "
13783 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13784
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13787 _ACEOF
13788
13789
13790 fi
13791
13792
13793 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13794 #ifdef HAVE_SCSI_SG_H
13795 #include <scsi/sg.h>
13796 #endif
13797 "
13798 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13799
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_SCSIREQ_T_CMD 1
13802 _ACEOF
13803
13804
13805 fi
13806 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>
13807 #ifdef HAVE_SCSI_SG_H
13808 #include <scsi/sg.h>
13809 #endif
13810 "
13811 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13812
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13815 _ACEOF
13816
13817
13818 fi
13819
13820
13821 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13822 "
13823 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13824
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_SIGINFO_T_SI_FD 1
13827 _ACEOF
13828
13829
13830 fi
13831
13832
13833 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13834 #ifdef HAVE_SYS_MTIO_H
13835 #include <sys/mtio.h>
13836 #endif
13837 "
13838 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13839
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13842 _ACEOF
13843
13844
13845 fi
13846 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_MTIO_H
13848 #include <sys/mtio.h>
13849 #endif
13850 "
13851 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13855 _ACEOF
13856
13857
13858 fi
13859 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13860 #ifdef HAVE_SYS_MTIO_H
13861 #include <sys/mtio.h>
13862 #endif
13863 "
13864 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13865
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13868 _ACEOF
13869
13870
13871 fi
13872
13873
13874 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13875 #include <getopt.h>
13876 #endif
13877 "
13878 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_STRUCT_OPTION_NAME 1
13882 _ACEOF
13883
13884
13885 fi
13886
13887
13888 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13889 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13890
13891 cat >>confdefs.h <<_ACEOF
13892 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13893 _ACEOF
13894
13895
13896 fi
13897 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13898 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13899
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_STRUCT_STAT_ST_MTIM 1
13902 _ACEOF
13903
13904
13905 fi
13906 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13907 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13908
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_STRUCT_STAT_ST_CTIM 1
13911 _ACEOF
13912
13913
13914 fi
13915 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13916 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_STRUCT_STAT_ST_ATIM 1
13920 _ACEOF
13921
13922
13923 fi
13924
13925
13926 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
13927 #include <sys/types.h>
13928 #endif
13929 #ifdef HAVE_NETINET_IN_H
13930 #include <netinet/in.h>
13931 #endif
13932 "
13933 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13934
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13937 _ACEOF
13938
13939
13940 fi
13941
13942
13943 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13944 #include <sys/types.h>
13945 #endif
13946 #ifdef HAVE_NETINET_IN_H
13947 # include <netinet/in.h>
13948 #endif
13949 #ifdef HAVE_ARPA_NAMESER_H
13950 # include <arpa/nameser.h>
13951 #endif
13952 "
13953 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13954
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_NS_MSG__MSG_PTR 1
13957 _ACEOF
13958
13959
13960 fi
13961
13962
13963 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13964 #include <sys/types.h>
13965 #endif
13966 #ifdef HAVE_ALIAS_H
13967 #include <alias.h>
13968 #endif
13969 #ifdef HAVE_SYS_SOCKET_H
13970 #include <sys/socket.h>
13971 #endif
13972 #ifdef HAVE_SYS_SOCKETVAR_H
13973 #include <sys/socketvar.h>
13974 #endif
13975 #ifdef HAVE_SYS_TIMEOUT_H
13976 #include <sys/timeout.h>
13977 #endif
13978 #ifdef HAVE_NETINET_IN_H
13979 #include <netinet/in.h>
13980 #endif
13981 #ifdef HAVE_NETINET_IN_SYSTM_H
13982 #include <netinet/in_systm.h>
13983 #endif
13984 #ifdef HAVE_NETINET_IP_H
13985 #include <netinet/ip.h>
13986 #endif
13987 #ifdef HAVE_NETINET_IP_VAR_H
13988 #include <netinet/ip_var.h>
13989 #endif
13990 #ifdef HAVE_NETINET_IP_ICMP_H
13991 #include <netinet/ip_icmp.h>
13992 #endif
13993 #ifdef HAVE_NETINET_ICMP_VAR
13994 #include <netinet/icmp_var.h>
13995 #endif
13996 "
13997 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13998
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14001 _ACEOF
14002
14003
14004 fi
14005
14006
14007 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14008 #include <sys/types.h>
14009 #endif
14010 #ifdef HAVE_NET_IF_H
14011 # include <net/if.h>
14012 #endif
14013 "
14014 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14015
14016 cat >>confdefs.h <<_ACEOF
14017 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14018 _ACEOF
14019
14020
14021 fi
14022
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14025 $as_echo_n "checking for timezone variable... " >&6; }
14026 if ${ac_cv_have_timezone+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h.  */
14031 #include <time.h>
14032 int
14033 main ()
14034 {
14035 timezone = 1
14036   ;
14037   return 0;
14038 }
14039 _ACEOF
14040 if ac_fn_c_try_link "$LINENO"; then :
14041   ac_cv_have_timezone="yes"
14042 else
14043   ac_cv_have_timezone="no"
14044 fi
14045 rm -f core conftest.err conftest.$ac_objext \
14046     conftest$ac_exeext conftest.$ac_ext
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14049 $as_echo "$ac_cv_have_timezone" >&6; }
14050 if test "$ac_cv_have_timezone" = "yes"
14051 then
14052
14053 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14057 $as_echo_n "checking for daylight variable... " >&6; }
14058 if ${ac_cv_have_daylight+:} false; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h.  */
14063 #include <time.h>
14064 int
14065 main ()
14066 {
14067 daylight = 1
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_link "$LINENO"; then :
14073   ac_cv_have_daylight="yes"
14074 else
14075   ac_cv_have_daylight="no"
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext \
14078     conftest$ac_exeext conftest.$ac_ext
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14081 $as_echo "$ac_cv_have_daylight" >&6; }
14082 if test "$ac_cv_have_daylight" = "yes"
14083 then
14084
14085 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14086
14087 fi
14088
14089 ac_save_LIBS="$LIBS"
14090 LIBS="$LIBS -lm"
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14092 $as_echo_n "checking for isinf... " >&6; }
14093 if ${ac_cv_have_isinf+:} false; then :
14094   $as_echo_n "(cached) " >&6
14095 else
14096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098 #include <math.h>
14099 int
14100 main ()
14101 {
14102 float f = 0.0; return isinf(f)
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"; then :
14108   ac_cv_have_isinf="yes"
14109 else
14110   ac_cv_have_isinf="no"
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext \
14113     conftest$ac_exeext conftest.$ac_ext
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14116 $as_echo "$ac_cv_have_isinf" >&6; }
14117 if test "$ac_cv_have_isinf" = "yes"
14118 then
14119
14120 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14121
14122 fi
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14125 $as_echo_n "checking for isnan... " >&6; }
14126 if ${ac_cv_have_isnan+:} false; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h.  */
14131 #include <math.h>
14132 int
14133 main ()
14134 {
14135 float f = 0.0; return isnan(f)
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 if ac_fn_c_try_link "$LINENO"; then :
14141   ac_cv_have_isnan="yes"
14142 else
14143   ac_cv_have_isnan="no"
14144 fi
14145 rm -f core conftest.err conftest.$ac_objext \
14146     conftest$ac_exeext conftest.$ac_ext
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14149 $as_echo "$ac_cv_have_isnan" >&6; }
14150 if test "$ac_cv_have_isnan" = "yes"
14151 then
14152
14153 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14154
14155 fi
14156 LIBS="$ac_save_LIBS"
14157
14158
14159 case $host_cpu in
14160   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14161 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14162 if ${ac_cv_cpp_def___i386__+:} false; then :
14163   $as_echo_n "(cached) " >&6
14164 else
14165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h.  */
14167 #ifndef __i386__
14168 yes
14169 #endif
14170 _ACEOF
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172   $EGREP "yes" >/dev/null 2>&1; then :
14173   ac_cv_cpp_def___i386__=yes
14174 else
14175   ac_cv_cpp_def___i386__=no
14176 fi
14177 rm -f conftest*
14178
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14181 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14182 if test $ac_cv_cpp_def___i386__ = yes; then :
14183   CFLAGS="$CFLAGS -D__i386__"
14184   LINTFLAGS="$LINTFLAGS -D__i386__"
14185 fi ;;
14186   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14187 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14188 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h.  */
14193 #ifndef __x86_64__
14194 yes
14195 #endif
14196 _ACEOF
14197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14198   $EGREP "yes" >/dev/null 2>&1; then :
14199   ac_cv_cpp_def___x86_64__=yes
14200 else
14201   ac_cv_cpp_def___x86_64__=no
14202 fi
14203 rm -f conftest*
14204
14205 fi
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14207 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14208 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14209   CFLAGS="$CFLAGS -D__x86_64__"
14210   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14211 fi ;;
14212   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14213 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14214 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h.  */
14219 #ifndef __sparc64__
14220 yes
14221 #endif
14222 _ACEOF
14223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14224   $EGREP "yes" >/dev/null 2>&1; then :
14225   ac_cv_cpp_def___sparc64__=yes
14226 else
14227   ac_cv_cpp_def___sparc64__=no
14228 fi
14229 rm -f conftest*
14230
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14233 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14234 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14235   CFLAGS="$CFLAGS -D__sparc64__"
14236   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14237 fi ;;
14238   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14239 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14240 if ${ac_cv_cpp_def___sparc__+:} false; then :
14241   $as_echo_n "(cached) " >&6
14242 else
14243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h.  */
14245 #ifndef __sparc__
14246 yes
14247 #endif
14248 _ACEOF
14249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14250   $EGREP "yes" >/dev/null 2>&1; then :
14251   ac_cv_cpp_def___sparc__=yes
14252 else
14253   ac_cv_cpp_def___sparc__=no
14254 fi
14255 rm -f conftest*
14256
14257 fi
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14259 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14260 if test $ac_cv_cpp_def___sparc__ = yes; then :
14261   CFLAGS="$CFLAGS -D__sparc__"
14262   LINTFLAGS="$LINTFLAGS -D__sparc__"
14263 fi ;;
14264   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14265 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14266 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h.  */
14271 #ifndef __powerpc64__
14272 yes
14273 #endif
14274 _ACEOF
14275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14276   $EGREP "yes" >/dev/null 2>&1; then :
14277   ac_cv_cpp_def___powerpc64__=yes
14278 else
14279   ac_cv_cpp_def___powerpc64__=no
14280 fi
14281 rm -f conftest*
14282
14283 fi
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14285 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14286 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14287   CFLAGS="$CFLAGS -D__powerpc64__"
14288   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14289 fi ;;
14290   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14291 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14292 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14293   $as_echo_n "(cached) " >&6
14294 else
14295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297 #ifndef __powerpc__
14298 yes
14299 #endif
14300 _ACEOF
14301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14302   $EGREP "yes" >/dev/null 2>&1; then :
14303   ac_cv_cpp_def___powerpc__=yes
14304 else
14305   ac_cv_cpp_def___powerpc__=no
14306 fi
14307 rm -f conftest*
14308
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14311 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14312 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14313   CFLAGS="$CFLAGS -D__powerpc__"
14314   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14315 fi ;;
14316   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14317 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14318 if ${ac_cv_cpp_def___arm__+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h.  */
14323 #ifndef __arm__
14324 yes
14325 #endif
14326 _ACEOF
14327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14328   $EGREP "yes" >/dev/null 2>&1; then :
14329   ac_cv_cpp_def___arm__=yes
14330 else
14331   ac_cv_cpp_def___arm__=no
14332 fi
14333 rm -f conftest*
14334
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14337 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14338 if test $ac_cv_cpp_def___arm__ = yes; then :
14339   CFLAGS="$CFLAGS -D__arm__"
14340   LINTFLAGS="$LINTFLAGS -D__arm__"
14341 fi ;;
14342 esac
14343
14344 case $host_vendor in
14345   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14346 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14347 if ${ac_cv_cpp_def___sun__+:} false; then :
14348   $as_echo_n "(cached) " >&6
14349 else
14350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352 #ifndef __sun__
14353 yes
14354 #endif
14355 _ACEOF
14356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14357   $EGREP "yes" >/dev/null 2>&1; then :
14358   ac_cv_cpp_def___sun__=yes
14359 else
14360   ac_cv_cpp_def___sun__=no
14361 fi
14362 rm -f conftest*
14363
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14366 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14367 if test $ac_cv_cpp_def___sun__ = yes; then :
14368   CFLAGS="$CFLAGS -D__sun__"
14369   LINTFLAGS="$LINTFLAGS -D__sun__"
14370 fi ;;
14371 esac
14372
14373
14374
14375
14376
14377 ac_config_commands="$ac_config_commands include/stamp-h"
14378
14379
14380 ALL_MAKEFILE_DEPENDS="
14381 # Rules automatically generated by configure
14382
14383 .INIT: Makefile
14384 .MAKEFILEDEPS:
14385 all: Makefile
14386 Makefile: Makefile.in Make.vars.in Make.rules config.status
14387         @./config.status Make.tmp Makefile"
14388
14389 ALL_POT_FILES=""
14390 ALL_TEST_RESOURCES=""
14391
14392
14393 wine_fn_append_file ()
14394 {
14395     as_fn_append $1 " \\$as_nl  $2"
14396 }
14397
14398 wine_fn_append_rule ()
14399 {
14400     as_fn_append $1 "$as_nl$2"
14401 }
14402
14403 wine_fn_has_flag ()
14404 {
14405     expr ",$2," : ".*,$1,.*" >/dev/null
14406 }
14407
14408 wine_fn_all_dir_rules ()
14409 {
14410     ac_dir=$1
14411     ac_alldeps=$2
14412     ac_makedep="\$(MAKEDEP)"
14413     ac_input=Make.vars.in:$ac_dir/Makefile.in
14414     if test $ac_dir != tools
14415     then
14416                 ac_alldeps="$2 $ac_makedep"
14417     fi
14418     case $2 in
14419       *.in) ac_input=$ac_input:$2 ;;
14420       *) ac_makedep="$2 $ac_makedep" ;;
14421     esac
14422
14423     wine_fn_append_file ALL_DIRS $ac_dir
14424     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14425 "__clean__: $ac_dir/__clean__
14426 .PHONY: $ac_dir/__clean__
14427 $ac_dir/__clean__: $ac_dir/Makefile
14428         @cd $ac_dir && \$(MAKE) clean
14429         \$(RM) $ac_dir/Makefile
14430 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14431         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14432 depend: $ac_dir/__depend__
14433 .PHONY: $ac_dir/__depend__
14434 $ac_dir/__depend__: $ac_makedep dummy
14435         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14436 }
14437
14438 wine_fn_pot_rules ()
14439 {
14440     ac_dir=$1
14441     ac_flags=$2
14442
14443     test "x$with_gettextpo" = xyes || return
14444
14445     if wine_fn_has_flag mc $ac_flags
14446     then
14447         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14448         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14449 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14450         @cd $ac_dir && \$(MAKE) msg.pot
14451 $ac_dir/msg.pot: tools/wmc include"
14452     fi
14453     if wine_fn_has_flag po $ac_flags
14454     then
14455         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14456         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14457 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14458         @cd $ac_dir && \$(MAKE) rsrc.pot
14459 $ac_dir/rsrc.pot: tools/wrc include"
14460     fi
14461 }
14462
14463 wine_fn_config_makefile ()
14464 {
14465     ac_dir=$1
14466     ac_enable=$2
14467     ac_flags=$3
14468     ac_rules=$4
14469     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14470   return 0
14471 fi
14472
14473     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14474     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14475 "all: $ac_dir
14476 .PHONY: $ac_dir
14477 $ac_dir: $ac_dir/Makefile dummy
14478         @cd $ac_dir && \$(MAKE)"
14479
14480     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14481
14482     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14483 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14484 $ac_dir/__install__:: $ac_dir
14485         @cd $ac_dir && \$(MAKE) install
14486 $ac_dir/__uninstall__:: $ac_dir/Makefile
14487         @cd $ac_dir && \$(MAKE) uninstall
14488 install:: $ac_dir/__install__
14489 __uninstall__: $ac_dir/__uninstall__"
14490
14491     if wine_fn_has_flag install-lib $ac_flags
14492     then
14493         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14494 ".PHONY: $ac_dir/__install-lib__
14495 $ac_dir/__install-lib__:: $ac_dir
14496         @cd $ac_dir && \$(MAKE) install-lib
14497 install-lib:: $ac_dir/__install-lib__"
14498     fi
14499
14500     if wine_fn_has_flag install-dev $ac_flags
14501     then
14502         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14503 ".PHONY: $ac_dir/__install-dev
14504 $ac_dir/__install-dev__:: $ac_dir
14505         @cd $ac_dir && \$(MAKE) install-dev
14506 install-dev:: $ac_dir/__install-dev__"
14507     fi
14508 }
14509
14510 wine_fn_config_lib ()
14511 {
14512     ac_name=$1
14513     ac_flags=$2
14514     ac_dir=dlls/$ac_name
14515     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14516
14517     if wine_fn_has_flag install-dev $ac_flags
14518     then :
14519     else
14520         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14521 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14522 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14523         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14524 $ac_dir/__uninstall__::
14525         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14526 install install-dev:: $ac_dir/__install__
14527 __uninstall__: $ac_dir/__uninstall__"
14528     fi
14529
14530     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14531     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14532 }
14533
14534 wine_fn_config_dll ()
14535 {
14536     ac_name=$1
14537     ac_dir=dlls/$ac_name
14538     ac_enable=$2
14539     ac_flags=$3
14540     ac_implib=${4:-$ac_name}
14541     ac_file=$ac_dir/lib$ac_implib
14542     ac_dll=$ac_name
14543     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14544     ac_implibflags=""
14545
14546     case $ac_name in
14547       *16) ac_implibflags=" -m16" ;;
14548       *.*) ;;
14549       *)   ac_dll=$ac_dll.dll ;;
14550     esac
14551
14552     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14553
14554     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14555                 test "$ac_enable" != enable_win16 || return 0
14556                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14557 else
14558   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14559 "$ac_dir: __builddeps__
14560 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14561         @cd $ac_dir && \$(MAKE) \$@"
14562
14563         if wine_fn_has_flag install-lib $ac_flags
14564         then :
14565         else
14566             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14567 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14568 install install-lib:: $ac_dir/__install-lib__
14569 __uninstall__: $ac_dir/__uninstall__"
14570             if test -n "$DLLEXT"
14571             then
14572                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14573 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14574         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14575         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14576 $ac_dir/__uninstall__::
14577         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14578             else
14579                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14580 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14581         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14582 $ac_dir/__uninstall__::
14583         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14584             fi
14585         fi
14586
14587         wine_fn_pot_rules $ac_dir $ac_flags
14588 fi
14589
14590     if wine_fn_has_flag staticimplib $ac_flags
14591     then
14592         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14593 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14594 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14595 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14596         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14597 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14598         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14599 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14600 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14601         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14602 $ac_dir/__uninstall__::
14603         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14604 install install-dev:: $ac_dir/__install-dev__
14605 __uninstall__: $ac_dir/__uninstall__"
14606
14607         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14608         then
14609             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14611         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14612 $ac_dir/__uninstall__::
14613         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14614         fi
14615
14616         if test "x$CROSSTEST_DISABLE" = x
14617         then
14618             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14619 "__builddeps__: $ac_file.cross.a
14620 $ac_file.cross.a: $ac_dir/Makefile dummy
14621         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14622         fi
14623
14624     elif wine_fn_has_flag implib $ac_flags
14625     then
14626         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14627 "__builddeps__: $ac_file.$IMPLIBEXT
14628 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14629         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14630 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14631         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14632 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14633 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14634         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14635 $ac_dir/__uninstall__::
14636         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14637 install install-dev:: $ac_dir/__install-dev__
14638 __uninstall__: $ac_dir/__uninstall__"
14639         if test "x$CROSSTEST_DISABLE" = x
14640         then
14641             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14642 "__builddeps__: $ac_file.cross.a
14643 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14644         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14645         fi
14646
14647         if test "$ac_name" != "$ac_implib"
14648         then
14649             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14650 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14651 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14652         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14653 clean::
14654         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14655             if test "x$CROSSTEST_DISABLE" = x
14656             then
14657                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658 "__builddeps__: dlls/lib$ac_implib.cross.a
14659 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14660         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14661             fi
14662         fi
14663     fi
14664 }
14665
14666 wine_fn_config_program ()
14667 {
14668     ac_name=$1
14669     ac_dir=programs/$ac_name
14670     ac_enable=$2
14671     ac_flags=$3
14672     ac_program=$ac_name
14673
14674     case $ac_name in
14675       *.*) ;;
14676       *)   ac_program=$ac_program.exe ;;
14677     esac
14678
14679     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14680
14681     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14682
14683 else
14684   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14685 "$ac_dir: __builddeps__"
14686
14687     wine_fn_pot_rules $ac_dir $ac_flags
14688
14689     wine_fn_has_flag install $ac_flags || return
14690     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14691 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14692 install install-lib:: $ac_dir/__install__
14693 __uninstall__: $ac_dir/__uninstall__"
14694
14695     if test -n "$DLLEXT"
14696     then
14697         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14698 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14699         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14700         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14701 $ac_dir/__uninstall__::
14702         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14703
14704         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14705         then
14706             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14707 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14708         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14709 $ac_dir/__uninstall__::
14710         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14711         fi
14712     else
14713         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14714 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14715         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14716 $ac_dir/__uninstall__::
14717         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14718     fi
14719
14720     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14721     then
14722         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14723 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14724         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14725 $ac_dir/__uninstall__::
14726         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14727     fi
14728 fi
14729 }
14730
14731 wine_fn_config_test ()
14732 {
14733     ac_dir=$1
14734     ac_name=$2
14735     ac_flags=$3
14736     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14737     wine_fn_all_dir_rules $ac_dir Maketest.rules
14738
14739     if test "x$enable_tests" = xno; then :
14740
14741 else
14742   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14743 "all: $ac_dir
14744 .PHONY: $ac_dir
14745 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14746         @cd $ac_dir && \$(MAKE)
14747 programs/winetest: $ac_dir
14748 check test: $ac_dir/__test__
14749 .PHONY: $ac_dir/__test__
14750 $ac_dir/__test__: dummy
14751         @cd $ac_dir && \$(MAKE) test
14752 testclean::
14753         \$(RM) $ac_dir/*.ok"
14754
14755         if test "x$CROSSTEST_DISABLE" = x
14756         then
14757             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14758 "crosstest: $ac_dir/__crosstest__
14759 .PHONY: $ac_dir/__crosstest__
14760 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14761         @cd $ac_dir && \$(MAKE) crosstest"
14762         fi
14763 fi
14764 }
14765
14766 wine_fn_config_tool ()
14767 {
14768     ac_dir=$1
14769     ac_flags=$2
14770     if test "x$enable_tools" = xno; then :
14771   return 0
14772 fi
14773
14774     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14775
14776     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14777     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14778     case $ac_dir in
14779       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14780     esac
14781 }
14782
14783 wine_fn_config_makerules ()
14784 {
14785     ac_rules=$1
14786     ac_deps=$2
14787     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14788 "$ac_rules: $ac_rules.in $ac_deps config.status
14789         @./config.status $ac_rules
14790 distclean::
14791         \$(RM) $ac_rules"
14792 }
14793
14794 wine_fn_config_symlink ()
14795 {
14796     ac_link=$1
14797     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14798 "$ac_link:
14799         @./config.status $ac_link
14800 distclean::
14801         \$(RM) $ac_link"
14802 }
14803
14804 if test "x$CROSSTEST_DISABLE" != x
14805 then
14806     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14807 "crosstest:
14808         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14809 fi
14810 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14811 wine_fn_config_symlink dlls/shell32/AUTHORS
14812 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14813 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14814 if test "x$enable_fonts" != xno; then
14815 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14816 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14817 fi
14818 if test "x$enable_fonts" != xno; then
14819 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14820 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14821 fi
14822 if test "x$enable_fonts" != xno; then
14823 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14824 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14825 fi
14826 if test "x$enable_fonts" != xno; then
14827 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14828 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14829 fi
14830 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14831 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14832 if test "x$enable_tools" != xno; then
14833 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14834 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14835 fi
14836 ac_config_links="$ac_config_links wine:tools/winewrapper"
14837 wine_fn_config_symlink wine
14838 if test "x$enable_win64" != xno; then
14839 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14840 wine_fn_config_symlink wine64
14841 fi
14842
14843 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14844
14845 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14846
14847 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14848
14849 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14850
14851 ac_config_commands="$ac_config_commands dlls/user32/resources"
14852
14853 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14854
14855 ac_config_commands="$ac_config_commands include/wine"
14856
14857
14858 wine_fn_config_makerules Make.rules
14859 MAKE_RULES=Make.rules
14860 ac_config_files="$ac_config_files Make.rules"
14861
14862 wine_fn_config_makerules Maketest.rules Make.rules
14863 MAKE_TEST_RULES=Maketest.rules
14864 ac_config_files="$ac_config_files Maketest.rules"
14865
14866 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14867 MAKE_DLL_RULES=dlls/Makedll.rules
14868 ac_config_files="$ac_config_files dlls/Makedll.rules"
14869
14870 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14871 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14872 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14873
14874 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14875 MAKE_PROG_RULES=programs/Makeprog.rules
14876 ac_config_files="$ac_config_files programs/Makeprog.rules"
14877
14878
14879 wine_fn_config_dll acledit enable_acledit
14880 wine_fn_config_dll aclui enable_aclui implib
14881 wine_fn_config_dll activeds enable_activeds implib
14882 wine_fn_config_dll actxprxy enable_actxprxy
14883 wine_fn_config_lib adsiid
14884 wine_fn_config_dll advapi32 enable_advapi32 implib
14885 wine_fn_config_test dlls/advapi32/tests advapi32_test
14886 wine_fn_config_dll advpack enable_advpack implib
14887 wine_fn_config_test dlls/advpack/tests advpack_test
14888 wine_fn_config_dll amstream enable_amstream
14889 wine_fn_config_test dlls/amstream/tests amstream_test
14890 wine_fn_config_dll apphelp enable_apphelp
14891 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14892 wine_fn_config_dll atl enable_atl implib
14893 wine_fn_config_test dlls/atl/tests atl_test
14894 wine_fn_config_dll authz enable_authz
14895 wine_fn_config_dll avicap32 enable_avicap32 implib
14896 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14897 wine_fn_config_test dlls/avifil32/tests avifil32_test
14898 wine_fn_config_dll avifile.dll16 enable_win16
14899 wine_fn_config_dll avrt enable_avrt implib
14900 wine_fn_config_dll bcrypt enable_bcrypt
14901 wine_fn_config_dll browseui enable_browseui po
14902 wine_fn_config_test dlls/browseui/tests browseui_test
14903 wine_fn_config_dll cabinet enable_cabinet implib
14904 wine_fn_config_test dlls/cabinet/tests cabinet_test
14905 wine_fn_config_dll capi2032 enable_capi2032 implib
14906 wine_fn_config_dll cards enable_cards implib
14907 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14908 wine_fn_config_dll clusapi enable_clusapi implib
14909 wine_fn_config_dll comcat enable_comcat
14910 wine_fn_config_test dlls/comcat/tests comcat_test
14911 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14912 wine_fn_config_test dlls/comctl32/tests comctl32_test
14913 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14914 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14915 wine_fn_config_dll comm.drv16 enable_win16
14916 wine_fn_config_dll commdlg.dll16 enable_win16
14917 wine_fn_config_dll compobj.dll16 enable_win16
14918 wine_fn_config_dll compstui enable_compstui implib
14919 wine_fn_config_dll credui enable_credui implib,po
14920 wine_fn_config_test dlls/credui/tests credui_test
14921 wine_fn_config_dll crtdll enable_crtdll implib
14922 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14923 wine_fn_config_test dlls/crypt32/tests crypt32_test
14924 wine_fn_config_dll cryptdlg enable_cryptdlg po
14925 wine_fn_config_dll cryptdll enable_cryptdll implib
14926 wine_fn_config_dll cryptnet enable_cryptnet implib
14927 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14928 wine_fn_config_dll cryptui enable_cryptui implib,po
14929 wine_fn_config_test dlls/cryptui/tests cryptui_test
14930 wine_fn_config_dll ctapi32 enable_ctapi32
14931 wine_fn_config_dll ctl3d.dll16 enable_win16
14932 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14933 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14934 wine_fn_config_dll d3d10 enable_d3d10 implib
14935 wine_fn_config_test dlls/d3d10/tests d3d10_test
14936 wine_fn_config_dll d3d10core enable_d3d10core implib
14937 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14938 wine_fn_config_dll d3d8 enable_d3d8 implib
14939 wine_fn_config_test dlls/d3d8/tests d3d8_test
14940 wine_fn_config_dll d3d9 enable_d3d9 implib
14941 wine_fn_config_test dlls/d3d9/tests d3d9_test
14942 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14943 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14944 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14945 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14946 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14947 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14948 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14949 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14950 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14951 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14952 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14953 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14954 wine_fn_config_dll d3dim enable_d3dim implib
14955 wine_fn_config_dll d3drm enable_d3drm implib
14956 wine_fn_config_test dlls/d3drm/tests d3drm_test
14957 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14958 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14959 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14960 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14961 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14962 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14963 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14964 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14965 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14966 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14967 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14968 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14969 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14970 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14971 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14972 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14973 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14974 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14975 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14976 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14977 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14978 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14979 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14980 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14981 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14982 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14983 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14984 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14985 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14986 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14987 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14988 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14989 wine_fn_config_dll d3dxof enable_d3dxof implib
14990 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14991 wine_fn_config_dll dbgeng enable_dbgeng implib
14992 wine_fn_config_dll dbghelp enable_dbghelp implib
14993 wine_fn_config_dll dciman32 enable_dciman32 implib
14994 wine_fn_config_dll ddeml.dll16 enable_win16
14995 wine_fn_config_dll ddraw enable_ddraw implib
14996 wine_fn_config_test dlls/ddraw/tests ddraw_test
14997 wine_fn_config_dll ddrawex enable_ddrawex
14998 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14999 wine_fn_config_dll devenum enable_devenum po
15000 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15001 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15002 wine_fn_config_test dlls/dinput/tests dinput_test
15003 wine_fn_config_dll dinput8 enable_dinput8 implib
15004 wine_fn_config_test dlls/dinput8/tests dinput8_test
15005 wine_fn_config_dll dispdib.dll16 enable_win16
15006 wine_fn_config_dll dispex enable_dispex
15007 wine_fn_config_test dlls/dispex/tests dispex_test
15008 wine_fn_config_dll display.drv16 enable_win16
15009 wine_fn_config_dll dmband enable_dmband
15010 wine_fn_config_dll dmcompos enable_dmcompos
15011 wine_fn_config_dll dmime enable_dmime
15012 wine_fn_config_test dlls/dmime/tests dmime_test
15013 wine_fn_config_dll dmloader enable_dmloader
15014 wine_fn_config_test dlls/dmloader/tests dmloader_test
15015 wine_fn_config_dll dmscript enable_dmscript
15016 wine_fn_config_dll dmstyle enable_dmstyle
15017 wine_fn_config_dll dmsynth enable_dmsynth
15018 wine_fn_config_dll dmusic enable_dmusic
15019 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15020 wine_fn_config_dll dnsapi enable_dnsapi implib
15021 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15022 wine_fn_config_dll dplay enable_dplay implib
15023 wine_fn_config_dll dplayx enable_dplayx implib
15024 wine_fn_config_test dlls/dplayx/tests dplayx_test
15025 wine_fn_config_dll dpnaddr enable_dpnaddr
15026 wine_fn_config_dll dpnet enable_dpnet implib
15027 wine_fn_config_test dlls/dpnet/tests dpnet_test
15028 wine_fn_config_dll dpnhpast enable_dpnhpast
15029 wine_fn_config_dll dpnlobby enable_dpnlobby
15030 wine_fn_config_dll dpwsockx enable_dpwsockx
15031 wine_fn_config_dll drmclien enable_drmclien
15032 wine_fn_config_dll dsound enable_dsound implib
15033 wine_fn_config_test dlls/dsound/tests dsound_test
15034 wine_fn_config_dll dssenh enable_dssenh
15035 wine_fn_config_dll dswave enable_dswave
15036 wine_fn_config_dll dwmapi enable_dwmapi implib
15037 wine_fn_config_dll dxdiagn enable_dxdiagn po
15038 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15039 wine_fn_config_lib dxerr8
15040 wine_fn_config_lib dxerr9
15041 wine_fn_config_dll dxgi enable_dxgi implib
15042 wine_fn_config_test dlls/dxgi/tests dxgi_test
15043 wine_fn_config_lib dxguid
15044 wine_fn_config_dll explorerframe enable_explorerframe
15045 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15046 wine_fn_config_dll faultrep enable_faultrep implib
15047 wine_fn_config_test dlls/faultrep/tests faultrep_test
15048 wine_fn_config_dll fltlib enable_fltlib
15049 wine_fn_config_dll fusion enable_fusion
15050 wine_fn_config_test dlls/fusion/tests fusion_test
15051 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15052 wine_fn_config_dll gameux enable_gameux
15053 wine_fn_config_test dlls/gameux/tests gameux_test
15054 wine_fn_config_dll gdi.exe16 enable_win16
15055 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15056 wine_fn_config_test dlls/gdi32/tests gdi32_test
15057 wine_fn_config_dll gdiplus enable_gdiplus implib
15058 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15059 wine_fn_config_dll glu32 enable_glu32 implib
15060 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15061 wine_fn_config_dll gpkcsp enable_gpkcsp
15062 wine_fn_config_dll hal enable_hal
15063 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15064 wine_fn_config_dll hid enable_hid implib
15065 wine_fn_config_dll hlink enable_hlink implib
15066 wine_fn_config_test dlls/hlink/tests hlink_test
15067 wine_fn_config_dll hnetcfg enable_hnetcfg
15068 wine_fn_config_dll httpapi enable_httpapi
15069 wine_fn_config_dll iccvid enable_iccvid po
15070 wine_fn_config_dll icmp enable_icmp
15071 wine_fn_config_dll ieframe enable_ieframe implib,po
15072 wine_fn_config_test dlls/ieframe/tests ieframe_test
15073 wine_fn_config_dll ifsmgr.vxd enable_win16
15074 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15075 wine_fn_config_dll imagehlp enable_imagehlp implib
15076 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15077 wine_fn_config_dll imm.dll16 enable_win16
15078 wine_fn_config_dll imm32 enable_imm32 implib
15079 wine_fn_config_test dlls/imm32/tests imm32_test
15080 wine_fn_config_dll inetcomm enable_inetcomm implib
15081 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15082 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15083 wine_fn_config_dll inetmib1 enable_inetmib1
15084 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15085 wine_fn_config_dll infosoft enable_infosoft
15086 wine_fn_config_test dlls/infosoft/tests infosoft_test
15087 wine_fn_config_dll initpki enable_initpki
15088 wine_fn_config_dll inkobj enable_inkobj
15089 wine_fn_config_dll inseng enable_inseng
15090 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15091 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15092 wine_fn_config_dll itircl enable_itircl
15093 wine_fn_config_dll itss enable_itss
15094 wine_fn_config_test dlls/itss/tests itss_test
15095 wine_fn_config_dll jscript enable_jscript po
15096 wine_fn_config_test dlls/jscript/tests jscript_test
15097 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15098 wine_fn_config_test dlls/kernel32/tests kernel32_test
15099 wine_fn_config_dll keyboard.drv16 enable_win16
15100 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15101 wine_fn_config_dll ktmw32 enable_ktmw32
15102 wine_fn_config_dll loadperf enable_loadperf implib
15103 wine_fn_config_dll localspl enable_localspl po
15104 wine_fn_config_test dlls/localspl/tests localspl_test
15105 wine_fn_config_dll localui enable_localui po
15106 wine_fn_config_test dlls/localui/tests localui_test
15107 wine_fn_config_dll lz32 enable_lz32 implib
15108 wine_fn_config_test dlls/lz32/tests lz32_test
15109 wine_fn_config_dll lzexpand.dll16 enable_win16
15110 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15111 wine_fn_config_test dlls/mapi32/tests mapi32_test
15112 wine_fn_config_dll mapistub enable_mapistub
15113 wine_fn_config_dll mciavi32 enable_mciavi32
15114 wine_fn_config_dll mcicda enable_mcicda
15115 wine_fn_config_dll mciqtz32 enable_mciqtz32
15116 wine_fn_config_dll mciseq enable_mciseq
15117 wine_fn_config_dll mciwave enable_mciwave
15118 wine_fn_config_dll midimap enable_midimap
15119 wine_fn_config_dll mlang enable_mlang implib
15120 wine_fn_config_test dlls/mlang/tests mlang_test
15121 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15122 wine_fn_config_dll mmdevapi enable_mmdevapi
15123 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15124 wine_fn_config_dll mmdevldr.vxd enable_win16
15125 wine_fn_config_dll mmsystem.dll16 enable_win16
15126 wine_fn_config_dll monodebg.vxd enable_win16
15127 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15128 wine_fn_config_dll mouse.drv16 enable_win16
15129 wine_fn_config_dll mpr enable_mpr implib,po
15130 wine_fn_config_dll mprapi enable_mprapi implib
15131 wine_fn_config_dll msacm.dll16 enable_win16
15132 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15133 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15134 wine_fn_config_test dlls/msacm32/tests msacm32_test
15135 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15136 wine_fn_config_dll mscat32 enable_mscat32
15137 wine_fn_config_dll mscms enable_mscms implib
15138 wine_fn_config_test dlls/mscms/tests mscms_test
15139 wine_fn_config_dll mscoree enable_mscoree
15140 wine_fn_config_test dlls/mscoree/tests mscoree_test
15141 wine_fn_config_dll msctf enable_msctf
15142 wine_fn_config_test dlls/msctf/tests msctf_test
15143 wine_fn_config_dll msdaps enable_msdaps
15144 wine_fn_config_dll msdmo enable_msdmo implib
15145 wine_fn_config_dll msftedit enable_msftedit
15146 wine_fn_config_dll msg711.acm enable_msg711_acm
15147 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15148 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15149 wine_fn_config_dll mshtml enable_mshtml implib,po
15150 wine_fn_config_test dlls/mshtml/tests mshtml_test
15151 wine_fn_config_dll msi enable_msi implib,po
15152 wine_fn_config_test dlls/msi/tests msi_test
15153 wine_fn_config_dll msimg32 enable_msimg32 implib
15154 wine_fn_config_dll msimsg enable_msimsg
15155 wine_fn_config_dll msimtf enable_msimtf
15156 wine_fn_config_dll msisip enable_msisip
15157 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15158 wine_fn_config_dll msnet32 enable_msnet32
15159 wine_fn_config_dll mspatcha enable_mspatcha
15160 wine_fn_config_dll msrle32 enable_msrle32 po
15161 wine_fn_config_dll mssign32 enable_mssign32
15162 wine_fn_config_dll mssip32 enable_mssip32
15163 wine_fn_config_dll mstask enable_mstask
15164 wine_fn_config_test dlls/mstask/tests mstask_test
15165 wine_fn_config_dll msvcirt enable_msvcirt
15166 wine_fn_config_dll msvcp100 enable_msvcp100
15167 wine_fn_config_dll msvcp60 enable_msvcp60
15168 wine_fn_config_dll msvcp70 enable_msvcp70
15169 wine_fn_config_dll msvcp71 enable_msvcp71
15170 wine_fn_config_dll msvcp80 enable_msvcp80
15171 wine_fn_config_dll msvcp90 enable_msvcp90
15172 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15173 wine_fn_config_dll msvcr100 enable_msvcr100
15174 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15175 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15176 wine_fn_config_dll msvcr80 enable_msvcr80
15177 wine_fn_config_dll msvcr90 enable_msvcr90
15178 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15179 wine_fn_config_dll msvcrt enable_msvcrt implib
15180 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15181 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15182 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15183 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15184 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15185 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15186 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15187 wine_fn_config_dll msvidc32 enable_msvidc32 po
15188 wine_fn_config_dll msvideo.dll16 enable_win16
15189 wine_fn_config_dll mswsock enable_mswsock implib
15190 wine_fn_config_dll msxml enable_msxml
15191 wine_fn_config_dll msxml2 enable_msxml2
15192 wine_fn_config_dll msxml3 enable_msxml3
15193 wine_fn_config_test dlls/msxml3/tests msxml3_test
15194 wine_fn_config_dll msxml4 enable_msxml4
15195 wine_fn_config_dll msxml6 enable_msxml6
15196 wine_fn_config_dll nddeapi enable_nddeapi implib
15197 wine_fn_config_dll netapi32 enable_netapi32 implib
15198 wine_fn_config_test dlls/netapi32/tests netapi32_test
15199 wine_fn_config_dll newdev enable_newdev implib
15200 wine_fn_config_dll normaliz enable_normaliz implib
15201 wine_fn_config_dll npmshtml enable_npmshtml
15202 wine_fn_config_dll ntdll enable_ntdll implib
15203 wine_fn_config_test dlls/ntdll/tests ntdll_test
15204 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15205 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15206 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15207 wine_fn_config_dll ntprint enable_ntprint
15208 wine_fn_config_test dlls/ntprint/tests ntprint_test
15209 wine_fn_config_dll objsel enable_objsel
15210 wine_fn_config_dll odbc32 enable_odbc32 implib
15211 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15212 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15213 wine_fn_config_dll ole2.dll16 enable_win16
15214 wine_fn_config_dll ole2conv.dll16 enable_win16
15215 wine_fn_config_dll ole2disp.dll16 enable_win16
15216 wine_fn_config_dll ole2nls.dll16 enable_win16
15217 wine_fn_config_dll ole2prox.dll16 enable_win16
15218 wine_fn_config_dll ole2thk.dll16 enable_win16
15219 wine_fn_config_dll ole32 enable_ole32 implib
15220 wine_fn_config_test dlls/ole32/tests ole32_test
15221 wine_fn_config_dll oleacc enable_oleacc implib,po
15222 wine_fn_config_test dlls/oleacc/tests oleacc_test
15223 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15224 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15225 wine_fn_config_dll olecli.dll16 enable_win16
15226 wine_fn_config_dll olecli32 enable_olecli32 implib
15227 wine_fn_config_dll oledb32 enable_oledb32
15228 wine_fn_config_test dlls/oledb32/tests oledb32_test
15229 wine_fn_config_dll oledlg enable_oledlg implib,po
15230 wine_fn_config_dll olepro32 enable_olepro32 implib
15231 wine_fn_config_dll olesvr.dll16 enable_win16
15232 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15233 wine_fn_config_dll olethk32 enable_olethk32
15234 wine_fn_config_dll openal32 enable_openal32
15235 wine_fn_config_dll opencl enable_opencl
15236 wine_fn_config_dll opengl32 enable_opengl32 implib
15237 wine_fn_config_test dlls/opengl32/tests opengl32_test
15238 wine_fn_config_dll pdh enable_pdh implib
15239 wine_fn_config_test dlls/pdh/tests pdh_test
15240 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15241 wine_fn_config_dll pidgen enable_pidgen
15242 wine_fn_config_dll powrprof enable_powrprof implib
15243 wine_fn_config_dll printui enable_printui
15244 wine_fn_config_dll propsys enable_propsys implib
15245 wine_fn_config_test dlls/propsys/tests propsys_test
15246 wine_fn_config_dll psapi enable_psapi implib
15247 wine_fn_config_test dlls/psapi/tests psapi_test
15248 wine_fn_config_dll pstorec enable_pstorec
15249 wine_fn_config_dll qcap enable_qcap
15250 wine_fn_config_dll qedit enable_qedit
15251 wine_fn_config_test dlls/qedit/tests qedit_test
15252 wine_fn_config_dll qmgr enable_qmgr
15253 wine_fn_config_test dlls/qmgr/tests qmgr_test
15254 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15255 wine_fn_config_dll quartz enable_quartz implib
15256 wine_fn_config_test dlls/quartz/tests quartz_test
15257 wine_fn_config_dll query enable_query
15258 wine_fn_config_dll rasapi16.dll16 enable_win16
15259 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15260 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15261 wine_fn_config_dll rasdlg enable_rasdlg implib
15262 wine_fn_config_dll regapi enable_regapi
15263 wine_fn_config_dll resutils enable_resutils implib
15264 wine_fn_config_dll riched20 enable_riched20 implib
15265 wine_fn_config_test dlls/riched20/tests riched20_test
15266 wine_fn_config_dll riched32 enable_riched32
15267 wine_fn_config_test dlls/riched32/tests riched32_test
15268 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15269 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15270 wine_fn_config_dll rsabase enable_rsabase
15271 wine_fn_config_dll rsaenh enable_rsaenh implib
15272 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15273 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15274 wine_fn_config_dll rtutils enable_rtutils implib
15275 wine_fn_config_dll samlib enable_samlib
15276 wine_fn_config_dll sane.ds enable_sane_ds po
15277 wine_fn_config_dll scarddlg enable_scarddlg
15278 wine_fn_config_dll sccbase enable_sccbase
15279 wine_fn_config_dll schannel enable_schannel
15280 wine_fn_config_test dlls/schannel/tests schannel_test
15281 wine_fn_config_dll scrrun enable_scrrun
15282 wine_fn_config_dll secur32 enable_secur32 implib
15283 wine_fn_config_test dlls/secur32/tests secur32_test
15284 wine_fn_config_dll security enable_security
15285 wine_fn_config_dll sensapi enable_sensapi implib
15286 wine_fn_config_dll serialui enable_serialui implib,po
15287 wine_fn_config_test dlls/serialui/tests serialui_test
15288 wine_fn_config_dll setupapi enable_setupapi implib,po
15289 wine_fn_config_test dlls/setupapi/tests setupapi_test
15290 wine_fn_config_dll setupx.dll16 enable_win16
15291 wine_fn_config_dll sfc enable_sfc implib
15292 wine_fn_config_dll sfc_os enable_sfc_os implib
15293 wine_fn_config_dll shdoclc enable_shdoclc po
15294 wine_fn_config_dll shdocvw enable_shdocvw implib
15295 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15296 wine_fn_config_dll shell.dll16 enable_win16
15297 wine_fn_config_dll shell32 enable_shell32 implib,po
15298 wine_fn_config_test dlls/shell32/tests shell32_test
15299 wine_fn_config_dll shfolder enable_shfolder implib
15300 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15301 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15302 wine_fn_config_dll slbcsp enable_slbcsp
15303 wine_fn_config_dll slc enable_slc implib
15304 wine_fn_config_dll snmpapi enable_snmpapi implib
15305 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15306 wine_fn_config_dll softpub enable_softpub
15307 wine_fn_config_dll sound.drv16 enable_win16
15308 wine_fn_config_dll spoolss enable_spoolss implib
15309 wine_fn_config_test dlls/spoolss/tests spoolss_test
15310 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15311 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15312 wine_fn_config_dll sti enable_sti implib
15313 wine_fn_config_test dlls/sti/tests sti_test
15314 wine_fn_config_dll storage.dll16 enable_win16
15315 wine_fn_config_dll stress.dll16 enable_win16
15316 wine_fn_config_lib strmbase
15317 wine_fn_config_lib strmiids
15318 wine_fn_config_dll svrapi enable_svrapi
15319 wine_fn_config_dll sxs enable_sxs
15320 wine_fn_config_dll system.drv16 enable_win16
15321 wine_fn_config_dll t2embed enable_t2embed
15322 wine_fn_config_dll tapi32 enable_tapi32 implib
15323 wine_fn_config_dll toolhelp.dll16 enable_win16
15324 wine_fn_config_dll traffic enable_traffic
15325 wine_fn_config_dll twain.dll16 enable_win16
15326 wine_fn_config_dll twain_32 enable_twain_32
15327 wine_fn_config_test dlls/twain_32/tests twain_32_test
15328 wine_fn_config_dll typelib.dll16 enable_win16
15329 wine_fn_config_dll unicows enable_unicows implib
15330 wine_fn_config_dll updspapi enable_updspapi
15331 wine_fn_config_dll url enable_url implib
15332 wine_fn_config_dll urlmon enable_urlmon implib
15333 wine_fn_config_test dlls/urlmon/tests urlmon_test
15334 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15335 wine_fn_config_dll user.exe16 enable_win16
15336 wine_fn_config_dll user32 enable_user32 implib,po
15337 wine_fn_config_test dlls/user32/tests user32_test
15338 wine_fn_config_dll userenv enable_userenv implib
15339 wine_fn_config_test dlls/userenv/tests userenv_test
15340 wine_fn_config_dll usp10 enable_usp10 implib
15341 wine_fn_config_test dlls/usp10/tests usp10_test
15342 wine_fn_config_lib uuid
15343 wine_fn_config_dll uxtheme enable_uxtheme implib
15344 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15345 wine_fn_config_dll vbscript enable_vbscript
15346 wine_fn_config_test dlls/vbscript/tests vbscript_test
15347 wine_fn_config_dll vcomp enable_vcomp
15348 wine_fn_config_dll vdhcp.vxd enable_win16
15349 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15350 wine_fn_config_dll ver.dll16 enable_win16
15351 wine_fn_config_dll version enable_version implib
15352 wine_fn_config_test dlls/version/tests version_test
15353 wine_fn_config_dll vmm.vxd enable_win16
15354 wine_fn_config_dll vnbt.vxd enable_win16
15355 wine_fn_config_dll vnetbios.vxd enable_win16
15356 wine_fn_config_dll vtdapi.vxd enable_win16
15357 wine_fn_config_dll vwin32.vxd enable_win16
15358 wine_fn_config_dll w32skrnl enable_win16
15359 wine_fn_config_dll w32sys.dll16 enable_win16
15360 wine_fn_config_dll wbemprox enable_wbemprox
15361 wine_fn_config_dll wer enable_wer implib
15362 wine_fn_config_test dlls/wer/tests wer_test
15363 wine_fn_config_dll wiaservc enable_wiaservc
15364 wine_fn_config_dll win32s16.dll16 enable_win16
15365 wine_fn_config_dll win87em.dll16 enable_win16
15366 wine_fn_config_dll winaspi.dll16 enable_win16
15367 wine_fn_config_dll windebug.dll16 enable_win16
15368 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15369 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15370 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15371 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15372 wine_fn_config_lib winecrt0
15373 wine_fn_config_dll wined3d enable_wined3d implib
15374 wine_fn_config_dll winegstreamer enable_winegstreamer
15375 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15376 wine_fn_config_dll winemapi enable_winemapi
15377 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15378 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15379 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15380 wine_fn_config_dll wineps16.drv16 enable_win16
15381 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15382 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15383 wine_fn_config_dll winex11.drv enable_winex11_drv
15384 wine_fn_config_dll wing.dll16 enable_win16
15385 wine_fn_config_dll wing32 enable_wing32
15386 wine_fn_config_dll winhttp enable_winhttp implib
15387 wine_fn_config_test dlls/winhttp/tests winhttp_test
15388 wine_fn_config_dll wininet enable_wininet implib,po
15389 wine_fn_config_test dlls/wininet/tests wininet_test
15390 wine_fn_config_dll winmm enable_winmm implib,po
15391 wine_fn_config_test dlls/winmm/tests winmm_test
15392 wine_fn_config_dll winnls.dll16 enable_win16
15393 wine_fn_config_dll winnls32 enable_winnls32 implib
15394 wine_fn_config_dll winscard enable_winscard implib
15395 wine_fn_config_dll winsock.dll16 enable_win16
15396 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15397 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15398 wine_fn_config_dll winsta enable_winsta
15399 wine_fn_config_dll wintab.dll16 enable_win16
15400 wine_fn_config_dll wintab32 enable_wintab32 implib
15401 wine_fn_config_test dlls/wintab32/tests wintab32_test
15402 wine_fn_config_dll wintrust enable_wintrust implib
15403 wine_fn_config_test dlls/wintrust/tests wintrust_test
15404 wine_fn_config_dll wlanapi enable_wlanapi
15405 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15406 wine_fn_config_test dlls/wldap32/tests wldap32_test
15407 wine_fn_config_dll wmi enable_wmi
15408 wine_fn_config_dll wmiutils enable_wmiutils
15409 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15410 wine_fn_config_dll wow32 enable_win16 implib
15411 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15412 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15413 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15414 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15415 wine_fn_config_dll wsock32 enable_wsock32 implib
15416 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15417 wine_fn_config_dll wuapi enable_wuapi
15418 wine_fn_config_dll wuaueng enable_wuaueng
15419 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15420 wine_fn_config_dll xinput1_1 enable_xinput1_1
15421 wine_fn_config_dll xinput1_2 enable_xinput1_2
15422 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15423 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15424 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15425 wine_fn_config_dll xmllite enable_xmllite
15426 wine_fn_config_test dlls/xmllite/tests xmllite_test
15427 wine_fn_config_dll xolehlp enable_xolehlp
15428 wine_fn_config_dll xpsprint enable_xpsprint
15429 wine_fn_config_makefile documentation enable_documentation
15430 wine_fn_config_makefile fonts enable_fonts install-lib
15431 wine_fn_config_makefile include enable_include install-dev
15432 wine_fn_config_makefile libs/port enable_libs_port
15433 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15434 wine_fn_config_makefile libs/wpp enable_libs_wpp
15435 wine_fn_config_makefile loader enable_loader install-lib,manpage
15436 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15437 wine_fn_config_program attrib enable_attrib install,po
15438 wine_fn_config_program cabarc enable_cabarc install
15439 wine_fn_config_program cacls enable_cacls install
15440 wine_fn_config_program clock enable_clock install,po
15441 wine_fn_config_program cmd enable_cmd install,po
15442 wine_fn_config_test programs/cmd/tests cmd.exe_test
15443 wine_fn_config_program control enable_control install
15444 wine_fn_config_program cscript enable_cscript install
15445 wine_fn_config_program dxdiag enable_dxdiag install,po
15446 wine_fn_config_program eject enable_eject install
15447 wine_fn_config_program expand enable_expand install
15448 wine_fn_config_program explorer enable_explorer install,po
15449 wine_fn_config_program extrac32 enable_extrac32 install
15450 wine_fn_config_program hh enable_hh install
15451 wine_fn_config_program hostname enable_hostname install,po
15452 wine_fn_config_program icinfo enable_icinfo install
15453 wine_fn_config_program iexplore enable_iexplore install
15454 wine_fn_config_program ipconfig enable_ipconfig install,po
15455 wine_fn_config_program lodctr enable_lodctr install
15456 wine_fn_config_program mofcomp enable_mofcomp install
15457 wine_fn_config_program mshta enable_mshta install
15458 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15459 wine_fn_config_program net enable_net install,po
15460 wine_fn_config_program netsh enable_netsh install
15461 wine_fn_config_program ngen enable_ngen install
15462 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15463 wine_fn_config_program oleview enable_oleview install,po
15464 wine_fn_config_program ping enable_ping install
15465 wine_fn_config_program plugplay enable_plugplay install
15466 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15467 wine_fn_config_program progman enable_progman install,po
15468 wine_fn_config_program reg enable_reg install,po
15469 wine_fn_config_program regasm enable_regasm install
15470 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15471 wine_fn_config_test programs/regedit/tests regedit.exe_test
15472 wine_fn_config_program regsvcs enable_regsvcs install
15473 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15474 wine_fn_config_program rpcss enable_rpcss install
15475 wine_fn_config_program rundll.exe16 enable_win16 install
15476 wine_fn_config_program rundll32 enable_rundll32 install
15477 wine_fn_config_program sc enable_sc install
15478 wine_fn_config_program secedit enable_secedit install
15479 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15480 wine_fn_config_program services enable_services install
15481 wine_fn_config_program spoolsv enable_spoolsv install
15482 wine_fn_config_program start enable_start install,po
15483 wine_fn_config_program svchost enable_svchost install
15484 wine_fn_config_program taskkill enable_taskkill install,po
15485 wine_fn_config_program taskmgr enable_taskmgr install,po
15486 wine_fn_config_program termsv enable_termsv install
15487 wine_fn_config_program uninstaller enable_uninstaller install,po
15488 wine_fn_config_program unlodctr enable_unlodctr install
15489 wine_fn_config_program view enable_view install,po
15490 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15491 wine_fn_config_program winebrowser enable_winebrowser install
15492 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15493 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15494 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15495 wine_fn_config_program winedevice enable_winedevice install
15496 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15497 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15498 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15499 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15500 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15501 wine_fn_config_program winetest enable_winetest
15502 wine_fn_config_program winevdm enable_win16 install
15503 wine_fn_config_program winhelp.exe16 enable_win16 install
15504 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15505 wine_fn_config_program winoldap.mod16 enable_win16 install
15506 wine_fn_config_program winver enable_winver install
15507 wine_fn_config_program wmic enable_wmic install
15508 wine_fn_config_program wordpad enable_wordpad install,po
15509 wine_fn_config_program write enable_write install,po
15510 wine_fn_config_program wscript enable_wscript install
15511 wine_fn_config_test programs/wscript/tests wscript.exe_test
15512 wine_fn_config_program xcopy enable_xcopy install,po
15513 wine_fn_config_makefile server enable_server install-lib,manpage
15514 wine_fn_config_tool tools install-dev,install-lib,manpage
15515 wine_fn_config_tool tools/widl install-dev,manpage
15516 wine_fn_config_tool tools/winebuild install-dev,manpage
15517 wine_fn_config_tool tools/winedump install-dev,manpage
15518 wine_fn_config_tool tools/winegcc install-dev,manpage
15519 wine_fn_config_tool tools/wmc install-dev,manpage
15520 wine_fn_config_tool tools/wrc install-dev,manpage
15521
15522 LINGUAS="\
15523 ar \
15524 bg \
15525 ca \
15526 cs \
15527 da \
15528 de \
15529 el \
15530 en \
15531 en_US \
15532 eo \
15533 es \
15534 fa \
15535 fi \
15536 fr \
15537 he \
15538 hi \
15539 hu \
15540 it \
15541 ja \
15542 ko \
15543 lt \
15544 ml \
15545 nb_NO \
15546 nl \
15547 or \
15548 pa \
15549 pl \
15550 pt_BR \
15551 pt_PT \
15552 rm \
15553 ro \
15554 ru \
15555 sk \
15556 sl \
15557 sr_RS@cyrillic \
15558 sr_RS@latin \
15559 sv \
15560 te \
15561 th \
15562 tr \
15563 uk \
15564 wa \
15565 zh_CN \
15566 zh_TW"
15567
15568
15569
15570 ac_config_commands="$ac_config_commands Makefile"
15571
15572
15573 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15574
15575
15576
15577 if test "x$enable_maintainer_mode" = xyes
15578 then
15579     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15580         cd \$(srcdir) && autoconf --warnings=all
15581 \$(srcdir)/include/config.h.in: include/stamp-h.in
15582 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15583         cd \$(srcdir) && autoheader --warnings=all
15584         @echo timestamp > \$@"
15585 fi
15586
15587 if test "x$with_gettextpo" = xyes
15588 then
15589     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15590     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15591 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15592         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15593 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15594         msgcat -o \$@ \$(ALL_POT_FILES)"
15595 fi
15596
15597 if test "$MSGFMT" != false
15598 then
15599     PORCFLAGS="--po-dir=\$(top_builddir)/po"
15600
15601     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15602 else
15603     LINGUAS=
15604 fi
15605
15606 if test "x$enable_tools" != xno
15607 then
15608     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15609 clean:: __clean__
15610         \$(RM) tools/makedep\$(EXEEXT)"
15611 fi
15612
15613 if test -n "$with_wine64"
15614 then
15615 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15616 fonts server tools:
15617         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15618 $with_wine64/loader/wine:
15619         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15620 $with_wine64/loader/wine-preloader:
15621         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15622 clean::
15623         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15624 fi
15625
15626 cat >confcache <<\_ACEOF
15627 # This file is a shell script that caches the results of configure
15628 # tests run on this system so they can be shared between configure
15629 # scripts and configure runs, see configure's option --config-cache.
15630 # It is not useful on other systems.  If it contains results you don't
15631 # want to keep, you may remove or edit it.
15632 #
15633 # config.status only pays attention to the cache file if you give it
15634 # the --recheck option to rerun configure.
15635 #
15636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15638 # following values.
15639
15640 _ACEOF
15641
15642 # The following way of writing the cache mishandles newlines in values,
15643 # but we know of no workaround that is simple, portable, and efficient.
15644 # So, we kill variables containing newlines.
15645 # Ultrix sh set writes to stderr and can't be redirected directly,
15646 # and sets the high bit in the cache file unless we assign to the vars.
15647 (
15648   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15649     eval ac_val=\$$ac_var
15650     case $ac_val in #(
15651     *${as_nl}*)
15652       case $ac_var in #(
15653       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15655       esac
15656       case $ac_var in #(
15657       _ | IFS | as_nl) ;; #(
15658       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15659       *) { eval $ac_var=; unset $ac_var;} ;;
15660       esac ;;
15661     esac
15662   done
15663
15664   (set) 2>&1 |
15665     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15666     *${as_nl}ac_space=\ *)
15667       # `set' does not quote correctly, so add quotes: double-quote
15668       # substitution turns \\\\ into \\, and sed turns \\ into \.
15669       sed -n \
15670         "s/'/'\\\\''/g;
15671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15672       ;; #(
15673     *)
15674       # `set' quotes correctly as required by POSIX, so do not add quotes.
15675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15676       ;;
15677     esac |
15678     sort
15679 ) |
15680   sed '
15681      /^ac_cv_env_/b end
15682      t clear
15683      :clear
15684      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15685      t end
15686      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15687      :end' >>confcache
15688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15689   if test -w "$cache_file"; then
15690     if test "x$cache_file" != "x/dev/null"; then
15691       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15692 $as_echo "$as_me: updating cache $cache_file" >&6;}
15693       if test ! -f "$cache_file" || test -h "$cache_file"; then
15694         cat confcache >"$cache_file"
15695       else
15696         case $cache_file in #(
15697         */* | ?:*)
15698           mv -f confcache "$cache_file"$$ &&
15699           mv -f "$cache_file"$$ "$cache_file" ;; #(
15700         *)
15701           mv -f confcache "$cache_file" ;;
15702         esac
15703       fi
15704     fi
15705   else
15706     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15707 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15708   fi
15709 fi
15710 rm -f confcache
15711
15712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15713 # Let make expand exec_prefix.
15714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15715
15716 DEFS=-DHAVE_CONFIG_H
15717
15718 ac_libobjs=
15719 ac_ltlibobjs=
15720 U=
15721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15722   # 1. Remove the extension, and $U if already installed.
15723   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15724   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15725   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15726   #    will be set to the directory where LIBOBJS objects are built.
15727   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15728   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15729 done
15730 LIBOBJS=$ac_libobjs
15731
15732 LTLIBOBJS=$ac_ltlibobjs
15733
15734
15735
15736 : "${CONFIG_STATUS=./config.status}"
15737 ac_write_fail=0
15738 ac_clean_files_save=$ac_clean_files
15739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15741 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15742 as_write_fail=0
15743 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15744 #! $SHELL
15745 # Generated by $as_me.
15746 # Run this file to recreate the current configuration.
15747 # Compiler output produced by configure, useful for debugging
15748 # configure, is in config.log if it exists.
15749
15750 debug=false
15751 ac_cs_recheck=false
15752 ac_cs_silent=false
15753
15754 SHELL=\${CONFIG_SHELL-$SHELL}
15755 export SHELL
15756 _ASEOF
15757 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15758 ## -------------------- ##
15759 ## M4sh Initialization. ##
15760 ## -------------------- ##
15761
15762 # Be more Bourne compatible
15763 DUALCASE=1; export DUALCASE # for MKS sh
15764 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15765   emulate sh
15766   NULLCMD=:
15767   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15768   # is contrary to our usage.  Disable this feature.
15769   alias -g '${1+"$@"}'='"$@"'
15770   setopt NO_GLOB_SUBST
15771 else
15772   case `(set -o) 2>/dev/null` in #(
15773   *posix*) :
15774     set -o posix ;; #(
15775   *) :
15776      ;;
15777 esac
15778 fi
15779
15780
15781 as_nl='
15782 '
15783 export as_nl
15784 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15785 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15786 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15787 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15788 # Prefer a ksh shell builtin over an external printf program on Solaris,
15789 # but without wasting forks for bash or zsh.
15790 if test -z "$BASH_VERSION$ZSH_VERSION" \
15791     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15792   as_echo='print -r --'
15793   as_echo_n='print -rn --'
15794 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15795   as_echo='printf %s\n'
15796   as_echo_n='printf %s'
15797 else
15798   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15799     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15800     as_echo_n='/usr/ucb/echo -n'
15801   else
15802     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15803     as_echo_n_body='eval
15804       arg=$1;
15805       case $arg in #(
15806       *"$as_nl"*)
15807         expr "X$arg" : "X\\(.*\\)$as_nl";
15808         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15809       esac;
15810       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15811     '
15812     export as_echo_n_body
15813     as_echo_n='sh -c $as_echo_n_body as_echo'
15814   fi
15815   export as_echo_body
15816   as_echo='sh -c $as_echo_body as_echo'
15817 fi
15818
15819 # The user is always right.
15820 if test "${PATH_SEPARATOR+set}" != set; then
15821   PATH_SEPARATOR=:
15822   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15823     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15824       PATH_SEPARATOR=';'
15825   }
15826 fi
15827
15828
15829 # IFS
15830 # We need space, tab and new line, in precisely that order.  Quoting is
15831 # there to prevent editors from complaining about space-tab.
15832 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15833 # splitting by setting IFS to empty value.)
15834 IFS=" ""        $as_nl"
15835
15836 # Find who we are.  Look in the path if we contain no directory separator.
15837 as_myself=
15838 case $0 in #((
15839   *[\\/]* ) as_myself=$0 ;;
15840   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15842 do
15843   IFS=$as_save_IFS
15844   test -z "$as_dir" && as_dir=.
15845     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15846   done
15847 IFS=$as_save_IFS
15848
15849      ;;
15850 esac
15851 # We did not find ourselves, most probably we were run as `sh COMMAND'
15852 # in which case we are not to be found in the path.
15853 if test "x$as_myself" = x; then
15854   as_myself=$0
15855 fi
15856 if test ! -f "$as_myself"; then
15857   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15858   exit 1
15859 fi
15860
15861 # Unset variables that we do not need and which cause bugs (e.g. in
15862 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15863 # suppresses any "Segmentation fault" message there.  '((' could
15864 # trigger a bug in pdksh 5.2.14.
15865 for as_var in BASH_ENV ENV MAIL MAILPATH
15866 do eval test x\${$as_var+set} = xset \
15867   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15868 done
15869 PS1='$ '
15870 PS2='> '
15871 PS4='+ '
15872
15873 # NLS nuisances.
15874 LC_ALL=C
15875 export LC_ALL
15876 LANGUAGE=C
15877 export LANGUAGE
15878
15879 # CDPATH.
15880 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15881
15882
15883 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15884 # ----------------------------------------
15885 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15886 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15887 # script with STATUS, using 1 if that was 0.
15888 as_fn_error ()
15889 {
15890   as_status=$1; test $as_status -eq 0 && as_status=1
15891   if test "$4"; then
15892     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15893     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15894   fi
15895   $as_echo "$as_me: error: $2" >&2
15896   as_fn_exit $as_status
15897 } # as_fn_error
15898
15899
15900 # as_fn_set_status STATUS
15901 # -----------------------
15902 # Set $? to STATUS, without forking.
15903 as_fn_set_status ()
15904 {
15905   return $1
15906 } # as_fn_set_status
15907
15908 # as_fn_exit STATUS
15909 # -----------------
15910 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15911 as_fn_exit ()
15912 {
15913   set +e
15914   as_fn_set_status $1
15915   exit $1
15916 } # as_fn_exit
15917
15918 # as_fn_unset VAR
15919 # ---------------
15920 # Portably unset VAR.
15921 as_fn_unset ()
15922 {
15923   { eval $1=; unset $1;}
15924 }
15925 as_unset=as_fn_unset
15926 # as_fn_append VAR VALUE
15927 # ----------------------
15928 # Append the text in VALUE to the end of the definition contained in VAR. Take
15929 # advantage of any shell optimizations that allow amortized linear growth over
15930 # repeated appends, instead of the typical quadratic growth present in naive
15931 # implementations.
15932 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15933   eval 'as_fn_append ()
15934   {
15935     eval $1+=\$2
15936   }'
15937 else
15938   as_fn_append ()
15939   {
15940     eval $1=\$$1\$2
15941   }
15942 fi # as_fn_append
15943
15944 # as_fn_arith ARG...
15945 # ------------------
15946 # Perform arithmetic evaluation on the ARGs, and store the result in the
15947 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15948 # must be portable across $(()) and expr.
15949 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15950   eval 'as_fn_arith ()
15951   {
15952     as_val=$(( $* ))
15953   }'
15954 else
15955   as_fn_arith ()
15956   {
15957     as_val=`expr "$@" || test $? -eq 1`
15958   }
15959 fi # as_fn_arith
15960
15961
15962 if expr a : '\(a\)' >/dev/null 2>&1 &&
15963    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15964   as_expr=expr
15965 else
15966   as_expr=false
15967 fi
15968
15969 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15970   as_basename=basename
15971 else
15972   as_basename=false
15973 fi
15974
15975 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15976   as_dirname=dirname
15977 else
15978   as_dirname=false
15979 fi
15980
15981 as_me=`$as_basename -- "$0" ||
15982 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15983          X"$0" : 'X\(//\)$' \| \
15984          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15985 $as_echo X/"$0" |
15986     sed '/^.*\/\([^/][^/]*\)\/*$/{
15987             s//\1/
15988             q
15989           }
15990           /^X\/\(\/\/\)$/{
15991             s//\1/
15992             q
15993           }
15994           /^X\/\(\/\).*/{
15995             s//\1/
15996             q
15997           }
15998           s/.*/./; q'`
15999
16000 # Avoid depending upon Character Ranges.
16001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16004 as_cr_digits='0123456789'
16005 as_cr_alnum=$as_cr_Letters$as_cr_digits
16006
16007 ECHO_C= ECHO_N= ECHO_T=
16008 case `echo -n x` in #(((((
16009 -n*)
16010   case `echo 'xy\c'` in
16011   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16012   xy)  ECHO_C='\c';;
16013   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16014        ECHO_T=' ';;
16015   esac;;
16016 *)
16017   ECHO_N='-n';;
16018 esac
16019
16020 rm -f conf$$ conf$$.exe conf$$.file
16021 if test -d conf$$.dir; then
16022   rm -f conf$$.dir/conf$$.file
16023 else
16024   rm -f conf$$.dir
16025   mkdir conf$$.dir 2>/dev/null
16026 fi
16027 if (echo >conf$$.file) 2>/dev/null; then
16028   if ln -s conf$$.file conf$$ 2>/dev/null; then
16029     as_ln_s='ln -s'
16030     # ... but there are two gotchas:
16031     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16032     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16033     # In both cases, we have to default to `cp -p'.
16034     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16035       as_ln_s='cp -p'
16036   elif ln conf$$.file conf$$ 2>/dev/null; then
16037     as_ln_s=ln
16038   else
16039     as_ln_s='cp -p'
16040   fi
16041 else
16042   as_ln_s='cp -p'
16043 fi
16044 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16045 rmdir conf$$.dir 2>/dev/null
16046
16047
16048 # as_fn_mkdir_p
16049 # -------------
16050 # Create "$as_dir" as a directory, including parents if necessary.
16051 as_fn_mkdir_p ()
16052 {
16053
16054   case $as_dir in #(
16055   -*) as_dir=./$as_dir;;
16056   esac
16057   test -d "$as_dir" || eval $as_mkdir_p || {
16058     as_dirs=
16059     while :; do
16060       case $as_dir in #(
16061       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16062       *) as_qdir=$as_dir;;
16063       esac
16064       as_dirs="'$as_qdir' $as_dirs"
16065       as_dir=`$as_dirname -- "$as_dir" ||
16066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16067          X"$as_dir" : 'X\(//\)[^/]' \| \
16068          X"$as_dir" : 'X\(//\)$' \| \
16069          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16070 $as_echo X"$as_dir" |
16071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16072             s//\1/
16073             q
16074           }
16075           /^X\(\/\/\)[^/].*/{
16076             s//\1/
16077             q
16078           }
16079           /^X\(\/\/\)$/{
16080             s//\1/
16081             q
16082           }
16083           /^X\(\/\).*/{
16084             s//\1/
16085             q
16086           }
16087           s/.*/./; q'`
16088       test -d "$as_dir" && break
16089     done
16090     test -z "$as_dirs" || eval "mkdir $as_dirs"
16091   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16092
16093
16094 } # as_fn_mkdir_p
16095 if mkdir -p . 2>/dev/null; then
16096   as_mkdir_p='mkdir -p "$as_dir"'
16097 else
16098   test -d ./-p && rmdir ./-p
16099   as_mkdir_p=false
16100 fi
16101
16102 if test -x / >/dev/null 2>&1; then
16103   as_test_x='test -x'
16104 else
16105   if ls -dL / >/dev/null 2>&1; then
16106     as_ls_L_option=L
16107   else
16108     as_ls_L_option=
16109   fi
16110   as_test_x='
16111     eval sh -c '\''
16112       if test -d "$1"; then
16113         test -d "$1/.";
16114       else
16115         case $1 in #(
16116         -*)set "./$1";;
16117         esac;
16118         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16119         ???[sx]*):;;*)false;;esac;fi
16120     '\'' sh
16121   '
16122 fi
16123 as_executable_p=$as_test_x
16124
16125 # Sed expression to map a string onto a valid CPP name.
16126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16127
16128 # Sed expression to map a string onto a valid variable name.
16129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16130
16131
16132 exec 6>&1
16133 ## ----------------------------------- ##
16134 ## Main body of $CONFIG_STATUS script. ##
16135 ## ----------------------------------- ##
16136 _ASEOF
16137 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16138
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 # Save the log message, to keep $0 and so on meaningful, and to
16141 # report actual input values of CONFIG_FILES etc. instead of their
16142 # values after options handling.
16143 ac_log="
16144 This file was extended by Wine $as_me 1.4, which was
16145 generated by GNU Autoconf 2.68.  Invocation command line was
16146
16147   CONFIG_FILES    = $CONFIG_FILES
16148   CONFIG_HEADERS  = $CONFIG_HEADERS
16149   CONFIG_LINKS    = $CONFIG_LINKS
16150   CONFIG_COMMANDS = $CONFIG_COMMANDS
16151   $ $0 $@
16152
16153 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16154 "
16155
16156 _ACEOF
16157
16158 case $ac_config_files in *"
16159 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16160 esac
16161
16162 case $ac_config_headers in *"
16163 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16164 esac
16165
16166
16167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168 # Files that config.status was made for.
16169 config_files="$ac_config_files"
16170 config_headers="$ac_config_headers"
16171 config_links="$ac_config_links"
16172 config_commands="$ac_config_commands"
16173
16174 _ACEOF
16175
16176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16177 ac_cs_usage="\
16178 \`$as_me' instantiates files and other configuration actions
16179 from templates according to the current configuration.  Unless the files
16180 and actions are specified as TAGs, all are instantiated by default.
16181
16182 Usage: $0 [OPTION]... [TAG]...
16183
16184   -h, --help       print this help, then exit
16185   -V, --version    print version number and configuration settings, then exit
16186       --config     print configuration, then exit
16187   -q, --quiet, --silent
16188                    do not print progress messages
16189   -d, --debug      don't remove temporary files
16190       --recheck    update $as_me by reconfiguring in the same conditions
16191       --file=FILE[:TEMPLATE]
16192                    instantiate the configuration file FILE
16193       --header=FILE[:TEMPLATE]
16194                    instantiate the configuration header FILE
16195
16196 Configuration files:
16197 $config_files
16198
16199 Configuration headers:
16200 $config_headers
16201
16202 Configuration links:
16203 $config_links
16204
16205 Configuration commands:
16206 $config_commands
16207
16208 Report bugs to <wine-devel@winehq.org>.
16209 Wine home page: <http://www.winehq.org>."
16210
16211 _ACEOF
16212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16214 ac_cs_version="\\
16215 Wine config.status 1.4
16216 configured by $0, generated by GNU Autoconf 2.68,
16217   with options \\"\$ac_cs_config\\"
16218
16219 Copyright (C) 2010 Free Software Foundation, Inc.
16220 This config.status script is free software; the Free Software Foundation
16221 gives unlimited permission to copy, distribute and modify it."
16222
16223 ac_pwd='$ac_pwd'
16224 srcdir='$srcdir'
16225 INSTALL='$INSTALL'
16226 test -n "\$AWK" || AWK=awk
16227 _ACEOF
16228
16229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16230 # The default lists apply if the user does not specify any file.
16231 ac_need_defaults=:
16232 while test $# != 0
16233 do
16234   case $1 in
16235   --*=?*)
16236     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16237     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16238     ac_shift=:
16239     ;;
16240   --*=)
16241     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16242     ac_optarg=
16243     ac_shift=:
16244     ;;
16245   *)
16246     ac_option=$1
16247     ac_optarg=$2
16248     ac_shift=shift
16249     ;;
16250   esac
16251
16252   case $ac_option in
16253   # Handling of the options.
16254   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16255     ac_cs_recheck=: ;;
16256   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16257     $as_echo "$ac_cs_version"; exit ;;
16258   --config | --confi | --conf | --con | --co | --c )
16259     $as_echo "$ac_cs_config"; exit ;;
16260   --debug | --debu | --deb | --de | --d | -d )
16261     debug=: ;;
16262   --file | --fil | --fi | --f )
16263     $ac_shift
16264     case $ac_optarg in
16265     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16266     '') as_fn_error $? "missing file argument" ;;
16267     esac
16268     as_fn_append CONFIG_FILES " '$ac_optarg'"
16269     ac_need_defaults=false;;
16270   --header | --heade | --head | --hea )
16271     $ac_shift
16272     case $ac_optarg in
16273     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16274     esac
16275     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16276     ac_need_defaults=false;;
16277   --he | --h)
16278     # Conflict between --help and --header
16279     as_fn_error $? "ambiguous option: \`$1'
16280 Try \`$0 --help' for more information.";;
16281   --help | --hel | -h )
16282     $as_echo "$ac_cs_usage"; exit ;;
16283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16284   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16285     ac_cs_silent=: ;;
16286
16287   # This is an error.
16288   -*) as_fn_error $? "unrecognized option: \`$1'
16289 Try \`$0 --help' for more information." ;;
16290
16291   *) as_fn_append ac_config_targets " $1"
16292      ac_need_defaults=false ;;
16293
16294   esac
16295   shift
16296 done
16297
16298 ac_configure_extra_args=
16299
16300 if $ac_cs_silent; then
16301   exec 6>/dev/null
16302   ac_configure_extra_args="$ac_configure_extra_args --silent"
16303 fi
16304
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16307 if \$ac_cs_recheck; then
16308   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16309   shift
16310   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16311   CONFIG_SHELL='$SHELL'
16312   export CONFIG_SHELL
16313   exec "\$@"
16314 fi
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318 exec 5>>config.log
16319 {
16320   echo
16321   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16322 ## Running $as_me. ##
16323 _ASBOX
16324   $as_echo "$ac_log"
16325 } >&5
16326
16327 _ACEOF
16328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16329 #
16330 # INIT-COMMANDS
16331 #
16332 wine_fn_output_makefile ()
16333 {
16334     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16335 $ALL_MAKEFILE_DEPENDS
16336 _WINE_EOF
16337     as_fn_error $? "could not create Makefile" "$LINENO" 5
16338 }
16339
16340 _ACEOF
16341
16342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343
16344 # Handling of arguments.
16345 for ac_config_target in $ac_config_targets
16346 do
16347   case $ac_config_target in
16348     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16349     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16350     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16351     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16352     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16353     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16354     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16355     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16356     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16357     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16358     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16359     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16360     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16361     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16362     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16363     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16364     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16365     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16366     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16367     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16368     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16369     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16370     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16371     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16372     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16373     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16374
16375   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16376   esac
16377 done
16378
16379
16380 # If the user did not use the arguments to specify the items to instantiate,
16381 # then the envvar interface is used.  Set only those that are not.
16382 # We use the long form for the default assignment because of an extremely
16383 # bizarre bug on SunOS 4.1.3.
16384 if $ac_need_defaults; then
16385   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16386   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16387   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16388   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16389 fi
16390
16391 # Have a temporary directory for convenience.  Make it in the build tree
16392 # simply because there is no reason against having it here, and in addition,
16393 # creating and moving files from /tmp can sometimes cause problems.
16394 # Hook for its removal unless debugging.
16395 # Note that there is a small window in which the directory will not be cleaned:
16396 # after its creation but before its name has been assigned to `$tmp'.
16397 $debug ||
16398 {
16399   tmp= ac_tmp=
16400   trap 'exit_status=$?
16401   : "${ac_tmp:=$tmp}"
16402   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16403 ' 0
16404   trap 'as_fn_exit 1' 1 2 13 15
16405 }
16406 # Create a (secure) tmp directory for tmp files.
16407
16408 {
16409   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16410   test -d "$tmp"
16411 }  ||
16412 {
16413   tmp=./conf$$-$RANDOM
16414   (umask 077 && mkdir "$tmp")
16415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16416 ac_tmp=$tmp
16417
16418 # Set up the scripts for CONFIG_FILES section.
16419 # No need to generate them if there are no CONFIG_FILES.
16420 # This happens for instance with `./config.status config.h'.
16421 if test -n "$CONFIG_FILES"; then
16422
16423 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16424   ac_cs_awk_getline=:
16425   ac_cs_awk_pipe_init=
16426   ac_cs_awk_read_file='
16427       while ((getline aline < (F[key])) > 0)
16428         print(aline)
16429       close(F[key])'
16430   ac_cs_awk_pipe_fini=
16431 else
16432   ac_cs_awk_getline=false
16433   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16434   ac_cs_awk_read_file='
16435       print "|#_!!_#|"
16436       print "cat " F[key] " &&"
16437       '$ac_cs_awk_pipe_init
16438   # The final `:' finishes the AND list.
16439   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16440 fi
16441 ac_cr=`echo X | tr X '\015'`
16442 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16443 # But we know of no other shell where ac_cr would be empty at this
16444 # point, so we can use a bashism as a fallback.
16445 if test "x$ac_cr" = x; then
16446   eval ac_cr=\$\'\\r\'
16447 fi
16448 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16449 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16450   ac_cs_awk_cr='\\r'
16451 else
16452   ac_cs_awk_cr=$ac_cr
16453 fi
16454
16455 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16456 _ACEOF
16457
16458 # Create commands to substitute file output variables.
16459 {
16460   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16461   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16462   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16463   echo "_ACAWK" &&
16464   echo "_ACEOF"
16465 } >conf$$files.sh &&
16466 . ./conf$$files.sh ||
16467   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16468 rm -f conf$$files.sh
16469
16470 {
16471   echo "cat >conf$$subs.awk <<_ACEOF" &&
16472   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16473   echo "_ACEOF"
16474 } >conf$$subs.sh ||
16475   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16476 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16477 ac_delim='%!_!# '
16478 for ac_last_try in false false false false false :; do
16479   . ./conf$$subs.sh ||
16480     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16481
16482   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16483   if test $ac_delim_n = $ac_delim_num; then
16484     break
16485   elif $ac_last_try; then
16486     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16487   else
16488     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16489   fi
16490 done
16491 rm -f conf$$subs.sh
16492
16493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16495 _ACEOF
16496 sed -n '
16497 h
16498 s/^/S["/; s/!.*/"]=/
16499 p
16500 g
16501 s/^[^!]*!//
16502 :repl
16503 t repl
16504 s/'"$ac_delim"'$//
16505 t delim
16506 :nl
16507 h
16508 s/\(.\{148\}\)..*/\1/
16509 t more1
16510 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16511 p
16512 n
16513 b repl
16514 :more1
16515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16516 p
16517 g
16518 s/.\{148\}//
16519 t nl
16520 :delim
16521 h
16522 s/\(.\{148\}\)..*/\1/
16523 t more2
16524 s/["\\]/\\&/g; s/^/"/; s/$/"/
16525 p
16526 b
16527 :more2
16528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16529 p
16530 g
16531 s/.\{148\}//
16532 t delim
16533 ' <conf$$subs.awk | sed '
16534 /^[^""]/{
16535   N
16536   s/\n//
16537 }
16538 ' >>$CONFIG_STATUS || ac_write_fail=1
16539 rm -f conf$$subs.awk
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 _ACAWK
16542 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16543   for (key in S) S_is_set[key] = 1
16544   FS = "\a"
16545   \$ac_cs_awk_pipe_init
16546 }
16547 {
16548   line = $ 0
16549   nfields = split(line, field, "@")
16550   substed = 0
16551   len = length(field[1])
16552   for (i = 2; i < nfields; i++) {
16553     key = field[i]
16554     keylen = length(key)
16555     if (S_is_set[key]) {
16556       value = S[key]
16557       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16558       len += length(value) + length(field[++i])
16559       substed = 1
16560     } else
16561       len += 1 + keylen
16562   }
16563   if (nfields == 3 && !substed) {
16564     key = field[2]
16565     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16566       \$ac_cs_awk_read_file
16567       next
16568     }
16569   }
16570   print line
16571 }
16572 \$ac_cs_awk_pipe_fini
16573 _ACAWK
16574 _ACEOF
16575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16576 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16577   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16578 else
16579   cat
16580 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16581   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16582 _ACEOF
16583
16584 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16585 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16586 # trailing colons and then remove the whole line if VPATH becomes empty
16587 # (actually we leave an empty line to preserve line numbers).
16588 if test "x$srcdir" = x.; then
16589   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16590 h
16591 s///
16592 s/^/:/
16593 s/[      ]*$/:/
16594 s/:\$(srcdir):/:/g
16595 s/:\${srcdir}:/:/g
16596 s/:@srcdir@:/:/g
16597 s/^:*//
16598 s/:*$//
16599 x
16600 s/\(=[   ]*\).*/\1/
16601 G
16602 s/\n//
16603 s/^[^=]*=[       ]*$//
16604 }'
16605 fi
16606
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608 fi # test -n "$CONFIG_FILES"
16609
16610 # Set up the scripts for CONFIG_HEADERS section.
16611 # No need to generate them if there are no CONFIG_HEADERS.
16612 # This happens for instance with `./config.status Makefile'.
16613 if test -n "$CONFIG_HEADERS"; then
16614 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16615 BEGIN {
16616 _ACEOF
16617
16618 # Transform confdefs.h into an awk script `defines.awk', embedded as
16619 # here-document in config.status, that substitutes the proper values into
16620 # config.h.in to produce config.h.
16621
16622 # Create a delimiter string that does not exist in confdefs.h, to ease
16623 # handling of long lines.
16624 ac_delim='%!_!# '
16625 for ac_last_try in false false :; do
16626   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16627   if test -z "$ac_tt"; then
16628     break
16629   elif $ac_last_try; then
16630     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16631   else
16632     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16633   fi
16634 done
16635
16636 # For the awk script, D is an array of macro values keyed by name,
16637 # likewise P contains macro parameters if any.  Preserve backslash
16638 # newline sequences.
16639
16640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16641 sed -n '
16642 s/.\{148\}/&'"$ac_delim"'/g
16643 t rset
16644 :rset
16645 s/^[     ]*#[    ]*define[       ][      ]*/ /
16646 t def
16647 d
16648 :def
16649 s/\\$//
16650 t bsnl
16651 s/["\\]/\\&/g
16652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16653 D["\1"]=" \3"/p
16654 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16655 d
16656 :bsnl
16657 s/["\\]/\\&/g
16658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16659 D["\1"]=" \3\\\\\\n"\\/p
16660 t cont
16661 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16662 t cont
16663 d
16664 :cont
16665 n
16666 s/.\{148\}/&'"$ac_delim"'/g
16667 t clear
16668 :clear
16669 s/\\$//
16670 t bsnlc
16671 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16672 d
16673 :bsnlc
16674 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16675 b cont
16676 ' <confdefs.h | sed '
16677 s/'"$ac_delim"'/"\\\
16678 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16679
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681   for (key in D) D_is_set[key] = 1
16682   FS = "\a"
16683 }
16684 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16685   line = \$ 0
16686   split(line, arg, " ")
16687   if (arg[1] == "#") {
16688     defundef = arg[2]
16689     mac1 = arg[3]
16690   } else {
16691     defundef = substr(arg[1], 2)
16692     mac1 = arg[2]
16693   }
16694   split(mac1, mac2, "(") #)
16695   macro = mac2[1]
16696   prefix = substr(line, 1, index(line, defundef) - 1)
16697   if (D_is_set[macro]) {
16698     # Preserve the white space surrounding the "#".
16699     print prefix "define", macro P[macro] D[macro]
16700     next
16701   } else {
16702     # Replace #undef with comments.  This is necessary, for example,
16703     # in the case of _POSIX_SOURCE, which is predefined and required
16704     # on some systems where configure will not decide to define it.
16705     if (defundef == "undef") {
16706       print "/*", prefix defundef, macro, "*/"
16707       next
16708     }
16709   }
16710 }
16711 { print }
16712 _ACAWK
16713 _ACEOF
16714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16715   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16716 fi # test -n "$CONFIG_HEADERS"
16717
16718
16719 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16720 shift
16721 for ac_tag
16722 do
16723   case $ac_tag in
16724   :[FHLC]) ac_mode=$ac_tag; continue;;
16725   esac
16726   case $ac_mode$ac_tag in
16727   :[FHL]*:*);;
16728   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16729   :[FH]-) ac_tag=-:-;;
16730   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16731   esac
16732   ac_save_IFS=$IFS
16733   IFS=:
16734   set x $ac_tag
16735   IFS=$ac_save_IFS
16736   shift
16737   ac_file=$1
16738   shift
16739
16740   case $ac_mode in
16741   :L) ac_source=$1;;
16742   :[FH])
16743     ac_file_inputs=
16744     for ac_f
16745     do
16746       case $ac_f in
16747       -) ac_f="$ac_tmp/stdin";;
16748       *) # Look for the file first in the build tree, then in the source tree
16749          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16750          # because $ac_f cannot contain `:'.
16751          test -f "$ac_f" ||
16752            case $ac_f in
16753            [\\/$]*) false;;
16754            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16755            esac ||
16756            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16757       esac
16758       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16759       as_fn_append ac_file_inputs " '$ac_f'"
16760     done
16761
16762     # Let's still pretend it is `configure' which instantiates (i.e., don't
16763     # use $as_me), people would be surprised to read:
16764     #    /* config.h.  Generated by config.status.  */
16765     configure_input='Generated from '`
16766           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16767         `' by configure.'
16768     if test x"$ac_file" != x-; then
16769       configure_input="$ac_file.  $configure_input"
16770       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16771 $as_echo "$as_me: creating $ac_file" >&6;}
16772     fi
16773     # Neutralize special characters interpreted by sed in replacement strings.
16774     case $configure_input in #(
16775     *\&* | *\|* | *\\* )
16776        ac_sed_conf_input=`$as_echo "$configure_input" |
16777        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16778     *) ac_sed_conf_input=$configure_input;;
16779     esac
16780
16781     case $ac_tag in
16782     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16783       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16784     esac
16785     ;;
16786   esac
16787
16788   ac_dir=`$as_dirname -- "$ac_file" ||
16789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16790          X"$ac_file" : 'X\(//\)[^/]' \| \
16791          X"$ac_file" : 'X\(//\)$' \| \
16792          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16793 $as_echo X"$ac_file" |
16794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16795             s//\1/
16796             q
16797           }
16798           /^X\(\/\/\)[^/].*/{
16799             s//\1/
16800             q
16801           }
16802           /^X\(\/\/\)$/{
16803             s//\1/
16804             q
16805           }
16806           /^X\(\/\).*/{
16807             s//\1/
16808             q
16809           }
16810           s/.*/./; q'`
16811   as_dir="$ac_dir"; as_fn_mkdir_p
16812   ac_builddir=.
16813
16814 case "$ac_dir" in
16815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16816 *)
16817   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16818   # A ".." for each directory in $ac_dir_suffix.
16819   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16820   case $ac_top_builddir_sub in
16821   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16822   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16823   esac ;;
16824 esac
16825 ac_abs_top_builddir=$ac_pwd
16826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16827 # for backward compatibility:
16828 ac_top_builddir=$ac_top_build_prefix
16829
16830 case $srcdir in
16831   .)  # We are building in place.
16832     ac_srcdir=.
16833     ac_top_srcdir=$ac_top_builddir_sub
16834     ac_abs_top_srcdir=$ac_pwd ;;
16835   [\\/]* | ?:[\\/]* )  # Absolute name.
16836     ac_srcdir=$srcdir$ac_dir_suffix;
16837     ac_top_srcdir=$srcdir
16838     ac_abs_top_srcdir=$srcdir ;;
16839   *) # Relative name.
16840     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16841     ac_top_srcdir=$ac_top_build_prefix$srcdir
16842     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16843 esac
16844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16845
16846
16847   case $ac_mode in
16848   :F)
16849   #
16850   # CONFIG_FILE
16851   #
16852
16853   case $INSTALL in
16854   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16855   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16856   esac
16857 _ACEOF
16858
16859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16860 # If the template does not know about datarootdir, expand it.
16861 # FIXME: This hack should be removed a few years after 2.60.
16862 ac_datarootdir_hack=; ac_datarootdir_seen=
16863 ac_sed_dataroot='
16864 /datarootdir/ {
16865   p
16866   q
16867 }
16868 /@datadir@/p
16869 /@docdir@/p
16870 /@infodir@/p
16871 /@localedir@/p
16872 /@mandir@/p'
16873 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16874 *datarootdir*) ac_datarootdir_seen=yes;;
16875 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16876   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16877 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16878 _ACEOF
16879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16880   ac_datarootdir_hack='
16881   s&@datadir@&$datadir&g
16882   s&@docdir@&$docdir&g
16883   s&@infodir@&$infodir&g
16884   s&@localedir@&$localedir&g
16885   s&@mandir@&$mandir&g
16886   s&\\\${datarootdir}&$datarootdir&g' ;;
16887 esac
16888 _ACEOF
16889
16890 # Neutralize VPATH when `$srcdir' = `.'.
16891 # Shell code in configure.ac might set extrasub.
16892 # FIXME: do we really want to maintain this feature?
16893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16894 ac_sed_extra="$ac_vpsub
16895 $extrasub
16896 _ACEOF
16897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16898 :t
16899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16900 s|@configure_input@|$ac_sed_conf_input|;t t
16901 s&@top_builddir@&$ac_top_builddir_sub&;t t
16902 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16903 s&@srcdir@&$ac_srcdir&;t t
16904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16905 s&@top_srcdir@&$ac_top_srcdir&;t t
16906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16907 s&@builddir@&$ac_builddir&;t t
16908 s&@abs_builddir@&$ac_abs_builddir&;t t
16909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16910 s&@INSTALL@&$ac_INSTALL&;t t
16911 $ac_datarootdir_hack
16912 "
16913 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16914 if $ac_cs_awk_getline; then
16915   $AWK -f "$ac_tmp/subs.awk"
16916 else
16917   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16918 fi \
16919   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16920
16921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16922   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16923   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16924       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16926 which seems to be undefined.  Please make sure it is defined" >&5
16927 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16928 which seems to be undefined.  Please make sure it is defined" >&2;}
16929
16930   rm -f "$ac_tmp/stdin"
16931   case $ac_file in
16932   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16933   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16934   esac \
16935   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16936  ;;
16937   :H)
16938   #
16939   # CONFIG_HEADER
16940   #
16941   if test x"$ac_file" != x-; then
16942     {
16943       $as_echo "/* $configure_input  */" \
16944       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16945     } >"$ac_tmp/config.h" \
16946       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16947     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16948       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16949 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16950     else
16951       rm -f "$ac_file"
16952       mv "$ac_tmp/config.h" "$ac_file" \
16953         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16954     fi
16955   else
16956     $as_echo "/* $configure_input  */" \
16957       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16958       || as_fn_error $? "could not create -" "$LINENO" 5
16959   fi
16960  ;;
16961   :L)
16962   #
16963   # CONFIG_LINK
16964   #
16965
16966   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16967     :
16968   else
16969     # Prefer the file from the source tree if names are identical.
16970     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16971       ac_source=$srcdir/$ac_source
16972     fi
16973
16974     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16975 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16976
16977     if test ! -r "$ac_source"; then
16978       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16979     fi
16980     rm -f "$ac_file"
16981
16982     # Try a relative symlink, then a hard link, then a copy.
16983     case $ac_source in
16984     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16985         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16986     esac
16987     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16988       ln "$ac_source" "$ac_file" 2>/dev/null ||
16989       cp -p "$ac_source" "$ac_file" ||
16990       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16991   fi
16992  ;;
16993   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16994 $as_echo "$as_me: executing $ac_file commands" >&6;}
16995  ;;
16996   esac
16997
16998
16999   case $ac_file$ac_mode in
17000     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17001     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17002 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17003     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17004 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17005     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17006 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17007     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17008 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17009     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17010 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17011     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17012 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17013     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17014 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17015     "Makefile":C) wine_fn_output_makefile Makefile ;;
17016
17017   esac
17018 done # for ac_tag
17019
17020
17021 as_fn_exit 0
17022 _ACEOF
17023 ac_clean_files=$ac_clean_files_save
17024
17025 test $ac_write_fail = 0 ||
17026   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17027
17028
17029 # configure is writing to config.log, and then calls config.status.
17030 # config.status does its own redirection, appending to config.log.
17031 # Unfortunately, on DOS this fails, as config.log is still kept open
17032 # by configure, so config.status won't be able to write to it; its
17033 # output is simply discarded.  So we exec the FD to /dev/null,
17034 # effectively closing config.log, so it can be properly (re)opened and
17035 # appended to by config.status.  When coming back to configure, we
17036 # need to make the FD available again.
17037 if test "$no_create" != yes; then
17038   ac_cs_success=:
17039   ac_config_status_args=
17040   test "$silent" = yes &&
17041     ac_config_status_args="$ac_config_status_args --quiet"
17042   exec 5>/dev/null
17043   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17044   exec 5>>config.log
17045   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17046   # would make configure fail if this is the last instruction.
17047   $ac_cs_success || as_fn_exit 1
17048 fi
17049 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17050   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17051 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17052 fi
17053
17054
17055 if test "$no_create" = "yes"
17056 then
17057   exit 0
17058 fi
17059
17060 ac_save_IFS="$IFS"
17061 if test "x$wine_notices != "x; then
17062     echo >&6
17063     IFS="|"
17064     for msg in $wine_notices; do
17065         IFS="$ac_save_IFS"
17066         if test -n "$msg"; then
17067             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17068 $as_echo "$as_me: $msg" >&6;}
17069         fi
17070     done
17071 fi
17072 IFS="|"
17073 for msg in $wine_warnings; do
17074     IFS="$ac_save_IFS"
17075     if test -n "$msg"; then
17076         echo >&2
17077         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17078 $as_echo "$as_me: WARNING: $msg" >&2;}
17079     fi
17080 done
17081 IFS="$ac_save_IFS"
17082
17083 echo "
17084 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17085 " >&6
17086