ddraw: Remove unused variable.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.17.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.17'
584 PACKAGE_STRING='Wine 1.5.17'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
587
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBPOLL
632 LIBDL
633 EXTRA_BINARIES
634 MAIN_BINARY
635 SOCKETLIBS
636 CRTLIBS
637 TOOLSEXT
638 LDPATH
639 UNWINDFLAGS
640 BUILTINFLAG
641 EXTRACFLAGS
642 LIBKSTAT
643 LIBOPENAL
644 LIBMPG123
645 PNGINCL
646 FONTCONFIGINCL
647 CUPSINCL
648 OSS4INCL
649 ALSALIBS
650 GSTREAMER_INCL
651 GSTREAMER_LIBS
652 LIBGETTEXTPO
653 ZLIB
654 FREETYPEINCL
655 FREETYPELIBS
656 ft_devel
657 LCMSLIBS
658 RESOLVLIBS
659 GPHOTO2INCL
660 GPHOTO2LIBS
661 gphoto2port_devel
662 gphoto2_devel
663 SANEINCL
664 sane_devel
665 GNUTLSINCL
666 HALINCL
667 DBUSINCL
668 XSLTINCL
669 XML2INCL
670 XML2LIBS
671 X_EXTRA_LIBS
672 X_LIBS
673 X_PRE_LIBS
674 X_CFLAGS
675 XMKMF
676 LIBPTHREAD
677 CROSSTARGET
678 CROSSCC
679 CROSSTEST_DISABLE
680 PRELINK
681 CARBONLIB
682 QUICKTIMELIB
683 LIBOPENCL
684 FRAMEWORK_OPENAL
685 COREAUDIO
686 SECURITYLIB
687 DISKARBITRATIONLIB
688 LDEXECFLAGS
689 CORESERVICESLIB
690 APPLICATIONSERVICESLIB
691 IOKITLIB
692 COREFOUNDATIONLIB
693 DLLWRAP
694 DLLTOOL
695 LDD
696 LDRPATH_LOCAL
697 LDRPATH_INSTALL
698 IMPLIBEXT
699 LIBEXT
700 LDDLLFLAGS
701 LDSHARED
702 DLLFLAGS
703 DLLEXT
704 CPP
705 OPENGL_LIBS
706 XLIB
707 MAINTAINER_MODE
708 MSGFMT
709 ICOTOOL
710 CONVERT
711 RSVG
712 PKG_CONFIG
713 FONTFORGE
714 LINTFLAGS
715 LINT
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 LDCONFIG
720 EGREP
721 GREP
722 LN_S
723 RANLIB
724 ARFLAGS
725 ac_ct_AR
726 AR
727 BISON
728 FLEX
729 TOOLSDIR
730 WOW64_DISABLE
731 TARGETFLAGS
732 CPPBIN
733 ac_ct_CXX
734 CXXFLAGS
735 CXX
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 SET_MAKE
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='MAKE_RULES
791 MAKE_TEST_RULES
792 MAKE_DLL_RULES
793 MAKE_IMPLIB_RULES
794 MAKE_PROG_RULES'
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_openal
822 with_opencl
823 with_opengl
824 with_openssl
825 with_osmesa
826 with_oss
827 with_png
828 with_pthread
829 with_sane
830 with_tiff
831 with_v4l
832 with_xcomposite
833 with_xcursor
834 with_xinerama
835 with_xinput
836 with_xinput2
837 with_xml
838 with_xrandr
839 with_xrender
840 with_xshape
841 with_xshm
842 with_xslt
843 with_xxf86vm
844 with_zlib
845 with_wine_tools
846 with_wine64
847 enable_largefile
848 with_x
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CXX
859 CXXFLAGS
860 CCC
861 CPP
862 XMKMF'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917   # If the previous option needs an argument, assign it.
918   if test -n "$ac_prev"; then
919     eval $ac_prev=\$ac_option
920     ac_prev=
921     continue
922   fi
923
924   case $ac_option in
925   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926   *=)   ac_optarg= ;;
927   *)    ac_optarg=yes ;;
928   esac
929
930   # Accept the important Cygnus configure options, so we can diagnose typos.
931
932   case $ac_dashdash$ac_option in
933   --)
934     ac_dashdash=yes ;;
935
936   -bindir | --bindir | --bindi | --bind | --bin | --bi)
937     ac_prev=bindir ;;
938   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939     bindir=$ac_optarg ;;
940
941   -build | --build | --buil | --bui | --bu)
942     ac_prev=build_alias ;;
943   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944     build_alias=$ac_optarg ;;
945
946   -cache-file | --cache-file | --cache-fil | --cache-fi \
947   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948     ac_prev=cache_file ;;
949   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951     cache_file=$ac_optarg ;;
952
953   --config-cache | -C)
954     cache_file=config.cache ;;
955
956   -datadir | --datadir | --datadi | --datad)
957     ac_prev=datadir ;;
958   -datadir=* | --datadir=* | --datadi=* | --datad=*)
959     datadir=$ac_optarg ;;
960
961   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962   | --dataroo | --dataro | --datar)
963     ac_prev=datarootdir ;;
964   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966     datarootdir=$ac_optarg ;;
967
968   -disable-* | --disable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       as_fn_error $? "invalid feature name: $ac_useropt"
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=no ;;
983
984   -docdir | --docdir | --docdi | --doc | --do)
985     ac_prev=docdir ;;
986   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987     docdir=$ac_optarg ;;
988
989   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990     ac_prev=dvidir ;;
991   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992     dvidir=$ac_optarg ;;
993
994   -enable-* | --enable-*)
995     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998       as_fn_error $? "invalid feature name: $ac_useropt"
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012   | --exec | --exe | --ex)
1013     ac_prev=exec_prefix ;;
1014   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016   | --exec=* | --exe=* | --ex=*)
1017     exec_prefix=$ac_optarg ;;
1018
1019   -gas | --gas | --ga | --g)
1020     # Obsolete; use --with-gas.
1021     with_gas=yes ;;
1022
1023   -help | --help | --hel | --he | -h)
1024     ac_init_help=long ;;
1025   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026     ac_init_help=recursive ;;
1027   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028     ac_init_help=short ;;
1029
1030   -host | --host | --hos | --ho)
1031     ac_prev=host_alias ;;
1032   -host=* | --host=* | --hos=* | --ho=*)
1033     host_alias=$ac_optarg ;;
1034
1035   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036     ac_prev=htmldir ;;
1037   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038   | --ht=*)
1039     htmldir=$ac_optarg ;;
1040
1041   -includedir | --includedir | --includedi | --included | --include \
1042   | --includ | --inclu | --incl | --inc)
1043     ac_prev=includedir ;;
1044   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045   | --includ=* | --inclu=* | --incl=* | --inc=*)
1046     includedir=$ac_optarg ;;
1047
1048   -infodir | --infodir | --infodi | --infod | --info | --inf)
1049     ac_prev=infodir ;;
1050   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051     infodir=$ac_optarg ;;
1052
1053   -libdir | --libdir | --libdi | --libd)
1054     ac_prev=libdir ;;
1055   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056     libdir=$ac_optarg ;;
1057
1058   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059   | --libexe | --libex | --libe)
1060     ac_prev=libexecdir ;;
1061   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062   | --libexe=* | --libex=* | --libe=*)
1063     libexecdir=$ac_optarg ;;
1064
1065   -localedir | --localedir | --localedi | --localed | --locale)
1066     ac_prev=localedir ;;
1067   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068     localedir=$ac_optarg ;;
1069
1070   -localstatedir | --localstatedir | --localstatedi | --localstated \
1071   | --localstate | --localstat | --localsta | --localst | --locals)
1072     ac_prev=localstatedir ;;
1073   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075     localstatedir=$ac_optarg ;;
1076
1077   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078     ac_prev=mandir ;;
1079   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080     mandir=$ac_optarg ;;
1081
1082   -nfp | --nfp | --nf)
1083     # Obsolete; use --without-fp.
1084     with_fp=no ;;
1085
1086   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087   | --no-cr | --no-c | -n)
1088     no_create=yes ;;
1089
1090   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092     no_recursion=yes ;;
1093
1094   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096   | --oldin | --oldi | --old | --ol | --o)
1097     ac_prev=oldincludedir ;;
1098   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101     oldincludedir=$ac_optarg ;;
1102
1103   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104     ac_prev=prefix ;;
1105   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106     prefix=$ac_optarg ;;
1107
1108   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109   | --program-pre | --program-pr | --program-p)
1110     ac_prev=program_prefix ;;
1111   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113     program_prefix=$ac_optarg ;;
1114
1115   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116   | --program-suf | --program-su | --program-s)
1117     ac_prev=program_suffix ;;
1118   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120     program_suffix=$ac_optarg ;;
1121
1122   -program-transform-name | --program-transform-name \
1123   | --program-transform-nam | --program-transform-na \
1124   | --program-transform-n | --program-transform- \
1125   | --program-transform | --program-transfor \
1126   | --program-transfo | --program-transf \
1127   | --program-trans | --program-tran \
1128   | --progr-tra | --program-tr | --program-t)
1129     ac_prev=program_transform_name ;;
1130   -program-transform-name=* | --program-transform-name=* \
1131   | --program-transform-nam=* | --program-transform-na=* \
1132   | --program-transform-n=* | --program-transform-=* \
1133   | --program-transform=* | --program-transfor=* \
1134   | --program-transfo=* | --program-transf=* \
1135   | --program-trans=* | --program-tran=* \
1136   | --progr-tra=* | --program-tr=* | --program-t=*)
1137     program_transform_name=$ac_optarg ;;
1138
1139   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140     ac_prev=pdfdir ;;
1141   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142     pdfdir=$ac_optarg ;;
1143
1144   -psdir | --psdir | --psdi | --psd | --ps)
1145     ac_prev=psdir ;;
1146   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147     psdir=$ac_optarg ;;
1148
1149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150   | -silent | --silent | --silen | --sile | --sil)
1151     silent=yes ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error $? "invalid package name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       as_fn_error $? "invalid package name: $ac_useropt"
1219     ac_useropt_orig=$ac_useropt
1220     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221     case $ac_user_opts in
1222       *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226          ac_unrecognized_sep=', ';;
1227     esac
1228     eval with_$ac_useropt=no ;;
1229
1230   --x)
1231     # Obsolete; use --with-x.
1232     with_x=yes ;;
1233
1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235   | --x-incl | --x-inc | --x-in | --x-i)
1236     ac_prev=x_includes ;;
1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239     x_includes=$ac_optarg ;;
1240
1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243     ac_prev=x_libraries ;;
1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246     x_libraries=$ac_optarg ;;
1247
1248   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250     ;;
1251
1252   *=*)
1253     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254     # Reject names that are not valid shell variable names.
1255     case $ac_envvar in #(
1256       '' | [0-9]* | *[!_$as_cr_alnum]* )
1257       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258     esac
1259     eval $ac_envvar=\$ac_optarg
1260     export $ac_envvar ;;
1261
1262   *)
1263     # FIXME: should be removed in autoconf 3.0.
1264     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268     ;;
1269
1270   esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275   as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279   case $enable_option_checking in
1280     no) ;;
1281     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283   esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288                 datadir sysconfdir sharedstatedir localstatedir includedir \
1289                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290                 libdir localedir mandir
1291 do
1292   eval ac_val=\$$ac_var
1293   # Remove trailing slashes.
1294   case $ac_val in
1295     */ )
1296       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297       eval $ac_var=\$ac_val;;
1298   esac
1299   # Be sure to have absolute directory names.
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316   if test "x$build_alias" = x; then
1317     cross_compiling=maybe
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334   as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$as_myself" : 'X\(//\)[^/]' \| \
1344          X"$as_myself" : 'X\(//\)$' \| \
1345          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures Wine 1.5.17 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking ...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR            user executables [EPREFIX/bin]
1438   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR        program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR            object code libraries [EPREFIX/lib]
1444   --includedir=DIR        C header files [PREFIX/include]
1445   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR           info documentation [DATAROOTDIR/info]
1449   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR            man documentation [DATAROOTDIR/man]
1451   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1452   --htmldir=DIR           html documentation [DOCDIR]
1453   --dvidir=DIR            dvi documentation [DOCDIR]
1454   --pdfdir=DIR            pdf documentation [DOCDIR]
1455   --psdir=DIR             ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 X features:
1461   --x-includes=DIR    X include files are in DIR
1462   --x-libraries=DIR   X library files are in DIR
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471   case $ac_init_help in
1472      short | recursive ) echo "Configuration of Wine 1.5.17:";;
1473    esac
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-option-checking  ignore unrecognized --enable/--with options
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --disable-win16         do not include Win16 support
1481   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1482                           binaries)
1483   --disable-tests         do not build the regression tests
1484   --enable-maintainer-mode
1485                           enable maintainer-specific build rules
1486   --disable-largefile     omit support for large files
1487
1488 Optional Packages:
1489   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491   --without-alsa          do not use the Alsa sound support
1492   --without-capi          do not use CAPI (ISDN support)
1493   --without-cms           do not use CMS (color management support)
1494   --without-coreaudio     do not use the CoreAudio sound support
1495   --without-cups          do not use CUPS
1496   --without-curses        do not use (n)curses
1497   --without-dbus          do not use DBus (dynamic device support)
1498   --without-fontconfig    do not use fontconfig
1499   --without-freetype      do not use the FreeType library
1500   --without-gettext       do not use gettext
1501   --with-gettextpo        use the GetTextPO library to rebuild po files
1502   --without-gphoto        do not use gphoto (Digital Camera support)
1503   --without-glu           do not use the GLU library
1504   --without-gnutls        do not use GnuTLS (schannel support)
1505   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1506   --without-gstreamer     do not use GStreamer (codecs support)
1507   --without-hal           do not use HAL (dynamic device support)
1508   --without-jpeg          do not use JPEG
1509   --without-ldap          do not use LDAP
1510   --without-mpg123        do not use the mpg123 library
1511   --without-openal        do not use OpenAL
1512   --without-opencl        do not use OpenCL
1513   --without-opengl        do not use OpenGL
1514   --without-openssl       do not use OpenSSL
1515   --without-osmesa        do not use the OSMesa library
1516   --without-oss           do not use the OSS sound support
1517   --without-png           do not use PNG
1518   --without-pthread       do not use the pthread library
1519   --without-sane          do not use SANE (scanner support)
1520   --without-tiff          do not use TIFF
1521   --without-v4l           do not use v4l1 (v4l support)
1522   --without-xcomposite    do not use the Xcomposite extension
1523   --without-xcursor       do not use the Xcursor extension
1524   --without-xinerama      do not use Xinerama (multi-monitor support)
1525   --without-xinput        do not use the Xinput extension
1526   --without-xinput2       do not use the Xinput 2 extension
1527   --without-xml           do not use XML
1528   --without-xrandr        do not use Xrandr (resolution changes)
1529   --without-xrender       do not use the Xrender extension
1530   --without-xshape        do not use the Xshape extension
1531   --without-xshm          do not use XShm (shared memory extension)
1532   --without-xslt          do not use XSLT
1533   --without-xxf86vm       do not use XFree video mode extension
1534   --without-zlib          do not use Zlib (data compression)
1535   --with-wine-tools=DIR   use Wine tools from directory DIR
1536   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1537   --with-x                use the X Window System
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CXX         C++ compiler command
1548   CXXFLAGS    C++ compiler flags
1549   CPP         C preprocessor
1550   XMKMF       Path to xmkmf, Makefile generator for X Window System
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <wine-devel@winehq.org>.
1556 Wine home page: <http://www.winehq.org>.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1560
1561 if test "$ac_init_help" = "recursive"; then
1562   # If there are subdirs, report their specific --help.
1563   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564     test -d "$ac_dir" ||
1565       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566       continue
1567     ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573   # A ".." for each directory in $ac_dir_suffix.
1574   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575   case $ac_top_builddir_sub in
1576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578   esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586   .)  # We are building in place.
1587     ac_srcdir=.
1588     ac_top_srcdir=$ac_top_builddir_sub
1589     ac_abs_top_srcdir=$ac_pwd ;;
1590   [\\/]* | ?:[\\/]* )  # Absolute name.
1591     ac_srcdir=$srcdir$ac_dir_suffix;
1592     ac_top_srcdir=$srcdir
1593     ac_abs_top_srcdir=$srcdir ;;
1594   *) # Relative name.
1595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596     ac_top_srcdir=$ac_top_build_prefix$srcdir
1597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601     cd "$ac_dir" || { ac_status=$?; continue; }
1602     # Check for guested configure.
1603     if test -f "$ac_srcdir/configure.gnu"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606     elif test -f "$ac_srcdir/configure"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure" --help=recursive
1609     else
1610       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611     fi || ac_status=$?
1612     cd "$ac_pwd" || { ac_status=$?; break; }
1613   done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618   cat <<\_ACEOF
1619 Wine configure 1.5.17
1620 generated by GNU Autoconf 2.69
1621
1622 Copyright (C) 2012 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626   exit
1627 fi
1628
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1632
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   rm -f conftest.$ac_objext
1640   if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_compile") 2>conftest.err
1648   ac_status=$?
1649   if test -s conftest.err; then
1650     grep -v '^ *+' conftest.err >conftest.er1
1651     cat conftest.er1 >&5
1652     mv -f conftest.er1 conftest.err
1653   fi
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; } && {
1656          test -z "$ac_c_werror_flag" ||
1657          test ! -s conftest.err
1658        } && test -s conftest.$ac_objext; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664         ac_retval=1
1665 fi
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_compile
1670
1671 # ac_fn_cxx_try_compile LINENO
1672 # ----------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_cxx_try_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext
1678   if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_compile") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_cxx_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest.$ac_objext; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705   as_fn_set_status $ac_retval
1706
1707 } # ac_fn_cxx_try_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext conftest$ac_exeext
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest$ac_exeext && {
1735          test "$cross_compiling" = yes ||
1736          test -x conftest$ac_exeext
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747   # interfere with the next link command; also delete a directory that is
1748   # left behind by Apple's compiler.  We do this before executing the actions.
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } > conftest.i && {
1777          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785     ac_retval=1
1786 fi
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   if eval \${$3+:} false; then :
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810   # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   ac_header_compiler=yes
1820 else
1821   ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835   ac_header_preproc=yes
1836 else
1837   ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So?  What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845   yes:no: )
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850     ;;
1851   no:yes:* )
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ------------------------------------ ##
1863 ## Report this to wine-devel@winehq.org ##
1864 ## ------------------------------------ ##"
1865      ) | sed "s/^/$as_me: WARNING:     /" >&2
1866     ;;
1867 esac
1868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871   $as_echo_n "(cached) " >&6
1872 else
1873   eval "$3=\$ac_header_compiler"
1874 fi
1875 eval ac_res=\$$3
1876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 fi
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_mongrel
1882
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1887 ac_fn_c_try_run ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_link") 2>&5
1898   ac_status=$?
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901   { { case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_try") 2>&5
1908   ac_status=$?
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; }; }; then :
1911   ac_retval=0
1912 else
1913   $as_echo "$as_me: program exited with status $ac_status" >&5
1914        $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917        ac_retval=$ac_status
1918 fi
1919   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921   as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_run
1924
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935   $as_echo_n "(cached) " >&6
1936 else
1937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   eval "$3=yes"
1944 else
1945   eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_header_compile
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965   $as_echo_n "(cached) " >&6
1966 else
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974     which can conflict with char $2 (); below.
1975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976     <limits.h> exists even on freestanding compilers.  */
1977
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1983
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987    Use char because int might match the return type of a GCC
1988    builtin and then its argument prototype would still apply.  */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994     to always fail with ENOSYS.  Some functions are actually named
1995     something starting with __ and the normal name is an alias.  */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main ()
2002 {
2003 return $2 ();
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009   eval "$3=yes"
2010 else
2011   eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014     conftest$ac_exeext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_func
2022
2023 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2024 # ----------------------------------------------------
2025 # Tries to find if the field MEMBER exists in type AGGR, after including
2026 # INCLUDES, setting cache variable VAR accordingly.
2027 ac_fn_c_check_member ()
2028 {
2029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2031 $as_echo_n "checking for $2.$3... " >&6; }
2032 if eval \${$4+:} false; then :
2033   $as_echo_n "(cached) " >&6
2034 else
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $5
2038 int
2039 main ()
2040 {
2041 static $2 ac_aggr;
2042 if (ac_aggr.$3)
2043 return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   eval "$4=yes"
2050 else
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $5
2054 int
2055 main ()
2056 {
2057 static $2 ac_aggr;
2058 if (sizeof ac_aggr.$3)
2059 return 0;
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   eval "$4=yes"
2066 else
2067   eval "$4=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$4
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_member
2079
2080 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081 # -------------------------------------------
2082 # Tests whether TYPE exists after having included INCLUDES, setting cache
2083 # variable VAR accordingly.
2084 ac_fn_c_check_type ()
2085 {
2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090   $as_echo_n "(cached) " >&6
2091 else
2092   eval "$3=no"
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 if (sizeof ($2))
2100          return 0;
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main ()
2111 {
2112 if (sizeof (($2)))
2113             return 0;
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119
2120 else
2121   eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2136
2137 It was created by Wine $as_me 1.5.17, which was
2138 generated by GNU Autoconf 2.69.  Invocation command line was
2139
2140   $ $0 $@
2141
2142 _ACEOF
2143 exec 5>>config.log
2144 {
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2149
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2158
2159 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2160 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2163 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2164 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2165 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2166
2167 _ASUNAME
2168
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174     $as_echo "PATH: $as_dir"
2175   done
2176 IFS=$as_save_IFS
2177
2178 } >&5
2179
2180 cat >&5 <<_ACEOF
2181
2182
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2186
2187 _ACEOF
2188
2189
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2200 do
2201   for ac_arg
2202   do
2203     case $ac_arg in
2204     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206     | -silent | --silent | --silen | --sile | --sil)
2207       continue ;;
2208     *\'*)
2209       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210     esac
2211     case $ac_pass in
2212     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213     2)
2214       as_fn_append ac_configure_args1 " '$ac_arg'"
2215       if test $ac_must_keep_next = true; then
2216         ac_must_keep_next=false # Got value, back to normal.
2217       else
2218         case $ac_arg in
2219           *=* | --config-cache | -C | -disable-* | --disable-* \
2220           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222           | -with-* | --with-* | -without-* | --without-* | --x)
2223             case "$ac_configure_args0 " in
2224               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225             esac
2226             ;;
2227           -* ) ac_must_keep_next=true ;;
2228         esac
2229       fi
2230       as_fn_append ac_configure_args " '$ac_arg'"
2231       ;;
2232     esac
2233   done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2237
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log.  We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244   # Save into config.log some information that might help in debugging.
2245   {
2246     echo
2247
2248     $as_echo "## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##"
2251     echo
2252     # The following way of writing the cache mishandles newlines in values,
2253 (
2254   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255     eval ac_val=\$$ac_var
2256     case $ac_val in #(
2257     *${as_nl}*)
2258       case $ac_var in #(
2259       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2261       esac
2262       case $ac_var in #(
2263       _ | IFS | as_nl) ;; #(
2264       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265       *) { eval $ac_var=; unset $ac_var;} ;;
2266       esac ;;
2267     esac
2268   done
2269   (set) 2>&1 |
2270     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271     *${as_nl}ac_space=\ *)
2272       sed -n \
2273         "s/'\''/'\''\\\\'\'''\''/g;
2274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275       ;; #(
2276     *)
2277       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278       ;;
2279     esac |
2280     sort
2281 )
2282     echo
2283
2284     $as_echo "## ----------------- ##
2285 ## Output variables. ##
2286 ## ----------------- ##"
2287     echo
2288     for ac_var in $ac_subst_vars
2289     do
2290       eval ac_val=\$$ac_var
2291       case $ac_val in
2292       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293       esac
2294       $as_echo "$ac_var='\''$ac_val'\''"
2295     done | sort
2296     echo
2297
2298     if test -n "$ac_subst_files"; then
2299       $as_echo "## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##"
2302       echo
2303       for ac_var in $ac_subst_files
2304       do
2305         eval ac_val=\$$ac_var
2306         case $ac_val in
2307         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308         esac
2309         $as_echo "$ac_var='\''$ac_val'\''"
2310       done | sort
2311       echo
2312     fi
2313
2314     if test -s confdefs.h; then
2315       $as_echo "## ----------- ##
2316 ## confdefs.h. ##
2317 ## ----------- ##"
2318       echo
2319       cat confdefs.h
2320       echo
2321     fi
2322     test "$ac_signal" != 0 &&
2323       $as_echo "$as_me: caught signal $ac_signal"
2324     $as_echo "$as_me: exit $exit_status"
2325   } >&5
2326   rm -f core *.core core.conftest.* &&
2327     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2328     exit $exit_status
2329 ' 0
2330 for ac_signal in 1 2 13 15; do
2331   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2332 done
2333 ac_signal=0
2334
2335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2336 rm -f -r conftest* confdefs.h
2337
2338 $as_echo "/* confdefs.h */" > confdefs.h
2339
2340 # Predefined preprocessor variables.
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_NAME "$PACKAGE_NAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_STRING "$PACKAGE_STRING"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_URL "$PACKAGE_URL"
2364 _ACEOF
2365
2366
2367 # Let the site file select an alternate cache file if it wants to.
2368 # Prefer an explicitly selected file to automatically selected ones.
2369 ac_site_file1=NONE
2370 ac_site_file2=NONE
2371 if test -n "$CONFIG_SITE"; then
2372   # We do not want a PATH search for config.site.
2373   case $CONFIG_SITE in #((
2374     -*)  ac_site_file1=./$CONFIG_SITE;;
2375     */*) ac_site_file1=$CONFIG_SITE;;
2376     *)   ac_site_file1=./$CONFIG_SITE;;
2377   esac
2378 elif test "x$prefix" != xNONE; then
2379   ac_site_file1=$prefix/share/config.site
2380   ac_site_file2=$prefix/etc/config.site
2381 else
2382   ac_site_file1=$ac_default_prefix/share/config.site
2383   ac_site_file2=$ac_default_prefix/etc/config.site
2384 fi
2385 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2386 do
2387   test "x$ac_site_file" = xNONE && continue
2388   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2390 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2391     sed 's/^/| /' "$ac_site_file" >&5
2392     . "$ac_site_file" \
2393       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 as_fn_error $? "failed to load site script $ac_site_file
2396 See \`config.log' for more details" "$LINENO" 5; }
2397   fi
2398 done
2399
2400 if test -r "$cache_file"; then
2401   # Some versions of bash will fail to source /dev/null (special files
2402   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2403   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2406     case $cache_file in
2407       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408       *)                      . "./$cache_file";;
2409     esac
2410   fi
2411 else
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414   >$cache_file
2415 fi
2416
2417 # Check that the precious variables saved in the cache have kept the same
2418 # value.
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422   eval ac_new_set=\$ac_env_${ac_var}_set
2423   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424   eval ac_new_val=\$ac_env_${ac_var}_value
2425   case $ac_old_set,$ac_new_set in
2426     set,)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,set)
2431       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433       ac_cache_corrupted=: ;;
2434     ,);;
2435     *)
2436       if test "x$ac_old_val" != "x$ac_new_val"; then
2437         # differences in whitespace do not lead to failure.
2438         ac_old_val_w=`echo x $ac_old_val`
2439         ac_new_val_w=`echo x $ac_new_val`
2440         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443           ac_cache_corrupted=:
2444         else
2445           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447           eval $ac_var=\$ac_old_val
2448         fi
2449         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2450 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2451         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2453       fi;;
2454   esac
2455   # Pass precious variables to config.status.
2456   if test "$ac_new_set" = set; then
2457     case $ac_new_val in
2458     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459     *) ac_arg=$ac_var=$ac_new_val ;;
2460     esac
2461     case " $ac_configure_args " in
2462       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2463       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2464     esac
2465   fi
2466 done
2467 if $ac_cache_corrupted; then
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2473 fi
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2477
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483
2484
2485
2486 ac_config_headers="$ac_config_headers include/config.h"
2487
2488 ac_aux_dir=
2489 for ac_dir in tools "$srcdir"/tools; do
2490   if test -f "$ac_dir/install-sh"; then
2491     ac_aux_dir=$ac_dir
2492     ac_install_sh="$ac_aux_dir/install-sh -c"
2493     break
2494   elif test -f "$ac_dir/install.sh"; then
2495     ac_aux_dir=$ac_dir
2496     ac_install_sh="$ac_aux_dir/install.sh -c"
2497     break
2498   elif test -f "$ac_dir/shtool"; then
2499     ac_aux_dir=$ac_dir
2500     ac_install_sh="$ac_aux_dir/shtool install -c"
2501     break
2502   fi
2503 done
2504 if test -z "$ac_aux_dir"; then
2505   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2506 fi
2507
2508 # These three variables are undocumented and unsupported,
2509 # and are intended to be withdrawn in a future Autoconf release.
2510 # They can cause serious problems if a builder's source tree is in a directory
2511 # whose full name contains unusual characters.
2512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2514 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2515
2516
2517
2518
2519
2520 # Check whether --enable-win16 was given.
2521 if test "${enable_win16+set}" = set; then :
2522   enableval=$enable_win16;
2523 fi
2524
2525 # Check whether --enable-win64 was given.
2526 if test "${enable_win64+set}" = set; then :
2527   enableval=$enable_win64;
2528 fi
2529
2530 # Check whether --enable-tests was given.
2531 if test "${enable_tests+set}" = set; then :
2532   enableval=$enable_tests;
2533 fi
2534
2535 # Check whether --enable-maintainer-mode was given.
2536 if test "${enable_maintainer_mode+set}" = set; then :
2537   enableval=$enable_maintainer_mode;
2538 fi
2539
2540
2541
2542 # Check whether --with-alsa was given.
2543 if test "${with_alsa+set}" = set; then :
2544   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2545 fi
2546
2547
2548 # Check whether --with-capi was given.
2549 if test "${with_capi+set}" = set; then :
2550   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2551 fi
2552
2553
2554 # Check whether --with-cms was given.
2555 if test "${with_cms+set}" = set; then :
2556   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2557 fi
2558
2559
2560 # Check whether --with-coreaudio was given.
2561 if test "${with_coreaudio+set}" = set; then :
2562   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2563 fi
2564
2565
2566 # Check whether --with-cups was given.
2567 if test "${with_cups+set}" = set; then :
2568   withval=$with_cups;
2569 fi
2570
2571
2572 # Check whether --with-curses was given.
2573 if test "${with_curses+set}" = set; then :
2574   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2575 fi
2576
2577
2578 # Check whether --with-dbus was given.
2579 if test "${with_dbus+set}" = set; then :
2580   withval=$with_dbus;
2581 fi
2582
2583
2584 # Check whether --with-fontconfig was given.
2585 if test "${with_fontconfig+set}" = set; then :
2586   withval=$with_fontconfig;
2587 fi
2588
2589
2590 # Check whether --with-freetype was given.
2591 if test "${with_freetype+set}" = set; then :
2592   withval=$with_freetype;
2593 fi
2594
2595
2596 # Check whether --with-gettext was given.
2597 if test "${with_gettext+set}" = set; then :
2598   withval=$with_gettext;
2599 fi
2600
2601
2602 # Check whether --with-gettextpo was given.
2603 if test "${with_gettextpo+set}" = set; then :
2604   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2605 fi
2606
2607
2608 # Check whether --with-gphoto was given.
2609 if test "${with_gphoto+set}" = set; then :
2610   withval=$with_gphoto;
2611 fi
2612
2613
2614 # Check whether --with-glu was given.
2615 if test "${with_glu+set}" = set; then :
2616   withval=$with_glu;
2617 fi
2618
2619
2620 # Check whether --with-gnutls was given.
2621 if test "${with_gnutls+set}" = set; then :
2622   withval=$with_gnutls;
2623 fi
2624
2625
2626 # Check whether --with-gsm was given.
2627 if test "${with_gsm+set}" = set; then :
2628   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2629 fi
2630
2631
2632 # Check whether --with-gstreamer was given.
2633 if test "${with_gstreamer+set}" = set; then :
2634   withval=$with_gstreamer;
2635 fi
2636
2637
2638 # Check whether --with-hal was given.
2639 if test "${with_hal+set}" = set; then :
2640   withval=$with_hal;
2641 fi
2642
2643
2644 # Check whether --with-jpeg was given.
2645 if test "${with_jpeg+set}" = set; then :
2646   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2647 fi
2648
2649
2650 # Check whether --with-ldap was given.
2651 if test "${with_ldap+set}" = set; then :
2652   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2653 fi
2654
2655
2656 # Check whether --with-mpg123 was given.
2657 if test "${with_mpg123+set}" = set; then :
2658   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2659 fi
2660
2661
2662 # Check whether --with-openal was given.
2663 if test "${with_openal+set}" = set; then :
2664   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2665 fi
2666
2667
2668 # Check whether --with-opencl was given.
2669 if test "${with_opencl+set}" = set; then :
2670   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2671 fi
2672
2673
2674 # Check whether --with-opengl was given.
2675 if test "${with_opengl+set}" = set; then :
2676   withval=$with_opengl;
2677 fi
2678
2679
2680 # Check whether --with-openssl was given.
2681 if test "${with_openssl+set}" = set; then :
2682   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2683 fi
2684
2685
2686 # Check whether --with-osmesa was given.
2687 if test "${with_osmesa+set}" = set; then :
2688   withval=$with_osmesa;
2689 fi
2690
2691
2692 # Check whether --with-oss was given.
2693 if test "${with_oss+set}" = set; then :
2694   withval=$with_oss;
2695 fi
2696
2697
2698 # Check whether --with-png was given.
2699 if test "${with_png+set}" = set; then :
2700   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2701 fi
2702
2703
2704 # Check whether --with-pthread was given.
2705 if test "${with_pthread+set}" = set; then :
2706   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2707 fi
2708
2709
2710 # Check whether --with-sane was given.
2711 if test "${with_sane+set}" = set; then :
2712   withval=$with_sane;
2713 fi
2714
2715
2716 # Check whether --with-tiff was given.
2717 if test "${with_tiff+set}" = set; then :
2718   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2719 fi
2720
2721
2722 # Check whether --with-v4l was given.
2723 if test "${with_v4l+set}" = set; then :
2724   withval=$with_v4l;
2725 fi
2726
2727
2728 # Check whether --with-xcomposite was given.
2729 if test "${with_xcomposite+set}" = set; then :
2730   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2731 fi
2732
2733
2734 # Check whether --with-xcursor was given.
2735 if test "${with_xcursor+set}" = set; then :
2736   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2737 fi
2738
2739
2740 # Check whether --with-xinerama was given.
2741 if test "${with_xinerama+set}" = set; then :
2742   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2743 fi
2744
2745
2746 # Check whether --with-xinput was given.
2747 if test "${with_xinput+set}" = set; then :
2748   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2749 fi
2750
2751
2752 # Check whether --with-xinput2 was given.
2753 if test "${with_xinput2+set}" = set; then :
2754   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2755 fi
2756
2757
2758 # Check whether --with-xml was given.
2759 if test "${with_xml+set}" = set; then :
2760   withval=$with_xml;
2761 fi
2762
2763
2764 # Check whether --with-xrandr was given.
2765 if test "${with_xrandr+set}" = set; then :
2766   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2767 fi
2768
2769
2770 # Check whether --with-xrender was given.
2771 if test "${with_xrender+set}" = set; then :
2772   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2773 fi
2774
2775
2776 # Check whether --with-xshape was given.
2777 if test "${with_xshape+set}" = set; then :
2778   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2779 fi
2780
2781
2782 # Check whether --with-xshm was given.
2783 if test "${with_xshm+set}" = set; then :
2784   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2785 fi
2786
2787
2788 # Check whether --with-xslt was given.
2789 if test "${with_xslt+set}" = set; then :
2790   withval=$with_xslt;
2791 fi
2792
2793
2794 # Check whether --with-xxf86vm was given.
2795 if test "${with_xxf86vm+set}" = set; then :
2796   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
2797 fi
2798
2799
2800 # Check whether --with-zlib was given.
2801 if test "${with_zlib+set}" = set; then :
2802   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2803 fi
2804
2805
2806
2807 # Check whether --with-wine-tools was given.
2808 if test "${with_wine_tools+set}" = set; then :
2809   withval=$with_wine_tools;
2810 fi
2811
2812
2813 # Check whether --with-wine64 was given.
2814 if test "${with_wine64+set}" = set; then :
2815   withval=$with_wine64;
2816 fi
2817
2818
2819 # Make sure we can run config.sub.
2820 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2821   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2824 $as_echo_n "checking build system type... " >&6; }
2825 if ${ac_cv_build+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   ac_build_alias=$build_alias
2829 test "x$ac_build_alias" = x &&
2830   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2831 test "x$ac_build_alias" = x &&
2832   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2833 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2834   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2835
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2838 $as_echo "$ac_cv_build" >&6; }
2839 case $ac_cv_build in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2842 esac
2843 build=$ac_cv_build
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_build
2846 shift
2847 build_cpu=$1
2848 build_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 build_os=$*
2853 IFS=$ac_save_IFS
2854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2855
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2858 $as_echo_n "checking host system type... " >&6; }
2859 if ${ac_cv_host+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test "x$host_alias" = x; then
2863   ac_cv_host=$ac_cv_build
2864 else
2865   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2866     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 fi
2868
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2871 $as_echo "$ac_cv_host" >&6; }
2872 case $ac_cv_host in
2873 *-*-*) ;;
2874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2875 esac
2876 host=$ac_cv_host
2877 ac_save_IFS=$IFS; IFS='-'
2878 set x $ac_cv_host
2879 shift
2880 host_cpu=$1
2881 host_vendor=$2
2882 shift; shift
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2885 host_os=$*
2886 IFS=$ac_save_IFS
2887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2888
2889
2890
2891 case "$srcdir" in
2892  .) ;;
2893  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2894       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2895 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2896     fi ;;
2897 esac
2898
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902 set x ${MAKE-make}
2903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   cat >conftest.make <<\_ACEOF
2908 SHELL = /bin/sh
2909 all:
2910         @echo '@@@%%%=$(MAKE)=@@@%%%'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914   *@@@%%%=?*=@@@%%%*)
2915     eval ac_cv_prog_make_${ac_make}_set=yes;;
2916   *)
2917     eval ac_cv_prog_make_${ac_make}_set=no;;
2918 esac
2919 rm -f conftest.make
2920 fi
2921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2924   SET_MAKE=
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928   SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952     for ac_exec_ext in '' $ac_executable_extensions; do
2953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$ac_cv_prog_CC"; then
2976   ac_ct_CC=$CC
2977   # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   if test -n "$ac_ct_CC"; then
2985   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990   IFS=$as_save_IFS
2991   test -z "$as_dir" && as_dir=.
2992     for ac_exec_ext in '' $ac_executable_extensions; do
2993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994     ac_cv_prog_ac_ct_CC="gcc"
2995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999   done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3008 else
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013   if test "x$ac_ct_CC" = x; then
3014     CC=""
3015   else
3016     case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022     CC=$ac_ct_CC
3023   fi
3024 else
3025   CC="$ac_cv_prog_CC"
3026 fi
3027
3028 if test -z "$CC"; then
3029           if test -n "$ac_tool_prefix"; then
3030     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035   $as_echo_n "(cached) " >&6
3036 else
3037   if test -n "$CC"; then
3038   ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045     for ac_exec_ext in '' $ac_executable_extensions; do
3046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047     ac_cv_prog_CC="${ac_tool_prefix}cc"
3048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052   done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067   fi
3068 fi
3069 if test -z "$CC"; then
3070   # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$CC"; then
3078   ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080   ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089        ac_prog_rejected=yes
3090        continue
3091      fi
3092     ac_cv_prog_CC="cc"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 if test $ac_prog_rejected = yes; then
3101   # We found a bogon in the path, so make sure we never use it.
3102   set dummy $ac_cv_prog_CC
3103   shift
3104   if test $# != 0; then
3105     # We chose a different compiler from the bogus one.
3106     # However, it has the same basename, so the bogon will be chosen
3107     # first if we set CC to just the basename; use the full file name.
3108     shift
3109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110   fi
3111 fi
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$CC"; then
3126   if test -n "$ac_tool_prefix"; then
3127   for ac_prog in cl.exe
3128   do
3129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151   done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166     test -n "$CC" && break
3167   done
3168 fi
3169 if test -z "$CC"; then
3170   ac_ct_CC=$CC
3171   for ac_prog in cl.exe
3172 do
3173   # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if test -n "$ac_ct_CC"; then
3181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188     for ac_exec_ext in '' $ac_executable_extensions; do
3189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_CC="$ac_prog"
3191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195   done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210   test -n "$ac_ct_CC" && break
3211 done
3212
3213   if test "x$ac_ct_CC" = x; then
3214     CC=""
3215   else
3216     case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     CC=$ac_ct_CC
3223   fi
3224 fi
3225
3226 fi
3227
3228
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details" "$LINENO" 5; }
3233
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236 set X $ac_compile
3237 ac_compiler=$2
3238 for ac_option in --version -v -V -qversion; do
3239   { { ac_try="$ac_compiler $ac_option >&5"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247   ac_status=$?
3248   if test -s conftest.err; then
3249     sed '10a\
3250 ... rest of stderr output deleted ...
3251          10q' conftest.err >conftest.er1
3252     cat conftest.er1 >&5
3253   fi
3254   rm -f conftest.er1 conftest.err
3255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256   test $ac_status = 0; }
3257 done
3258
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h.  */
3261
3262 int
3263 main ()
3264 {
3265
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3274 # of exeext.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276 $as_echo_n "checking whether the C compiler works... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281
3282 ac_rmfiles=
3283 for ac_file in $ac_files
3284 do
3285   case $ac_file in
3286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288   esac
3289 done
3290 rm -f $ac_rmfiles
3291
3292 if { { ac_try="$ac_link_default"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299   (eval "$ac_link_default") 2>&5
3300   ac_status=$?
3301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302   test $ac_status = 0; }; then :
3303   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3307 # Autoconf.
3308 for ac_file in $ac_files ''
3309 do
3310   test -f "$ac_file" || continue
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3313         ;;
3314     [ab].out )
3315         # We found the default executable, but exeext='' is most
3316         # certainly right.
3317         break;;
3318     *.* )
3319         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320         then :; else
3321            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322         fi
3323         # We set ac_cv_exeext here because the later test for it is not
3324         # safe: cross compilers may not add the suffix if given an `-o'
3325         # argument, so we may need to know it at that point already.
3326         # Even if this section looks crufty: it has the advantage of
3327         # actually working.
3328         break;;
3329     * )
3330         break;;
3331   esac
3332 done
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3334
3335 else
3336   ac_file=''
3337 fi
3338 if test -z "$ac_file"; then :
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error 77 "C compiler cannot create executables
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 else
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353 $as_echo_n "checking for C compiler default output file name... " >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 ac_exeext=$ac_cv_exeext
3357
3358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361 $as_echo_n "checking for suffix of executables... " >&6; }
3362 if { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369   (eval "$ac_link") 2>&5
3370   ac_status=$?
3371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372   test $ac_status = 0; }; then :
3373   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3375 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 # `rm'.
3377 for ac_file in conftest.exe conftest conftest.*; do
3378   test -f "$ac_file" || continue
3379   case $ac_file in
3380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382           break;;
3383     * ) break;;
3384   esac
3385 done
3386 else
3387   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details" "$LINENO" 5; }
3391 fi
3392 rm -f conftest conftest$ac_cv_exeext
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394 $as_echo "$ac_cv_exeext" >&6; }
3395
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401 #include <stdio.h>
3402 int
3403 main ()
3404 {
3405 FILE *f = fopen ("conftest.out", "w");
3406  return ferror (f) || fclose (f) != 0;
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 ac_clean_files="$ac_clean_files conftest.out"
3413 # Check that the compiler produces executables we can run.  If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 if test "$cross_compiling" != yes; then
3418   { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425   (eval "$ac_link") 2>&5
3426   ac_status=$?
3427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428   test $ac_status = 0; }
3429   if { ac_try='./conftest$ac_cv_exeext'
3430   { { case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_try") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; }; then
3440     cross_compiling=no
3441   else
3442     if test "$cross_compiling" = maybe; then
3443         cross_compiling=yes
3444     else
3445         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot run C compiled programs.
3448 If you meant to cross compile, use \`--host'.
3449 See \`config.log' for more details" "$LINENO" 5; }
3450     fi
3451   fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454 $as_echo "$cross_compiling" >&6; }
3455
3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if ${ac_cv_objext+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482   (eval "$ac_compile") 2>&5
3483   ac_status=$?
3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485   test $ac_status = 0; }; then :
3486   for ac_file in conftest.o conftest.obj conftest.*; do
3487   test -f "$ac_file" || continue;
3488   case $ac_file in
3489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491        break;;
3492   esac
3493 done
3494 else
3495   $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 fi
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if ${ac_cv_c_compiler_gnu+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main ()
3519 {
3520 #ifndef __GNUC__
3521        choke me
3522 #endif
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   ac_compiler_gnu=yes
3530 else
3531   ac_compiler_gnu=no
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540   GCC=yes
3541 else
3542   GCC=
3543 fi
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if ${ac_cv_prog_cc_g+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   ac_save_c_werror_flag=$ac_c_werror_flag
3552    ac_c_werror_flag=yes
3553    ac_cv_prog_cc_g=no
3554    CFLAGS="-g"
3555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567   ac_cv_prog_cc_g=yes
3568 else
3569   CFLAGS=""
3570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582
3583 else
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585          CFLAGS="-g"
3586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598   ac_cv_prog_cc_g=yes
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605    ac_c_werror_flag=$ac_save_c_werror_flag
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610   CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612   if test "$GCC" = yes; then
3613     CFLAGS="-g -O2"
3614   else
3615     CFLAGS="-g"
3616   fi
3617 else
3618   if test "$GCC" = yes; then
3619     CFLAGS="-O2"
3620   else
3621     CFLAGS=
3622   fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if ${ac_cv_prog_cc_c89+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 struct stat;
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640      char **p;
3641      int i;
3642 {
3643   return p[i];
3644 }
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3646 {
3647   char *s;
3648   va_list v;
3649   va_start (v,p);
3650   s = g (p, va_arg (v,int));
3651   va_end (v);
3652   return s;
3653 }
3654
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3656    function prototypes and stuff, but not '\xHH' hex character constants.
3657    These don't provoke an error unfortunately, instead are silently treated
3658    as 'x'.  The following induces an error, until -std is added to get
3659    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3660    array size at least.  It's necessary to write '\x00'==0 to get something
3661    that's true only with -std.  */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665    inside strings and character constants.  */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3675 int
3676 main ()
3677 {
3678 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 do
3686   CC="$ac_save_CC $ac_arg"
3687   if ac_fn_c_try_compile "$LINENO"; then :
3688   ac_cv_prog_cc_c89=$ac_arg
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext
3691   test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3695
3696 fi
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3699   x)
3700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3702   xno)
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3705   *)
3706     CC="$CC $ac_cv_prog_cc_c89"
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3711
3712 fi
3713
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 ac_ext=cpp
3721 ac_cpp='$CXXCPP $CPPFLAGS'
3722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725 if test -z "$CXX"; then
3726   if test -n "$CCC"; then
3727     CXX=$CCC
3728   else
3729     if test -n "$ac_tool_prefix"; then
3730   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731   do
3732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_CXX+:} false; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   if test -n "$CXX"; then
3740   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754   done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 CXX=$ac_cv_prog_CXX
3760 if test -n "$CXX"; then
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3762 $as_echo "$CXX" >&6; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769     test -n "$CXX" && break
3770   done
3771 fi
3772 if test -z "$CXX"; then
3773   ac_ct_CXX=$CXX
3774   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3775 do
3776   # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   if test -n "$ac_ct_CXX"; then
3784   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789   IFS=$as_save_IFS
3790   test -z "$as_dir" && as_dir=.
3791     for ac_exec_ext in '' $ac_executable_extensions; do
3792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793     ac_cv_prog_ac_ct_CXX="$ac_prog"
3794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795     break 2
3796   fi
3797 done
3798   done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3804 if test -n "$ac_ct_CXX"; then
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3806 $as_echo "$ac_ct_CXX" >&6; }
3807 else
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812
3813   test -n "$ac_ct_CXX" && break
3814 done
3815
3816   if test "x$ac_ct_CXX" = x; then
3817     CXX="g++"
3818   else
3819     case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825     CXX=$ac_ct_CXX
3826   fi
3827 fi
3828
3829   fi
3830 fi
3831 # Provide some information about the compiler.
3832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3833 set X $ac_compile
3834 ac_compiler=$2
3835 for ac_option in --version -v -V -qversion; do
3836   { { ac_try="$ac_compiler $ac_option >&5"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3844   ac_status=$?
3845   if test -s conftest.err; then
3846     sed '10a\
3847 ... rest of stderr output deleted ...
3848          10q' conftest.err >conftest.er1
3849     cat conftest.er1 >&5
3850   fi
3851   rm -f conftest.er1 conftest.err
3852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853   test $ac_status = 0; }
3854 done
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3857 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3858 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867 #ifndef __GNUC__
3868        choke me
3869 #endif
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_cxx_try_compile "$LINENO"; then :
3876   ac_compiler_gnu=yes
3877 else
3878   ac_compiler_gnu=no
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3885 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3886 if test $ac_compiler_gnu = yes; then
3887   GXX=yes
3888 else
3889   GXX=
3890 fi
3891 ac_test_CXXFLAGS=${CXXFLAGS+set}
3892 ac_save_CXXFLAGS=$CXXFLAGS
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3894 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3895 if ${ac_cv_prog_cxx_g+:} false; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3899    ac_cxx_werror_flag=yes
3900    ac_cv_prog_cxx_g=no
3901    CXXFLAGS="-g"
3902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_cxx_try_compile "$LINENO"; then :
3914   ac_cv_prog_cxx_g=yes
3915 else
3916   CXXFLAGS=""
3917       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_cxx_try_compile "$LINENO"; then :
3929
3930 else
3931   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3932          CXXFLAGS="-g"
3933          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_cxx_try_compile "$LINENO"; then :
3945   ac_cv_prog_cxx_g=yes
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3955 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3956 if test "$ac_test_CXXFLAGS" = set; then
3957   CXXFLAGS=$ac_save_CXXFLAGS
3958 elif test $ac_cv_prog_cxx_g = yes; then
3959   if test "$GXX" = yes; then
3960     CXXFLAGS="-g -O2"
3961   else
3962     CXXFLAGS="-g"
3963   fi
3964 else
3965   if test "$GXX" = yes; then
3966     CXXFLAGS="-O2"
3967   else
3968     CXXFLAGS=
3969   fi
3970 fi
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977 if test -n "$ac_tool_prefix"; then
3978   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CPPBIN+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   if test -n "$CPPBIN"; then
3986   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993     for ac_exec_ext in '' $ac_executable_extensions; do
3994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000   done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CPPBIN=$ac_cv_prog_CPPBIN
4006 if test -n "$CPPBIN"; then
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4008 $as_echo "$CPPBIN" >&6; }
4009 else
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_CPPBIN"; then
4017   ac_ct_CPPBIN=$CPPBIN
4018   # Extract the first word of "cpp", so it can be a program name with args.
4019 set dummy cpp; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   if test -n "$ac_ct_CPPBIN"; then
4026   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033     for ac_exec_ext in '' $ac_executable_extensions; do
4034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_prog_ac_ct_CPPBIN="cpp"
4036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040   done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4046 if test -n "$ac_ct_CPPBIN"; then
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4048 $as_echo "$ac_ct_CPPBIN" >&6; }
4049 else
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054   if test "x$ac_ct_CPPBIN" = x; then
4055     CPPBIN="cpp"
4056   else
4057     case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063     CPPBIN=$ac_ct_CPPBIN
4064   fi
4065 else
4066   CPPBIN="$ac_cv_prog_CPPBIN"
4067 fi
4068
4069
4070 cat >>confdefs.h <<_ACEOF
4071 #define EXEEXT "$ac_exeext"
4072 _ACEOF
4073
4074
4075 case $host in
4076   *-darwin*)
4077     if test "x$enable_win64" = "xyes"
4078     then
4079       CC="$CC -m64"
4080       CXX="$CXX -m64"
4081       host_cpu="x86_64"
4082       notice_platform="64-bit "
4083       TARGETFLAGS="-m64"
4084
4085     else
4086       CC="$CC -m32"
4087       CXX="$CXX -m32"
4088       host_cpu="i386"
4089       notice_platform="32-bit "
4090       TARGETFLAGS="-m32"
4091
4092       enable_win16=${enable_win16:-yes}
4093     fi
4094     with_fontconfig=${with_fontconfig:-no}
4095     ;;
4096   x86_64*)
4097     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4098     then
4099       CC="$CC -m32"
4100       CXX="$CXX -m32"
4101       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4102 $as_echo_n "checking whether $CC works... " >&6; }
4103
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_link "$LINENO"; then :
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4117 $as_echo "yes" >&6; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext \
4124     conftest$ac_exeext conftest.$ac_ext
4125       host_cpu="i386"
4126       notice_platform="32-bit "
4127       TARGETFLAGS="-m32"
4128
4129       enable_win16=${enable_win16:-yes}
4130     else
4131       if test "x${GCC}" = "xyes"
4132       then
4133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4134 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h.  */
4137 #include <stdarg.h>
4138 int
4139 main ()
4140 {
4141 void func(__builtin_ms_va_list *args);
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4148 $as_echo "yes" >&6; }
4149 else
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155       fi
4156       TARGETFLAGS="-m64"
4157
4158     fi
4159     ;;
4160   arm*)
4161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4162 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 int ac_test(int i) { return i; }
4166 int
4167 main ()
4168 {
4169 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_link "$LINENO"; then :
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4176 $as_echo "yes" >&6; }
4177 else
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180                        as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext \
4183     conftest$ac_exeext conftest.$ac_ext
4184     CFLAGS="$CFLAGS -marm"
4185     ;;
4186   *-mingw32*|*-cygwin*)
4187     enable_win16=${enable_win16:-no}
4188     CFLAGS="$CFLAGS -D_WIN32"
4189     ;;
4190   i[3456789]86*)
4191     enable_win16=${enable_win16:-yes}
4192     ;;
4193 esac
4194
4195 enable_win16=${enable_win16:-no}
4196 enable_win64=${enable_win64:-no}
4197
4198 enable_winetest=${enable_winetest:-$enable_tests}
4199
4200 if test -n "$with_wine64"
4201 then
4202     if test "x$enable_win64" = "xyes"
4203     then
4204         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4205 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4206     fi
4207     WOW64_DISABLE=\#
4208
4209     enable_fonts=${enable_fonts:-no}
4210     enable_server=${enable_server:-no}
4211     enable_tools=${enable_tools:-no}
4212 elif test "x$enable_win64" = "xyes"
4213 then
4214     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4215 fi
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4218 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4219 if ${wine_cv_toolsdir+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   wine_cv_toolsdir="$with_wine_tools"
4223    if test -z "$with_wine_tools"; then
4224      if test "$cross_compiling" = "yes"; then
4225        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4226      elif test -n "$with_wine64"; then
4227        wine_cv_toolsdir="$with_wine64"
4228      fi
4229    fi
4230    if test -z "$wine_cv_toolsdir"; then
4231      wine_cv_toolsdir="\$(top_builddir)"
4232    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4233      case "$wine_cv_toolsdir" in
4234        /*) ;;
4235        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4236      esac
4237    else
4238      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4239    fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4242 $as_echo "$wine_cv_toolsdir" >&6; }
4243 TOOLSDIR=$wine_cv_toolsdir
4244
4245 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4246 then
4247     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4248
4249 fi
4250
4251 for ac_prog in flex
4252 do
4253   # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_FLEX+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if test -n "$FLEX"; then
4261   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268     for ac_exec_ext in '' $ac_executable_extensions; do
4269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270     ac_cv_prog_FLEX="$ac_prog"
4271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272     break 2
4273   fi
4274 done
4275   done
4276 IFS=$as_save_IFS
4277
4278 fi
4279 fi
4280 FLEX=$ac_cv_prog_FLEX
4281 if test -n "$FLEX"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4283 $as_echo "$FLEX" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290   test -n "$FLEX" && break
4291 done
4292 test -n "$FLEX" || FLEX="none"
4293
4294 if test "$FLEX" = "none"
4295 then
4296   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4299 $as_echo_n "checking whether flex is recent enough... " >&6; }
4300 cat >conftest.l <<EOF
4301 %top{
4302 #include "prediluvian.h"
4303 }
4304 %%
4305 EOF
4306 if $FLEX -t conftest.l >/dev/null 2>&5
4307 then
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4309 $as_echo "yes" >&6; }
4310 else
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4314 fi
4315
4316 for ac_prog in bison
4317 do
4318   # Extract the first word of "$ac_prog", so it can be a program name with args.
4319 set dummy $ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_BISON+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -n "$BISON"; then
4326   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335     ac_cv_prog_BISON="$ac_prog"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 BISON=$ac_cv_prog_BISON
4346 if test -n "$BISON"; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4348 $as_echo "$BISON" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355   test -n "$BISON" && break
4356 done
4357 test -n "$BISON" || BISON="none"
4358
4359 if test "$BISON" = "none"
4360 then
4361   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4362 fi
4363
4364 if test -n "$ac_tool_prefix"; then
4365   for ac_prog in ar gar
4366   do
4367     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_AR+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   if test -n "$AR"; then
4375   ac_cv_prog_AR="$AR" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382     for ac_exec_ext in '' $ac_executable_extensions; do
4383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389   done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 AR=$ac_cv_prog_AR
4395 if test -n "$AR"; then
4396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4397 $as_echo "$AR" >&6; }
4398 else
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402
4403
4404     test -n "$AR" && break
4405   done
4406 fi
4407 if test -z "$AR"; then
4408   ac_ct_AR=$AR
4409   for ac_prog in ar gar
4410 do
4411   # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if test -n "$ac_ct_AR"; then
4419   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_prog_ac_ct_AR="$ac_prog"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4439 if test -n "$ac_ct_AR"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4441 $as_echo "$ac_ct_AR" >&6; }
4442 else
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448   test -n "$ac_ct_AR" && break
4449 done
4450
4451   if test "x$ac_ct_AR" = x; then
4452     AR="ar"
4453   else
4454     case $cross_compiling:$ac_tool_warned in
4455 yes:)
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458 ac_tool_warned=yes ;;
4459 esac
4460     AR=$ac_ct_AR
4461   fi
4462 fi
4463
4464 ARFLAGS=rc
4465
4466 if test -n "$ac_tool_prefix"; then
4467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_RANLIB+:} false; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   if test -n "$RANLIB"; then
4475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489   done
4490 IFS=$as_save_IFS
4491
4492 fi
4493 fi
4494 RANLIB=$ac_cv_prog_RANLIB
4495 if test -n "$RANLIB"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4497 $as_echo "$RANLIB" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504 fi
4505 if test -z "$ac_cv_prog_RANLIB"; then
4506   ac_ct_RANLIB=$RANLIB
4507   # Extract the first word of "ranlib", so it can be a program name with args.
4508 set dummy ranlib; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -n "$ac_ct_RANLIB"; then
4515   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_prog_ac_ct_RANLIB="ranlib"
4525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529   done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4535 if test -n "$ac_ct_RANLIB"; then
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4537 $as_echo "$ac_ct_RANLIB" >&6; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543   if test "x$ac_ct_RANLIB" = x; then
4544     RANLIB=":"
4545   else
4546     case $cross_compiling:$ac_tool_warned in
4547 yes:)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4551 esac
4552     RANLIB=$ac_ct_RANLIB
4553   fi
4554 else
4555   RANLIB="$ac_cv_prog_RANLIB"
4556 fi
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4559 $as_echo_n "checking whether ln -s works... " >&6; }
4560 LN_S=$as_ln_s
4561 if test "$LN_S" = "ln -s"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563 $as_echo "yes" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4566 $as_echo "no, using $LN_S" >&6; }
4567 fi
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4570 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4571 if ${ac_cv_path_GREP+:} false; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -z "$GREP"; then
4575   ac_path_GREP_found=false
4576   # Loop through the user's path and test for each of PROGNAME-LIST
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_prog in grep ggrep; do
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4585       as_fn_executable_p "$ac_path_GREP" || continue
4586 # Check for GNU ac_path_GREP and select it if it is found.
4587   # Check for GNU $ac_path_GREP
4588 case `"$ac_path_GREP" --version 2>&1` in
4589 *GNU*)
4590   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4591 *)
4592   ac_count=0
4593   $as_echo_n 0123456789 >"conftest.in"
4594   while :
4595   do
4596     cat "conftest.in" "conftest.in" >"conftest.tmp"
4597     mv "conftest.tmp" "conftest.in"
4598     cp "conftest.in" "conftest.nl"
4599     $as_echo 'GREP' >> "conftest.nl"
4600     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602     as_fn_arith $ac_count + 1 && ac_count=$as_val
4603     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4604       # Best one so far, save it but keep looking for a better one
4605       ac_cv_path_GREP="$ac_path_GREP"
4606       ac_path_GREP_max=$ac_count
4607     fi
4608     # 10*(2^10) chars as input seems more than enough
4609     test $ac_count -gt 10 && break
4610   done
4611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4613
4614       $ac_path_GREP_found && break 3
4615     done
4616   done
4617   done
4618 IFS=$as_save_IFS
4619   if test -z "$ac_cv_path_GREP"; then
4620     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621   fi
4622 else
4623   ac_cv_path_GREP=$GREP
4624 fi
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4628 $as_echo "$ac_cv_path_GREP" >&6; }
4629  GREP="$ac_cv_path_GREP"
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4633 $as_echo_n "checking for egrep... " >&6; }
4634 if ${ac_cv_path_EGREP+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4638    then ac_cv_path_EGREP="$GREP -E"
4639    else
4640      if test -z "$EGREP"; then
4641   ac_path_EGREP_found=false
4642   # Loop through the user's path and test for each of PROGNAME-LIST
4643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648     for ac_prog in egrep; do
4649     for ac_exec_ext in '' $ac_executable_extensions; do
4650       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4651       as_fn_executable_p "$ac_path_EGREP" || continue
4652 # Check for GNU ac_path_EGREP and select it if it is found.
4653   # Check for GNU $ac_path_EGREP
4654 case `"$ac_path_EGREP" --version 2>&1` in
4655 *GNU*)
4656   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4657 *)
4658   ac_count=0
4659   $as_echo_n 0123456789 >"conftest.in"
4660   while :
4661   do
4662     cat "conftest.in" "conftest.in" >"conftest.tmp"
4663     mv "conftest.tmp" "conftest.in"
4664     cp "conftest.in" "conftest.nl"
4665     $as_echo 'EGREP' >> "conftest.nl"
4666     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668     as_fn_arith $ac_count + 1 && ac_count=$as_val
4669     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4670       # Best one so far, save it but keep looking for a better one
4671       ac_cv_path_EGREP="$ac_path_EGREP"
4672       ac_path_EGREP_max=$ac_count
4673     fi
4674     # 10*(2^10) chars as input seems more than enough
4675     test $ac_count -gt 10 && break
4676   done
4677   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 esac
4679
4680       $ac_path_EGREP_found && break 3
4681     done
4682   done
4683   done
4684 IFS=$as_save_IFS
4685   if test -z "$ac_cv_path_EGREP"; then
4686     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687   fi
4688 else
4689   ac_cv_path_EGREP=$EGREP
4690 fi
4691
4692    fi
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4695 $as_echo "$ac_cv_path_EGREP" >&6; }
4696  EGREP="$ac_cv_path_EGREP"
4697
4698
4699 # Extract the first word of "ldconfig", so it can be a program name with args.
4700 set dummy ldconfig; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_path_LDCONFIG+:} false; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   case $LDCONFIG in
4707   [\\/]* | ?:[\\/]*)
4708   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4709   ;;
4710   *)
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in /sbin /usr/sbin $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723   done
4724 IFS=$as_save_IFS
4725
4726   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4727   ;;
4728 esac
4729 fi
4730 LDCONFIG=$ac_cv_path_LDCONFIG
4731 if test -n "$LDCONFIG"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4733 $as_echo "$LDCONFIG" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 # Find a good install program.  We prefer a C program (faster),
4741 # so one script is as good as another.  But avoid the broken or
4742 # incompatible versions:
4743 # SysV /etc/install, /usr/sbin/install
4744 # SunOS /usr/etc/install
4745 # IRIX /sbin/install
4746 # AIX /bin/install
4747 # AmigaOS /C/install, which installs bootblocks on floppy discs
4748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4751 # OS/2's system install, which has a completely different semantic
4752 # ./install, which can be erroneously created by make from ./install.sh.
4753 # Reject install programs that cannot install multiple files.
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4756 if test -z "$INSTALL"; then
4757 if ${ac_cv_path_install+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     # Account for people who put trailing slashes in PATH elements.
4766 case $as_dir/ in #((
4767   ./ | .// | /[cC]/* | \
4768   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4769   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4770   /usr/ucb/* ) ;;
4771   *)
4772     # OSF1 and SCO ODT 3.0 have their own names for install.
4773     # Don't use installbsd from OSF since it installs stuff as root
4774     # by default.
4775     for ac_prog in ginstall scoinst install; do
4776       for ac_exec_ext in '' $ac_executable_extensions; do
4777         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4778           if test $ac_prog = install &&
4779             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4780             # AIX install.  It has an incompatible calling convention.
4781             :
4782           elif test $ac_prog = install &&
4783             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4784             # program-specific install script used by HP pwplus--don't use.
4785             :
4786           else
4787             rm -rf conftest.one conftest.two conftest.dir
4788             echo one > conftest.one
4789             echo two > conftest.two
4790             mkdir conftest.dir
4791             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4792               test -s conftest.one && test -s conftest.two &&
4793               test -s conftest.dir/conftest.one &&
4794               test -s conftest.dir/conftest.two
4795             then
4796               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4797               break 3
4798             fi
4799           fi
4800         fi
4801       done
4802     done
4803     ;;
4804 esac
4805
4806   done
4807 IFS=$as_save_IFS
4808
4809 rm -rf conftest.one conftest.two conftest.dir
4810
4811 fi
4812   if test "${ac_cv_path_install+set}" = set; then
4813     INSTALL=$ac_cv_path_install
4814   else
4815     # As a last resort, use the slow shell script.  Don't cache a
4816     # value for INSTALL within a source directory, because that will
4817     # break other packages using the cache if that directory is
4818     # removed, or if the value is a relative name.
4819     INSTALL=$ac_install_sh
4820   fi
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4823 $as_echo "$INSTALL" >&6; }
4824
4825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4826 # It thinks the first close brace ends the variable substitution.
4827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4828
4829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4830
4831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4832
4833 case "$INSTALL" in
4834   [\\/$]* | ?:[\\/]* ) ;;
4835   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4836 esac
4837
4838 for ac_prog in lclint lint
4839 do
4840   # Extract the first word of "$ac_prog", so it can be a program name with args.
4841 set dummy $ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_LINT+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   if test -n "$LINT"; then
4848   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857     ac_cv_prog_LINT="$ac_prog"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 LINT=$ac_cv_prog_LINT
4868 if test -n "$LINT"; then
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4870 $as_echo "$LINT" >&6; }
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877   test -n "$LINT" && break
4878 done
4879
4880 if test "$LINT" = "lint"
4881 then
4882   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4883   fi
4884
4885
4886 for ac_prog in fontforge
4887 do
4888   # Extract the first word of "$ac_prog", so it can be a program name with args.
4889 set dummy $ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_FONTFORGE+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$FONTFORGE"; then
4896   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905     ac_cv_prog_FONTFORGE="$ac_prog"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 FONTFORGE=$ac_cv_prog_FONTFORGE
4916 if test -n "$FONTFORGE"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4918 $as_echo "$FONTFORGE" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925   test -n "$FONTFORGE" && break
4926 done
4927 test -n "$FONTFORGE" || FONTFORGE="false"
4928
4929 for ac_prog in pkg-config
4930 do
4931   # Extract the first word of "$ac_prog", so it can be a program name with args.
4932 set dummy $ac_prog; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if test -n "$PKG_CONFIG"; then
4939   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948     ac_cv_prog_PKG_CONFIG="$ac_prog"
4949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950     break 2
4951   fi
4952 done
4953   done
4954 IFS=$as_save_IFS
4955
4956 fi
4957 fi
4958 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4959 if test -n "$PKG_CONFIG"; then
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4961 $as_echo "$PKG_CONFIG" >&6; }
4962 else
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966
4967
4968   test -n "$PKG_CONFIG" && break
4969 done
4970 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4971
4972 for ac_prog in rsvg
4973 do
4974   # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_RSVG+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$RSVG"; then
4982   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_prog_RSVG="$ac_prog"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 RSVG=$ac_cv_prog_RSVG
5002 if test -n "$RSVG"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5004 $as_echo "$RSVG" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011   test -n "$RSVG" && break
5012 done
5013 test -n "$RSVG" || RSVG="false"
5014
5015 for ac_prog in convert
5016 do
5017   # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if ${ac_cv_prog_CONVERT+:} false; then :
5022   $as_echo_n "(cached) " >&6
5023 else
5024   if test -n "$CONVERT"; then
5025   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_prog_CONVERT="$ac_prog"
5035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039   done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 CONVERT=$ac_cv_prog_CONVERT
5045 if test -n "$CONVERT"; then
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5047 $as_echo "$CONVERT" >&6; }
5048 else
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054   test -n "$CONVERT" && break
5055 done
5056 test -n "$CONVERT" || CONVERT="false"
5057
5058 for ac_prog in icotool
5059 do
5060   # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_ICOTOOL+:} false; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067   if test -n "$ICOTOOL"; then
5068   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_prog_ICOTOOL="$ac_prog"
5078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082   done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 ICOTOOL=$ac_cv_prog_ICOTOOL
5088 if test -n "$ICOTOOL"; then
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5090 $as_echo "$ICOTOOL" >&6; }
5091 else
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095
5096
5097   test -n "$ICOTOOL" && break
5098 done
5099 test -n "$ICOTOOL" || ICOTOOL="false"
5100
5101 for ac_prog in msgfmt
5102 do
5103   # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_MSGFMT+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   if test -n "$MSGFMT"; then
5111   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_prog_MSGFMT="$ac_prog"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 MSGFMT=$ac_cv_prog_MSGFMT
5131 if test -n "$MSGFMT"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5133 $as_echo "$MSGFMT" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140   test -n "$MSGFMT" && break
5141 done
5142 test -n "$MSGFMT" || MSGFMT="false"
5143
5144
5145 if test "x$enable_maintainer_mode" != "xyes"
5146 then
5147   MAINTAINER_MODE=\#
5148
5149 else
5150   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5151   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5152
5153     if test "$CONVERT" = false
5154   then
5155     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5156   else
5157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5158 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5159     convert_version=`convert --version | head -n1`
5160     if test "x$convert_version" != "x"
5161     then
5162       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5163       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5164       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5165       then
5166         CONVERT=false
5167       fi
5168     fi
5169     if test "$CONVERT" = false
5170     then
5171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5172 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5173       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5174     else
5175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5176 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5177     fi
5178   fi
5179
5180     if test "$ICOTOOL" = false
5181   then
5182     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5183   else
5184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5185 $as_echo_n "checking for recent enough icotool... " >&6; }
5186     icotool_version=`icotool --version | head -n1`
5187     if test "x$icotool_version" != "x"
5188     then
5189       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5190       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5191       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5192       then
5193         ICOTOOL=false
5194         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5195       fi
5196     fi
5197     if test "$ICOTOOL" = false
5198     then
5199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5200 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5201       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5202     else
5203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5204 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5205     fi
5206   fi
5207
5208     with_gettext=yes
5209   with_gettextpo=yes
5210   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5211 fi
5212
5213 test "x$with_gettext" != xno || MSGFMT=false
5214 if test "$MSGFMT" != "false"
5215 then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5217 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5218   cat >conftest.po <<EOF
5219 # comment
5220 msgctxt "ctxt"
5221 msgid "id"
5222 msgstr "str"
5223 EOF
5224   if $MSGFMT -o /dev/null conftest.po 2>&5
5225   then
5226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5228   else
5229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231     MSGFMT=false
5232   fi
5233 fi
5234 if test "$MSGFMT" = false; then :
5235   case "x$with_gettext" in
5236   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5237   xno) ;;
5238   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5239 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5240 esac
5241 fi
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5245 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5246 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-li386  $LIBS"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253
5254 /* Override any GCC internal prototype to avoid an error.
5255    Use char because int might match the return type of a GCC
5256    builtin and then its argument prototype would still apply.  */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 char i386_set_ldt ();
5261 int
5262 main ()
5263 {
5264 return i386_set_ldt ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_link "$LINENO"; then :
5270   ac_cv_lib_i386_i386_set_ldt=yes
5271 else
5272   ac_cv_lib_i386_i386_set_ldt=no
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext \
5275     conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5279 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5280 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5281   cat >>confdefs.h <<_ACEOF
5282 #define HAVE_LIBI386 1
5283 _ACEOF
5284
5285   LIBS="-li386 $LIBS"
5286
5287 fi
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5290 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5291 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   ac_check_lib_save_LIBS=$LIBS
5295 LIBS="-lossaudio  $LIBS"
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298
5299 /* Override any GCC internal prototype to avoid an error.
5300    Use char because int might match the return type of a GCC
5301    builtin and then its argument prototype would still apply.  */
5302 #ifdef __cplusplus
5303 extern "C"
5304 #endif
5305 char _oss_ioctl ();
5306 int
5307 main ()
5308 {
5309 return _oss_ioctl ();
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_link "$LINENO"; then :
5315   ac_cv_lib_ossaudio__oss_ioctl=yes
5316 else
5317   ac_cv_lib_ossaudio__oss_ioctl=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext \
5320     conftest$ac_exeext conftest.$ac_ext
5321 LIBS=$ac_check_lib_save_LIBS
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5324 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5325 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5326   cat >>confdefs.h <<_ACEOF
5327 #define HAVE_LIBOSSAUDIO 1
5328 _ACEOF
5329
5330   LIBS="-lossaudio $LIBS"
5331
5332 fi
5333
5334
5335 XLIB=""
5336
5337 OPENGL_LIBS=""
5338
5339
5340
5341 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5342
5343 # Check whether --enable-largefile was given.
5344 if test "${enable_largefile+set}" = set; then :
5345   enableval=$enable_largefile;
5346 fi
5347
5348 if test "$enable_largefile" != no; then
5349
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5352 if ${ac_cv_sys_largefile_CC+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   ac_cv_sys_largefile_CC=no
5356      if test "$GCC" != yes; then
5357        ac_save_CC=$CC
5358        while :; do
5359          # IRIX 6.2 and later do not support large files by default,
5360          # so use the C compiler's -n32 option if that helps.
5361          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h.  */
5363 #include <sys/types.h>
5364  /* Check that off_t can represent 2**63 - 1 correctly.
5365     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5366     since some C++ compilers masquerading as C compilers
5367     incorrectly reject 9223372036854775807.  */
5368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5369   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5370                        && LARGE_OFF_T % 2147483647 == 1)
5371                       ? 1 : -1];
5372 int
5373 main ()
5374 {
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380          if ac_fn_c_try_compile "$LINENO"; then :
5381   break
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext
5384          CC="$CC -n32"
5385          if ac_fn_c_try_compile "$LINENO"; then :
5386   ac_cv_sys_largefile_CC=' -n32'; break
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext
5389          break
5390        done
5391        CC=$ac_save_CC
5392        rm -f conftest.$ac_ext
5393     fi
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5397   if test "$ac_cv_sys_largefile_CC" != no; then
5398     CC=$CC$ac_cv_sys_largefile_CC
5399   fi
5400
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5403 if ${ac_cv_sys_file_offset_bits+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   while :; do
5407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409 #include <sys/types.h>
5410  /* Check that off_t can represent 2**63 - 1 correctly.
5411     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5412     since some C++ compilers masquerading as C compilers
5413     incorrectly reject 9223372036854775807.  */
5414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5415   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5416                        && LARGE_OFF_T % 2147483647 == 1)
5417                       ? 1 : -1];
5418 int
5419 main ()
5420 {
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427   ac_cv_sys_file_offset_bits=no; break
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h.  */
5432 #define _FILE_OFFSET_BITS 64
5433 #include <sys/types.h>
5434  /* Check that off_t can represent 2**63 - 1 correctly.
5435     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5436     since some C++ compilers masquerading as C compilers
5437     incorrectly reject 9223372036854775807.  */
5438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5439   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5440                        && LARGE_OFF_T % 2147483647 == 1)
5441                       ? 1 : -1];
5442 int
5443 main ()
5444 {
5445
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451   ac_cv_sys_file_offset_bits=64; break
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454   ac_cv_sys_file_offset_bits=unknown
5455   break
5456 done
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5459 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5460 case $ac_cv_sys_file_offset_bits in #(
5461   no | unknown) ;;
5462   *)
5463 cat >>confdefs.h <<_ACEOF
5464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5465 _ACEOF
5466 ;;
5467 esac
5468 rm -rf conftest*
5469   if test $ac_cv_sys_file_offset_bits = unknown; then
5470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5471 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5472 if ${ac_cv_sys_large_files+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   while :; do
5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478 #include <sys/types.h>
5479  /* Check that off_t can represent 2**63 - 1 correctly.
5480     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5481     since some C++ compilers masquerading as C compilers
5482     incorrectly reject 9223372036854775807.  */
5483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5484   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5485                        && LARGE_OFF_T % 2147483647 == 1)
5486                       ? 1 : -1];
5487 int
5488 main ()
5489 {
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496   ac_cv_sys_large_files=no; break
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h.  */
5501 #define _LARGE_FILES 1
5502 #include <sys/types.h>
5503  /* Check that off_t can represent 2**63 - 1 correctly.
5504     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5505     since some C++ compilers masquerading as C compilers
5506     incorrectly reject 9223372036854775807.  */
5507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5508   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5509                        && LARGE_OFF_T % 2147483647 == 1)
5510                       ? 1 : -1];
5511 int
5512 main ()
5513 {
5514
5515   ;
5516   return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520   ac_cv_sys_large_files=1; break
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523   ac_cv_sys_large_files=unknown
5524   break
5525 done
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5528 $as_echo "$ac_cv_sys_large_files" >&6; }
5529 case $ac_cv_sys_large_files in #(
5530   no | unknown) ;;
5531   *)
5532 cat >>confdefs.h <<_ACEOF
5533 #define _LARGE_FILES $ac_cv_sys_large_files
5534 _ACEOF
5535 ;;
5536 esac
5537 rm -rf conftest*
5538   fi
5539
5540
5541 fi
5542
5543
5544 ac_ext=c
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5550 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5551 # On Suns, sometimes $CPP names a directory.
5552 if test -n "$CPP" && test -d "$CPP"; then
5553   CPP=
5554 fi
5555 if test -z "$CPP"; then
5556   if ${ac_cv_prog_CPP+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559       # Double quotes because CPP needs to be expanded
5560     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5561     do
5562       ac_preproc_ok=false
5563 for ac_c_preproc_warn_flag in '' yes
5564 do
5565   # Use a header file that comes with gcc, so configuring glibc
5566   # with a fresh cross-compiler works.
5567   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568   # <limits.h> exists even on freestanding compilers.
5569   # On the NeXT, cc -E runs the code through the compiler's parser,
5570   # not just through cpp. "Syntax error" is here to catch this case.
5571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h.  */
5573 #ifdef __STDC__
5574 # include <limits.h>
5575 #else
5576 # include <assert.h>
5577 #endif
5578                      Syntax error
5579 _ACEOF
5580 if ac_fn_c_try_cpp "$LINENO"; then :
5581
5582 else
5583   # Broken: fails on valid input.
5584 continue
5585 fi
5586 rm -f conftest.err conftest.i conftest.$ac_ext
5587
5588   # OK, works on sane cases.  Now check whether nonexistent headers
5589   # can be detected and how.
5590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h.  */
5592 #include <ac_nonexistent.h>
5593 _ACEOF
5594 if ac_fn_c_try_cpp "$LINENO"; then :
5595   # Broken: success on invalid input.
5596 continue
5597 else
5598   # Passes both tests.
5599 ac_preproc_ok=:
5600 break
5601 fi
5602 rm -f conftest.err conftest.i conftest.$ac_ext
5603
5604 done
5605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5606 rm -f conftest.i conftest.err conftest.$ac_ext
5607 if $ac_preproc_ok; then :
5608   break
5609 fi
5610
5611     done
5612     ac_cv_prog_CPP=$CPP
5613
5614 fi
5615   CPP=$ac_cv_prog_CPP
5616 else
5617   ac_cv_prog_CPP=$CPP
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5620 $as_echo "$CPP" >&6; }
5621 ac_preproc_ok=false
5622 for ac_c_preproc_warn_flag in '' yes
5623 do
5624   # Use a header file that comes with gcc, so configuring glibc
5625   # with a fresh cross-compiler works.
5626   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5627   # <limits.h> exists even on freestanding compilers.
5628   # On the NeXT, cc -E runs the code through the compiler's parser,
5629   # not just through cpp. "Syntax error" is here to catch this case.
5630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h.  */
5632 #ifdef __STDC__
5633 # include <limits.h>
5634 #else
5635 # include <assert.h>
5636 #endif
5637                      Syntax error
5638 _ACEOF
5639 if ac_fn_c_try_cpp "$LINENO"; then :
5640
5641 else
5642   # Broken: fails on valid input.
5643 continue
5644 fi
5645 rm -f conftest.err conftest.i conftest.$ac_ext
5646
5647   # OK, works on sane cases.  Now check whether nonexistent headers
5648   # can be detected and how.
5649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h.  */
5651 #include <ac_nonexistent.h>
5652 _ACEOF
5653 if ac_fn_c_try_cpp "$LINENO"; then :
5654   # Broken: success on invalid input.
5655 continue
5656 else
5657   # Passes both tests.
5658 ac_preproc_ok=:
5659 break
5660 fi
5661 rm -f conftest.err conftest.i conftest.$ac_ext
5662
5663 done
5664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5665 rm -f conftest.i conftest.err conftest.$ac_ext
5666 if $ac_preproc_ok; then :
5667
5668 else
5669   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5671 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5672 See \`config.log' for more details" "$LINENO" 5; }
5673 fi
5674
5675 ac_ext=c
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5683 $as_echo_n "checking for ANSI C header files... " >&6; }
5684 if ${ac_cv_header_stdc+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689 #include <stdlib.h>
5690 #include <stdarg.h>
5691 #include <string.h>
5692 #include <float.h>
5693
5694 int
5695 main ()
5696 {
5697
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703   ac_cv_header_stdc=yes
5704 else
5705   ac_cv_header_stdc=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708
5709 if test $ac_cv_header_stdc = yes; then
5710   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h.  */
5713 #include <string.h>
5714
5715 _ACEOF
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717   $EGREP "memchr" >/dev/null 2>&1; then :
5718
5719 else
5720   ac_cv_header_stdc=no
5721 fi
5722 rm -f conftest*
5723
5724 fi
5725
5726 if test $ac_cv_header_stdc = yes; then
5727   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h.  */
5730 #include <stdlib.h>
5731
5732 _ACEOF
5733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5734   $EGREP "free" >/dev/null 2>&1; then :
5735
5736 else
5737   ac_cv_header_stdc=no
5738 fi
5739 rm -f conftest*
5740
5741 fi
5742
5743 if test $ac_cv_header_stdc = yes; then
5744   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5745   if test "$cross_compiling" = yes; then :
5746   :
5747 else
5748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h.  */
5750 #include <ctype.h>
5751 #include <stdlib.h>
5752 #if ((' ' & 0x0FF) == 0x020)
5753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5755 #else
5756 # define ISLOWER(c) \
5757                    (('a' <= (c) && (c) <= 'i') \
5758                      || ('j' <= (c) && (c) <= 'r') \
5759                      || ('s' <= (c) && (c) <= 'z'))
5760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5761 #endif
5762
5763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5764 int
5765 main ()
5766 {
5767   int i;
5768   for (i = 0; i < 256; i++)
5769     if (XOR (islower (i), ISLOWER (i))
5770         || toupper (i) != TOUPPER (i))
5771       return 2;
5772   return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_run "$LINENO"; then :
5776
5777 else
5778   ac_cv_header_stdc=no
5779 fi
5780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5781   conftest.$ac_objext conftest.beam conftest.$ac_ext
5782 fi
5783
5784 fi
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5787 $as_echo "$ac_cv_header_stdc" >&6; }
5788 if test $ac_cv_header_stdc = yes; then
5789
5790 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5791
5792 fi
5793
5794 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796                   inttypes.h stdint.h unistd.h
5797 do :
5798   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5800 "
5801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5802   cat >>confdefs.h <<_ACEOF
5803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 _ACEOF
5805
5806 fi
5807
5808 done
5809
5810
5811 for ac_header in \
5812         AL/al.h \
5813         ApplicationServices/ApplicationServices.h \
5814         AudioToolbox/AudioConverter.h \
5815         AudioUnit/AudioUnit.h \
5816         AudioUnit/AudioComponent.h \
5817         CL/cl.h \
5818         Carbon/Carbon.h \
5819         CoreAudio/CoreAudio.h \
5820         CoreServices/CoreServices.h \
5821         DiskArbitration/DiskArbitration.h \
5822         IOKit/IOKitLib.h \
5823         IOKit/hid/IOHIDLib.h \
5824         OpenAL/al.h \
5825         OpenCL/opencl.h \
5826         QuickTime/ImageCompression.h \
5827         Security/Security.h \
5828         alias.h \
5829         alsa/asoundlib.h \
5830         arpa/inet.h \
5831         arpa/nameser.h \
5832         asm/types.h \
5833         capi20.h \
5834         curses.h \
5835         direct.h \
5836         dirent.h \
5837         dlfcn.h \
5838         elf.h \
5839         float.h \
5840         fnmatch.h \
5841         fontconfig/fontconfig.h \
5842         getopt.h \
5843         gettext-po.h \
5844         grp.h \
5845         gsm.h \
5846         gsm/gsm.h \
5847         ieeefp.h \
5848         inet/mib2.h \
5849         io.h \
5850         jpeglib.h \
5851         kstat.h \
5852         lber.h \
5853         lcms.h \
5854         lcms/lcms.h \
5855         ldap.h \
5856         link.h \
5857         linux/cdrom.h \
5858         linux/compiler.h \
5859         linux/filter.h \
5860         linux/hdreg.h \
5861         linux/input.h \
5862         linux/ioctl.h \
5863         linux/joystick.h \
5864         linux/major.h \
5865         linux/param.h \
5866         linux/serial.h \
5867         linux/types.h \
5868         linux/ucdrom.h \
5869         lwp.h \
5870         mach-o/nlist.h \
5871         mach-o/loader.h \
5872         mach/mach.h \
5873         mach/machine.h \
5874         machine/cpu.h \
5875         machine/limits.h \
5876         machine/sysarch.h \
5877         mntent.h \
5878         mpg123.h \
5879         ncurses.h \
5880         netdb.h \
5881         netinet/in.h \
5882         netinet/in_systm.h \
5883         netinet/tcp.h \
5884         netinet/tcp_fsm.h \
5885         openssl/err.h \
5886         openssl/ssl.h \
5887         png.h \
5888         poll.h \
5889         port.h \
5890         process.h \
5891         pthread.h \
5892         pwd.h \
5893         sched.h \
5894         scsi/scsi.h \
5895         scsi/scsi_ioctl.h \
5896         scsi/sg.h \
5897         stdbool.h \
5898         stdint.h \
5899         strings.h \
5900         stropts.h \
5901         sys/asoundlib.h \
5902         sys/attr.h \
5903         sys/cdio.h \
5904         sys/elf32.h \
5905         sys/epoll.h \
5906         sys/event.h \
5907         sys/exec_elf.h \
5908         sys/filio.h \
5909         sys/inotify.h \
5910         sys/ioctl.h \
5911         sys/ipc.h \
5912         sys/limits.h \
5913         sys/link.h \
5914         sys/mman.h \
5915         sys/modem.h \
5916         sys/msg.h \
5917         sys/mtio.h \
5918         sys/param.h \
5919         sys/poll.h \
5920         sys/prctl.h \
5921         sys/protosw.h \
5922         sys/ptrace.h \
5923         sys/resource.h \
5924         sys/scsiio.h \
5925         sys/shm.h \
5926         sys/signal.h \
5927         sys/socket.h \
5928         sys/socketvar.h \
5929         sys/sockio.h \
5930         sys/statvfs.h \
5931         sys/strtio.h \
5932         sys/syscall.h \
5933         sys/tihdr.h \
5934         sys/time.h \
5935         sys/timeout.h \
5936         sys/times.h \
5937         sys/uio.h \
5938         sys/un.h \
5939         sys/utsname.h \
5940         sys/vm86.h \
5941         sys/wait.h \
5942         syscall.h \
5943         termios.h \
5944         tiffio.h \
5945         unistd.h \
5946         utime.h \
5947         valgrind/memcheck.h \
5948         valgrind/valgrind.h \
5949         zlib.h
5950
5951 do :
5952   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955   cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5958
5959 fi
5960
5961 done
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5964 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5965 if ${ac_cv_header_stat_broken+:} false; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h.  */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5972
5973 #if defined S_ISBLK && defined S_IFDIR
5974 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5975 #endif
5976
5977 #if defined S_ISBLK && defined S_IFCHR
5978 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5979 #endif
5980
5981 #if defined S_ISLNK && defined S_IFREG
5982 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5983 #endif
5984
5985 #if defined S_ISSOCK && defined S_IFREG
5986 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5987 #endif
5988
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991   ac_cv_header_stat_broken=no
5992 else
5993   ac_cv_header_stat_broken=yes
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5998 $as_echo "$ac_cv_header_stat_broken" >&6; }
5999 if test $ac_cv_header_stat_broken = yes; then
6000
6001 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6002
6003 fi
6004
6005
6006
6007 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.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_SYS_PARAM_H
6012      # include <sys/param.h>
6013      #endif
6014 "
6015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6016   cat >>confdefs.h <<_ACEOF
6017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6019
6020 fi
6021
6022 done
6023
6024
6025 for ac_header in \
6026         netinet/ip.h \
6027         net/if.h \
6028         net/if_arp.h \
6029         net/if_dl.h \
6030         net/if_types.h \
6031         net/route.h \
6032         netinet/if_ether.h \
6033         netinet/if_inarp.h \
6034         netinet/in_pcb.h \
6035         netinet/ip_icmp.h \
6036         netinet/ip_var.h \
6037         netinet/udp.h \
6038         netipx/ipx.h \
6039
6040 do :
6041   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6042 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6043      #ifdef HAVE_SYS_SOCKET_H
6044      # include <sys/socket.h>
6045      #endif
6046      #ifdef HAVE_SYS_SOCKETVAR_H
6047      # include <sys/socketvar.h>
6048      #endif
6049      #ifdef HAVE_NET_ROUTE_H
6050      # include <net/route.h>
6051      #endif
6052      #ifdef HAVE_NETINET_IN_H
6053      # include <netinet/in.h>
6054      #endif
6055      #ifdef HAVE_NETINET_IN_SYSTM_H
6056      # include <netinet/in_systm.h>
6057      #endif
6058      #ifdef HAVE_NET_IF_H
6059      # include <net/if.h>
6060      #endif
6061      #ifdef HAVE_NETINET_IP_H
6062      # include <netinet/ip.h>
6063      #endif
6064 "
6065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6066   cat >>confdefs.h <<_ACEOF
6067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 _ACEOF
6069
6070 fi
6071
6072 done
6073
6074
6075 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6076 do :
6077   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6079      #ifdef HAVE_ALIAS_H
6080      # include <alias.h>
6081      #endif
6082      #ifdef HAVE_SYS_SOCKET_H
6083      # include <sys/socket.h>
6084      #endif
6085      #ifdef HAVE_SYS_SOCKETVAR_H
6086      # include <sys/socketvar.h>
6087      #endif
6088      #ifdef HAVE_SYS_TIMEOUT_H
6089      # include <sys/timeout.h>
6090      #endif
6091      #ifdef HAVE_NETINET_IN_H
6092      # include <netinet/in.h>
6093      #endif
6094      #ifdef HAVE_NETINET_IN_SYSTM_H
6095      # include <netinet/in_systm.h>
6096      #endif
6097      #ifdef HAVE_NETINET_IP_H
6098      # include <netinet/ip.h>
6099      #endif
6100      #ifdef HAVE_NETINET_IP_VAR_H
6101      # include <netinet/ip_var.h>
6102      #endif
6103      #ifdef HAVE_NETINET_IP_ICMP_H
6104      # include <netinet/ip_icmp.h>
6105      #endif
6106      #ifdef HAVE_NETINET_UDP_H
6107      # include <netinet/udp.h>
6108      #endif
6109      #ifdef HAVE_NETINET_TCP_H
6110      # include <netinet/tcp.h>
6111      #endif
6112      #ifdef HAVE_NETINET_TCP_TIMER_H
6113      #include <netinet/tcp_timer.h>
6114      #endif
6115 "
6116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6117   cat >>confdefs.h <<_ACEOF
6118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6120
6121 fi
6122
6123 done
6124
6125
6126 for ac_header in linux/ipx.h linux/irda.h
6127 do :
6128   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6130      #ifdef HAVE_ASM_TYPES_H
6131      # include <asm/types.h>
6132      #endif
6133      #ifdef HAVE_SYS_SOCKET_H
6134      # include <sys/socket.h>
6135      #endif
6136      #ifdef HAVE_LINUX_TYPES_H
6137      # include <linux/types.h>
6138      #endif
6139 "
6140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6141   cat >>confdefs.h <<_ACEOF
6142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143 _ACEOF
6144
6145 fi
6146
6147 done
6148
6149
6150 for ac_header in mach-o/dyld_images.h
6151 do :
6152   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6153      # include <stdbool.h>
6154      #endif
6155      #ifdef HAVE_STDINT_H
6156      # include <stdint.h>
6157      #endif
6158 "
6159 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6160   cat >>confdefs.h <<_ACEOF
6161 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6162 _ACEOF
6163
6164 fi
6165
6166 done
6167
6168
6169 for ac_header in resolv.h
6170 do :
6171   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6172      #ifdef HAVE_SYS_SOCKET_H
6173      # include <sys/socket.h>
6174      #endif
6175      #ifdef HAVE_NETINET_IN_H
6176      # include <netinet/in.h>
6177      #endif
6178      #ifdef HAVE_ARPA_NAMESER_H
6179      # include <arpa/nameser.h>
6180      #endif
6181 "
6182 if test "x$ac_cv_header_resolv_h" = xyes; then :
6183   cat >>confdefs.h <<_ACEOF
6184 #define HAVE_RESOLV_H 1
6185 _ACEOF
6186
6187 fi
6188
6189 done
6190
6191
6192 for ac_header in ifaddrs.h
6193 do :
6194   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6195 "
6196 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6197   cat >>confdefs.h <<_ACEOF
6198 #define HAVE_IFADDRS_H 1
6199 _ACEOF
6200
6201 fi
6202
6203 done
6204
6205
6206 for ac_header in ucontext.h
6207 do :
6208   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6209 "
6210 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6211   cat >>confdefs.h <<_ACEOF
6212 #define HAVE_UCONTEXT_H 1
6213 _ACEOF
6214
6215 fi
6216
6217 done
6218
6219
6220 for ac_header in sys/thr.h
6221 do :
6222   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6223 #ifdef HAVE_UCONTEXT_H
6224 #include <ucontext.h>
6225 #endif
6226 "
6227 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6228   cat >>confdefs.h <<_ACEOF
6229 #define HAVE_SYS_THR_H 1
6230 _ACEOF
6231
6232 fi
6233
6234 done
6235
6236
6237 for ac_header in pthread_np.h
6238 do :
6239   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6240 #include <pthread.h>
6241 #endif
6242 "
6243 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6244   cat >>confdefs.h <<_ACEOF
6245 #define HAVE_PTHREAD_NP_H 1
6246 _ACEOF
6247
6248 fi
6249
6250 done
6251
6252
6253 for ac_header in linux/videodev.h linux/videodev2.h
6254 do :
6255   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6256 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6257 #include <sys/time.h>
6258 #endif
6259 #include <sys/types.h>
6260 #ifdef HAVE_ASM_TYPES_H
6261 #include <asm/types.h>
6262 #endif
6263 "
6264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6265   cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6268
6269 fi
6270
6271 done
6272
6273
6274 for ac_header in linux/capi.h
6275 do :
6276   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6277 "
6278 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6279   cat >>confdefs.h <<_ACEOF
6280 #define HAVE_LINUX_CAPI_H 1
6281 _ACEOF
6282
6283 fi
6284
6285 done
6286
6287
6288
6289 DLLEXT=""
6290
6291 DLLFLAGS="-D_REENTRANT"
6292
6293 LDSHARED=""
6294
6295 LDDLLFLAGS=""
6296
6297 LIBEXT="so"
6298
6299 IMPLIBEXT="def"
6300
6301 LDRPATH_INSTALL=""
6302
6303 LDRPATH_LOCAL=""
6304
6305 STATIC_IMPLIBEXT="def.a"
6306 # Extract the first word of "ldd", so it can be a program name with args.
6307 set dummy ldd; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_path_LDD+:} false; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   case $LDD in
6314   [\\/]* | ?:[\\/]*)
6315   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6316   ;;
6317   *)
6318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 as_dummy="/sbin:/usr/sbin:$PATH"
6320 for as_dir in $as_dummy
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324     for ac_exec_ext in '' $ac_executable_extensions; do
6325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331   done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6335   ;;
6336 esac
6337 fi
6338 LDD=$ac_cv_path_LDD
6339 if test -n "$LDD"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6341 $as_echo "$LDD" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346
6347
6348
6349 case $host_os in
6350   cygwin*|mingw32*)
6351     if test -n "$ac_tool_prefix"; then
6352   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_DLLTOOL+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$DLLTOOL"; then
6360   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 DLLTOOL=$ac_cv_prog_DLLTOOL
6380 if test -n "$DLLTOOL"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6382 $as_echo "$DLLTOOL" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_DLLTOOL"; then
6391   ac_ct_DLLTOOL=$DLLTOOL
6392   # Extract the first word of "dlltool", so it can be a program name with args.
6393 set dummy dlltool; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   if test -n "$ac_ct_DLLTOOL"; then
6400   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6420 if test -n "$ac_ct_DLLTOOL"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6422 $as_echo "$ac_ct_DLLTOOL" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428   if test "x$ac_ct_DLLTOOL" = x; then
6429     DLLTOOL="false"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437     DLLTOOL=$ac_ct_DLLTOOL
6438   fi
6439 else
6440   DLLTOOL="$ac_cv_prog_DLLTOOL"
6441 fi
6442
6443     if test -n "$ac_tool_prefix"; then
6444   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_DLLWRAP+:} false; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   if test -n "$DLLWRAP"; then
6452   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 DLLWRAP=$ac_cv_prog_DLLWRAP
6472 if test -n "$DLLWRAP"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6474 $as_echo "$DLLWRAP" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_DLLWRAP"; then
6483   ac_ct_DLLWRAP=$DLLWRAP
6484   # Extract the first word of "dllwrap", so it can be a program name with args.
6485 set dummy dllwrap; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   if test -n "$ac_ct_DLLWRAP"; then
6492   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6512 if test -n "$ac_ct_DLLWRAP"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6514 $as_echo "$ac_ct_DLLWRAP" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520   if test "x$ac_ct_DLLWRAP" = x; then
6521     DLLWRAP="false"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     DLLWRAP=$ac_ct_DLLWRAP
6530   fi
6531 else
6532   DLLWRAP="$ac_cv_prog_DLLWRAP"
6533 fi
6534
6535     if test "$DLLWRAP" = "false"; then
6536       LIBEXT="a"
6537     else
6538             LIBEXT="dll"
6539     fi
6540     IMPLIBEXT="a"
6541     STATIC_IMPLIBEXT="a"
6542         enable_iphlpapi=${enable_iphlpapi:-no}
6543     enable_kernel32=${enable_kernel32:-no}
6544     enable_msvcrt=${enable_msvcrt:-no}
6545     enable_ntdll=${enable_ntdll:-no}
6546     enable_ws2_32=${enable_ws2_32:-no}
6547     enable_loader=${enable_loader:-no}
6548     enable_server=${enable_server:-no}
6549         with_x=${with_x:-no}
6550     with_pthread=${with_pthread:-no}
6551     ;;
6552   darwin*|macosx*)
6553     DLLEXT=".so"
6554     LIBEXT="dylib"
6555     DLLFLAGS="$DLLFLAGS -fPIC"
6556     LDDLLFLAGS="-bundle -multiply_defined suppress"
6557     LIBWINE_LDFLAGS="-multiply_defined suppress"
6558     LDSHARED="\$(CC) -dynamiclib"
6559     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6560         COREFOUNDATIONLIB="-framework CoreFoundation"
6561
6562     IOKITLIB="-framework IOKit -framework CoreFoundation"
6563
6564     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6565
6566     CORESERVICESLIB="-framework CoreServices"
6567
6568     case $host_os in
6569       darwin11*)
6570         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6571  ;;
6572       *)
6573         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6574  ;;
6575     esac
6576     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6577     then
6578                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6579
6580     fi
6581     if test "$ac_cv_header_Security_Security_h" = "yes"
6582     then
6583         SECURITYLIB="-framework Security -framework CoreFoundation"
6584
6585                 ac_save_LIBS="$LIBS"
6586         LIBS="$LIBS $SECURITYLIB"
6587         for ac_func in SSLCopyPeerCertificates
6588 do :
6589   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6590 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6591   cat >>confdefs.h <<_ACEOF
6592 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6593 _ACEOF
6594
6595 fi
6596 done
6597
6598         LIBS="$ac_save_LIBS"
6599         with_gnutls=${with_gnutls:-no}
6600     fi
6601     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6602     then
6603         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6604         then
6605             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6606
6607         else
6608                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6609
6610         fi
6611                 ac_save_LIBS="$LIBS"
6612         LIBS="$LIBS $COREAUDIO"
6613         for ac_func in AUGraphAddNode
6614 do :
6615   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6616 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6617   cat >>confdefs.h <<_ACEOF
6618 #define HAVE_AUGRAPHADDNODE 1
6619 _ACEOF
6620
6621 fi
6622 done
6623
6624         LIBS="$ac_save_LIBS"
6625     fi
6626     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6627     then
6628         FRAMEWORK_OPENAL="-framework OpenAL"
6629
6630
6631 cat >>confdefs.h <<_ACEOF
6632 #define HAVE_OPENAL 1
6633 _ACEOF
6634
6635         ac_cv_lib_openal=yes
6636     fi
6637     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6638     then
6639         LIBOPENCL="-framework OpenCL"
6640
6641         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6642     fi
6643     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6644     then
6645         ac_save_LIBS="$LIBS"
6646         LIBS="$LIBS $IOKITLIB"
6647         for ac_func in IOHIDManagerCreate
6648 do :
6649   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6650 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6651   cat >>confdefs.h <<_ACEOF
6652 #define HAVE_IOHIDMANAGERCREATE 1
6653 _ACEOF
6654
6655 fi
6656 done
6657
6658         LIBS="$ac_save_LIBS"
6659     fi
6660     case $host_cpu in
6661       *powerpc*)
6662         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6663     esac
6664     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6665     then
6666         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6667
6668         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6669     else
6670         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6671     fi
6672         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6673     then
6674         CARBONLIB="-framework Carbon"
6675
6676         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6677     fi
6678         if test "x$enable_win16" = "xyes"
6679     then
6680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6681 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6682         if test "$cross_compiling" = yes; then :
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6684 $as_echo "cross-compiling, assuming yes" >&6; }
6685 else
6686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h.  */
6688 asm(".text\n"
6689                                             "bad:\tnop;nop\n"
6690                                             "good:\tnop;nop\n\t"
6691                                             ".globl _testfunc\n"
6692                                             "_testfunc:\tcallw good");
6693                                         extern void testfunc();
6694 int
6695 main ()
6696 {
6697 unsigned short *p = (unsigned short *)testfunc;
6698                                         return p[0] != 0xe866 || p[1] != 0xfffa
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 if ac_fn_c_try_run "$LINENO"; then :
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6705 $as_echo "yes" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709                                        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
6710 fi
6711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6712   conftest.$ac_objext conftest.beam conftest.$ac_ext
6713 fi
6714
6715     fi
6716     ;;
6717   *)
6718     DLLFLAGS="$DLLFLAGS -fPIC"
6719     DLLEXT=".so"
6720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6721 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6722 if ${ac_cv_c_dll_gnuelf+:} false; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   ac_wine_try_cflags_saved=$CFLAGS
6726 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h.  */
6729 void myfunc() {}
6730 _ACEOF
6731 if ac_fn_c_try_link "$LINENO"; then :
6732   ac_cv_c_dll_gnuelf="yes"
6733 else
6734   ac_cv_c_dll_gnuelf="no"
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext \
6737     conftest$ac_exeext conftest.$ac_ext
6738 CFLAGS=$ac_wine_try_cflags_saved
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6741 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6742     if test "$ac_cv_c_dll_gnuelf" = "yes"
6743     then
6744       LDSHARED="\$(CC) -shared"
6745       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6747 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6748 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   ac_wine_try_cflags_saved=$CFLAGS
6752 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h.  */
6755 int main(int argc, char **argv) { return 0; }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6759 else
6760   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext \
6763     conftest$ac_exeext conftest.$ac_ext
6764 CFLAGS=$ac_wine_try_cflags_saved
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6767 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6768 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6769   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6772 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6773 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   ac_wine_try_cflags_saved=$CFLAGS
6777 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h.  */
6780 int main(int argc, char **argv) { return 0; }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6784 else
6785   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext \
6788     conftest$ac_exeext conftest.$ac_ext
6789 CFLAGS=$ac_wine_try_cflags_saved
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6792 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6793 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6794   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6795 fi
6796 fi
6797
6798       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6799 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6800 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   ac_wine_try_cflags_saved=$CFLAGS
6804 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h.  */
6807 int main(int argc, char **argv) { return 0; }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6811 else
6812   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext \
6815     conftest$ac_exeext conftest.$ac_ext
6816 CFLAGS=$ac_wine_try_cflags_saved
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6819 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6820 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6821   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6822 fi
6823
6824       { $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
6825 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6826 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   ac_wine_try_cflags_saved=$CFLAGS
6830 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833 int main(int argc, char **argv) { return 0; }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"; then :
6836   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6837 else
6838   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext \
6841     conftest$ac_exeext conftest.$ac_ext
6842 CFLAGS=$ac_wine_try_cflags_saved
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6845 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6846 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6847   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6848 fi
6849
6850       echo '{ global: *; };' >conftest.map
6851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6852 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6853 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   ac_wine_try_cflags_saved=$CFLAGS
6857 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h.  */
6860 int main(int argc, char **argv) { return 0; }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6864 else
6865   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868     conftest$ac_exeext conftest.$ac_ext
6869 CFLAGS=$ac_wine_try_cflags_saved
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6872 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6873 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6874   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6875 fi
6876       rm -f conftest.map
6877
6878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6879 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6880 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   ac_wine_try_cflags_saved=$CFLAGS
6884 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h.  */
6887 int main(int argc, char **argv) { return 0; }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"; then :
6890   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6891 else
6892   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext \
6895     conftest$ac_exeext conftest.$ac_ext
6896 CFLAGS=$ac_wine_try_cflags_saved
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6899 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6900 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6901   LDEXECFLAGS="-Wl,--export-dynamic"
6902
6903 fi
6904
6905       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6907 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6908 if eval \${$as_ac_var+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   ac_wine_try_cflags_saved=$CFLAGS
6912 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h.  */
6915 int main(int argc, char **argv) { return 0; }
6916 _ACEOF
6917 if ac_fn_c_try_link "$LINENO"; then :
6918   eval "$as_ac_var=yes"
6919 else
6920   eval "$as_ac_var=no"
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext \
6923     conftest$ac_exeext conftest.$ac_ext
6924 CFLAGS=$ac_wine_try_cflags_saved
6925 fi
6926 eval ac_res=\$$as_ac_var
6927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6928 $as_echo "$ac_res" >&6; }
6929 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6930   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6931                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6932 else
6933   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6935 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6936 if eval \${$as_ac_var+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   ac_wine_try_cflags_saved=$CFLAGS
6940 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h.  */
6943 int main(int argc, char **argv) { return 0; }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946   eval "$as_ac_var=yes"
6947 else
6948   eval "$as_ac_var=no"
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951     conftest$ac_exeext conftest.$ac_ext
6952 CFLAGS=$ac_wine_try_cflags_saved
6953 fi
6954 eval ac_res=\$$as_ac_var
6955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6956 $as_echo "$ac_res" >&6; }
6957 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6958   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6959                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6960 fi
6961 fi
6962
6963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6964 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6965 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   ac_wine_try_cflags_saved=$CFLAGS
6969 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972 int main(int argc, char **argv) { return 0; }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975   ac_cv_cflags__Wl___enable_new_dtags=yes
6976 else
6977   ac_cv_cflags__Wl___enable_new_dtags=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980     conftest$ac_exeext conftest.$ac_ext
6981 CFLAGS=$ac_wine_try_cflags_saved
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6984 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6985 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6986   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6987 fi
6988
6989       case $host_cpu in
6990         *i[3456789]86* | x86_64)
6991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6992 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6993 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   ac_wine_try_cflags_saved=$CFLAGS
6997 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 int main(int argc, char **argv) { return 0; }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7004 else
7005   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008     conftest$ac_exeext conftest.$ac_ext
7009 CFLAGS=$ac_wine_try_cflags_saved
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7012 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7013 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7014   case $host_os in
7015                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7016                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7017                            esac
7018
7019 fi
7020           # Extract the first word of "prelink", so it can be a program name with args.
7021 set dummy prelink; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_path_PRELINK+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   case $PRELINK in
7028   [\\/]* | ?:[\\/]*)
7029   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7030   ;;
7031   *)
7032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in /sbin /usr/sbin $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044   done
7045 IFS=$as_save_IFS
7046
7047   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7048   ;;
7049 esac
7050 fi
7051 PRELINK=$ac_cv_path_PRELINK
7052 if test -n "$PRELINK"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7054 $as_echo "$PRELINK" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061           if test "x$PRELINK" = xfalse
7062           then
7063               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7064           fi
7065           ;;
7066       esac
7067
7068     else
7069       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7070 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7071 if ${ac_cv_c_dll_unixware+:} false; then :
7072   $as_echo_n "(cached) " >&6
7073 else
7074   ac_wine_try_cflags_saved=$CFLAGS
7075 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078 void myfunc() {}
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"; then :
7081   ac_cv_c_dll_unixware="yes"
7082 else
7083   ac_cv_c_dll_unixware="no"
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext \
7086     conftest$ac_exeext conftest.$ac_ext
7087 CFLAGS=$ac_wine_try_cflags_saved
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7090 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7091       if test "$ac_cv_c_dll_unixware" = "yes"
7092       then
7093         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7094         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7095
7096       else
7097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7098 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7099 if ${ac_cv_c_dll_hpux+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   ac_wine_try_cflags_saved=$CFLAGS
7103 CFLAGS="$CFLAGS -shared"
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h.  */
7106 void myfunc() {}
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109   ac_cv_c_dll_hpux="yes"
7110 else
7111   ac_cv_c_dll_hpux="no"
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext \
7114     conftest$ac_exeext conftest.$ac_ext
7115 CFLAGS=$ac_wine_try_cflags_saved
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7118 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7119         if test "$ac_cv_c_dll_hpux" = "yes"
7120         then
7121           LIBEXT="sl"
7122           DLLEXT=".sl"
7123           LDDLLFLAGS="-shared -fPIC"
7124           LDSHARED="\$(CC) -shared"
7125         fi
7126       fi
7127     fi
7128     ;;
7129 esac
7130
7131 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7132 enable_winequartz_drv=${enable_winequartz_drv:-no}
7133
7134 if test "$LIBEXT" = "a"; then
7135   as_fn_error $? "could not find a way to build shared libraries.
7136 It is currently not possible to build Wine without shared library
7137 (.so) support to allow transparent switch between .so and .dll files.
7138 If you are using Linux, you will need a newer binutils.
7139 " "$LINENO" 5
7140 fi
7141
7142 CROSSTEST_DISABLE=\#
7143
7144 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7145 then
7146     case "$host_cpu" in
7147   i[3456789]86*)
7148     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
7149                         mingw32-gcc" ;;
7150   x86_64)
7151     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 " ;;
7152   *)
7153     ac_prefix_list="" ;;
7154 esac
7155 for ac_prog in $ac_prefix_list
7156 do
7157   # Extract the first word of "$ac_prog", so it can be a program name with args.
7158 set dummy $ac_prog; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_CROSSCC+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$CROSSCC"; then
7165   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174     ac_cv_prog_CROSSCC="$ac_prog"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 CROSSCC=$ac_cv_prog_CROSSCC
7185 if test -n "$CROSSCC"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7187 $as_echo "$CROSSCC" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194   test -n "$CROSSCC" && break
7195 done
7196 test -n "$CROSSCC" || CROSSCC="false"
7197
7198     if test "$CROSSCC" != "false"
7199     then
7200         ac_save_CC="$CC"
7201         CC="$CROSSCC"
7202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7203 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7204         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h.  */
7206
7207 int
7208 main ()
7209 {
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7217 $as_echo "yes" >&6; }
7218                            set x $CROSSCC
7219                            shift
7220                            target=""
7221                            while test $# -ge 1
7222                            do
7223                                case "$1" in
7224                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7225                                esac
7226                                shift
7227                            done
7228                            if test -n "$target"
7229                            then
7230                                CROSSTEST_DISABLE=""
7231                                CROSSTARGET="$target"
7232
7233                            fi
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239         CC="$ac_save_CC"
7240     fi
7241 fi
7242
7243
7244 if test "$ac_cv_header_pthread_h" = "yes"
7245 then
7246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7247 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7248 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   ac_check_lib_save_LIBS=$LIBS
7252 LIBS="-lpthread  $LIBS"
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h.  */
7255
7256 /* Override any GCC internal prototype to avoid an error.
7257    Use char because int might match the return type of a GCC
7258    builtin and then its argument prototype would still apply.  */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 char pthread_create ();
7263 int
7264 main ()
7265 {
7266 return pthread_create ();
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272   ac_cv_lib_pthread_pthread_create=yes
7273 else
7274   ac_cv_lib_pthread_pthread_create=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext \
7277     conftest$ac_exeext conftest.$ac_ext
7278 LIBS=$ac_check_lib_save_LIBS
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7281 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7282 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7283   LIBPTHREAD="-lpthread"
7284
7285 fi
7286
7287 fi
7288 if test "x$LIBPTHREAD" = "x"; then :
7289   case "x$with_pthread" in
7290   xno) ;;
7291   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7292 Wine cannot support threads without libpthread.
7293 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7294 esac
7295 fi
7296
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7299 $as_echo_n "checking for X... " >&6; }
7300
7301
7302 # Check whether --with-x was given.
7303 if test "${with_x+set}" = set; then :
7304   withval=$with_x;
7305 fi
7306
7307 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7308 if test "x$with_x" = xno; then
7309   # The user explicitly disabled X.
7310   have_x=disabled
7311 else
7312   case $x_includes,$x_libraries in #(
7313     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7314     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   # One or both of the vars are not set, and there is no cached value.
7318 ac_x_includes=no ac_x_libraries=no
7319 rm -f -r conftest.dir
7320 if mkdir conftest.dir; then
7321   cd conftest.dir
7322   cat >Imakefile <<'_ACEOF'
7323 incroot:
7324         @echo incroot='${INCROOT}'
7325 usrlibdir:
7326         @echo usrlibdir='${USRLIBDIR}'
7327 libdir:
7328         @echo libdir='${LIBDIR}'
7329 _ACEOF
7330   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7331     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7332     for ac_var in incroot usrlibdir libdir; do
7333       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7334     done
7335     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7336     for ac_extension in a so sl dylib la dll; do
7337       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7338          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7339         ac_im_usrlibdir=$ac_im_libdir; break
7340       fi
7341     done
7342     # Screen out bogus values from the imake configuration.  They are
7343     # bogus both because they are the default anyway, and because
7344     # using them would break gcc on systems where it needs fixed includes.
7345     case $ac_im_incroot in
7346         /usr/include) ac_x_includes= ;;
7347         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7348     esac
7349     case $ac_im_usrlibdir in
7350         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7351         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7352     esac
7353   fi
7354   cd ..
7355   rm -f -r conftest.dir
7356 fi
7357
7358 # Standard set of common directories for X headers.
7359 # Check X11 before X11Rn because it is often a symlink to the current release.
7360 ac_x_header_dirs='
7361 /usr/X11/include
7362 /usr/X11R7/include
7363 /usr/X11R6/include
7364 /usr/X11R5/include
7365 /usr/X11R4/include
7366
7367 /usr/include/X11
7368 /usr/include/X11R7
7369 /usr/include/X11R6
7370 /usr/include/X11R5
7371 /usr/include/X11R4
7372
7373 /usr/local/X11/include
7374 /usr/local/X11R7/include
7375 /usr/local/X11R6/include
7376 /usr/local/X11R5/include
7377 /usr/local/X11R4/include
7378
7379 /usr/local/include/X11
7380 /usr/local/include/X11R7
7381 /usr/local/include/X11R6
7382 /usr/local/include/X11R5
7383 /usr/local/include/X11R4
7384
7385 /usr/X386/include
7386 /usr/x386/include
7387 /usr/XFree86/include/X11
7388
7389 /usr/include
7390 /usr/local/include
7391 /usr/unsupported/include
7392 /usr/athena/include
7393 /usr/local/x11r5/include
7394 /usr/lpp/Xamples/include
7395
7396 /usr/openwin/include
7397 /usr/openwin/share/include'
7398
7399 if test "$ac_x_includes" = no; then
7400   # Guess where to find include files, by looking for Xlib.h.
7401   # First, try using that file with no special directory specified.
7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h.  */
7404 #include <X11/Xlib.h>
7405 _ACEOF
7406 if ac_fn_c_try_cpp "$LINENO"; then :
7407   # We can compile using X headers with no special include directory.
7408 ac_x_includes=
7409 else
7410   for ac_dir in $ac_x_header_dirs; do
7411   if test -r "$ac_dir/X11/Xlib.h"; then
7412     ac_x_includes=$ac_dir
7413     break
7414   fi
7415 done
7416 fi
7417 rm -f conftest.err conftest.i conftest.$ac_ext
7418 fi # $ac_x_includes = no
7419
7420 if test "$ac_x_libraries" = no; then
7421   # Check for the libraries.
7422   # See if we find them without any special options.
7423   # Don't add to $LIBS permanently.
7424   ac_save_LIBS=$LIBS
7425   LIBS="-lX11 $LIBS"
7426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428 #include <X11/Xlib.h>
7429 int
7430 main ()
7431 {
7432 XrmInitialize ()
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"; then :
7438   LIBS=$ac_save_LIBS
7439 # We can link X programs with no special library path.
7440 ac_x_libraries=
7441 else
7442   LIBS=$ac_save_LIBS
7443 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7444 do
7445   # Don't even attempt the hair of trying to link an X program!
7446   for ac_extension in a so sl dylib la dll; do
7447     if test -r "$ac_dir/libX11.$ac_extension"; then
7448       ac_x_libraries=$ac_dir
7449       break 2
7450     fi
7451   done
7452 done
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext \
7455     conftest$ac_exeext conftest.$ac_ext
7456 fi # $ac_x_libraries = no
7457
7458 case $ac_x_includes,$ac_x_libraries in #(
7459   no,* | *,no | *\'*)
7460     # Didn't find X, or a directory has "'" in its name.
7461     ac_cv_have_x="have_x=no";; #(
7462   *)
7463     # Record where we found X for the cache.
7464     ac_cv_have_x="have_x=yes\
7465         ac_x_includes='$ac_x_includes'\
7466         ac_x_libraries='$ac_x_libraries'"
7467 esac
7468 fi
7469 ;; #(
7470     *) have_x=yes;;
7471   esac
7472   eval "$ac_cv_have_x"
7473 fi # $with_x != no
7474
7475 if test "$have_x" != yes; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7477 $as_echo "$have_x" >&6; }
7478   no_x=yes
7479 else
7480   # If each of the values was on the command line, it overrides each guess.
7481   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7482   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7483   # Update the cache value to reflect the command line values.
7484   ac_cv_have_x="have_x=yes\
7485         ac_x_includes='$x_includes'\
7486         ac_x_libraries='$x_libraries'"
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7488 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7489 fi
7490
7491 if test "$no_x" = yes; then
7492   # Not all programs may use this symbol, but it does not hurt to define it.
7493
7494 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7495
7496   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7497 else
7498   if test -n "$x_includes"; then
7499     X_CFLAGS="$X_CFLAGS -I$x_includes"
7500   fi
7501
7502   # It would also be nice to do this for all -L options, not just this one.
7503   if test -n "$x_libraries"; then
7504     X_LIBS="$X_LIBS -L$x_libraries"
7505     # For Solaris; some versions of Sun CC require a space after -R and
7506     # others require no space.  Words are not sufficient . . . .
7507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7508 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7509     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7510     ac_xsave_c_werror_flag=$ac_c_werror_flag
7511     ac_c_werror_flag=yes
7512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h.  */
7514
7515 int
7516 main ()
7517 {
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526        X_LIBS="$X_LIBS -R$x_libraries"
7527 else
7528   LIBS="$ac_xsave_LIBS -R $x_libraries"
7529        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531
7532 int
7533 main ()
7534 {
7535
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7543           X_LIBS="$X_LIBS -R $x_libraries"
7544 else
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7546 $as_echo "neither works" >&6; }
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext \
7549     conftest$ac_exeext conftest.$ac_ext
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext \
7552     conftest$ac_exeext conftest.$ac_ext
7553     ac_c_werror_flag=$ac_xsave_c_werror_flag
7554     LIBS=$ac_xsave_LIBS
7555   fi
7556
7557   # Check for system-dependent libraries X programs must link with.
7558   # Do this before checking for the system-independent R6 libraries
7559   # (-lICE), since we may need -lsocket or whatever for X linking.
7560
7561   if test "$ISC" = yes; then
7562     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7563   else
7564     # Martyn Johnson says this is needed for Ultrix, if the X
7565     # libraries were built with DECnet support.  And Karl Berry says
7566     # the Alpha needs dnet_stub (dnet does not exist).
7567     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h.  */
7570
7571 /* Override any GCC internal prototype to avoid an error.
7572    Use char because int might match the return type of a GCC
7573    builtin and then its argument prototype would still apply.  */
7574 #ifdef __cplusplus
7575 extern "C"
7576 #endif
7577 char XOpenDisplay ();
7578 int
7579 main ()
7580 {
7581 return XOpenDisplay ();
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_c_try_link "$LINENO"; then :
7587
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7590 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7591 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   ac_check_lib_save_LIBS=$LIBS
7595 LIBS="-ldnet  $LIBS"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h.  */
7598
7599 /* Override any GCC internal prototype to avoid an error.
7600    Use char because int might match the return type of a GCC
7601    builtin and then its argument prototype would still apply.  */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 char dnet_ntoa ();
7606 int
7607 main ()
7608 {
7609 return dnet_ntoa ();
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615   ac_cv_lib_dnet_dnet_ntoa=yes
7616 else
7617   ac_cv_lib_dnet_dnet_ntoa=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620     conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7624 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7625 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7626   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7627 fi
7628
7629     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7631 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7632 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-ldnet_stub  $LIBS"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h.  */
7639
7640 /* Override any GCC internal prototype to avoid an error.
7641    Use char because int might match the return type of a GCC
7642    builtin and then its argument prototype would still apply.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 char dnet_ntoa ();
7647 int
7648 main ()
7649 {
7650 return dnet_ntoa ();
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7657 else
7658   ac_cv_lib_dnet_stub_dnet_ntoa=no
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext \
7661     conftest$ac_exeext conftest.$ac_ext
7662 LIBS=$ac_check_lib_save_LIBS
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7665 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7666 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7667   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7668 fi
7669
7670     fi
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674     LIBS="$ac_xsave_LIBS"
7675
7676     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7677     # to get the SysV transport functions.
7678     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7679     # needs -lnsl.
7680     # The nsl library prevents programs from opening the X display
7681     # on Irix 5.2, according to T.E. Dickey.
7682     # The functions gethostbyname, getservbyname, and inet_addr are
7683     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7684     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7685 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7686
7687 fi
7688
7689     if test $ac_cv_func_gethostbyname = no; then
7690       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7691 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7692 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   ac_check_lib_save_LIBS=$LIBS
7696 LIBS="-lnsl  $LIBS"
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h.  */
7699
7700 /* Override any GCC internal prototype to avoid an error.
7701    Use char because int might match the return type of a GCC
7702    builtin and then its argument prototype would still apply.  */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char gethostbyname ();
7707 int
7708 main ()
7709 {
7710 return gethostbyname ();
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_link "$LINENO"; then :
7716   ac_cv_lib_nsl_gethostbyname=yes
7717 else
7718   ac_cv_lib_nsl_gethostbyname=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext \
7721     conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7725 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7726 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7727   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7728 fi
7729
7730       if test $ac_cv_lib_nsl_gethostbyname = no; then
7731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7732 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7733 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   ac_check_lib_save_LIBS=$LIBS
7737 LIBS="-lbsd  $LIBS"
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h.  */
7740
7741 /* Override any GCC internal prototype to avoid an error.
7742    Use char because int might match the return type of a GCC
7743    builtin and then its argument prototype would still apply.  */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char gethostbyname ();
7748 int
7749 main ()
7750 {
7751 return gethostbyname ();
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"; then :
7757   ac_cv_lib_bsd_gethostbyname=yes
7758 else
7759   ac_cv_lib_bsd_gethostbyname=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext \
7762     conftest$ac_exeext conftest.$ac_ext
7763 LIBS=$ac_check_lib_save_LIBS
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7766 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7767 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7768   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7769 fi
7770
7771       fi
7772     fi
7773
7774     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7775     # socket/setsockopt and other routines are undefined under SCO ODT
7776     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7777     # on later versions), says Simon Leinen: it contains gethostby*
7778     # variants that don't use the name server (or something).  -lsocket
7779     # must be given before -lnsl if both are needed.  We assume that
7780     # if connect needs -lnsl, so does gethostbyname.
7781     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7782 if test "x$ac_cv_func_connect" = xyes; then :
7783
7784 fi
7785
7786     if test $ac_cv_func_connect = no; then
7787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7788 $as_echo_n "checking for connect in -lsocket... " >&6; }
7789 if ${ac_cv_lib_socket_connect+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796
7797 /* Override any GCC internal prototype to avoid an error.
7798    Use char because int might match the return type of a GCC
7799    builtin and then its argument prototype would still apply.  */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 char connect ();
7804 int
7805 main ()
7806 {
7807 return connect ();
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 if ac_fn_c_try_link "$LINENO"; then :
7813   ac_cv_lib_socket_connect=yes
7814 else
7815   ac_cv_lib_socket_connect=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext \
7818     conftest$ac_exeext conftest.$ac_ext
7819 LIBS=$ac_check_lib_save_LIBS
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7822 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7823 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7824   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7825 fi
7826
7827     fi
7828
7829     # Guillermo Gomez says -lposix is necessary on A/UX.
7830     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7831 if test "x$ac_cv_func_remove" = xyes; then :
7832
7833 fi
7834
7835     if test $ac_cv_func_remove = no; then
7836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7837 $as_echo_n "checking for remove in -lposix... " >&6; }
7838 if ${ac_cv_lib_posix_remove+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   ac_check_lib_save_LIBS=$LIBS
7842 LIBS="-lposix  $LIBS"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h.  */
7845
7846 /* Override any GCC internal prototype to avoid an error.
7847    Use char because int might match the return type of a GCC
7848    builtin and then its argument prototype would still apply.  */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char remove ();
7853 int
7854 main ()
7855 {
7856 return remove ();
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862   ac_cv_lib_posix_remove=yes
7863 else
7864   ac_cv_lib_posix_remove=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867     conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7871 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7872 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7873   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7874 fi
7875
7876     fi
7877
7878     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7879     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7880 if test "x$ac_cv_func_shmat" = xyes; then :
7881
7882 fi
7883
7884     if test $ac_cv_func_shmat = no; then
7885       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7886 $as_echo_n "checking for shmat in -lipc... " >&6; }
7887 if ${ac_cv_lib_ipc_shmat+:} false; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lipc  $LIBS"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h.  */
7894
7895 /* Override any GCC internal prototype to avoid an error.
7896    Use char because int might match the return type of a GCC
7897    builtin and then its argument prototype would still apply.  */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char shmat ();
7902 int
7903 main ()
7904 {
7905 return shmat ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911   ac_cv_lib_ipc_shmat=yes
7912 else
7913   ac_cv_lib_ipc_shmat=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext \
7916     conftest$ac_exeext conftest.$ac_ext
7917 LIBS=$ac_check_lib_save_LIBS
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7920 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7921 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7922   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7923 fi
7924
7925     fi
7926   fi
7927
7928   # Check for libraries that X11R6 Xt/Xaw programs need.
7929   ac_save_LDFLAGS=$LDFLAGS
7930   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7931   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7932   # check for ICE first), but we must link in the order -lSM -lICE or
7933   # we get undefined symbols.  So assume we have SM if we have ICE.
7934   # These have to be linked with before -lX11, unlike the other
7935   # libraries we check for below, so use a different variable.
7936   # John Interrante, Karl Berry
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7938 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7939 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   ac_check_lib_save_LIBS=$LIBS
7943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946
7947 /* Override any GCC internal prototype to avoid an error.
7948    Use char because int might match the return type of a GCC
7949    builtin and then its argument prototype would still apply.  */
7950 #ifdef __cplusplus
7951 extern "C"
7952 #endif
7953 char IceConnectionNumber ();
7954 int
7955 main ()
7956 {
7957 return IceConnectionNumber ();
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_link "$LINENO"; then :
7963   ac_cv_lib_ICE_IceConnectionNumber=yes
7964 else
7965   ac_cv_lib_ICE_IceConnectionNumber=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext \
7968     conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7972 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7973 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7974   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7975 fi
7976
7977   LDFLAGS=$ac_save_LDFLAGS
7978
7979 fi
7980
7981
7982 if test "$have_x" = "yes"
7983 then
7984     XLIB="-lX11"
7985     ac_save_CPPFLAGS="$CPPFLAGS"
7986     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7987
7988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7989 $as_echo_n "checking for -lX11... " >&6; }
7990 if ${ac_cv_lib_soname_X11+:} false; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   ac_check_soname_save_LIBS=$LIBS
7994 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997
7998 /* Override any GCC internal prototype to avoid an error.
7999    Use char because int might match the return type of a GCC
8000    builtin and then its argument prototype would still apply.  */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char XCreateWindow ();
8005 int
8006 main ()
8007 {
8008 return XCreateWindow ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 if ac_fn_c_try_link "$LINENO"; then :
8014   case "$LIBEXT" in
8015     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8016     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'` ;;
8017     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8018   esac
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021     conftest$ac_exeext conftest.$ac_ext
8022   LIBS=$ac_check_soname_save_LIBS
8023 fi
8024 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8026 $as_echo "not found" >&6; }
8027
8028 else
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8030 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8031
8032 cat >>confdefs.h <<_ACEOF
8033 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8034 _ACEOF
8035
8036
8037 fi
8038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8039 $as_echo_n "checking for -lXext... " >&6; }
8040 if ${ac_cv_lib_soname_Xext+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   ac_check_soname_save_LIBS=$LIBS
8044 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h.  */
8047
8048 /* Override any GCC internal prototype to avoid an error.
8049    Use char because int might match the return type of a GCC
8050    builtin and then its argument prototype would still apply.  */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 char XextCreateExtension ();
8055 int
8056 main ()
8057 {
8058 return XextCreateExtension ();
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_link "$LINENO"; then :
8064   case "$LIBEXT" in
8065     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8066     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'` ;;
8067     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8068   esac
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext \
8071     conftest$ac_exeext conftest.$ac_ext
8072   LIBS=$ac_check_soname_save_LIBS
8073 fi
8074 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8076 $as_echo "not found" >&6; }
8077
8078 else
8079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8080 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8081
8082 cat >>confdefs.h <<_ACEOF
8083 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8084 _ACEOF
8085
8086        XLIB="-lXext $XLIB"
8087 fi
8088
8089         for ac_header in X11/Xlib.h \
8090                       X11/XKBlib.h \
8091                       X11/Xutil.h \
8092                       X11/Xcursor/Xcursor.h \
8093                       X11/extensions/shape.h \
8094                       X11/extensions/XInput.h \
8095                       X11/extensions/XInput2.h \
8096                       X11/extensions/XShm.h \
8097                       X11/extensions/Xcomposite.h \
8098                       X11/extensions/Xinerama.h \
8099                       X11/extensions/Xrandr.h \
8100                       X11/extensions/Xrender.h \
8101                       X11/extensions/xf86vmode.h \
8102                       X11/extensions/xf86vmproto.h
8103 do :
8104   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8106 # include <X11/Xlib.h>
8107 #endif
8108 #ifdef HAVE_X11_XUTIL_H
8109 # include <X11/Xutil.h>
8110 #endif
8111 "
8112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8113   cat >>confdefs.h <<_ACEOF
8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 _ACEOF
8116
8117 fi
8118
8119 done
8120
8121
8122                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8123         then
8124               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8125 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8126 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133
8134 /* Override any GCC internal prototype to avoid an error.
8135    Use char because int might match the return type of a GCC
8136    builtin and then its argument prototype would still apply.  */
8137 #ifdef __cplusplus
8138 extern "C"
8139 #endif
8140 char XkbQueryExtension ();
8141 int
8142 main ()
8143 {
8144 return XkbQueryExtension ();
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"; then :
8150   ac_cv_lib_X11_XkbQueryExtension=yes
8151 else
8152   ac_cv_lib_X11_XkbQueryExtension=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext \
8155     conftest$ac_exeext conftest.$ac_ext
8156 LIBS=$ac_check_lib_save_LIBS
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8159 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8160 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8161
8162 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8163
8164 fi
8165
8166         fi
8167
8168                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8169         then
8170             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8171 $as_echo_n "checking for -lXcursor... " >&6; }
8172 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   ac_check_soname_save_LIBS=$LIBS
8176 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h.  */
8179
8180 /* Override any GCC internal prototype to avoid an error.
8181    Use char because int might match the return type of a GCC
8182    builtin and then its argument prototype would still apply.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 char XcursorImageLoadCursor ();
8187 int
8188 main ()
8189 {
8190 return XcursorImageLoadCursor ();
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196   case "$LIBEXT" in
8197     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8198     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'` ;;
8199     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8200   esac
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext \
8203     conftest$ac_exeext conftest.$ac_ext
8204   LIBS=$ac_check_soname_save_LIBS
8205 fi
8206 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8208 $as_echo "not found" >&6; }
8209
8210 else
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8212 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8213
8214 cat >>confdefs.h <<_ACEOF
8215 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8216 _ACEOF
8217
8218
8219 fi
8220         fi
8221         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8222   case "x$with_xcursor" in
8223   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8224   xno) ;;
8225   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8226 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8227 esac
8228 fi
8229
8230                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8231         then
8232             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8233 $as_echo_n "checking for -lXi... " >&6; }
8234 if ${ac_cv_lib_soname_Xi+:} false; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   ac_check_soname_save_LIBS=$LIBS
8238 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h.  */
8241
8242 /* Override any GCC internal prototype to avoid an error.
8243    Use char because int might match the return type of a GCC
8244    builtin and then its argument prototype would still apply.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 char XOpenDevice ();
8249 int
8250 main ()
8251 {
8252 return XOpenDevice ();
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258   case "$LIBEXT" in
8259     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8260     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'` ;;
8261     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8262   esac
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext \
8265     conftest$ac_exeext conftest.$ac_ext
8266   LIBS=$ac_check_soname_save_LIBS
8267 fi
8268 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8270 $as_echo "not found" >&6; }
8271
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8274 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8278 _ACEOF
8279
8280
8281 fi
8282         fi
8283         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8284   case "x$with_xinput" in
8285   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8286   xno) ;;
8287   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8288 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8289 esac
8290 fi
8291
8292                 if test "x$ac_cv_lib_soname_Xi" != x
8293         then
8294             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8295   case "x$with_xinput2" in
8296   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8297   xno) ;;
8298   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8299 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8300 esac
8301 fi
8302         fi
8303
8304                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8305         then
8306               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8307 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8308 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   ac_check_lib_save_LIBS=$LIBS
8312 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h.  */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317    Use char because int might match the return type of a GCC
8318    builtin and then its argument prototype would still apply.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char XShmQueryExtension ();
8323 int
8324 main ()
8325 {
8326 return XShmQueryExtension ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332   ac_cv_lib_Xext_XShmQueryExtension=yes
8333 else
8334   ac_cv_lib_Xext_XShmQueryExtension=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext \
8337     conftest$ac_exeext conftest.$ac_ext
8338 LIBS=$ac_check_lib_save_LIBS
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8341 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8342 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8343
8344 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8345
8346 fi
8347
8348         fi
8349         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8350   case "x$with_xshm" in
8351   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8352   xno) ;;
8353   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8354 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8355 esac
8356 fi
8357
8358                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8359         then
8360               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8361 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8362 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h.  */
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371    Use char because int might match the return type of a GCC
8372    builtin and then its argument prototype would still apply.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char XShapeQueryExtension ();
8377 int
8378 main ()
8379 {
8380 return XShapeQueryExtension ();
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_link "$LINENO"; then :
8386   ac_cv_lib_Xext_XShapeQueryExtension=yes
8387 else
8388   ac_cv_lib_Xext_XShapeQueryExtension=no
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext \
8391     conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8395 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8396 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8397
8398 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8399
8400 fi
8401
8402         fi
8403         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8404   case "x$with_xshape" in
8405   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8406   xno) ;;
8407   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8408 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8409 esac
8410 fi
8411
8412                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8413         then
8414             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8415 $as_echo_n "checking for -lXxf86vm... " >&6; }
8416 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8417   $as_echo_n "(cached) " >&6
8418 else
8419   ac_check_soname_save_LIBS=$LIBS
8420 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h.  */
8423
8424 /* Override any GCC internal prototype to avoid an error.
8425    Use char because int might match the return type of a GCC
8426    builtin and then its argument prototype would still apply.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char XF86VidModeQueryExtension ();
8431 int
8432 main ()
8433 {
8434 return XF86VidModeQueryExtension ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"; then :
8440   case "$LIBEXT" in
8441     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8442     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'` ;;
8443     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8444   esac
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext \
8447     conftest$ac_exeext conftest.$ac_ext
8448   LIBS=$ac_check_soname_save_LIBS
8449 fi
8450 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8452 $as_echo "not found" >&6; }
8453
8454 else
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8456 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8457
8458 cat >>confdefs.h <<_ACEOF
8459 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8460 _ACEOF
8461
8462
8463 fi
8464         fi
8465         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8466   case "x$with_xxf86vm" in
8467   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8468   xno) ;;
8469   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8470 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8471 esac
8472 fi
8473
8474                 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"
8475         then
8476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8477 $as_echo_n "checking for -lXrender... " >&6; }
8478 if ${ac_cv_lib_soname_Xrender+:} false; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   ac_check_soname_save_LIBS=$LIBS
8482 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485
8486 /* Override any GCC internal prototype to avoid an error.
8487    Use char because int might match the return type of a GCC
8488    builtin and then its argument prototype would still apply.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 char XRenderQueryExtension ();
8493 int
8494 main ()
8495 {
8496 return XRenderQueryExtension ();
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502   case "$LIBEXT" in
8503     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8504     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'` ;;
8505     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8506   esac
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510   LIBS=$ac_check_soname_save_LIBS
8511 fi
8512 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8514 $as_echo "not found" >&6; }
8515
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8518 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8522 _ACEOF
8523
8524        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8525 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8526 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   ac_check_lib_save_LIBS=$LIBS
8530 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h.  */
8533
8534 /* Override any GCC internal prototype to avoid an error.
8535    Use char because int might match the return type of a GCC
8536    builtin and then its argument prototype would still apply.  */
8537 #ifdef __cplusplus
8538 extern "C"
8539 #endif
8540 char XRenderSetPictureTransform ();
8541 int
8542 main ()
8543 {
8544 return XRenderSetPictureTransform ();
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_link "$LINENO"; then :
8550   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8551 else
8552   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8553 fi
8554 rm -f core conftest.err conftest.$ac_objext \
8555     conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8559 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8560 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8561
8562 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8563
8564 fi
8565
8566                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8567 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8568 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8569   $as_echo_n "(cached) " >&6
8570 else
8571   ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h.  */
8575
8576 /* Override any GCC internal prototype to avoid an error.
8577    Use char because int might match the return type of a GCC
8578    builtin and then its argument prototype would still apply.  */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 char XRenderCreateLinearGradient ();
8583 int
8584 main ()
8585 {
8586 return XRenderCreateLinearGradient ();
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"; then :
8592   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8593 else
8594   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext \
8597     conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8601 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8602 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8603
8604 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8605
8606 fi
8607
8608 fi
8609
8610         fi
8611         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8612   case "x$with_xrender" in
8613   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8614   xno) ;;
8615   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8616 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8617 esac
8618 fi
8619
8620                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8621         then
8622                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h.  */
8624 #include <X11/Xlib.h>
8625 #include <X11/extensions/Xrandr.h>
8626 int
8627 main ()
8628 {
8629 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"; then :
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8636 $as_echo_n "checking for -lXrandr... " >&6; }
8637 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   ac_check_soname_save_LIBS=$LIBS
8641 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644
8645 /* Override any GCC internal prototype to avoid an error.
8646    Use char because int might match the return type of a GCC
8647    builtin and then its argument prototype would still apply.  */
8648 #ifdef __cplusplus
8649 extern "C"
8650 #endif
8651 char XRRQueryExtension ();
8652 int
8653 main ()
8654 {
8655 return XRRQueryExtension ();
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661   case "$LIBEXT" in
8662     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8663     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'` ;;
8664     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8665   esac
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668     conftest$ac_exeext conftest.$ac_ext
8669   LIBS=$ac_check_soname_save_LIBS
8670 fi
8671 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8673 $as_echo "not found" >&6; }
8674
8675 else
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8677 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8678
8679 cat >>confdefs.h <<_ACEOF
8680 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8681 _ACEOF
8682
8683        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685 #include <X11/extensions/Xrandr.h>
8686 int
8687 main ()
8688 {
8689 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695
8696 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8697
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703         fi
8704         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8705   case "x$with_xrandr" in
8706   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8707   xno) ;;
8708   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8709 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8710 esac
8711 fi
8712
8713                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8714         then
8715                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h.  */
8717 #include <X11/Xlib.h>
8718 #include <X11/extensions/Xinerama.h>
8719 int
8720 main ()
8721 {
8722 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_compile "$LINENO"; then :
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8729 $as_echo_n "checking for -lXinerama... " >&6; }
8730 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   ac_check_soname_save_LIBS=$LIBS
8734 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h.  */
8737
8738 /* Override any GCC internal prototype to avoid an error.
8739    Use char because int might match the return type of a GCC
8740    builtin and then its argument prototype would still apply.  */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 char XineramaQueryScreens ();
8745 int
8746 main ()
8747 {
8748 return XineramaQueryScreens ();
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754   case "$LIBEXT" in
8755     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8756     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'` ;;
8757     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8758   esac
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext \
8761     conftest$ac_exeext conftest.$ac_ext
8762   LIBS=$ac_check_soname_save_LIBS
8763 fi
8764 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8766 $as_echo "not found" >&6; }
8767
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8770 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8771
8772 cat >>confdefs.h <<_ACEOF
8773 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8774 _ACEOF
8775
8776
8777 fi
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780         fi
8781         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8782   case "x$with_xinerama" in
8783   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8784   xno) ;;
8785   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8786 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8787 esac
8788 fi
8789
8790                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8791         then
8792             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8793 $as_echo_n "checking for -lXcomposite... " >&6; }
8794 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   ac_check_soname_save_LIBS=$LIBS
8798 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801
8802 /* Override any GCC internal prototype to avoid an error.
8803    Use char because int might match the return type of a GCC
8804    builtin and then its argument prototype would still apply.  */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char XCompositeRedirectWindow ();
8809 int
8810 main ()
8811 {
8812 return XCompositeRedirectWindow ();
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818   case "$LIBEXT" in
8819     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8820     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'` ;;
8821     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8822   esac
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825     conftest$ac_exeext conftest.$ac_ext
8826   LIBS=$ac_check_soname_save_LIBS
8827 fi
8828 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8830 $as_echo "not found" >&6; }
8831
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8834 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8835
8836 cat >>confdefs.h <<_ACEOF
8837 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8838 _ACEOF
8839
8840
8841 fi
8842         fi
8843         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8844   case "x$with_xcomposite" in
8845   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8846   xno) ;;
8847   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8848 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8849 esac
8850 fi
8851
8852                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8853 #include <X11/Xlib.h>
8854 #endif
8855 "
8856 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8857
8858 cat >>confdefs.h <<_ACEOF
8859 #define HAVE_XICCALLBACK_CALLBACK 1
8860 _ACEOF
8861
8862
8863 fi
8864 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8865 #include <X11/Xlib.h>
8866 #endif
8867 "
8868 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8869
8870 cat >>confdefs.h <<_ACEOF
8871 #define HAVE_XEVENT_XCOOKIE 1
8872 _ACEOF
8873
8874
8875 fi
8876
8877
8878
8879         opengl_msg=""
8880     if test "x$with_opengl" != "xno"
8881     then
8882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8883 $as_echo_n "checking for -lGL... " >&6; }
8884 if ${ac_cv_lib_soname_GL+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   ac_check_soname_save_LIBS=$LIBS
8888 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h.  */
8891
8892 /* Override any GCC internal prototype to avoid an error.
8893    Use char because int might match the return type of a GCC
8894    builtin and then its argument prototype would still apply.  */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 char glXCreateContext ();
8899 int
8900 main ()
8901 {
8902 return glXCreateContext ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 if ac_fn_c_try_link "$LINENO"; then :
8908   case "$LIBEXT" in
8909     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8910     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'` ;;
8911     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8912   esac
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext \
8915     conftest$ac_exeext conftest.$ac_ext
8916   LIBS=$ac_check_soname_save_LIBS
8917 fi
8918 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8920 $as_echo "not found" >&6; }
8921        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8922 $as_echo_n "checking for -lGL... " >&6; }
8923 if ${ac_cv_lib_soname_GL+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   ac_check_soname_save_LIBS=$LIBS
8927 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"
8928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930
8931 /* Override any GCC internal prototype to avoid an error.
8932    Use char because int might match the return type of a GCC
8933    builtin and then its argument prototype would still apply.  */
8934 #ifdef __cplusplus
8935 extern "C"
8936 #endif
8937 char glXCreateContext ();
8938 int
8939 main ()
8940 {
8941 return glXCreateContext ();
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947   case "$LIBEXT" in
8948     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8949     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'` ;;
8950     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8951   esac
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext \
8954     conftest$ac_exeext conftest.$ac_ext
8955   LIBS=$ac_check_soname_save_LIBS
8956 fi
8957 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8959 $as_echo "not found" >&6; }
8960        if test -f /usr/X11R6/lib/libGL.a
8961                             then
8962                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8963 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8964                             else
8965                                 opengl_msg="No OpenGL library found on this system."
8966                             fi
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8969 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8973 _ACEOF
8974
8975        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"
8976 fi
8977 else
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8979 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8980
8981 cat >>confdefs.h <<_ACEOF
8982 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8983 _ACEOF
8984
8985        OPENGL_LIBS="-lGL"
8986 fi
8987         if test "x$with_glu" != "xno"
8988         then
8989             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
8990 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
8991 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h.  */
8998
8999 /* Override any GCC internal prototype to avoid an error.
9000    Use char because int might match the return type of a GCC
9001    builtin and then its argument prototype would still apply.  */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 char gluLookAt ();
9006 int
9007 main ()
9008 {
9009 return gluLookAt ();
9010   ;
9011   return 0;
9012 }
9013 _ACEOF
9014 if ac_fn_c_try_link "$LINENO"; then :
9015   ac_cv_lib_GLU_gluLookAt=yes
9016 else
9017   ac_cv_lib_GLU_gluLookAt=no
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext \
9020     conftest$ac_exeext conftest.$ac_ext
9021 LIBS=$ac_check_lib_save_LIBS
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9024 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9025 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9026   :
9027 fi
9028
9029             if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9030   case "x$with_glu" in
9031   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9032   xno) ;;
9033   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9034 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9035 esac
9036 fi
9037         fi
9038
9039         if test "x$with_osmesa" != "xno"
9040         then
9041             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9042 $as_echo_n "checking for -lOSMesa... " >&6; }
9043 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   ac_check_soname_save_LIBS=$LIBS
9047 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050
9051 /* Override any GCC internal prototype to avoid an error.
9052    Use char because int might match the return type of a GCC
9053    builtin and then its argument prototype would still apply.  */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char glAccum ();
9058 int
9059 main ()
9060 {
9061 return glAccum ();
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067   case "$LIBEXT" in
9068     dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9069     dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9070     *) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9071   esac
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext \
9074     conftest$ac_exeext conftest.$ac_ext
9075   LIBS=$ac_check_soname_save_LIBS
9076 fi
9077 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9079 $as_echo "not found" >&6; }
9080
9081 else
9082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9083 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9087 _ACEOF
9088
9089
9090 fi
9091             if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9092   case "x$with_osmesa" in
9093   x)   as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9094   xno) ;;
9095   *)   as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9096 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9097 esac
9098 fi
9099         fi
9100     fi
9101     if test -n "$opengl_msg"; then :
9102   case "x$with_opengl" in
9103   x)   as_fn_append wine_warnings "|$opengl_msg
9104 OpenGL and Direct3D won't be supported." ;;
9105   xno) ;;
9106   *)   as_fn_error $? "$opengl_msg
9107 OpenGL and Direct3D won't be supported.
9108 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9109 esac
9110 fi
9111
9112     CPPFLAGS="$ac_save_CPPFLAGS"
9113 else
9114     XLIB=""
9115     X_CFLAGS=""
9116     X_LIBS=""
9117     enable_winex11_drv=${enable_winex11_drv:-no}
9118 fi
9119 if test "x$XLIB" = "x"; then :
9120   case "x$with_x" in
9121   xno) ;;
9122   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9123 without X support, which probably isn't what you want. You will need
9124 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9125 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9126 esac
9127 fi
9128
9129 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9130
9131 if test "$ac_cv_header_CL_cl_h" = "yes"
9132 then
9133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9134 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9135 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-lOpenCL  $LIBS"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h.  */
9142
9143 /* Override any GCC internal prototype to avoid an error.
9144    Use char because int might match the return type of a GCC
9145    builtin and then its argument prototype would still apply.  */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 char clGetPlatformInfo ();
9150 int
9151 main ()
9152 {
9153 return clGetPlatformInfo ();
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_link "$LINENO"; then :
9159   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9160 else
9161   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext \
9164     conftest$ac_exeext conftest.$ac_ext
9165 LIBS=$ac_check_lib_save_LIBS
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9168 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9169 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9170   LIBOPENCL="-lOpenCL"
9171
9172 fi
9173
9174 fi
9175 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9176   case "x$with_opencl" in
9177   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9178   xno) ;;
9179   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9180 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9181 esac
9182 fi
9183 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9184
9185
9186 XML2LIBS=""
9187
9188 XML2INCL=""
9189
9190 XSLTINCL=""
9191
9192 if test "x$with_xml" != "xno"
9193 then
9194     ac_save_CPPFLAGS="$CPPFLAGS"
9195     if test "$PKG_CONFIG" != "false"
9196     then
9197         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9198         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9199     else
9200         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9201         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9202     fi
9203     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9204     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9205 do :
9206   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9207 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9209   cat >>confdefs.h <<_ACEOF
9210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 _ACEOF
9212
9213 fi
9214
9215 done
9216
9217     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"
9218     then
9219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9220 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9221 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   ac_check_lib_save_LIBS=$LIBS
9225 LIBS="-lxml2 $ac_xml_libs $LIBS"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228
9229 /* Override any GCC internal prototype to avoid an error.
9230    Use char because int might match the return type of a GCC
9231    builtin and then its argument prototype would still apply.  */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 char xmlParseMemory ();
9236 int
9237 main ()
9238 {
9239 return xmlParseMemory ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245   ac_cv_lib_xml2_xmlParseMemory=yes
9246 else
9247   ac_cv_lib_xml2_xmlParseMemory=no
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext \
9250     conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_lib_save_LIBS
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9254 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9255 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9256
9257 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9258
9259              XML2LIBS="$ac_xml_libs"
9260              XML2INCL="$ac_xml_cflags"
9261 fi
9262
9263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9264 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9265 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-lxml2 $ac_xml_libs $LIBS"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h.  */
9272
9273 /* Override any GCC internal prototype to avoid an error.
9274    Use char because int might match the return type of a GCC
9275    builtin and then its argument prototype would still apply.  */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char xmlReadMemory ();
9280 int
9281 main ()
9282 {
9283 return xmlReadMemory ();
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289   ac_cv_lib_xml2_xmlReadMemory=yes
9290 else
9291   ac_cv_lib_xml2_xmlReadMemory=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294     conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9296 fi
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9298 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9299 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9300
9301 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9302
9303 fi
9304
9305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9306 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9307 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lxml2 $ac_xml_libs $LIBS"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h.  */
9314
9315 /* Override any GCC internal prototype to avoid an error.
9316    Use char because int might match the return type of a GCC
9317    builtin and then its argument prototype would still apply.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char xmlNewDocPI ();
9322 int
9323 main ()
9324 {
9325 return xmlNewDocPI ();
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331   ac_cv_lib_xml2_xmlNewDocPI=yes
9332 else
9333   ac_cv_lib_xml2_xmlNewDocPI=no
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext \
9336     conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9338 fi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9340 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9341 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9342
9343 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9344
9345 fi
9346
9347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9348 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9349 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lxml2 $ac_xml_libs $LIBS"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h.  */
9356
9357 /* Override any GCC internal prototype to avoid an error.
9358    Use char because int might match the return type of a GCC
9359    builtin and then its argument prototype would still apply.  */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char xmlSchemaSetParserStructuredErrors ();
9364 int
9365 main ()
9366 {
9367 return xmlSchemaSetParserStructuredErrors ();
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9374 else
9375   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378     conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9382 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9383 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9384
9385 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9386
9387 fi
9388
9389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9390 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9391 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9392   $as_echo_n "(cached) " >&6
9393 else
9394   ac_check_lib_save_LIBS=$LIBS
9395 LIBS="-lxml2 $ac_xml_libs $LIBS"
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h.  */
9398
9399 /* Override any GCC internal prototype to avoid an error.
9400    Use char because int might match the return type of a GCC
9401    builtin and then its argument prototype would still apply.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char xmlSchemaSetValidStructuredErrors ();
9406 int
9407 main ()
9408 {
9409 return xmlSchemaSetValidStructuredErrors ();
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9416 else
9417   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext \
9420     conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9424 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9425 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9426
9427 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9428
9429 fi
9430
9431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9432 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9433 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9434   $as_echo_n "(cached) " >&6
9435 else
9436   ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-lxml2 $ac_xml_libs $LIBS"
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h.  */
9440
9441 /* Override any GCC internal prototype to avoid an error.
9442    Use char because int might match the return type of a GCC
9443    builtin and then its argument prototype would still apply.  */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 char xmlFirstElementChild ();
9448 int
9449 main ()
9450 {
9451 return xmlFirstElementChild ();
9452   ;
9453   return 0;
9454 }
9455 _ACEOF
9456 if ac_fn_c_try_link "$LINENO"; then :
9457   ac_cv_lib_xml2_xmlFirstElementChild=yes
9458 else
9459   ac_cv_lib_xml2_xmlFirstElementChild=no
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext \
9462     conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9466 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9467 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9468
9469 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9470
9471 fi
9472
9473         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9474 "
9475 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9476
9477 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9478
9479 fi
9480
9481     fi
9482     CPPFLAGS="$ac_save_CPPFLAGS"
9483 fi
9484 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9485   case "x$with_xml" in
9486   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9487   xno) ;;
9488   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9489 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9490 esac
9491 fi
9492
9493 if test "x$with_xslt" != "xno"
9494 then
9495     if test "$PKG_CONFIG" != "false"
9496     then
9497         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9498         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9499     else
9500         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9501         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9502     fi
9503     ac_save_CPPFLAGS="$CPPFLAGS"
9504     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9505     for ac_header in libxslt/pattern.h libxslt/transform.h
9506 do :
9507   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9509 # include <libxslt/pattern.h>
9510 #endif
9511 "
9512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9513   cat >>confdefs.h <<_ACEOF
9514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9515 _ACEOF
9516
9517 fi
9518
9519 done
9520
9521     CPPFLAGS="$ac_save_CPPFLAGS"
9522     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9523     then
9524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9525 $as_echo_n "checking for -lxslt... " >&6; }
9526 if ${ac_cv_lib_soname_xslt+:} false; then :
9527   $as_echo_n "(cached) " >&6
9528 else
9529   ac_check_soname_save_LIBS=$LIBS
9530 LIBS="-lxslt $ac_xslt_libs $LIBS"
9531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h.  */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535    Use char because int might match the return type of a GCC
9536    builtin and then its argument prototype would still apply.  */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char xsltCompilePattern ();
9541 int
9542 main ()
9543 {
9544 return xsltCompilePattern ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550   case "$LIBEXT" in
9551     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9552     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'` ;;
9553     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9554   esac
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557     conftest$ac_exeext conftest.$ac_ext
9558   LIBS=$ac_check_soname_save_LIBS
9559 fi
9560 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9562 $as_echo "not found" >&6; }
9563
9564 else
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9566 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9567
9568 cat >>confdefs.h <<_ACEOF
9569 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9570 _ACEOF
9571
9572        XSLTINCL="$ac_xslt_cflags"
9573 fi
9574     fi
9575 fi
9576 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9577   case "x$with_xslt" in
9578   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9579   xno) ;;
9580   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9581 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9582 esac
9583 fi
9584
9585 if test "x$with_dbus" != "xno"
9586 then
9587     ac_save_CPPFLAGS="$CPPFLAGS"
9588     if test "$PKG_CONFIG" != "false"
9589     then
9590         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9591         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9592         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9593     fi
9594     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9595 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9597 $as_echo_n "checking for -ldbus-1... " >&6; }
9598 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   ac_check_soname_save_LIBS=$LIBS
9602 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char dbus_connection_close ();
9613 int
9614 main ()
9615 {
9616 return dbus_connection_close ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622   case "$LIBEXT" in
9623     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9624     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'` ;;
9625     *) 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'` ;;
9626   esac
9627 fi
9628 rm -f core conftest.err conftest.$ac_objext \
9629     conftest$ac_exeext conftest.$ac_ext
9630   LIBS=$ac_check_soname_save_LIBS
9631 fi
9632 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9634 $as_echo "not found" >&6; }
9635
9636 else
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9638 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9639
9640 cat >>confdefs.h <<_ACEOF
9641 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9642 _ACEOF
9643
9644        DBUSINCL="$ac_dbus_cflags"
9645
9646 fi
9647 fi
9648
9649
9650     CPPFLAGS="$ac_save_CPPFLAGS"
9651 fi
9652 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9653                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9654   case "x$with_dbus" in
9655   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9656   xno) ;;
9657   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9658 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9659 esac
9660 fi
9661
9662 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9663 then
9664     ac_save_CPPFLAGS="$CPPFLAGS"
9665     if test "$PKG_CONFIG" != "false"
9666     then
9667         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9668         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9669         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9670     fi
9671     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9672 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9674 $as_echo_n "checking for -lhal... " >&6; }
9675 if ${ac_cv_lib_soname_hal+:} false; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   ac_check_soname_save_LIBS=$LIBS
9679 LIBS="-lhal $ac_hal_libs $LIBS"
9680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h.  */
9682
9683 /* Override any GCC internal prototype to avoid an error.
9684    Use char because int might match the return type of a GCC
9685    builtin and then its argument prototype would still apply.  */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char libhal_ctx_new ();
9690 int
9691 main ()
9692 {
9693 return libhal_ctx_new ();
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699   case "$LIBEXT" in
9700     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9701     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'` ;;
9702     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9703   esac
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext \
9706     conftest$ac_exeext conftest.$ac_ext
9707   LIBS=$ac_check_soname_save_LIBS
9708 fi
9709 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9711 $as_echo "not found" >&6; }
9712
9713 else
9714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9715 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9716
9717 cat >>confdefs.h <<_ACEOF
9718 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9719 _ACEOF
9720
9721        HALINCL="$ac_hal_cflags"
9722
9723 fi
9724 fi
9725
9726
9727     CPPFLAGS="$ac_save_CPPFLAGS"
9728     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9729                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9730   case "x$with_hal" in
9731   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9732   xno) ;;
9733   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9734 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9735 esac
9736 fi
9737 fi
9738
9739 if test "x$with_gnutls" != "xno"
9740 then
9741     ac_save_CPPFLAGS="$CPPFLAGS"
9742     if test "$PKG_CONFIG" != "false"
9743     then
9744         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9745         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9746         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9747     fi
9748     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9749 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h.  */
9752 #include <gnutls/gnutls.h>
9753 int
9754 main ()
9755 {
9756 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9763 $as_echo_n "checking for -lgnutls... " >&6; }
9764 if ${ac_cv_lib_soname_gnutls+:} false; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   ac_check_soname_save_LIBS=$LIBS
9768 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h.  */
9771
9772 /* Override any GCC internal prototype to avoid an error.
9773    Use char because int might match the return type of a GCC
9774    builtin and then its argument prototype would still apply.  */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 char gnutls_global_init ();
9779 int
9780 main ()
9781 {
9782 return gnutls_global_init ();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788   case "$LIBEXT" in
9789     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9790     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'` ;;
9791     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9792   esac
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext \
9795     conftest$ac_exeext conftest.$ac_ext
9796   LIBS=$ac_check_soname_save_LIBS
9797 fi
9798 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9800 $as_echo "not found" >&6; }
9801
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9804 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9805
9806 cat >>confdefs.h <<_ACEOF
9807 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9808 _ACEOF
9809
9810        GNUTLSINCL="$ac_gnutls_cflags"
9811
9812 fi
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 fi
9816
9817
9818     CPPFLAGS="$ac_save_CPPFLAGS"
9819 fi
9820 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9821   case "x$with_gnutls" in
9822   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9823   xno) ;;
9824   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9825 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9826 esac
9827 fi
9828
9829 CURSESLIBS=""
9830 if test "$ac_cv_header_ncurses_h" = "yes"
9831 then
9832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9833 $as_echo_n "checking for -lncurses... " >&6; }
9834 if ${ac_cv_lib_soname_ncurses+:} false; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   ac_check_soname_save_LIBS=$LIBS
9838 LIBS="-lncurses  $LIBS"
9839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h.  */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843    Use char because int might match the return type of a GCC
9844    builtin and then its argument prototype would still apply.  */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char waddch ();
9849 int
9850 main ()
9851 {
9852 return waddch ();
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858   case "$LIBEXT" in
9859     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9860     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'` ;;
9861     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9862   esac
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext \
9865     conftest$ac_exeext conftest.$ac_ext
9866   LIBS=$ac_check_soname_save_LIBS
9867 fi
9868 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9870 $as_echo "not found" >&6; }
9871
9872 else
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9874 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9878 _ACEOF
9879
9880        CURSESLIBS="-lncurses"
9881 fi
9882 elif test "$ac_cv_header_curses_h" = "yes"
9883 then
9884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9885 $as_echo_n "checking for -lcurses... " >&6; }
9886 if ${ac_cv_lib_soname_curses+:} false; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   ac_check_soname_save_LIBS=$LIBS
9890 LIBS="-lcurses  $LIBS"
9891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h.  */
9893
9894 /* Override any GCC internal prototype to avoid an error.
9895    Use char because int might match the return type of a GCC
9896    builtin and then its argument prototype would still apply.  */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 char waddch ();
9901 int
9902 main ()
9903 {
9904 return waddch ();
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 if ac_fn_c_try_link "$LINENO"; then :
9910   case "$LIBEXT" in
9911     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9912     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'` ;;
9913     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9914   esac
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext \
9917     conftest$ac_exeext conftest.$ac_ext
9918   LIBS=$ac_check_soname_save_LIBS
9919 fi
9920 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9922 $as_echo "not found" >&6; }
9923
9924 else
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9926 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9930 _ACEOF
9931
9932        CURSESLIBS="-lcurses"
9933 fi
9934 fi
9935 ac_save_LIBS="$LIBS"
9936 LIBS="$LIBS $CURSESLIBS"
9937 for ac_func in mousemask
9938 do :
9939   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9940 if test "x$ac_cv_func_mousemask" = xyes; then :
9941   cat >>confdefs.h <<_ACEOF
9942 #define HAVE_MOUSEMASK 1
9943 _ACEOF
9944
9945 fi
9946 done
9947
9948 LIBS="$ac_save_LIBS"
9949 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9950   case "x$with_curses" in
9951   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9952   xno) ;;
9953   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9954 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9955 esac
9956 fi
9957
9958 if test "x$with_sane" != "xno"
9959 then
9960     ac_save_CPPFLAGS="$CPPFLAGS"
9961     # Extract the first word of "sane-config", so it can be a program name with args.
9962 set dummy sane-config; ac_word=$2
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if ${ac_cv_prog_sane_devel+:} false; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   if test -n "$sane_devel"; then
9969   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9970 else
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976     for ac_exec_ext in '' $ac_executable_extensions; do
9977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978     ac_cv_prog_sane_devel="sane-config"
9979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983   done
9984 IFS=$as_save_IFS
9985
9986   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9987 fi
9988 fi
9989 sane_devel=$ac_cv_prog_sane_devel
9990 if test -n "$sane_devel"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9992 $as_echo "$sane_devel" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997
9998
9999     if test "$sane_devel" != "no"
10000     then
10001         ac_sane_incl="`$sane_devel --cflags`"
10002         ac_sane_libs="`$sane_devel --ldflags`"
10003         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10004     fi
10005     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10008 $as_echo_n "checking for -lsane... " >&6; }
10009 if ${ac_cv_lib_soname_sane+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   ac_check_soname_save_LIBS=$LIBS
10013 LIBS="-lsane $ac_sane_libs $LIBS"
10014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018    Use char because int might match the return type of a GCC
10019    builtin and then its argument prototype would still apply.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char sane_init ();
10024 int
10025 main ()
10026 {
10027 return sane_init ();
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033   case "$LIBEXT" in
10034     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10035     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'` ;;
10036     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10037   esac
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext \
10040     conftest$ac_exeext conftest.$ac_ext
10041   LIBS=$ac_check_soname_save_LIBS
10042 fi
10043 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10045 $as_echo "not found" >&6; }
10046
10047 else
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10049 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10050
10051 cat >>confdefs.h <<_ACEOF
10052 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10053 _ACEOF
10054
10055        SANEINCL="$ac_sane_incl"
10056
10057 fi
10058 fi
10059
10060
10061     CPPFLAGS="$ac_save_CPPFLAGS"
10062 fi
10063 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10064   case "x$with_sane" in
10065   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10066   xno) ;;
10067   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10068 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10069 esac
10070 fi
10071
10072 if test "x$with_v4l" != "xno"
10073 then
10074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10075 $as_echo_n "checking for -lv4l1... " >&6; }
10076 if ${ac_cv_lib_soname_v4l1+:} false; then :
10077   $as_echo_n "(cached) " >&6
10078 else
10079   ac_check_soname_save_LIBS=$LIBS
10080 LIBS="-lv4l1  $LIBS"
10081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h.  */
10083
10084 /* Override any GCC internal prototype to avoid an error.
10085    Use char because int might match the return type of a GCC
10086    builtin and then its argument prototype would still apply.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char v4l1_open ();
10091 int
10092 main ()
10093 {
10094 return v4l1_open ();
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100   case "$LIBEXT" in
10101     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10102     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'` ;;
10103     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10104   esac
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107     conftest$ac_exeext conftest.$ac_ext
10108   LIBS=$ac_check_soname_save_LIBS
10109 fi
10110 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10112 $as_echo "not found" >&6; }
10113
10114 else
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10116 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10117
10118 cat >>confdefs.h <<_ACEOF
10119 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10120 _ACEOF
10121
10122
10123 fi
10124 fi
10125 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10126   case "x$with_v4l" in
10127   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10128   xno) ;;
10129   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10130 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10131 esac
10132 fi
10133
10134 if test "x$with_gphoto" != "xno"
10135 then
10136     ac_save_CPPFLAGS="$CPPFLAGS"
10137     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10138 set dummy gphoto2-config; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   if test -n "$gphoto2_devel"; then
10145   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10149 do
10150   IFS=$as_save_IFS
10151   test -z "$as_dir" && as_dir=.
10152     for ac_exec_ext in '' $ac_executable_extensions; do
10153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154     ac_cv_prog_gphoto2_devel="gphoto2-config"
10155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156     break 2
10157   fi
10158 done
10159   done
10160 IFS=$as_save_IFS
10161
10162   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10163 fi
10164 fi
10165 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10166 if test -n "$gphoto2_devel"; then
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10168 $as_echo "$gphoto2_devel" >&6; }
10169 else
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10172 fi
10173
10174
10175     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10176 set dummy gphoto2-port-config; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   if test -n "$gphoto2port_devel"; then
10183   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10187 do
10188   IFS=$as_save_IFS
10189   test -z "$as_dir" && as_dir=.
10190     for ac_exec_ext in '' $ac_executable_extensions; do
10191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194     break 2
10195   fi
10196 done
10197   done
10198 IFS=$as_save_IFS
10199
10200   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10201 fi
10202 fi
10203 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10204 if test -n "$gphoto2port_devel"; then
10205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10206 $as_echo "$gphoto2port_devel" >&6; }
10207 else
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10210 fi
10211
10212
10213     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10214     then
10215         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10216         ac_gphoto2_libs=""
10217         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10218         do
10219             case "$i" in
10220             -L/usr/lib|-L/usr/lib64) ;;
10221             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10222             esac
10223         done
10224         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10225     fi
10226     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10227     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10228 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10230 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10231 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h.  */
10238
10239 /* Override any GCC internal prototype to avoid an error.
10240    Use char because int might match the return type of a GCC
10241    builtin and then its argument prototype would still apply.  */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 char gp_camera_new ();
10246 int
10247 main ()
10248 {
10249 return gp_camera_new ();
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255   ac_cv_lib_gphoto2_gp_camera_new=yes
10256 else
10257   ac_cv_lib_gphoto2_gp_camera_new=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260     conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10264 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10265 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10266
10267 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10268
10269                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10270
10271                                    GPHOTO2INCL="$ac_gphoto2_incl"
10272
10273 fi
10274
10275 fi
10276
10277
10278     CPPFLAGS="$ac_save_CPPFLAGS"
10279 fi
10280 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10281   case "x$with_gphoto" in
10282   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10283   xno) ;;
10284   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10285 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10286 esac
10287 fi
10288
10289
10290 if test "$ac_cv_header_resolv_h" = "yes"
10291 then
10292     ac_save_LIBS="$LIBS"
10293     for lib in '' -lresolv
10294     do
10295       LIBS="$lib $ac_save_LIBS"
10296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298 #ifdef HAVE_NETINET_IN_H
10299 #include <netinet/in.h>
10300 #endif
10301 #include <resolv.h>
10302 int
10303 main ()
10304 {
10305 res_query("foo",ns_c_in,0,0,0);
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"; then :
10311
10312 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10313
10314          RESOLVLIBS="$lib"
10315
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318     conftest$ac_exeext conftest.$ac_ext
10319       if test "${RESOLVLIBS+set}" = set; then
10320         break
10321       fi
10322     done
10323     LIBS="$ac_save_LIBS"
10324 fi
10325
10326 LCMSLIBS=""
10327
10328 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10329 then
10330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10331 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10332 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10333   $as_echo_n "(cached) " >&6
10334 else
10335   ac_check_lib_save_LIBS=$LIBS
10336 LIBS="-llcms  $LIBS"
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h.  */
10339
10340 /* Override any GCC internal prototype to avoid an error.
10341    Use char because int might match the return type of a GCC
10342    builtin and then its argument prototype would still apply.  */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 char cmsOpenProfileFromFile ();
10347 int
10348 main ()
10349 {
10350 return cmsOpenProfileFromFile ();
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"; then :
10356   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10357 else
10358   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext \
10361     conftest$ac_exeext conftest.$ac_ext
10362 LIBS=$ac_check_lib_save_LIBS
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10365 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10366 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10367
10368 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10369
10370          LCMSLIBS="-llcms"
10371 fi
10372
10373 fi
10374 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10375   case "x$with_cms" in
10376   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10377   xno) ;;
10378   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10379 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10380 esac
10381 fi
10382
10383 if test "x$with_freetype" != "xno"
10384 then
10385     if test "$PKG_CONFIG" != "false"
10386     then
10387         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10388         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10389     else
10390         for ac_prog in freetype-config freetype2-config
10391 do
10392   # Extract the first word of "$ac_prog", so it can be a program name with args.
10393 set dummy $ac_prog; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_ft_devel+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   if test -n "$ft_devel"; then
10400   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405   IFS=$as_save_IFS
10406   test -z "$as_dir" && as_dir=.
10407     for ac_exec_ext in '' $ac_executable_extensions; do
10408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409     ac_cv_prog_ft_devel="$ac_prog"
10410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411     break 2
10412   fi
10413 done
10414   done
10415 IFS=$as_save_IFS
10416
10417 fi
10418 fi
10419 ft_devel=$ac_cv_prog_ft_devel
10420 if test -n "$ft_devel"; then
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10422 $as_echo "$ft_devel" >&6; }
10423 else
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427
10428
10429   test -n "$ft_devel" && break
10430 done
10431 test -n "$ft_devel" || ft_devel="no"
10432
10433         if test "$ft_devel" != "no"
10434         then
10435             ac_freetype_incl=`$ft_devel --cflags`
10436             ac_freetype_libs=`$ft_devel --libs`
10437         fi
10438     fi
10439     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10441 $as_echo_n "checking for -lfreetype... " >&6; }
10442 if ${ac_cv_lib_soname_freetype+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   ac_check_soname_save_LIBS=$LIBS
10446 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h.  */
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451    Use char because int might match the return type of a GCC
10452    builtin and then its argument prototype would still apply.  */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char FT_Init_FreeType ();
10457 int
10458 main ()
10459 {
10460 return FT_Init_FreeType ();
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466   case "$LIBEXT" in
10467     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10468     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'` ;;
10469     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10470   esac
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext \
10473     conftest$ac_exeext conftest.$ac_ext
10474   LIBS=$ac_check_soname_save_LIBS
10475 fi
10476 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10478 $as_echo "not found" >&6; }
10479        ft_lib=no
10480 else
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10482 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10483
10484 cat >>confdefs.h <<_ACEOF
10485 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10486 _ACEOF
10487
10488        ft_lib=yes
10489 fi
10490     if test "$ft_lib" = "yes"
10491     then
10492         ac_save_CPPFLAGS="$CPPFLAGS"
10493         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10494         for ac_header in ft2build.h \
10495                          freetype/freetype.h \
10496                          freetype/ftglyph.h \
10497                          freetype/fttypes.h \
10498                          freetype/tttables.h \
10499                          freetype/ftsnames.h \
10500                          freetype/ttnameid.h \
10501                          freetype/ftoutln.h \
10502                          freetype/ftwinfnt.h \
10503                          freetype/ftmodapi.h \
10504                          freetype/ftlcdfil.h
10505 do :
10506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10507 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10508                           # include <ft2build.h>
10509                           #endif
10510 "
10511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10512   cat >>confdefs.h <<_ACEOF
10513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10514 _ACEOF
10515
10516 fi
10517
10518 done
10519
10520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h.  */
10522 #include <ft2build.h>
10523                     #include <freetype/fttrigon.h>
10524 _ACEOF
10525 if ac_fn_c_try_cpp "$LINENO"; then :
10526
10527 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10528
10529                     wine_cv_fttrigon=yes
10530 else
10531   wine_cv_fttrigon=no
10532 fi
10533 rm -f conftest.err conftest.i conftest.$ac_ext
10534         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10535 "
10536 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10537
10538 cat >>confdefs.h <<_ACEOF
10539 #define HAVE_FT_TRUETYPEENGINETYPE 1
10540 _ACEOF
10541
10542
10543 fi
10544
10545                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10546         then
10547
10548 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10549
10550             FREETYPELIBS="$ac_freetype_libs"
10551
10552             FREETYPEINCL="$ac_freetype_incl"
10553
10554         fi
10555     fi
10556 fi
10557 if test "x$FREETYPELIBS" = "x"; then :
10558   case "x$with_freetype" in
10559   xno) ;;
10560   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10561 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10562 esac
10563 fi
10564 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10565
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10567 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10568 if ${ac_cv_c_ppdev+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h.  */
10573 #ifdef HAVE_SYS_IOCTL_H
10574 # include <sys/ioctl.h>
10575 #endif
10576 #include <linux/ppdev.h>
10577 int
10578 main ()
10579 {
10580 ioctl (1,PPCLAIM,0)
10581   ;
10582   return 0;
10583 }
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586   ac_cv_c_ppdev="yes"
10587 else
10588   ac_cv_c_ppdev="no"
10589 fi
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10593 $as_echo "$ac_cv_c_ppdev" >&6; }
10594 if test "$ac_cv_c_ppdev" = "yes"
10595 then
10596
10597 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10598
10599 fi
10600
10601 ac_wine_check_funcs_save_LIBS="$LIBS"
10602 LIBS="$LIBS $LIBPTHREAD"
10603 for ac_func in \
10604         pthread_attr_get_np \
10605         pthread_getattr_np \
10606         pthread_getthreadid_np \
10607         pthread_get_stackaddr_np \
10608         pthread_get_stacksize_np
10609 do :
10610   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10613   cat >>confdefs.h <<_ACEOF
10614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10615 _ACEOF
10616
10617 fi
10618 done
10619
10620 LIBS="$ac_wine_check_funcs_save_LIBS"
10621
10622 if test "$ac_cv_header_zlib_h" = "yes"
10623 then
10624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10625 $as_echo_n "checking for inflate in -lz... " >&6; }
10626 if ${ac_cv_lib_z_inflate+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-lz  $LIBS"
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h.  */
10633
10634 /* Override any GCC internal prototype to avoid an error.
10635    Use char because int might match the return type of a GCC
10636    builtin and then its argument prototype would still apply.  */
10637 #ifdef __cplusplus
10638 extern "C"
10639 #endif
10640 char inflate ();
10641 int
10642 main ()
10643 {
10644 return inflate ();
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650   ac_cv_lib_z_inflate=yes
10651 else
10652   ac_cv_lib_z_inflate=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655     conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10659 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10660 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10661
10662 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10663
10664                             ZLIB="-lz"
10665
10666 fi
10667
10668 fi
10669 if test "x$ZLIB" = "x"; then :
10670   case "x$with_zlib" in
10671   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10672   xno) ;;
10673   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10674 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10675 esac
10676 fi
10677
10678 if test "x$enable_tools" != xno
10679 then
10680     if test "$ac_cv_header_gettext_po_h" = "yes"
10681     then
10682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10683 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10684 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-lgettextpo  $LIBS"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h.  */
10691
10692 /* Override any GCC internal prototype to avoid an error.
10693    Use char because int might match the return type of a GCC
10694    builtin and then its argument prototype would still apply.  */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 char po_message_msgctxt ();
10699 int
10700 main ()
10701 {
10702 return po_message_msgctxt ();
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"; then :
10708   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10709 else
10710   ac_cv_lib_gettextpo_po_message_msgctxt=no
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext \
10713     conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10717 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10718 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10719
10720 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10721
10722                       LIBGETTEXTPO="-lgettextpo"
10723
10724 fi
10725
10726     fi
10727     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10728   case "x$with_gettextpo" in
10729   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10730   xno) ;;
10731   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10732 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10733 esac
10734 fi
10735 fi
10736
10737 if test "x$with_gstreamer" != "xno"
10738 then
10739     ac_save_CPPFLAGS="$CPPFLAGS"
10740     if test "$PKG_CONFIG" != "false"; then
10741         ac_gst_incl=""
10742         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10743         do
10744             case "$i" in
10745                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10746             esac
10747         done
10748         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10749         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10750         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10751 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10752   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10753 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10755 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10756               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758 #include <gst/app/gstappsink.h>
10759 int
10760 main ()
10761 {
10762 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769 $as_echo "yes" >&6; }
10770                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10771 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10772 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lgstreamer-0.10  $LIBS"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h.  */
10779
10780 /* Override any GCC internal prototype to avoid an error.
10781    Use char because int might match the return type of a GCC
10782    builtin and then its argument prototype would still apply.  */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char gst_pad_get_caps_reffed ();
10787 int
10788 main ()
10789 {
10790 return gst_pad_get_caps_reffed ();
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10797 else
10798   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext \
10801     conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10805 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10806 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10808 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10809 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10810   $as_echo_n "(cached) " >&6
10811 else
10812   ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h.  */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818    Use char because int might match the return type of a GCC
10819    builtin and then its argument prototype would still apply.  */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char gst_app_buffer_new ();
10824 int
10825 main ()
10826 {
10827 return gst_app_buffer_new ();
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10834 else
10835   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838     conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10842 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10843 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10844   GSTREAMER_LIBS="$ac_gst_libs"
10845
10846                        GSTREAMER_INCL="$ac_gst_incl"
10847
10848 fi
10849
10850 fi
10851
10852 else
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 fi
10858
10859
10860 fi
10861
10862
10863     fi
10864     CPPFLAGS="$ac_save_CPPFLAGS"
10865 fi
10866 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10867   case "x$with_gstreamer" in
10868   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10869   xno) ;;
10870   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10871 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10872 esac
10873 fi
10874 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10875
10876 ALSALIBS=""
10877
10878 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10879 then
10880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10881 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10882 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-lasound  $LIBS"
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h.  */
10889
10890 /* Override any GCC internal prototype to avoid an error.
10891    Use char because int might match the return type of a GCC
10892    builtin and then its argument prototype would still apply.  */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 char snd_pcm_hw_params_get_access_mask ();
10897 int
10898 main ()
10899 {
10900 return snd_pcm_hw_params_get_access_mask ();
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10907 else
10908   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911     conftest$ac_exeext conftest.$ac_ext
10912 LIBS=$ac_check_lib_save_LIBS
10913 fi
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10915 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10916 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919 #ifdef HAVE_ALSA_ASOUNDLIB_H
10920 #include <alsa/asoundlib.h>
10921 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10922 #include <sys/asoundlib.h>
10923 #endif
10924 int
10925 main ()
10926 {
10927 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_compile "$LINENO"; then :
10933   ALSALIBS="-lasound"
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 fi
10937
10938 fi
10939
10940 if test "x$with_oss" != xno
10941 then
10942     ac_save_CPPFLAGS="$CPPFLAGS"
10943     if test -f /etc/oss.conf
10944     then
10945         . /etc/oss.conf
10946     fi
10947     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10948     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10949     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10950 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10951   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10952 "
10953 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10954
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10957 _ACEOF
10958
10959 OSS4INCL="$ac_oss_incl"
10960
10961 fi
10962
10963 fi
10964
10965
10966     CPPFLAGS="$ac_save_CPPFLAGS"
10967     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10968     then
10969         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10970     fi
10971 fi
10972
10973
10974 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10975 then
10976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10977 $as_echo_n "checking for -lcapi20... " >&6; }
10978 if ${ac_cv_lib_soname_capi20+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   ac_check_soname_save_LIBS=$LIBS
10982 LIBS="-lcapi20  $LIBS"
10983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h.  */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987    Use char because int might match the return type of a GCC
10988    builtin and then its argument prototype would still apply.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char capi20_register ();
10993 int
10994 main ()
10995 {
10996 return capi20_register ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002   case "$LIBEXT" in
11003     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11004     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'` ;;
11005     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11006   esac
11007 fi
11008 rm -f core conftest.err conftest.$ac_objext \
11009     conftest$ac_exeext conftest.$ac_ext
11010   LIBS=$ac_check_soname_save_LIBS
11011 fi
11012 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11014 $as_echo "not found" >&6; }
11015
11016 else
11017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11018 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11019
11020 cat >>confdefs.h <<_ACEOF
11021 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11022 _ACEOF
11023
11024
11025 fi
11026 fi
11027 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11028   case "x$with_capi" in
11029   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11030   xno) ;;
11031   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11032 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11033 esac
11034 fi
11035
11036 CUPSINCL=""
11037
11038 if test "x$with_cups" != "xno"
11039 then
11040     ac_save_CPPFLAGS="$CPPFLAGS"
11041     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11042     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11043     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11044     for ac_header in cups/cups.h
11045 do :
11046   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11047 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11048   cat >>confdefs.h <<_ACEOF
11049 #define HAVE_CUPS_CUPS_H 1
11050 _ACEOF
11051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11052 $as_echo_n "checking for -lcups... " >&6; }
11053 if ${ac_cv_lib_soname_cups+:} false; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   ac_check_soname_save_LIBS=$LIBS
11057 LIBS="-lcups $ac_cups_libs $LIBS"
11058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h.  */
11060
11061 /* Override any GCC internal prototype to avoid an error.
11062    Use char because int might match the return type of a GCC
11063    builtin and then its argument prototype would still apply.  */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char cupsGetDefault ();
11068 int
11069 main ()
11070 {
11071 return cupsGetDefault ();
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077   case "$LIBEXT" in
11078     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11079     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'` ;;
11080     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11081   esac
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext \
11084     conftest$ac_exeext conftest.$ac_ext
11085   LIBS=$ac_check_soname_save_LIBS
11086 fi
11087 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11089 $as_echo "not found" >&6; }
11090
11091 else
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11093 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11094
11095 cat >>confdefs.h <<_ACEOF
11096 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11097 _ACEOF
11098
11099        CUPSINCL="$ac_cups_cflags"
11100 fi
11101 fi
11102
11103 done
11104
11105     CPPFLAGS="$ac_save_CPPFLAGS"
11106 fi
11107 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11108   case "x$with_cups" in
11109   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11110   xno) ;;
11111   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11112 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11113 esac
11114 fi
11115
11116 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11117 then
11118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11119 $as_echo_n "checking for -lfontconfig... " >&6; }
11120 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11121   $as_echo_n "(cached) " >&6
11122 else
11123   ac_check_soname_save_LIBS=$LIBS
11124 LIBS="-lfontconfig  $LIBS"
11125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h.  */
11127
11128 /* Override any GCC internal prototype to avoid an error.
11129    Use char because int might match the return type of a GCC
11130    builtin and then its argument prototype would still apply.  */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 char FcInit ();
11135 int
11136 main ()
11137 {
11138 return FcInit ();
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144   case "$LIBEXT" in
11145     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11146     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'` ;;
11147     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11148   esac
11149 fi
11150 rm -f core conftest.err conftest.$ac_objext \
11151     conftest$ac_exeext conftest.$ac_ext
11152   LIBS=$ac_check_soname_save_LIBS
11153 fi
11154 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11156 $as_echo "not found" >&6; }
11157
11158 else
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11160 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11161
11162 cat >>confdefs.h <<_ACEOF
11163 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11164 _ACEOF
11165
11166
11167 fi
11168 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11169 then
11170         ac_save_CPPFLAGS="$CPPFLAGS"
11171     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11172     $as_unset ac_cv_header_fontconfig_fontconfig_h
11173     for ac_header in fontconfig/fontconfig.h
11174 do :
11175   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11176 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11177   cat >>confdefs.h <<_ACEOF
11178 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11179 _ACEOF
11180
11181 fi
11182
11183 done
11184
11185     CPPFLAGS="$ac_save_CPPFLAGS"
11186     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11187     then
11188         FONTCONFIGINCL="$X_CFLAGS"
11189
11190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11191 $as_echo_n "checking for -lfontconfig... " >&6; }
11192 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   ac_check_soname_save_LIBS=$LIBS
11196 LIBS="-lfontconfig $X_LIBS $LIBS"
11197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h.  */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201    Use char because int might match the return type of a GCC
11202    builtin and then its argument prototype would still apply.  */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char FcInit ();
11207 int
11208 main ()
11209 {
11210 return FcInit ();
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_link "$LINENO"; then :
11216   case "$LIBEXT" in
11217     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11218     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'` ;;
11219     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11220   esac
11221 fi
11222 rm -f core conftest.err conftest.$ac_objext \
11223     conftest$ac_exeext conftest.$ac_ext
11224   LIBS=$ac_check_soname_save_LIBS
11225 fi
11226 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11228 $as_echo "not found" >&6; }
11229
11230 else
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11232 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11233
11234 cat >>confdefs.h <<_ACEOF
11235 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11236 _ACEOF
11237
11238
11239 fi
11240     fi
11241 fi
11242 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11243   case "x$with_fontconfig" in
11244   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11245   xno) ;;
11246   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11247 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11248 esac
11249 fi
11250
11251 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11252 then
11253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11254 $as_echo_n "checking for -lssl... " >&6; }
11255 if ${ac_cv_lib_soname_ssl+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   ac_check_soname_save_LIBS=$LIBS
11259 LIBS="-lssl  $LIBS"
11260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h.  */
11262
11263 /* Override any GCC internal prototype to avoid an error.
11264    Use char because int might match the return type of a GCC
11265    builtin and then its argument prototype would still apply.  */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 char SSL_library_init ();
11270 int
11271 main ()
11272 {
11273 return SSL_library_init ();
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 if ac_fn_c_try_link "$LINENO"; then :
11279   case "$LIBEXT" in
11280     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11281     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'` ;;
11282     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11283   esac
11284 fi
11285 rm -f core conftest.err conftest.$ac_objext \
11286     conftest$ac_exeext conftest.$ac_ext
11287   LIBS=$ac_check_soname_save_LIBS
11288 fi
11289 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11291 $as_echo "not found" >&6; }
11292
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11295 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11296
11297 cat >>confdefs.h <<_ACEOF
11298 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11299 _ACEOF
11300
11301
11302 fi
11303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11304 $as_echo_n "checking for -lcrypto... " >&6; }
11305 if ${ac_cv_lib_soname_crypto+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   ac_check_soname_save_LIBS=$LIBS
11309 LIBS="-lcrypto  $LIBS"
11310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h.  */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314    Use char because int might match the return type of a GCC
11315    builtin and then its argument prototype would still apply.  */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char BIO_new_socket ();
11320 int
11321 main ()
11322 {
11323 return BIO_new_socket ();
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329   case "$LIBEXT" in
11330     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11331     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'` ;;
11332     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11333   esac
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11336     conftest$ac_exeext conftest.$ac_ext
11337   LIBS=$ac_check_soname_save_LIBS
11338 fi
11339 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11341 $as_echo "not found" >&6; }
11342
11343 else
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11345 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11346
11347 cat >>confdefs.h <<_ACEOF
11348 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11349 _ACEOF
11350
11351
11352 fi
11353 fi
11354 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11355   case "x$with_openssl" in
11356   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11357   xno) ;;
11358   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11359 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11360 esac
11361 fi
11362
11363 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11364 then
11365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11366 $as_echo_n "checking for -lgsm... " >&6; }
11367 if ${ac_cv_lib_soname_gsm+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   ac_check_soname_save_LIBS=$LIBS
11371 LIBS="-lgsm  $LIBS"
11372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h.  */
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376    Use char because int might match the return type of a GCC
11377    builtin and then its argument prototype would still apply.  */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char gsm_create ();
11382 int
11383 main ()
11384 {
11385 return gsm_create ();
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   case "$LIBEXT" in
11392     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11393     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'` ;;
11394     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11395   esac
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398     conftest$ac_exeext conftest.$ac_ext
11399   LIBS=$ac_check_soname_save_LIBS
11400 fi
11401 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11403 $as_echo "not found" >&6; }
11404
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11407 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11408
11409 cat >>confdefs.h <<_ACEOF
11410 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11411 _ACEOF
11412
11413
11414 fi
11415 fi
11416 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11417   case "x$with_gsm" in
11418   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11419   xno) ;;
11420   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11421 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11422 esac
11423 fi
11424
11425 if test "$ac_cv_header_jpeglib_h" = "yes"
11426 then
11427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11428 $as_echo_n "checking for -ljpeg... " >&6; }
11429 if ${ac_cv_lib_soname_jpeg+:} false; then :
11430   $as_echo_n "(cached) " >&6
11431 else
11432   ac_check_soname_save_LIBS=$LIBS
11433 LIBS="-ljpeg  $LIBS"
11434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h.  */
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438    Use char because int might match the return type of a GCC
11439    builtin and then its argument prototype would still apply.  */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char jpeg_start_decompress ();
11444 int
11445 main ()
11446 {
11447 return jpeg_start_decompress ();
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_link "$LINENO"; then :
11453   case "$LIBEXT" in
11454     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11455     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'` ;;
11456     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11457   esac
11458 fi
11459 rm -f core conftest.err conftest.$ac_objext \
11460     conftest$ac_exeext conftest.$ac_ext
11461   LIBS=$ac_check_soname_save_LIBS
11462 fi
11463 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11465 $as_echo "not found" >&6; }
11466
11467 else
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11469 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11470
11471 cat >>confdefs.h <<_ACEOF
11472 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11473 _ACEOF
11474
11475
11476 fi
11477 fi
11478 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11479   case "x$with_jpeg" in
11480   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11481   xno) ;;
11482   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11483 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11484 esac
11485 fi
11486
11487 if test "$ac_cv_header_png_h" = "yes"
11488 then
11489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11490 $as_echo_n "checking for -lpng... " >&6; }
11491 if ${ac_cv_lib_soname_png+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   ac_check_soname_save_LIBS=$LIBS
11495 LIBS="-lpng -lm -lz $LIBS"
11496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h.  */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500    Use char because int might match the return type of a GCC
11501    builtin and then its argument prototype would still apply.  */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char png_create_read_struct ();
11506 int
11507 main ()
11508 {
11509 return png_create_read_struct ();
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515   case "$LIBEXT" in
11516     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11517     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'` ;;
11518     *) 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'` ;;
11519   esac
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522     conftest$ac_exeext conftest.$ac_ext
11523   LIBS=$ac_check_soname_save_LIBS
11524 fi
11525 if test "x$ac_cv_lib_soname_png" = "x"; then :
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11527 $as_echo "not found" >&6; }
11528
11529 else
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11531 $as_echo "$ac_cv_lib_soname_png" >&6; }
11532
11533 cat >>confdefs.h <<_ACEOF
11534 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11535 _ACEOF
11536
11537
11538 fi
11539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11540 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11541 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-lpng -lm -lz $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char png_set_expand_gray_1_2_4_to_8 ();
11556 int
11557 main ()
11558 {
11559 return png_set_expand_gray_1_2_4_to_8 ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11566 else
11567   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570     conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11574 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11575 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11576
11577 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11578
11579
11580 fi
11581
11582 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11583 then
11584         ac_save_CPPFLAGS="$CPPFLAGS"
11585     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11586     $as_unset ac_cv_header_png_h
11587     for ac_header in png.h
11588 do :
11589   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11590 if test "x$ac_cv_header_png_h" = xyes; then :
11591   cat >>confdefs.h <<_ACEOF
11592 #define HAVE_PNG_H 1
11593 _ACEOF
11594
11595 fi
11596
11597 done
11598
11599     CPPFLAGS="$ac_save_CPPFLAGS"
11600     if test "$ac_cv_header_png_h" = "yes"
11601     then
11602         PNGINCL="$X_CFLAGS"
11603
11604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11605 $as_echo_n "checking for -lpng... " >&6; }
11606 if ${ac_cv_lib_soname_png+:} false; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   ac_check_soname_save_LIBS=$LIBS
11610 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h.  */
11613
11614 /* Override any GCC internal prototype to avoid an error.
11615    Use char because int might match the return type of a GCC
11616    builtin and then its argument prototype would still apply.  */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char png_create_read_struct ();
11621 int
11622 main ()
11623 {
11624 return png_create_read_struct ();
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11630   case "$LIBEXT" in
11631     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11632     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'` ;;
11633     *) 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'` ;;
11634   esac
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext \
11637     conftest$ac_exeext conftest.$ac_ext
11638   LIBS=$ac_check_soname_save_LIBS
11639 fi
11640 if test "x$ac_cv_lib_soname_png" = "x"; then :
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11642 $as_echo "not found" >&6; }
11643
11644 else
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11646 $as_echo "$ac_cv_lib_soname_png" >&6; }
11647
11648 cat >>confdefs.h <<_ACEOF
11649 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11650 _ACEOF
11651
11652
11653 fi
11654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11655 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11656 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11657   $as_echo_n "(cached) " >&6
11658 else
11659   ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h.  */
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char png_set_expand_gray_1_2_4_to_8 ();
11671 int
11672 main ()
11673 {
11674 return png_set_expand_gray_1_2_4_to_8 ();
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11681 else
11682   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685     conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11689 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11690 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11691   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11692
11693 fi
11694
11695     fi
11696 fi
11697 if test "x$ac_cv_lib_soname_png" = "x"; then :
11698   case "x$with_png" in
11699   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11700   xno) ;;
11701   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11702 This is an error since --with-png was requested." "$LINENO" 5 ;;
11703 esac
11704 fi
11705
11706 if test "$ac_cv_header_tiffio_h" = "yes"
11707 then
11708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11709 $as_echo_n "checking for -ltiff... " >&6; }
11710 if ${ac_cv_lib_soname_tiff+:} false; then :
11711   $as_echo_n "(cached) " >&6
11712 else
11713   ac_check_soname_save_LIBS=$LIBS
11714 LIBS="-ltiff  $LIBS"
11715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h.  */
11717
11718 /* Override any GCC internal prototype to avoid an error.
11719    Use char because int might match the return type of a GCC
11720    builtin and then its argument prototype would still apply.  */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 char TIFFClientOpen ();
11725 int
11726 main ()
11727 {
11728 return TIFFClientOpen ();
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_link "$LINENO"; then :
11734   case "$LIBEXT" in
11735     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11736     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'` ;;
11737     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11738   esac
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext \
11741     conftest$ac_exeext conftest.$ac_ext
11742   LIBS=$ac_check_soname_save_LIBS
11743 fi
11744 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11746 $as_echo "not found" >&6; }
11747
11748 else
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11750 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11751
11752 cat >>confdefs.h <<_ACEOF
11753 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11754 _ACEOF
11755
11756
11757 fi
11758 fi
11759 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11760   case "x$with_tiff" in
11761   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11762   xno) ;;
11763   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11764 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11765 esac
11766 fi
11767
11768 if test "$ac_cv_header_mpg123_h" = "yes"
11769 then
11770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11771 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11772 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11773   $as_echo_n "(cached) " >&6
11774 else
11775   ac_check_lib_save_LIBS=$LIBS
11776 LIBS="-lmpg123  $LIBS"
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h.  */
11779
11780 /* Override any GCC internal prototype to avoid an error.
11781    Use char because int might match the return type of a GCC
11782    builtin and then its argument prototype would still apply.  */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 char mpg123_feed ();
11787 int
11788 main ()
11789 {
11790 return mpg123_feed ();
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 if ac_fn_c_try_link "$LINENO"; then :
11796   ac_cv_lib_mpg123_mpg123_feed=yes
11797 else
11798   ac_cv_lib_mpg123_mpg123_feed=no
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext \
11801     conftest$ac_exeext conftest.$ac_ext
11802 LIBS=$ac_check_lib_save_LIBS
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11805 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11806 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11807   LIBMPG123="-lmpg123"
11808
11809 fi
11810
11811 fi
11812 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11813   case "x$with_mpg123" in
11814   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11815   xno) ;;
11816   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11817 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11818 esac
11819 fi
11820 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}
11821
11822 if test "$ac_cv_header_AL_al_h" = "yes"
11823 then
11824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11825 $as_echo_n "checking for -lopenal... " >&6; }
11826 if ${ac_cv_lib_soname_openal+:} false; then :
11827   $as_echo_n "(cached) " >&6
11828 else
11829   ac_check_soname_save_LIBS=$LIBS
11830 LIBS="-lopenal  $LIBS"
11831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h.  */
11833
11834 /* Override any GCC internal prototype to avoid an error.
11835    Use char because int might match the return type of a GCC
11836    builtin and then its argument prototype would still apply.  */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char alGetSource3i ();
11841 int
11842 main ()
11843 {
11844 return alGetSource3i ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850   case "$LIBEXT" in
11851     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11852     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'` ;;
11853     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11854   esac
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857     conftest$ac_exeext conftest.$ac_ext
11858   LIBS=$ac_check_soname_save_LIBS
11859 fi
11860 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11862 $as_echo "not found" >&6; }
11863
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11866 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11870 _ACEOF
11871
11872        LIBOPENAL="-lopenal"
11873
11874                       ac_cv_lib_openal=yes
11875
11876 cat >>confdefs.h <<_ACEOF
11877 #define HAVE_OPENAL 1
11878 _ACEOF
11879
11880 fi
11881 fi
11882 if test "x$ac_cv_lib_openal" != xyes; then :
11883   case "x$with_openal" in
11884   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11885   xno) ;;
11886   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11887 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11888 esac
11889 fi
11890 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11891
11892 if test "$ac_cv_header_kstat_h" = "yes"
11893 then
11894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11895 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11896 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-lkstat  $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char kstat_open ();
11911 int
11912 main ()
11913 {
11914 return kstat_open ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920   ac_cv_lib_kstat_kstat_open=yes
11921 else
11922   ac_cv_lib_kstat_kstat_open=no
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext \
11925     conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11929 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11930 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11931
11932 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11933
11934                   LIBKSTAT="-lkstat"
11935
11936 fi
11937
11938 fi
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11941 $as_echo_n "checking for -lodbc... " >&6; }
11942 if ${ac_cv_lib_soname_odbc+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   ac_check_soname_save_LIBS=$LIBS
11946 LIBS="-lodbc  $LIBS"
11947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h.  */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951    Use char because int might match the return type of a GCC
11952    builtin and then its argument prototype would still apply.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char SQLConnect ();
11957 int
11958 main ()
11959 {
11960 return SQLConnect ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966   case "$LIBEXT" in
11967     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11968     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'` ;;
11969     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11970   esac
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext \
11973     conftest$ac_exeext conftest.$ac_ext
11974   LIBS=$ac_check_soname_save_LIBS
11975 fi
11976 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11978 $as_echo "not found" >&6; }
11979        cat >>confdefs.h <<_ACEOF
11980 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11981 _ACEOF
11982
11983 else
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11985 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11986
11987 cat >>confdefs.h <<_ACEOF
11988 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11989 _ACEOF
11990
11991
11992 fi
11993
11994 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11995 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11996 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11997 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11998
11999 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12000         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12001         "x$with_alsa$with_coreaudio$with_oss" != xnonono
12002 then
12003     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12004 fi
12005
12006
12007 EXTRACFLAGS=""
12008
12009 if test "x${GCC}" = "xyes"
12010 then
12011   EXTRACFLAGS="-Wall -pipe"
12012
12013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12014 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12015 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   if test "$cross_compiling" = yes; then :
12019   ac_cv_c_gcc_strength_bug="yes"
12020 else
12021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h.  */
12023 int L[4] = {0,1,2,3};
12024 int
12025 main ()
12026 {
12027 static int Array[3];
12028   unsigned int B = 3;
12029   int i;
12030   for(i=0; i<B; i++) Array[i] = i - 3;
12031   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12032   L[i] = 4;
12033   return (Array[1] != -2 || L[2] != 3)
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_run "$LINENO"; then :
12039   ac_cv_c_gcc_strength_bug="no"
12040 else
12041   ac_cv_c_gcc_strength_bug="yes"
12042 fi
12043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12044   conftest.$ac_objext conftest.beam conftest.$ac_ext
12045 fi
12046
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12049 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12050   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12051   then
12052     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12053   fi
12054
12055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12056 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12057 if ${ac_cv_cflags__fno_builtin+:} false; then :
12058   $as_echo_n "(cached) " >&6
12059 else
12060   ac_wine_try_cflags_saved=$CFLAGS
12061 CFLAGS="$CFLAGS -fno-builtin"
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h.  */
12064 int main(int argc, char **argv) { return 0; }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067   ac_cv_cflags__fno_builtin=yes
12068 else
12069   ac_cv_cflags__fno_builtin=no
12070 fi
12071 rm -f core conftest.err conftest.$ac_objext \
12072     conftest$ac_exeext conftest.$ac_ext
12073 CFLAGS=$ac_wine_try_cflags_saved
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12076 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12077 if test $ac_cv_cflags__fno_builtin = yes; then :
12078   BUILTINFLAG="-fno-builtin"
12079
12080 fi
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12082 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12083 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   ac_wine_try_cflags_saved=$CFLAGS
12087 CFLAGS="$CFLAGS -fno-strict-aliasing"
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090 int main(int argc, char **argv) { return 0; }
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093   ac_cv_cflags__fno_strict_aliasing=yes
12094 else
12095   ac_cv_cflags__fno_strict_aliasing=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098     conftest$ac_exeext conftest.$ac_ext
12099 CFLAGS=$ac_wine_try_cflags_saved
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12102 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12103 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12104   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12105 fi
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12107 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12108 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   ac_wine_try_cflags_saved=$CFLAGS
12112 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115 int main(int argc, char **argv) { return 0; }
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"; then :
12118   ac_cv_cflags__Wdeclaration_after_statement=yes
12119 else
12120   ac_cv_cflags__Wdeclaration_after_statement=no
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext \
12123     conftest$ac_exeext conftest.$ac_ext
12124 CFLAGS=$ac_wine_try_cflags_saved
12125 fi
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12127 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12128 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12129   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12130 fi
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12132 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12133 if ${ac_cv_cflags__Wempty_body+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   ac_wine_try_cflags_saved=$CFLAGS
12137 CFLAGS="$CFLAGS -Wempty-body"
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140 int main(int argc, char **argv) { return 0; }
12141 _ACEOF
12142 if ac_fn_c_try_link "$LINENO"; then :
12143   ac_cv_cflags__Wempty_body=yes
12144 else
12145   ac_cv_cflags__Wempty_body=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext \
12148     conftest$ac_exeext conftest.$ac_ext
12149 CFLAGS=$ac_wine_try_cflags_saved
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12152 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12153 if test $ac_cv_cflags__Wempty_body = yes; then :
12154   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12155 fi
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12157 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12158 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12159   $as_echo_n "(cached) " >&6
12160 else
12161   ac_wine_try_cflags_saved=$CFLAGS
12162 CFLAGS="$CFLAGS -Wignored-qualifiers"
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h.  */
12165 int main(int argc, char **argv) { return 0; }
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168   ac_cv_cflags__Wignored_qualifiers=yes
12169 else
12170   ac_cv_cflags__Wignored_qualifiers=no
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext \
12173     conftest$ac_exeext conftest.$ac_ext
12174 CFLAGS=$ac_wine_try_cflags_saved
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12177 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12178 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12179   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12180 fi
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12182 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12183 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   ac_wine_try_cflags_saved=$CFLAGS
12187 CFLAGS="$CFLAGS -Wstrict-prototypes"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h.  */
12190 int main(int argc, char **argv) { return 0; }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193   ac_cv_cflags__Wstrict_prototypes=yes
12194 else
12195   ac_cv_cflags__Wstrict_prototypes=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198     conftest$ac_exeext conftest.$ac_ext
12199 CFLAGS=$ac_wine_try_cflags_saved
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12202 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12203 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12204   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12205 fi
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12207 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12208 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12209   $as_echo_n "(cached) " >&6
12210 else
12211   ac_wine_try_cflags_saved=$CFLAGS
12212 CFLAGS="$CFLAGS -Wtype-limits"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h.  */
12215 int main(int argc, char **argv) { return 0; }
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218   ac_cv_cflags__Wtype_limits=yes
12219 else
12220   ac_cv_cflags__Wtype_limits=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext \
12223     conftest$ac_exeext conftest.$ac_ext
12224 CFLAGS=$ac_wine_try_cflags_saved
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12227 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12228 if test $ac_cv_cflags__Wtype_limits = yes; then :
12229   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12230 fi
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12232 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12233 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   ac_wine_try_cflags_saved=$CFLAGS
12237 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h.  */
12240 int main(int argc, char **argv) { return 0; }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243   ac_cv_cflags__Wunused_but_set_parameter=yes
12244 else
12245   ac_cv_cflags__Wunused_but_set_parameter=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248     conftest$ac_exeext conftest.$ac_ext
12249 CFLAGS=$ac_wine_try_cflags_saved
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12252 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12253 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12254   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12255 fi
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12257 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12258 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   ac_wine_try_cflags_saved=$CFLAGS
12262 CFLAGS="$CFLAGS -Wwrite-strings"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h.  */
12265 int main(int argc, char **argv) { return 0; }
12266 _ACEOF
12267 if ac_fn_c_try_link "$LINENO"; then :
12268   ac_cv_cflags__Wwrite_strings=yes
12269 else
12270   ac_cv_cflags__Wwrite_strings=no
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext \
12273     conftest$ac_exeext conftest.$ac_ext
12274 CFLAGS=$ac_wine_try_cflags_saved
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12277 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12278 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12279   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12280 fi
12281
12282     for ac_flag in $CFLAGS; do
12283     case $ac_flag in
12284       -g) case $host_os in
12285             darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12286 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12287 if ${ac_cv_cflags__gstabsp+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_wine_try_cflags_saved=$CFLAGS
12291 CFLAGS="$CFLAGS -gstabs+"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294 int main(int argc, char **argv) { return 0; }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297   ac_cv_cflags__gstabsp=yes
12298 else
12299   ac_cv_cflags__gstabsp=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 CFLAGS=$ac_wine_try_cflags_saved
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12306 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12307 if test $ac_cv_cflags__gstabsp = yes; then :
12308   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12309 fi ;;
12310             *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12311 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12312 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   ac_wine_try_cflags_saved=$CFLAGS
12316 CFLAGS="$CFLAGS -gdwarf-2"
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h.  */
12319 int main(int argc, char **argv) { return 0; }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322   ac_cv_cflags__gdwarf_2=yes
12323 else
12324   ac_cv_cflags__gdwarf_2=no
12325 fi
12326 rm -f core conftest.err conftest.$ac_objext \
12327     conftest$ac_exeext conftest.$ac_ext
12328 CFLAGS=$ac_wine_try_cflags_saved
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12331 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12332 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12333   EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12334 fi
12335                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12336 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12337 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   ac_wine_try_cflags_saved=$CFLAGS
12341 CFLAGS="$CFLAGS -gstrict-dwarf"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h.  */
12344 int main(int argc, char **argv) { return 0; }
12345 _ACEOF
12346 if ac_fn_c_try_link "$LINENO"; then :
12347   ac_cv_cflags__gstrict_dwarf=yes
12348 else
12349   ac_cv_cflags__gstrict_dwarf=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext \
12352     conftest$ac_exeext conftest.$ac_ext
12353 CFLAGS=$ac_wine_try_cflags_saved
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12356 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12357 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12358   EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12359 fi ;;
12360           esac ;;
12361     esac
12362   done
12363
12364     case $host_cpu in
12365     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12366 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12367 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   ac_wine_try_cflags_saved=$CFLAGS
12371 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h.  */
12374 int main(int argc, char **argv) { return 0; }
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"; then :
12377   ac_cv_cflags__fno_omit_frame_pointer=yes
12378 else
12379   ac_cv_cflags__fno_omit_frame_pointer=no
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext \
12382     conftest$ac_exeext conftest.$ac_ext
12383 CFLAGS=$ac_wine_try_cflags_saved
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12386 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12387 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12388   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12389 fi ;;
12390   esac
12391
12392     case $host in
12393     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12394 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12395 if ${ac_cv_cflags__Wno_format+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   ac_wine_try_cflags_saved=$CFLAGS
12399 CFLAGS="$CFLAGS -Wno-format"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h.  */
12402 int main(int argc, char **argv) { return 0; }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405   ac_cv_cflags__Wno_format=yes
12406 else
12407   ac_cv_cflags__Wno_format=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410     conftest$ac_exeext conftest.$ac_ext
12411 CFLAGS=$ac_wine_try_cflags_saved
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12414 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12415 if test $ac_cv_cflags__Wno_format = yes; then :
12416   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12417 fi ;;
12418   esac
12419
12420     saved_CFLAGS="$CFLAGS"
12421   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12423 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12424 if ${ac_cv_c_string_h_warnings+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429 #include <string.h>
12430 int
12431 main ()
12432 {
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439   ac_cv_c_string_h_warnings=no
12440 else
12441   ac_cv_c_string_h_warnings=yes
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12446 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12447   CFLAGS="$saved_CFLAGS"
12448   if test "$ac_cv_c_string_h_warnings" = "no"
12449   then
12450     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12451   fi
12452
12453     saved_CFLAGS="$CFLAGS"
12454   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12456 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12457 if ${ac_cv_c_logicalop_noisy+:} false; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h.  */
12462 #include <string.h>
12463 int
12464 main ()
12465 {
12466 char*f(const char *h,char n) {return strchr(h,n);}
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_compile "$LINENO"; then :
12472   ac_cv_c_logicalop_noisy=no
12473 else
12474   ac_cv_c_logicalop_noisy=yes
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12479 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12480   CFLAGS="$saved_CFLAGS"
12481   if test "$ac_cv_c_logicalop_noisy" = "no"
12482   then
12483     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12484   fi
12485
12486     if test "x$enable_maintainer_mode" = "xyes"
12487   then
12488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12489 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12490 if ${ac_cv_cflags__Werror+:} false; then :
12491   $as_echo_n "(cached) " >&6
12492 else
12493   ac_wine_try_cflags_saved=$CFLAGS
12494 CFLAGS="$CFLAGS -Werror"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h.  */
12497 int main(int argc, char **argv) { return 0; }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500   ac_cv_cflags__Werror=yes
12501 else
12502   ac_cv_cflags__Werror=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505     conftest$ac_exeext conftest.$ac_ext
12506 CFLAGS=$ac_wine_try_cflags_saved
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12509 $as_echo "$ac_cv_cflags__Werror" >&6; }
12510 if test $ac_cv_cflags__Werror = yes; then :
12511   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12512 fi
12513   fi
12514
12515     saved_CFLAGS="$CFLAGS"
12516   CFLAGS="$CFLAGS -Werror"
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12518 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12519 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h.  */
12524 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12525 int
12526 main ()
12527 {
12528
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"; then :
12534   ac_cv_have_ms_hook_prologue="yes"
12535 else
12536   ac_cv_have_ms_hook_prologue="no"
12537 fi
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12541 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12542   CFLAGS="$saved_CFLAGS"
12543   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12544   then
12545
12546 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12547
12548   else
12549       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12550
12551   fi
12552 fi
12553
12554
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12556 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12557 if ${ac_cv_c_fortify_enabled+:} false; then :
12558   $as_echo_n "(cached) " >&6
12559 else
12560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h.  */
12562 #include <string.h>
12563 int
12564 main ()
12565 {
12566 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12567 #error Fortify enabled
12568 #endif
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574   ac_cv_c_fortify_enabled=no
12575 else
12576   ac_cv_c_fortify_enabled=yes
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12581 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12582 if test "$ac_cv_c_fortify_enabled" = yes
12583 then
12584     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12585 fi
12586
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12589 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12590 if ${ac_cv_c_extern_prefix+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595 extern int ac_test;
12596 int
12597 main ()
12598 {
12599 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605   ac_cv_c_extern_prefix="yes"
12606 else
12607   ac_cv_c_extern_prefix="no"
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext \
12610     conftest$ac_exeext conftest.$ac_ext
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12613 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12614
12615 case $host_cpu in
12616   *i[3456789]86*)
12617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12618 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12619 if ${ac_cv_c_stdcall_suffix+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h.  */
12624 #ifndef _MSC_VER
12625 #define __stdcall __attribute__((__stdcall__))
12626 #endif
12627 int __stdcall ac_test(int i) { return i; }
12628 int
12629 main ()
12630 {
12631 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637   ac_cv_c_stdcall_suffix="yes"
12638 else
12639   ac_cv_c_stdcall_suffix="no"
12640 fi
12641 rm -f core conftest.err conftest.$ac_objext \
12642     conftest$ac_exeext conftest.$ac_ext
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12645 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12646   *) ac_cv_c_stdcall_suffix="no" ;;
12647 esac
12648
12649
12650 if test "$ac_cv_c_extern_prefix" = "yes"
12651 then
12652     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12653
12654     asm_name_prefix="_"
12655 else
12656     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12657
12658     asm_name_prefix=""
12659 fi
12660
12661
12662 if test "$ac_cv_c_stdcall_suffix" = "yes"
12663 then
12664     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12665
12666 else
12667     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12668
12669 fi
12670
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12673 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12674 if ${ac_cv_asm_func_def+:} false; then :
12675   $as_echo_n "(cached) " >&6
12676 else
12677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h.  */
12679
12680 int
12681 main ()
12682 {
12683 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689   ac_cv_asm_func_def=".def"
12690 else
12691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h.  */
12693
12694 int
12695 main ()
12696 {
12697 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703   ac_cv_asm_func_def=".type @function"
12704 else
12705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h.  */
12707
12708 int
12709 main ()
12710 {
12711 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_asm_func_def=".type 2"
12718 else
12719   ac_cv_asm_func_def="unknown"
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext \
12725     conftest$ac_exeext conftest.$ac_ext
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext \
12728     conftest$ac_exeext conftest.$ac_ext
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12731 $as_echo "$ac_cv_asm_func_def" >&6; }
12732
12733
12734 case "$ac_cv_asm_func_def" in
12735   ".def")
12736      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12737
12738      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12739   ".type @function")
12740      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12741
12742      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12743   ".type 2")
12744      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12745
12746      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12747   *)
12748      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12749
12750      asm_func_header="" ;;
12751 esac
12752
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12754 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12755 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h.  */
12760 asm(".text\n\t.long 0");
12761 int
12762 main ()
12763 {
12764
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770   ac_cv_c_asm_outside_funcs="yes"
12771 else
12772   ac_cv_c_asm_outside_funcs="no"
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12777 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12780 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12781 if ${ac_cv_c_dot_previous+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786
12787 int
12788 main ()
12789 {
12790 asm(".text\nac_test:\t.long 0\n\t.previous");
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796   ac_cv_c_dot_previous="yes"
12797 else
12798   ac_cv_c_dot_previous="no"
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext \
12801     conftest$ac_exeext conftest.$ac_ext
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12804 $as_echo "$ac_cv_c_dot_previous" >&6; }
12805
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12807 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12808 if ${ac_cv_c_cfi_support+:} false; then :
12809   $as_echo_n "(cached) " >&6
12810 else
12811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12814 int
12815 main ()
12816 {
12817
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823   ac_cv_c_cfi_support="yes"
12824 else
12825   ac_cv_c_cfi_support="no"
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12830 $as_echo "$ac_cv_c_cfi_support" >&6; }
12831
12832 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12833 asm_func_trailer=""
12834 if test "$ac_cv_c_dot_previous" = "yes"
12835 then
12836    asm_func_trailer="\\n\\t.previous"
12837 fi
12838 if test "$ac_cv_c_cfi_support" = "yes"
12839 then
12840    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12841    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12842
12843 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12844
12845    UNWINDFLAGS=-fasynchronous-unwind-tables
12846
12847 else
12848    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12849
12850 fi
12851
12852 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12853
12854
12855 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12856 then
12857     cat >>confdefs.h <<_ACEOF
12858 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12859 _ACEOF
12860
12861 else
12862     cat >>confdefs.h <<_ACEOF
12863 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12864 _ACEOF
12865
12866 fi
12867
12868 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12869
12870
12871 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12872
12873
12874
12875 LDPATH=""
12876
12877 case $build_os in
12878   cygwin*|mingw32*)
12879     TOOLSEXT=".exe"
12880
12881     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12882     ;;
12883   darwin*|macosx*)
12884     ;;
12885   *)
12886     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12887     ;;
12888 esac
12889
12890 case $host_os in
12891   mingw32*)
12892     CRTLIBS="-lmsvcrt"
12893
12894     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12895
12896     ;;
12897 esac
12898
12899 MAIN_BINARY="wine"
12900
12901 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12902
12903 case $host_os in
12904   linux*)
12905     case $host_cpu in
12906       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12907  ;;
12908       x86_64*) EXTRA_BINARIES="wine64-preloader"
12909  ;;
12910     esac
12911     ;;
12912 esac
12913
12914
12915 ac_save_CFLAGS="$CFLAGS"
12916 CFLAGS="$CFLAGS $BUILTINFLAG"
12917 for ac_func in \
12918         _finite \
12919         _isnan \
12920         _pclose \
12921         _popen \
12922         _snprintf \
12923         _spawnvp \
12924         _strdup \
12925         _stricmp \
12926         _strnicmp \
12927         _strtoi64 \
12928         _strtoui64 \
12929         _vsnprintf \
12930         asctime_r \
12931         chsize \
12932         dlopen \
12933         epoll_create \
12934         ffs \
12935         finite \
12936         fnmatch \
12937         fork \
12938         fpclass \
12939         fstatfs \
12940         fstatvfs \
12941         ftruncate \
12942         futimens \
12943         futimes \
12944         futimesat \
12945         getattrlist \
12946         getdirentries \
12947         getopt_long_only \
12948         getpagesize \
12949         getpwuid \
12950         gettimeofday \
12951         getuid \
12952         kqueue \
12953         lstat \
12954         memmove \
12955         mmap \
12956         pclose \
12957         pipe2 \
12958         poll \
12959         popen \
12960         port_create \
12961         prctl \
12962         pread \
12963         pwrite \
12964         readdir \
12965         readlink \
12966         sched_yield \
12967         select \
12968         setproctitle \
12969         setrlimit \
12970         settimeofday \
12971         sigaltstack \
12972         sigprocmask \
12973         snprintf \
12974         spawnvp \
12975         statfs \
12976         statvfs \
12977         strcasecmp \
12978         strdup \
12979         strerror \
12980         strncasecmp \
12981         strtold \
12982         strtoll \
12983         strtoull \
12984         symlink \
12985         tcgetattr \
12986         thr_kill2 \
12987         timegm \
12988         usleep \
12989         vsnprintf
12990
12991 do :
12992   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12995   cat >>confdefs.h <<_ACEOF
12996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12997 _ACEOF
12998
12999 fi
13000 done
13001
13002 CFLAGS="$ac_save_CFLAGS"
13003
13004 if test "$ac_cv_func_dlopen" = no
13005 then
13006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13007 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13008 if ${ac_cv_lib_dl_dlopen+:} false; then :
13009   $as_echo_n "(cached) " >&6
13010 else
13011   ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-ldl  $LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h.  */
13015
13016 /* Override any GCC internal prototype to avoid an error.
13017    Use char because int might match the return type of a GCC
13018    builtin and then its argument prototype would still apply.  */
13019 #ifdef __cplusplus
13020 extern "C"
13021 #endif
13022 char dlopen ();
13023 int
13024 main ()
13025 {
13026 return dlopen ();
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032   ac_cv_lib_dl_dlopen=yes
13033 else
13034   ac_cv_lib_dl_dlopen=no
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext \
13037     conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13041 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13042 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13043   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13044  LIBDL="-ldl"
13045
13046 fi
13047
13048 fi
13049 ac_wine_check_funcs_save_LIBS="$LIBS"
13050 LIBS="$LIBS $LIBDL"
13051 for ac_func in dladdr
13052 do :
13053   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13054 if test "x$ac_cv_func_dladdr" = xyes; then :
13055   cat >>confdefs.h <<_ACEOF
13056 #define HAVE_DLADDR 1
13057 _ACEOF
13058
13059 fi
13060 done
13061
13062 LIBS="$ac_wine_check_funcs_save_LIBS"
13063
13064 if test "$ac_cv_func_poll" = no
13065 then
13066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13067 $as_echo_n "checking for poll in -lpoll... " >&6; }
13068 if ${ac_cv_lib_poll_poll+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lpoll  $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075
13076 /* Override any GCC internal prototype to avoid an error.
13077    Use char because int might match the return type of a GCC
13078    builtin and then its argument prototype would still apply.  */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char poll ();
13083 int
13084 main ()
13085 {
13086 return poll ();
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092   ac_cv_lib_poll_poll=yes
13093 else
13094   ac_cv_lib_poll_poll=no
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097     conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13101 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13102 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13103   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13104  LIBPOLL="-lpoll"
13105
13106 fi
13107
13108 fi
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13111 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13112 if ${ac_cv_search_gethostbyname+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   ac_func_search_save_LIBS=$LIBS
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120    Use char because int might match the return type of a GCC
13121    builtin and then its argument prototype would still apply.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char gethostbyname ();
13126 int
13127 main ()
13128 {
13129 return gethostbyname ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 for ac_lib in '' nsl; do
13135   if test -z "$ac_lib"; then
13136     ac_res="none required"
13137   else
13138     ac_res=-l$ac_lib
13139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13140   fi
13141   if ac_fn_c_try_link "$LINENO"; then :
13142   ac_cv_search_gethostbyname=$ac_res
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145     conftest$ac_exeext
13146   if ${ac_cv_search_gethostbyname+:} false; then :
13147   break
13148 fi
13149 done
13150 if ${ac_cv_search_gethostbyname+:} false; then :
13151
13152 else
13153   ac_cv_search_gethostbyname=no
13154 fi
13155 rm conftest.$ac_ext
13156 LIBS=$ac_func_search_save_LIBS
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13159 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13160 ac_res=$ac_cv_search_gethostbyname
13161 if test "$ac_res" != no; then :
13162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13163
13164 fi
13165
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13168 $as_echo_n "checking for library containing connect... " >&6; }
13169 if ${ac_cv_search_connect+:} false; then :
13170   $as_echo_n "(cached) " >&6
13171 else
13172   ac_func_search_save_LIBS=$LIBS
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char connect ();
13183 int
13184 main ()
13185 {
13186 return connect ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 for ac_lib in '' socket; do
13192   if test -z "$ac_lib"; then
13193     ac_res="none required"
13194   else
13195     ac_res=-l$ac_lib
13196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13197   fi
13198   if ac_fn_c_try_link "$LINENO"; then :
13199   ac_cv_search_connect=$ac_res
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202     conftest$ac_exeext
13203   if ${ac_cv_search_connect+:} false; then :
13204   break
13205 fi
13206 done
13207 if ${ac_cv_search_connect+:} false; then :
13208
13209 else
13210   ac_cv_search_connect=no
13211 fi
13212 rm conftest.$ac_ext
13213 LIBS=$ac_func_search_save_LIBS
13214 fi
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13216 $as_echo "$ac_cv_search_connect" >&6; }
13217 ac_res=$ac_cv_search_connect
13218 if test "$ac_res" != no; then :
13219   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13220
13221 fi
13222
13223
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13225 $as_echo_n "checking for library containing inet_aton... " >&6; }
13226 if ${ac_cv_search_inet_aton+:} false; then :
13227   $as_echo_n "(cached) " >&6
13228 else
13229   ac_func_search_save_LIBS=$LIBS
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h.  */
13232
13233 /* Override any GCC internal prototype to avoid an error.
13234    Use char because int might match the return type of a GCC
13235    builtin and then its argument prototype would still apply.  */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 char inet_aton ();
13240 int
13241 main ()
13242 {
13243 return inet_aton ();
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 for ac_lib in '' resolv; do
13249   if test -z "$ac_lib"; then
13250     ac_res="none required"
13251   else
13252     ac_res=-l$ac_lib
13253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13254   fi
13255   if ac_fn_c_try_link "$LINENO"; then :
13256   ac_cv_search_inet_aton=$ac_res
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259     conftest$ac_exeext
13260   if ${ac_cv_search_inet_aton+:} false; then :
13261   break
13262 fi
13263 done
13264 if ${ac_cv_search_inet_aton+:} false; then :
13265
13266 else
13267   ac_cv_search_inet_aton=no
13268 fi
13269 rm conftest.$ac_ext
13270 LIBS=$ac_func_search_save_LIBS
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13273 $as_echo "$ac_cv_search_inet_aton" >&6; }
13274 ac_res=$ac_cv_search_inet_aton
13275 if test "$ac_res" != no; then :
13276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277
13278 fi
13279
13280
13281 for ac_func in \
13282         getaddrinfo \
13283         getnameinfo \
13284         getnetbyname \
13285         getprotobyname \
13286         getprotobynumber \
13287         getservbyport \
13288         inet_network \
13289         inet_ntop \
13290         inet_pton \
13291         sendmsg \
13292         socketpair \
13293
13294 do :
13295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13298   cat >>confdefs.h <<_ACEOF
13299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13300 _ACEOF
13301
13302 fi
13303 done
13304
13305
13306 LDAPLIBS=""
13307
13308 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13309 then
13310     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13311 "
13312 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13314 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13315 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13316   $as_echo_n "(cached) " >&6
13317 else
13318   ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h.  */
13322
13323 /* Override any GCC internal prototype to avoid an error.
13324    Use char because int might match the return type of a GCC
13325    builtin and then its argument prototype would still apply.  */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char ldap_initialize ();
13330 int
13331 main ()
13332 {
13333 return ldap_initialize ();
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"; then :
13339   ac_cv_lib_ldap_r_ldap_initialize=yes
13340 else
13341   ac_cv_lib_ldap_r_ldap_initialize=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext \
13344     conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13348 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13349 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13351 $as_echo_n "checking for ber_init in -llber... " >&6; }
13352 if ${ac_cv_lib_lber_ber_init+:} false; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-llber $LIBPTHREAD $LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h.  */
13359
13360 /* Override any GCC internal prototype to avoid an error.
13361    Use char because int might match the return type of a GCC
13362    builtin and then its argument prototype would still apply.  */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char ber_init ();
13367 int
13368 main ()
13369 {
13370 return ber_init ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376   ac_cv_lib_lber_ber_init=yes
13377 else
13378   ac_cv_lib_lber_ber_init=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381     conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13385 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13386 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13387
13388 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13389
13390                  LDAPLIBS="-lldap_r -llber"
13391 fi
13392
13393 fi
13394
13395 fi
13396
13397     ac_wine_check_funcs_save_LIBS="$LIBS"
13398 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13399 for ac_func in \
13400         ldap_count_references \
13401         ldap_first_reference \
13402         ldap_next_reference \
13403         ldap_parse_reference \
13404         ldap_parse_sort_control \
13405         ldap_parse_sortresponse_control \
13406         ldap_parse_vlv_control \
13407         ldap_parse_vlvresponse_control
13408 do :
13409   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13412   cat >>confdefs.h <<_ACEOF
13413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13414 _ACEOF
13415
13416 fi
13417 done
13418
13419 LIBS="$ac_wine_check_funcs_save_LIBS"
13420 fi
13421 if test "x$LDAPLIBS" = "x"; then :
13422   case "x$with_ldap" in
13423   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13424   xno) ;;
13425   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13426 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13427 esac
13428 fi
13429
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13431 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13432 if ${wine_cv_one_arg_mkdir+:} false; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h.  */
13437 #include <sys/stat.h>
13438 int
13439 main ()
13440 {
13441 mkdir("foo");
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 if ac_fn_c_try_compile "$LINENO"; then :
13447   wine_cv_one_arg_mkdir=yes
13448 else
13449   wine_cv_one_arg_mkdir=no
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13454 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13455 if test "$wine_cv_one_arg_mkdir" = "yes"
13456 then
13457
13458 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13459
13460 fi
13461
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13463 $as_echo_n "checking for sched_setaffinity... " >&6; }
13464 if ${wine_cv_have_sched_setaffinity+:} false; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469 #define _GNU_SOURCE
13470 #include <sched.h>
13471 int
13472 main ()
13473 {
13474 sched_setaffinity(0, 0, 0);
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_link "$LINENO"; then :
13480   wine_cv_have_sched_setaffinity=yes
13481 else
13482   wine_cv_have_sched_setaffinity=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext \
13485     conftest$ac_exeext conftest.$ac_ext
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13488 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13489 if test "$wine_cv_have_sched_setaffinity" = "yes"
13490 then
13491
13492 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13493
13494 fi
13495
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13498 $as_echo_n "checking for inline... " >&6; }
13499 if ${ac_cv_c_inline+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   ac_cv_c_inline=no
13503 for ac_kw in inline __inline__ __inline; do
13504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h.  */
13506 #ifndef __cplusplus
13507 typedef int foo_t;
13508 static $ac_kw foo_t static_foo () {return 0; }
13509 $ac_kw foo_t foo () {return 0; }
13510 #endif
13511
13512 _ACEOF
13513 if ac_fn_c_try_compile "$LINENO"; then :
13514   ac_cv_c_inline=$ac_kw
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517   test "$ac_cv_c_inline" != no && break
13518 done
13519
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13522 $as_echo "$ac_cv_c_inline" >&6; }
13523
13524 case $ac_cv_c_inline in
13525   inline | yes) ;;
13526   *)
13527     case $ac_cv_c_inline in
13528       no) ac_val=;;
13529       *) ac_val=$ac_cv_c_inline;;
13530     esac
13531     cat >>confdefs.h <<_ACEOF
13532 #ifndef __cplusplus
13533 #define inline $ac_val
13534 #endif
13535 _ACEOF
13536     ;;
13537 esac
13538
13539 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13540 if test "x$ac_cv_type_mode_t" = xyes; then :
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_MODE_T 1
13544 _ACEOF
13545
13546
13547 fi
13548 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13549 if test "x$ac_cv_type_off_t" = xyes; then :
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_OFF_T 1
13553 _ACEOF
13554
13555
13556 fi
13557 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13558 if test "x$ac_cv_type_pid_t" = xyes; then :
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define HAVE_PID_T 1
13562 _ACEOF
13563
13564
13565 fi
13566 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13567 if test "x$ac_cv_type_size_t" = xyes; then :
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_SIZE_T 1
13571 _ACEOF
13572
13573
13574 fi
13575 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13576 if test "x$ac_cv_type_ssize_t" = xyes; then :
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define HAVE_SSIZE_T 1
13580 _ACEOF
13581
13582
13583 fi
13584 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13585 if test "x$ac_cv_type_long_long" = xyes; then :
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_LONG_LONG 1
13589 _ACEOF
13590
13591
13592 fi
13593 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13594 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_FSBLKCNT_T 1
13598 _ACEOF
13599
13600
13601 fi
13602 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13603 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_FSFILCNT_T 1
13607 _ACEOF
13608
13609
13610 fi
13611
13612 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13613 #include <signal.h>
13614 "
13615 if test "x$ac_cv_type_sigset_t" = xyes; then :
13616
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_SIGSET_T 1
13619 _ACEOF
13620
13621
13622 fi
13623
13624 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13625 "
13626 if test "x$ac_cv_type_request_sense" = xyes; then :
13627
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_REQUEST_SENSE 1
13630 _ACEOF
13631
13632
13633 fi
13634
13635
13636 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13637 #ifdef HAVE_SYS_SOCKET_H
13638 #include <sys/socket.h>
13639 #endif
13640 #ifdef HAVE_SYS_SOCKETVAR_H
13641 #include <sys/socketvar.h>
13642 #endif
13643 #ifdef HAVE_NET_ROUTE_H
13644 #include <net/route.h>
13645 #endif
13646 #ifdef HAVE_NETINET_IN_H
13647 #include <netinet/in.h>
13648 #endif
13649 #ifdef HAVE_NETINET_IN_SYSTM_H
13650 #include <netinet/in_systm.h>
13651 #endif
13652 #ifdef HAVE_NETINET_IP_H
13653 #include <netinet/ip.h>
13654 #endif
13655 #ifdef HAVE_NETINET_IN_PCB_H
13656 #include <netinet/in_pcb.h>
13657 #endif
13658 "
13659 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13660
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_STRUCT_XINPGEN 1
13663 _ACEOF
13664
13665
13666 fi
13667
13668
13669 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13670 #include <linux/input.h>
13671 #endif
13672 "
13673 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13674
13675 cat >>confdefs.h <<_ACEOF
13676 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13677 _ACEOF
13678
13679
13680 fi
13681
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13684 $as_echo_n "checking for sigaddset... " >&6; }
13685 if ${wine_cv_have_sigaddset+:} false; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690 #include <signal.h>
13691 int
13692 main ()
13693 {
13694 sigset_t set; sigaddset(&set,SIGTERM);
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700   wine_cv_have_sigaddset=yes
13701 else
13702   wine_cv_have_sigaddset=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705     conftest$ac_exeext conftest.$ac_ext
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13708 $as_echo "$wine_cv_have_sigaddset" >&6; }
13709 if test "$wine_cv_have_sigaddset" = "yes"
13710 then
13711
13712 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13713
13714 fi
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13718 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13719 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h.  */
13724 #include <netdb.h>
13725 int
13726 main ()
13727 {
13728
13729     char *name=0;
13730     struct hostent he;
13731     struct hostent *result;
13732     char *buf=0;
13733     int bufsize=0;
13734     int errnr;
13735     char *addr=0;
13736     int addrlen=0;
13737     int addrtype=0;
13738     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13739     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13740
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746   wine_cv_linux_gethostbyname_r_6=yes
13747 else
13748   wine_cv_linux_gethostbyname_r_6=no
13749
13750 fi
13751 rm -f core conftest.err conftest.$ac_objext \
13752     conftest$ac_exeext conftest.$ac_ext
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13756 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13757    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13758    then
13759
13760 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13761
13762    fi
13763
13764 if test "$ac_cv_header_linux_joystick_h" = "yes"
13765 then
13766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13767 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13768 if ${wine_cv_linux_joystick_22_api+:} false; then :
13769   $as_echo_n "(cached) " >&6
13770 else
13771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h.  */
13773
13774         #include <sys/ioctl.h>
13775         #include <sys/types.h>
13776         #include <linux/joystick.h>
13777
13778         struct js_event blub;
13779         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13780         #error "no 2.2 header"
13781         #endif
13782
13783 int
13784 main ()
13785 {
13786 /*empty*/
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792   wine_cv_linux_joystick_22_api=yes
13793 else
13794   wine_cv_linux_joystick_22_api=no
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13800 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13801    if test "$wine_cv_linux_joystick_22_api" = "yes"
13802    then
13803
13804 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13805
13806    fi
13807 fi
13808
13809
13810 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13811 #ifdef HAVE_SYS_PARAM_H
13812 # include <sys/param.h>
13813 #endif
13814 #ifdef HAVE_SYS_MOUNT_H
13815 # include <sys/mount.h>
13816 #endif
13817 #ifdef HAVE_SYS_VFS_H
13818 # include <sys/vfs.h>
13819 #endif
13820 #ifdef HAVE_SYS_STATFS_H
13821 # include <sys/statfs.h>
13822 #endif
13823 "
13824 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_STRUCT_STATFS_F_BFREE 1
13828 _ACEOF
13829
13830
13831 fi
13832 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13833 #ifdef HAVE_SYS_PARAM_H
13834 # include <sys/param.h>
13835 #endif
13836 #ifdef HAVE_SYS_MOUNT_H
13837 # include <sys/mount.h>
13838 #endif
13839 #ifdef HAVE_SYS_VFS_H
13840 # include <sys/vfs.h>
13841 #endif
13842 #ifdef HAVE_SYS_STATFS_H
13843 # include <sys/statfs.h>
13844 #endif
13845 "
13846 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13847
13848 cat >>confdefs.h <<_ACEOF
13849 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13850 _ACEOF
13851
13852
13853 fi
13854 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13855 #ifdef HAVE_SYS_PARAM_H
13856 # include <sys/param.h>
13857 #endif
13858 #ifdef HAVE_SYS_MOUNT_H
13859 # include <sys/mount.h>
13860 #endif
13861 #ifdef HAVE_SYS_VFS_H
13862 # include <sys/vfs.h>
13863 #endif
13864 #ifdef HAVE_SYS_STATFS_H
13865 # include <sys/statfs.h>
13866 #endif
13867 "
13868 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13869
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13872 _ACEOF
13873
13874
13875 fi
13876 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13877 #ifdef HAVE_SYS_PARAM_H
13878 # include <sys/param.h>
13879 #endif
13880 #ifdef HAVE_SYS_MOUNT_H
13881 # include <sys/mount.h>
13882 #endif
13883 #ifdef HAVE_SYS_VFS_H
13884 # include <sys/vfs.h>
13885 #endif
13886 #ifdef HAVE_SYS_STATFS_H
13887 # include <sys/statfs.h>
13888 #endif
13889 "
13890 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13891
13892 cat >>confdefs.h <<_ACEOF
13893 #define HAVE_STRUCT_STATFS_F_FFREE 1
13894 _ACEOF
13895
13896
13897 fi
13898 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13899 #ifdef HAVE_SYS_PARAM_H
13900 # include <sys/param.h>
13901 #endif
13902 #ifdef HAVE_SYS_MOUNT_H
13903 # include <sys/mount.h>
13904 #endif
13905 #ifdef HAVE_SYS_VFS_H
13906 # include <sys/vfs.h>
13907 #endif
13908 #ifdef HAVE_SYS_STATFS_H
13909 # include <sys/statfs.h>
13910 #endif
13911 "
13912 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13913
13914 cat >>confdefs.h <<_ACEOF
13915 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13916 _ACEOF
13917
13918
13919 fi
13920 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13921 #ifdef HAVE_SYS_PARAM_H
13922 # include <sys/param.h>
13923 #endif
13924 #ifdef HAVE_SYS_MOUNT_H
13925 # include <sys/mount.h>
13926 #endif
13927 #ifdef HAVE_SYS_VFS_H
13928 # include <sys/vfs.h>
13929 #endif
13930 #ifdef HAVE_SYS_STATFS_H
13931 # include <sys/statfs.h>
13932 #endif
13933 "
13934 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13935
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13938 _ACEOF
13939
13940
13941 fi
13942
13943
13944 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13945 #include <sys/statvfs.h>
13946 #endif
13947 "
13948 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13949
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13952 _ACEOF
13953
13954
13955 fi
13956
13957
13958 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
13959 #include <dirent.h>
13960 #endif
13961 "
13962 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
13963
13964 cat >>confdefs.h <<_ACEOF
13965 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
13966 _ACEOF
13967
13968
13969 fi
13970
13971
13972 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13973 #ifdef HAVE_SYS_SOCKET_H
13974 # include <sys/socket.h>
13975 #endif
13976 #ifdef HAVE_SYS_UN_H
13977 # include <sys/un.h>
13978 #endif
13979 "
13980 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13981
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13984 _ACEOF
13985
13986
13987 fi
13988 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13989 #ifdef HAVE_SYS_SOCKET_H
13990 # include <sys/socket.h>
13991 #endif
13992 #ifdef HAVE_SYS_UN_H
13993 # include <sys/un.h>
13994 #endif
13995 "
13996 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13997
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14000 _ACEOF
14001
14002
14003 fi
14004 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14005 #ifdef HAVE_SYS_SOCKET_H
14006 # include <sys/socket.h>
14007 #endif
14008 #ifdef HAVE_SYS_UN_H
14009 # include <sys/un.h>
14010 #endif
14011 "
14012 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14013
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14016 _ACEOF
14017
14018
14019 fi
14020
14021
14022 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14023 #ifdef HAVE_SCSI_SG_H
14024 #include <scsi/sg.h>
14025 #endif
14026 "
14027 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_SCSIREQ_T_CMD 1
14031 _ACEOF
14032
14033
14034 fi
14035 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>
14036 #ifdef HAVE_SCSI_SG_H
14037 #include <scsi/sg.h>
14038 #endif
14039 "
14040 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14041
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14044 _ACEOF
14045
14046
14047 fi
14048
14049
14050 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14051 "
14052 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_SIGINFO_T_SI_FD 1
14056 _ACEOF
14057
14058
14059 fi
14060
14061
14062 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14063 #ifdef HAVE_SYS_MTIO_H
14064 #include <sys/mtio.h>
14065 #endif
14066 "
14067 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14068
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14071 _ACEOF
14072
14073
14074 fi
14075 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14076 #ifdef HAVE_SYS_MTIO_H
14077 #include <sys/mtio.h>
14078 #endif
14079 "
14080 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14081
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14084 _ACEOF
14085
14086
14087 fi
14088 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14089 #ifdef HAVE_SYS_MTIO_H
14090 #include <sys/mtio.h>
14091 #endif
14092 "
14093 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14094
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14097 _ACEOF
14098
14099
14100 fi
14101
14102
14103 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14104 #include <getopt.h>
14105 #endif
14106 "
14107 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14108
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_STRUCT_OPTION_NAME 1
14111 _ACEOF
14112
14113
14114 fi
14115
14116
14117 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14118 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14122 _ACEOF
14123
14124
14125 fi
14126 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14127 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14128
14129 cat >>confdefs.h <<_ACEOF
14130 #define HAVE_STRUCT_STAT_ST_MTIM 1
14131 _ACEOF
14132
14133
14134 fi
14135 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14136 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14137
14138 cat >>confdefs.h <<_ACEOF
14139 #define HAVE_STRUCT_STAT_ST_CTIM 1
14140 _ACEOF
14141
14142
14143 fi
14144 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14145 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14146
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_STRUCT_STAT_ST_ATIM 1
14149 _ACEOF
14150
14151
14152 fi
14153
14154
14155 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
14156 #include <sys/types.h>
14157 #endif
14158 #ifdef HAVE_NETINET_IN_H
14159 #include <netinet/in.h>
14160 #endif
14161 "
14162 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14163
14164 cat >>confdefs.h <<_ACEOF
14165 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14166 _ACEOF
14167
14168
14169 fi
14170
14171
14172 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14173 #include <sys/types.h>
14174 #endif
14175 #ifdef HAVE_NETINET_IN_H
14176 # include <netinet/in.h>
14177 #endif
14178 #ifdef HAVE_ARPA_NAMESER_H
14179 # include <arpa/nameser.h>
14180 #endif
14181 "
14182 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14183
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_NS_MSG__MSG_PTR 1
14186 _ACEOF
14187
14188
14189 fi
14190
14191
14192 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14193 #include <sys/types.h>
14194 #endif
14195 #ifdef HAVE_NETINET_IP_H
14196 #include <netinet/ip.h>
14197 #endif
14198 #ifdef HAVE_NETINET_IP_ICMP_H
14199 #include <netinet/ip_icmp.h>
14200 #endif
14201 #ifdef HAVE_NETINET_ICMP_VAR_H
14202 #include <netinet/icmp_var.h>
14203 #endif
14204 "
14205 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14206
14207 cat >>confdefs.h <<_ACEOF
14208 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14209 _ACEOF
14210
14211
14212 fi
14213
14214
14215 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14216 #include <sys/types.h>
14217 #endif
14218 #ifdef HAVE_ALIAS_H
14219 #include <alias.h>
14220 #endif
14221 #ifdef HAVE_SYS_SOCKET_H
14222 #include <sys/socket.h>
14223 #endif
14224 #ifdef HAVE_SYS_SOCKETVAR_H
14225 #include <sys/socketvar.h>
14226 #endif
14227 #ifdef HAVE_SYS_TIMEOUT_H
14228 #include <sys/timeout.h>
14229 #endif
14230 #ifdef HAVE_NETINET_IN_H
14231 #include <netinet/in.h>
14232 #endif
14233 #ifdef HAVE_NETINET_IN_SYSTM_H
14234 #include <netinet/in_systm.h>
14235 #endif
14236 #ifdef HAVE_NETINET_IP_H
14237 #include <netinet/ip.h>
14238 #endif
14239 #ifdef HAVE_NETINET_IP_VAR_H
14240 #include <netinet/ip_var.h>
14241 #endif
14242 #ifdef HAVE_NETINET_IP_ICMP_H
14243 #include <netinet/ip_icmp.h>
14244 #endif
14245 #ifdef HAVE_NETINET_ICMP_VAR_H
14246 #include <netinet/icmp_var.h>
14247 #endif
14248 "
14249 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14250
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14253 _ACEOF
14254
14255
14256 fi
14257
14258
14259 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14260 #include <sys/types.h>
14261 #endif
14262 #ifdef HAVE_SYS_SOCKETVAR_H
14263 #include <sys/socketvar.h>
14264 #endif
14265 #ifdef HAVE_NETINET_IN_H
14266 #include <netinet/in.h>
14267 #endif
14268 #ifdef HAVE_NETINET_IP_VAR_H
14269 #include <netinet/ip_var.h>
14270 #endif
14271 "
14272 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14273
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14276 _ACEOF
14277
14278
14279 fi
14280
14281
14282 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14283 #include <netinet/ip_var.h>
14284 #endif
14285 "
14286 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14290 _ACEOF
14291
14292
14293 fi
14294
14295
14296 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14297 #include <sys/types.h>
14298 #endif
14299 #ifdef HAVE_SYS_SOCKETVAR_H
14300 #include <sys/socketvar.h>
14301 #endif
14302 #ifdef HAVE_NETINET_IN_H
14303 #include <netinet/in.h>
14304 #endif
14305 #ifdef HAVE_NETINET_TCP_H
14306 #include <netinet/tcp.h>
14307 #endif
14308 #ifdef HAVE_NETINET_TCP_VAR_H
14309 #include <netinet/tcp_var.h>
14310 #endif
14311 "
14312 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14313
14314 cat >>confdefs.h <<_ACEOF
14315 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14316 _ACEOF
14317
14318
14319 fi
14320
14321
14322 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14323 #include <netinet/tcp_var.h>
14324 #endif
14325 "
14326 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14327
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14330 _ACEOF
14331
14332
14333 fi
14334
14335
14336 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14337 #include <sys/types.h>
14338 #endif
14339 #ifdef HAVE_NETINET_IN_H
14340 #include <netinet/in.h>
14341 #endif
14342 #ifdef HAVE_NETINET_IP_VAR_H
14343 #include <netinet/ip_var.h>
14344 #endif
14345 #ifdef HAVE_NETINET_UDP_H
14346 #include <netinet/udp.h>
14347 #endif
14348 #ifdef HAVE_NETINET_UDP_VAR_H
14349 #include <netinet/udp_var.h>
14350 #endif
14351 "
14352 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14353
14354 cat >>confdefs.h <<_ACEOF
14355 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14356 _ACEOF
14357
14358
14359 fi
14360
14361
14362 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14363 #include <sys/types.h>
14364 #endif
14365 #ifdef HAVE_NET_IF_H
14366 # include <net/if.h>
14367 #endif
14368 "
14369 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14370
14371 cat >>confdefs.h <<_ACEOF
14372 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14373 _ACEOF
14374
14375
14376 fi
14377
14378
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14380 $as_echo_n "checking for timezone variable... " >&6; }
14381 if ${ac_cv_have_timezone+:} false; then :
14382   $as_echo_n "(cached) " >&6
14383 else
14384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h.  */
14386 #include <time.h>
14387 int
14388 main ()
14389 {
14390 timezone = 1
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"; then :
14396   ac_cv_have_timezone="yes"
14397 else
14398   ac_cv_have_timezone="no"
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext \
14401     conftest$ac_exeext conftest.$ac_ext
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14404 $as_echo "$ac_cv_have_timezone" >&6; }
14405 if test "$ac_cv_have_timezone" = "yes"
14406 then
14407
14408 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14409
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14412 $as_echo_n "checking for daylight variable... " >&6; }
14413 if ${ac_cv_have_daylight+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h.  */
14418 #include <time.h>
14419 int
14420 main ()
14421 {
14422 daylight = 1
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 if ac_fn_c_try_link "$LINENO"; then :
14428   ac_cv_have_daylight="yes"
14429 else
14430   ac_cv_have_daylight="no"
14431 fi
14432 rm -f core conftest.err conftest.$ac_objext \
14433     conftest$ac_exeext conftest.$ac_ext
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14436 $as_echo "$ac_cv_have_daylight" >&6; }
14437 if test "$ac_cv_have_daylight" = "yes"
14438 then
14439
14440 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14441
14442 fi
14443
14444 ac_save_LIBS="$LIBS"
14445 LIBS="$LIBS -lm"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14447 $as_echo_n "checking for isinf... " >&6; }
14448 if ${ac_cv_have_isinf+:} false; then :
14449   $as_echo_n "(cached) " >&6
14450 else
14451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h.  */
14453 #include <math.h>
14454 int
14455 main ()
14456 {
14457 float f = 0.0; return isinf(f)
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463   ac_cv_have_isinf="yes"
14464 else
14465   ac_cv_have_isinf="no"
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext \
14468     conftest$ac_exeext conftest.$ac_ext
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14471 $as_echo "$ac_cv_have_isinf" >&6; }
14472 if test "$ac_cv_have_isinf" = "yes"
14473 then
14474
14475 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14476
14477 fi
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14480 $as_echo_n "checking for isnan... " >&6; }
14481 if ${ac_cv_have_isnan+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h.  */
14486 #include <math.h>
14487 int
14488 main ()
14489 {
14490 float f = 0.0; return isnan(f)
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496   ac_cv_have_isnan="yes"
14497 else
14498   ac_cv_have_isnan="no"
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext \
14501     conftest$ac_exeext conftest.$ac_ext
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14504 $as_echo "$ac_cv_have_isnan" >&6; }
14505 if test "$ac_cv_have_isnan" = "yes"
14506 then
14507
14508 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14509
14510 fi
14511 LIBS="$ac_save_LIBS"
14512
14513
14514 case $host_cpu in
14515   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14516 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14517 if ${ac_cv_cpp_def___i386__+:} false; then :
14518   $as_echo_n "(cached) " >&6
14519 else
14520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h.  */
14522 #ifndef __i386__
14523 yes
14524 #endif
14525 _ACEOF
14526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14527   $EGREP "yes" >/dev/null 2>&1; then :
14528   ac_cv_cpp_def___i386__=yes
14529 else
14530   ac_cv_cpp_def___i386__=no
14531 fi
14532 rm -f conftest*
14533
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14536 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14537 if test $ac_cv_cpp_def___i386__ = yes; then :
14538   CFLAGS="$CFLAGS -D__i386__"
14539   LINTFLAGS="$LINTFLAGS -D__i386__"
14540 fi ;;
14541   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14542 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14543 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h.  */
14548 #ifndef __x86_64__
14549 yes
14550 #endif
14551 _ACEOF
14552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14553   $EGREP "yes" >/dev/null 2>&1; then :
14554   ac_cv_cpp_def___x86_64__=yes
14555 else
14556   ac_cv_cpp_def___x86_64__=no
14557 fi
14558 rm -f conftest*
14559
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14562 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14563 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14564   CFLAGS="$CFLAGS -D__x86_64__"
14565   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14566 fi ;;
14567   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14568 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14569 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14570   $as_echo_n "(cached) " >&6
14571 else
14572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574 #ifndef __sparc64__
14575 yes
14576 #endif
14577 _ACEOF
14578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14579   $EGREP "yes" >/dev/null 2>&1; then :
14580   ac_cv_cpp_def___sparc64__=yes
14581 else
14582   ac_cv_cpp_def___sparc64__=no
14583 fi
14584 rm -f conftest*
14585
14586 fi
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14588 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14589 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14590   CFLAGS="$CFLAGS -D__sparc64__"
14591   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14592 fi ;;
14593   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14594 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14595 if ${ac_cv_cpp_def___sparc__+:} false; then :
14596   $as_echo_n "(cached) " >&6
14597 else
14598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 #ifndef __sparc__
14601 yes
14602 #endif
14603 _ACEOF
14604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14605   $EGREP "yes" >/dev/null 2>&1; then :
14606   ac_cv_cpp_def___sparc__=yes
14607 else
14608   ac_cv_cpp_def___sparc__=no
14609 fi
14610 rm -f conftest*
14611
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14614 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14615 if test $ac_cv_cpp_def___sparc__ = yes; then :
14616   CFLAGS="$CFLAGS -D__sparc__"
14617   LINTFLAGS="$LINTFLAGS -D__sparc__"
14618 fi ;;
14619   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14620 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14621 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14622   $as_echo_n "(cached) " >&6
14623 else
14624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h.  */
14626 #ifndef __powerpc64__
14627 yes
14628 #endif
14629 _ACEOF
14630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631   $EGREP "yes" >/dev/null 2>&1; then :
14632   ac_cv_cpp_def___powerpc64__=yes
14633 else
14634   ac_cv_cpp_def___powerpc64__=no
14635 fi
14636 rm -f conftest*
14637
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14640 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14641 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14642   CFLAGS="$CFLAGS -D__powerpc64__"
14643   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14644 fi ;;
14645   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14646 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14647 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14648   $as_echo_n "(cached) " >&6
14649 else
14650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h.  */
14652 #ifndef __powerpc__
14653 yes
14654 #endif
14655 _ACEOF
14656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14657   $EGREP "yes" >/dev/null 2>&1; then :
14658   ac_cv_cpp_def___powerpc__=yes
14659 else
14660   ac_cv_cpp_def___powerpc__=no
14661 fi
14662 rm -f conftest*
14663
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14666 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14667 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14668   CFLAGS="$CFLAGS -D__powerpc__"
14669   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14670 fi ;;
14671   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14672 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14673 if ${ac_cv_cpp_def___arm__+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h.  */
14678 #ifndef __arm__
14679 yes
14680 #endif
14681 _ACEOF
14682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14683   $EGREP "yes" >/dev/null 2>&1; then :
14684   ac_cv_cpp_def___arm__=yes
14685 else
14686   ac_cv_cpp_def___arm__=no
14687 fi
14688 rm -f conftest*
14689
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14692 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14693 if test $ac_cv_cpp_def___arm__ = yes; then :
14694   CFLAGS="$CFLAGS -D__arm__"
14695   LINTFLAGS="$LINTFLAGS -D__arm__"
14696 fi ;;
14697 esac
14698
14699 case $host_vendor in
14700   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14701 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14702 if ${ac_cv_cpp_def___sun__+:} false; then :
14703   $as_echo_n "(cached) " >&6
14704 else
14705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h.  */
14707 #ifndef __sun__
14708 yes
14709 #endif
14710 _ACEOF
14711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14712   $EGREP "yes" >/dev/null 2>&1; then :
14713   ac_cv_cpp_def___sun__=yes
14714 else
14715   ac_cv_cpp_def___sun__=no
14716 fi
14717 rm -f conftest*
14718
14719 fi
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14721 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14722 if test $ac_cv_cpp_def___sun__ = yes; then :
14723   CFLAGS="$CFLAGS -D__sun__"
14724   LINTFLAGS="$LINTFLAGS -D__sun__"
14725 fi ;;
14726 esac
14727
14728
14729
14730
14731
14732 ac_config_commands="$ac_config_commands include/stamp-h"
14733
14734
14735 ALL_MAKEFILE_DEPENDS="
14736 # Rules automatically generated by configure
14737
14738 .INIT: Makefile
14739 .MAKEFILEDEPS:
14740 all: Makefile
14741 Makefile: Makefile.in Make.vars.in Make.rules config.status
14742         @./config.status Make.tmp Makefile"
14743
14744 ALL_POT_FILES=""
14745 ALL_TEST_RESOURCES=""
14746
14747
14748 wine_fn_append_file ()
14749 {
14750     as_fn_append $1 " \\$as_nl  $2"
14751 }
14752
14753 wine_fn_append_rule ()
14754 {
14755     as_fn_append $1 "$as_nl$2"
14756 }
14757
14758 wine_fn_has_flag ()
14759 {
14760     expr ",$2," : ".*,$1,.*" >/dev/null
14761 }
14762
14763 wine_fn_all_dir_rules ()
14764 {
14765     ac_dir=$1
14766     ac_alldeps=$2
14767     ac_makedep="\$(MAKEDEP)"
14768     ac_input=Make.vars.in:$ac_dir/Makefile.in
14769     if test $ac_dir != tools
14770     then
14771                 ac_alldeps="$2 $ac_makedep"
14772     fi
14773     case $2 in
14774       *.in) ac_input=$ac_input:$2 ;;
14775       *) ac_makedep="$2 $ac_makedep" ;;
14776     esac
14777
14778     wine_fn_append_file ALL_DIRS $ac_dir
14779     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14780 "__clean__: $ac_dir/__clean__
14781 .PHONY: $ac_dir/__clean__
14782 $ac_dir/__clean__: $ac_dir/Makefile
14783         @cd $ac_dir && \$(MAKE) clean
14784         \$(RM) $ac_dir/Makefile
14785 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14786         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14787 depend: $ac_dir/__depend__
14788 .PHONY: $ac_dir/__depend__
14789 $ac_dir/__depend__: $ac_makedep dummy
14790         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14791 }
14792
14793 wine_fn_pot_rules ()
14794 {
14795     ac_dir=$1
14796     ac_flags=$2
14797
14798     test "x$with_gettextpo" = xyes || return
14799
14800     if wine_fn_has_flag mc $ac_flags
14801     then
14802         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14803         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14804 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14805         @cd $ac_dir && \$(MAKE) msg.pot
14806 $ac_dir/msg.pot: tools/wmc include"
14807     fi
14808     if wine_fn_has_flag po $ac_flags
14809     then
14810         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14811         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14812 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14813         @cd $ac_dir && \$(MAKE) rsrc.pot
14814 $ac_dir/rsrc.pot: tools/wrc include"
14815     fi
14816 }
14817
14818 wine_fn_config_makefile ()
14819 {
14820     ac_dir=$1
14821     ac_enable=$2
14822     ac_flags=$3
14823     ac_rules=$4
14824     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14825   return 0
14826 fi
14827
14828     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14829     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14830 "all: $ac_dir
14831 .PHONY: $ac_dir
14832 $ac_dir: $ac_dir/Makefile dummy
14833         @cd $ac_dir && \$(MAKE)"
14834
14835     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14836
14837     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14838 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14839 $ac_dir/__install__:: $ac_dir
14840         @cd $ac_dir && \$(MAKE) install
14841 $ac_dir/__uninstall__:: $ac_dir/Makefile
14842         @cd $ac_dir && \$(MAKE) uninstall
14843 install:: $ac_dir/__install__
14844 __uninstall__: $ac_dir/__uninstall__"
14845
14846     if wine_fn_has_flag install-lib $ac_flags
14847     then
14848         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14849 ".PHONY: $ac_dir/__install-lib__
14850 $ac_dir/__install-lib__:: $ac_dir
14851         @cd $ac_dir && \$(MAKE) install-lib
14852 install-lib:: $ac_dir/__install-lib__"
14853     fi
14854
14855     if wine_fn_has_flag install-dev $ac_flags
14856     then
14857         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14858 ".PHONY: $ac_dir/__install-dev
14859 $ac_dir/__install-dev__:: $ac_dir
14860         @cd $ac_dir && \$(MAKE) install-dev
14861 install-dev:: $ac_dir/__install-dev__"
14862     fi
14863 }
14864
14865 wine_fn_config_lib ()
14866 {
14867     ac_name=$1
14868     ac_flags=$2
14869     ac_dir=dlls/$ac_name
14870     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14871
14872     if wine_fn_has_flag install-dev $ac_flags
14873     then :
14874     else
14875         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14876 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14877 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14878         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14879 $ac_dir/__uninstall__::
14880         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14881 install install-dev:: $ac_dir/__install__
14882 __uninstall__: $ac_dir/__uninstall__"
14883     fi
14884
14885     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14886     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14887 }
14888
14889 wine_fn_config_dll ()
14890 {
14891     ac_name=$1
14892     ac_dir=dlls/$ac_name
14893     ac_enable=$2
14894     ac_flags=$3
14895     ac_implib=${4:-$ac_name}
14896     ac_file=$ac_dir/lib$ac_implib
14897     ac_dll=$ac_name
14898     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14899     ac_implibflags=""
14900
14901     case $ac_name in
14902       *16) ac_implibflags=" -m16" ;;
14903       *.*) ;;
14904       *)   ac_dll=$ac_dll.dll ;;
14905     esac
14906
14907     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14908
14909     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14910                 test "$ac_enable" != enable_win16 || return 0
14911                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14912 else
14913   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14914 "$ac_dir: __builddeps__
14915 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14916         @cd $ac_dir && \$(MAKE) \$@"
14917
14918         if wine_fn_has_flag install-lib $ac_flags
14919         then :
14920         else
14921             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14922 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14923 install install-lib:: $ac_dir/__install-lib__
14924 __uninstall__: $ac_dir/__uninstall__"
14925             if test -n "$DLLEXT"
14926             then
14927                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14928 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14929         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14930         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14931 $ac_dir/__uninstall__::
14932         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14933             else
14934                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14935 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14936         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14937 $ac_dir/__uninstall__::
14938         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14939             fi
14940         fi
14941
14942         wine_fn_pot_rules $ac_dir $ac_flags
14943 fi
14944
14945     if wine_fn_has_flag staticimplib $ac_flags
14946     then
14947         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14948 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14949 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14950 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14951         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14952 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14953         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14954 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14955 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14956         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14957 $ac_dir/__uninstall__::
14958         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14959 install install-dev:: $ac_dir/__install-dev__
14960 __uninstall__: $ac_dir/__uninstall__"
14961
14962         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14963         then
14964             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14965 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14966         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14967 $ac_dir/__uninstall__::
14968         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14969         fi
14970
14971         if test "x$CROSSTEST_DISABLE" = x
14972         then
14973             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14974 "__builddeps__: $ac_file.cross.a
14975 $ac_file.cross.a: $ac_dir/Makefile dummy
14976         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14977         fi
14978
14979     elif wine_fn_has_flag implib $ac_flags
14980     then
14981         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14982 "__builddeps__: $ac_file.$IMPLIBEXT
14983 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14984         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14985 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14986         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14987 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14988 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14989         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14990 $ac_dir/__uninstall__::
14991         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14992 install install-dev:: $ac_dir/__install-dev__
14993 __uninstall__: $ac_dir/__uninstall__"
14994         if test "x$CROSSTEST_DISABLE" = x
14995         then
14996             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14997 "__builddeps__: $ac_file.cross.a
14998 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14999         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15000         fi
15001
15002         if test "$ac_name" != "$ac_implib"
15003         then
15004             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15005 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15006 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15007         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15008 clean::
15009         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15010             if test "x$CROSSTEST_DISABLE" = x
15011             then
15012                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15013 "__builddeps__: dlls/lib$ac_implib.cross.a
15014 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15015         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15016             fi
15017         fi
15018     fi
15019 }
15020
15021 wine_fn_config_program ()
15022 {
15023     ac_name=$1
15024     ac_dir=programs/$ac_name
15025     ac_enable=$2
15026     ac_flags=$3
15027     ac_program=$ac_name
15028
15029     case $ac_name in
15030       *.*) ;;
15031       *)   ac_program=$ac_program.exe ;;
15032     esac
15033
15034     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15035
15036     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15037
15038 else
15039   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15040 "$ac_dir: __builddeps__"
15041
15042     wine_fn_pot_rules $ac_dir $ac_flags
15043
15044     wine_fn_has_flag install $ac_flags || return
15045     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15046 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15047 install install-lib:: $ac_dir/__install__
15048 __uninstall__: $ac_dir/__uninstall__"
15049
15050     if test -n "$DLLEXT"
15051     then
15052         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15053 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15054         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15055         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15056 $ac_dir/__uninstall__::
15057         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15058
15059         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15060         then
15061             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15062 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15063         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15064 $ac_dir/__uninstall__::
15065         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15066         fi
15067     else
15068         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15069 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15070         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15071 $ac_dir/__uninstall__::
15072         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15073     fi
15074
15075     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15076     then
15077         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15078 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15079         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15080 $ac_dir/__uninstall__::
15081         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15082     fi
15083 fi
15084 }
15085
15086 wine_fn_config_test ()
15087 {
15088     ac_dir=$1
15089     ac_name=$2
15090     ac_flags=$3
15091     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15092     wine_fn_all_dir_rules $ac_dir Maketest.rules
15093
15094     if test "x$enable_tests" = xno; then :
15095
15096 else
15097   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15098 "all: $ac_dir
15099 .PHONY: $ac_dir
15100 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15101         @cd $ac_dir && \$(MAKE)
15102 programs/winetest: $ac_dir
15103 check test: $ac_dir/__test__
15104 .PHONY: $ac_dir/__test__
15105 $ac_dir/__test__: dummy
15106         @cd $ac_dir && \$(MAKE) test
15107 testclean::
15108         \$(RM) $ac_dir/*.ok"
15109
15110         if test "x$CROSSTEST_DISABLE" = x
15111         then
15112             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15113 "crosstest: $ac_dir/__crosstest__
15114 .PHONY: $ac_dir/__crosstest__
15115 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15116         @cd $ac_dir && \$(MAKE) crosstest"
15117         fi
15118 fi
15119 }
15120
15121 wine_fn_config_tool ()
15122 {
15123     ac_dir=$1
15124     ac_flags=$2
15125     if test "x$enable_tools" = xno; then :
15126   return 0
15127 fi
15128
15129     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15130
15131     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15132     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15133     case $ac_dir in
15134       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15135     esac
15136 }
15137
15138 wine_fn_config_makerules ()
15139 {
15140     ac_rules=$1
15141     ac_deps=$2
15142     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15143 "$ac_rules: $ac_rules.in $ac_deps config.status
15144         @./config.status $ac_rules
15145 distclean::
15146         \$(RM) $ac_rules"
15147 }
15148
15149 wine_fn_config_symlink ()
15150 {
15151     ac_link=$1
15152     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15153 "$ac_link:
15154         @./config.status $ac_link
15155 distclean::
15156         \$(RM) $ac_link"
15157 }
15158
15159 if test "x$CROSSTEST_DISABLE" != x
15160 then
15161     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15162 "crosstest:
15163         @echo \"crosstest is not supported (mingw not installed?)\" && false"
15164 fi
15165 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15166 wine_fn_config_symlink dlls/shell32/AUTHORS
15167 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15168 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15169 if test "x$enable_fonts" != xno; then
15170 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15171 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15172 fi
15173 if test "x$enable_fonts" != xno; then
15174 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15175 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15176 fi
15177 if test "x$enable_fonts" != xno; then
15178 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15179 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15180 fi
15181 if test "x$enable_fonts" != xno; then
15182 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15183 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15184 fi
15185 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15186 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15187 if test "x$enable_tools" != xno; then
15188 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15189 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15190 fi
15191 ac_config_links="$ac_config_links wine:tools/winewrapper"
15192 wine_fn_config_symlink wine
15193 if test "x$enable_win64" != xno; then
15194 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15195 wine_fn_config_symlink wine64
15196 fi
15197
15198 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15199
15200 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15201
15202 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15203
15204 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15205
15206 ac_config_commands="$ac_config_commands dlls/user32/resources"
15207
15208 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15209
15210 ac_config_commands="$ac_config_commands include/wine"
15211
15212
15213 wine_fn_config_makerules Make.rules
15214 MAKE_RULES=Make.rules
15215 ac_config_files="$ac_config_files Make.rules"
15216
15217 wine_fn_config_makerules Maketest.rules Make.rules
15218 MAKE_TEST_RULES=Maketest.rules
15219 ac_config_files="$ac_config_files Maketest.rules"
15220
15221 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15222 MAKE_DLL_RULES=dlls/Makedll.rules
15223 ac_config_files="$ac_config_files dlls/Makedll.rules"
15224
15225 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15226 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15227 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15228
15229 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15230 MAKE_PROG_RULES=programs/Makeprog.rules
15231 ac_config_files="$ac_config_files programs/Makeprog.rules"
15232
15233
15234 wine_fn_config_dll acledit enable_acledit
15235 wine_fn_config_dll aclui enable_aclui implib
15236 wine_fn_config_dll activeds enable_activeds implib
15237 wine_fn_config_dll actxprxy enable_actxprxy
15238 wine_fn_config_lib adsiid
15239 wine_fn_config_dll advapi32 enable_advapi32 implib
15240 wine_fn_config_test dlls/advapi32/tests advapi32_test
15241 wine_fn_config_dll advpack enable_advpack implib
15242 wine_fn_config_test dlls/advpack/tests advpack_test
15243 wine_fn_config_dll amstream enable_amstream
15244 wine_fn_config_test dlls/amstream/tests amstream_test
15245 wine_fn_config_dll apphelp enable_apphelp
15246 wine_fn_config_test dlls/apphelp/tests apphelp_test
15247 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15248 wine_fn_config_dll atl enable_atl implib
15249 wine_fn_config_test dlls/atl/tests atl_test
15250 wine_fn_config_dll atl80 enable_atl80
15251 wine_fn_config_dll authz enable_authz
15252 wine_fn_config_dll avicap32 enable_avicap32 implib
15253 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15254 wine_fn_config_test dlls/avifil32/tests avifil32_test
15255 wine_fn_config_dll avifile.dll16 enable_win16
15256 wine_fn_config_dll avrt enable_avrt implib
15257 wine_fn_config_dll bcrypt enable_bcrypt
15258 wine_fn_config_dll browseui enable_browseui po
15259 wine_fn_config_test dlls/browseui/tests browseui_test
15260 wine_fn_config_dll cabinet enable_cabinet implib
15261 wine_fn_config_test dlls/cabinet/tests cabinet_test
15262 wine_fn_config_dll capi2032 enable_capi2032 implib
15263 wine_fn_config_dll cards enable_cards implib
15264 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15265 wine_fn_config_dll clusapi enable_clusapi implib
15266 wine_fn_config_dll comcat enable_comcat
15267 wine_fn_config_test dlls/comcat/tests comcat_test
15268 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15269 wine_fn_config_test dlls/comctl32/tests comctl32_test
15270 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15271 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15272 wine_fn_config_dll comm.drv16 enable_win16
15273 wine_fn_config_dll commdlg.dll16 enable_win16
15274 wine_fn_config_dll compobj.dll16 enable_win16
15275 wine_fn_config_dll compstui enable_compstui implib
15276 wine_fn_config_dll credui enable_credui implib,po
15277 wine_fn_config_test dlls/credui/tests credui_test
15278 wine_fn_config_dll crtdll enable_crtdll implib
15279 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15280 wine_fn_config_test dlls/crypt32/tests crypt32_test
15281 wine_fn_config_dll cryptdlg enable_cryptdlg po
15282 wine_fn_config_dll cryptdll enable_cryptdll implib
15283 wine_fn_config_dll cryptnet enable_cryptnet implib
15284 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15285 wine_fn_config_dll cryptui enable_cryptui implib,po
15286 wine_fn_config_test dlls/cryptui/tests cryptui_test
15287 wine_fn_config_dll ctapi32 enable_ctapi32
15288 wine_fn_config_dll ctl3d.dll16 enable_win16
15289 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15290 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15291 wine_fn_config_dll d3d10 enable_d3d10 implib
15292 wine_fn_config_test dlls/d3d10/tests d3d10_test
15293 wine_fn_config_dll d3d10core enable_d3d10core implib
15294 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15295 wine_fn_config_dll d3d8 enable_d3d8 implib
15296 wine_fn_config_test dlls/d3d8/tests d3d8_test
15297 wine_fn_config_dll d3d9 enable_d3d9 implib
15298 wine_fn_config_test dlls/d3d9/tests d3d9_test
15299 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15300 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15301 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15302 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15303 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15304 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15305 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15306 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15307 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15308 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15309 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15310 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15311 wine_fn_config_dll d3dim enable_d3dim implib
15312 wine_fn_config_dll d3drm enable_d3drm implib
15313 wine_fn_config_test dlls/d3drm/tests d3drm_test
15314 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15315 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15316 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15317 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15318 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15319 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15320 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15321 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15322 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15323 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15324 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15325 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15326 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15327 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15328 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15329 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15330 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15331 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15332 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15333 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15334 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15335 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15336 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15337 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15338 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15339 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15340 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15341 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15342 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15343 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15344 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15345 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15346 wine_fn_config_dll d3dxof enable_d3dxof implib
15347 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15348 wine_fn_config_dll dbgeng enable_dbgeng implib
15349 wine_fn_config_dll dbghelp enable_dbghelp implib
15350 wine_fn_config_dll dciman32 enable_dciman32 implib
15351 wine_fn_config_dll ddeml.dll16 enable_win16
15352 wine_fn_config_dll ddraw enable_ddraw implib
15353 wine_fn_config_test dlls/ddraw/tests ddraw_test
15354 wine_fn_config_dll ddrawex enable_ddrawex
15355 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15356 wine_fn_config_dll devenum enable_devenum po
15357 wine_fn_config_test dlls/devenum/tests devenum_test
15358 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15359 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15360 wine_fn_config_test dlls/dinput/tests dinput_test
15361 wine_fn_config_dll dinput8 enable_dinput8 implib
15362 wine_fn_config_test dlls/dinput8/tests dinput8_test
15363 wine_fn_config_dll dispdib.dll16 enable_win16
15364 wine_fn_config_dll dispex enable_dispex
15365 wine_fn_config_test dlls/dispex/tests dispex_test
15366 wine_fn_config_dll display.drv16 enable_win16
15367 wine_fn_config_dll dmband enable_dmband
15368 wine_fn_config_test dlls/dmband/tests dmband_test
15369 wine_fn_config_dll dmcompos enable_dmcompos
15370 wine_fn_config_dll dmime enable_dmime
15371 wine_fn_config_test dlls/dmime/tests dmime_test
15372 wine_fn_config_dll dmloader enable_dmloader
15373 wine_fn_config_test dlls/dmloader/tests dmloader_test
15374 wine_fn_config_dll dmscript enable_dmscript
15375 wine_fn_config_dll dmstyle enable_dmstyle
15376 wine_fn_config_dll dmsynth enable_dmsynth
15377 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15378 wine_fn_config_dll dmusic enable_dmusic
15379 wine_fn_config_test dlls/dmusic/tests dmusic_test
15380 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15381 wine_fn_config_dll dnsapi enable_dnsapi implib
15382 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15383 wine_fn_config_dll dplay enable_dplay implib
15384 wine_fn_config_dll dplayx enable_dplayx implib
15385 wine_fn_config_test dlls/dplayx/tests dplayx_test
15386 wine_fn_config_dll dpnaddr enable_dpnaddr
15387 wine_fn_config_dll dpnet enable_dpnet implib
15388 wine_fn_config_test dlls/dpnet/tests dpnet_test
15389 wine_fn_config_dll dpnhpast enable_dpnhpast
15390 wine_fn_config_dll dpnlobby enable_dpnlobby
15391 wine_fn_config_dll dpwsockx enable_dpwsockx
15392 wine_fn_config_dll drmclien enable_drmclien
15393 wine_fn_config_dll dsound enable_dsound implib
15394 wine_fn_config_test dlls/dsound/tests dsound_test
15395 wine_fn_config_dll dssenh enable_dssenh
15396 wine_fn_config_test dlls/dssenh/tests dssenh_test
15397 wine_fn_config_dll dswave enable_dswave
15398 wine_fn_config_dll dwmapi enable_dwmapi implib
15399 wine_fn_config_dll dwrite enable_dwrite implib
15400 wine_fn_config_test dlls/dwrite/tests dwrite_test
15401 wine_fn_config_dll dxdiagn enable_dxdiagn po
15402 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15403 wine_fn_config_lib dxerr8
15404 wine_fn_config_lib dxerr9
15405 wine_fn_config_dll dxgi enable_dxgi implib
15406 wine_fn_config_test dlls/dxgi/tests dxgi_test
15407 wine_fn_config_lib dxguid
15408 wine_fn_config_dll explorerframe enable_explorerframe
15409 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15410 wine_fn_config_dll faultrep enable_faultrep implib
15411 wine_fn_config_test dlls/faultrep/tests faultrep_test
15412 wine_fn_config_dll fltlib enable_fltlib
15413 wine_fn_config_dll fusion enable_fusion
15414 wine_fn_config_test dlls/fusion/tests fusion_test
15415 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15416 wine_fn_config_dll gameux enable_gameux
15417 wine_fn_config_test dlls/gameux/tests gameux_test
15418 wine_fn_config_dll gdi.exe16 enable_win16
15419 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15420 wine_fn_config_test dlls/gdi32/tests gdi32_test
15421 wine_fn_config_dll gdiplus enable_gdiplus implib
15422 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15423 wine_fn_config_dll glu32 enable_glu32 implib
15424 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15425 wine_fn_config_dll gpkcsp enable_gpkcsp
15426 wine_fn_config_dll hal enable_hal
15427 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15428 wine_fn_config_dll hid enable_hid implib
15429 wine_fn_config_dll hlink enable_hlink implib
15430 wine_fn_config_test dlls/hlink/tests hlink_test
15431 wine_fn_config_dll hnetcfg enable_hnetcfg
15432 wine_fn_config_dll httpapi enable_httpapi
15433 wine_fn_config_dll iccvid enable_iccvid po
15434 wine_fn_config_dll icmp enable_icmp
15435 wine_fn_config_dll ieframe enable_ieframe implib,po
15436 wine_fn_config_test dlls/ieframe/tests ieframe_test
15437 wine_fn_config_dll ifsmgr.vxd enable_win16
15438 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15439 wine_fn_config_dll imagehlp enable_imagehlp implib
15440 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15441 wine_fn_config_dll imm.dll16 enable_win16
15442 wine_fn_config_dll imm32 enable_imm32 implib
15443 wine_fn_config_test dlls/imm32/tests imm32_test
15444 wine_fn_config_dll inetcomm enable_inetcomm implib
15445 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15446 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15447 wine_fn_config_dll inetmib1 enable_inetmib1
15448 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15449 wine_fn_config_dll infosoft enable_infosoft
15450 wine_fn_config_test dlls/infosoft/tests infosoft_test
15451 wine_fn_config_dll initpki enable_initpki
15452 wine_fn_config_dll inkobj enable_inkobj
15453 wine_fn_config_dll inseng enable_inseng
15454 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15455 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15456 wine_fn_config_dll itircl enable_itircl
15457 wine_fn_config_dll itss enable_itss
15458 wine_fn_config_test dlls/itss/tests itss_test
15459 wine_fn_config_dll joy.cpl enable_joy_cpl po
15460 wine_fn_config_dll jscript enable_jscript po
15461 wine_fn_config_test dlls/jscript/tests jscript_test
15462 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15463 wine_fn_config_test dlls/kernel32/tests kernel32_test
15464 wine_fn_config_dll keyboard.drv16 enable_win16
15465 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15466 wine_fn_config_dll ktmw32 enable_ktmw32
15467 wine_fn_config_dll loadperf enable_loadperf implib
15468 wine_fn_config_dll localspl enable_localspl po
15469 wine_fn_config_test dlls/localspl/tests localspl_test
15470 wine_fn_config_dll localui enable_localui po
15471 wine_fn_config_test dlls/localui/tests localui_test
15472 wine_fn_config_dll lz32 enable_lz32 implib
15473 wine_fn_config_test dlls/lz32/tests lz32_test
15474 wine_fn_config_dll lzexpand.dll16 enable_win16
15475 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15476 wine_fn_config_test dlls/mapi32/tests mapi32_test
15477 wine_fn_config_dll mapistub enable_mapistub
15478 wine_fn_config_dll mciavi32 enable_mciavi32
15479 wine_fn_config_dll mcicda enable_mcicda
15480 wine_fn_config_dll mciqtz32 enable_mciqtz32
15481 wine_fn_config_dll mciseq enable_mciseq
15482 wine_fn_config_dll mciwave enable_mciwave
15483 wine_fn_config_dll mgmtapi enable_mgmtapi
15484 wine_fn_config_dll midimap enable_midimap
15485 wine_fn_config_dll mlang enable_mlang implib
15486 wine_fn_config_test dlls/mlang/tests mlang_test
15487 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15488 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15489 wine_fn_config_dll mmdevapi enable_mmdevapi
15490 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15491 wine_fn_config_dll mmdevldr.vxd enable_win16
15492 wine_fn_config_dll mmsystem.dll16 enable_win16
15493 wine_fn_config_dll monodebg.vxd enable_win16
15494 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15495 wine_fn_config_dll mouse.drv16 enable_win16
15496 wine_fn_config_dll mpr enable_mpr implib,po
15497 wine_fn_config_test dlls/mpr/tests mpr_test
15498 wine_fn_config_dll mprapi enable_mprapi implib
15499 wine_fn_config_dll msacm.dll16 enable_win16
15500 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15501 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15502 wine_fn_config_test dlls/msacm32/tests msacm32_test
15503 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15504 wine_fn_config_dll mscat32 enable_mscat32
15505 wine_fn_config_dll mscms enable_mscms implib
15506 wine_fn_config_test dlls/mscms/tests mscms_test
15507 wine_fn_config_dll mscoree enable_mscoree
15508 wine_fn_config_test dlls/mscoree/tests mscoree_test
15509 wine_fn_config_dll msctf enable_msctf
15510 wine_fn_config_test dlls/msctf/tests msctf_test
15511 wine_fn_config_dll msdaps enable_msdaps
15512 wine_fn_config_dll msdmo enable_msdmo implib
15513 wine_fn_config_dll msftedit enable_msftedit
15514 wine_fn_config_dll msg711.acm enable_msg711_acm
15515 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15516 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15517 wine_fn_config_dll mshtml enable_mshtml implib,po
15518 wine_fn_config_test dlls/mshtml/tests mshtml_test
15519 wine_fn_config_dll msi enable_msi implib,po
15520 wine_fn_config_test dlls/msi/tests msi_test
15521 wine_fn_config_dll msident enable_msident
15522 wine_fn_config_dll msimg32 enable_msimg32 implib
15523 wine_fn_config_dll msimsg enable_msimsg
15524 wine_fn_config_dll msimtf enable_msimtf
15525 wine_fn_config_dll msisip enable_msisip
15526 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15527 wine_fn_config_dll msls31 enable_msls31
15528 wine_fn_config_dll msnet32 enable_msnet32
15529 wine_fn_config_dll mspatcha enable_mspatcha
15530 wine_fn_config_dll msrle32 enable_msrle32 po
15531 wine_fn_config_dll mssign32 enable_mssign32
15532 wine_fn_config_dll mssip32 enable_mssip32
15533 wine_fn_config_dll mstask enable_mstask
15534 wine_fn_config_test dlls/mstask/tests mstask_test
15535 wine_fn_config_dll msvcirt enable_msvcirt
15536 wine_fn_config_dll msvcm80 enable_msvcm80
15537 wine_fn_config_dll msvcm90 enable_msvcm90
15538 wine_fn_config_dll msvcp100 enable_msvcp100
15539 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15540 wine_fn_config_dll msvcp60 enable_msvcp60
15541 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15542 wine_fn_config_dll msvcp70 enable_msvcp70
15543 wine_fn_config_dll msvcp71 enable_msvcp71
15544 wine_fn_config_dll msvcp80 enable_msvcp80
15545 wine_fn_config_dll msvcp90 enable_msvcp90
15546 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15547 wine_fn_config_dll msvcr100 enable_msvcr100
15548 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
15549 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15550 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15551 wine_fn_config_dll msvcr80 enable_msvcr80
15552 wine_fn_config_dll msvcr90 enable_msvcr90
15553 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15554 wine_fn_config_dll msvcrt enable_msvcrt implib
15555 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15556 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15557 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15558 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15559 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15560 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15561 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15562 wine_fn_config_dll msvidc32 enable_msvidc32 po
15563 wine_fn_config_dll msvideo.dll16 enable_win16
15564 wine_fn_config_dll mswsock enable_mswsock implib
15565 wine_fn_config_dll msxml enable_msxml
15566 wine_fn_config_dll msxml2 enable_msxml2
15567 wine_fn_config_dll msxml3 enable_msxml3
15568 wine_fn_config_test dlls/msxml3/tests msxml3_test
15569 wine_fn_config_dll msxml4 enable_msxml4
15570 wine_fn_config_dll msxml6 enable_msxml6
15571 wine_fn_config_dll nddeapi enable_nddeapi implib
15572 wine_fn_config_dll netapi32 enable_netapi32 implib
15573 wine_fn_config_test dlls/netapi32/tests netapi32_test
15574 wine_fn_config_dll newdev enable_newdev implib
15575 wine_fn_config_dll normaliz enable_normaliz implib
15576 wine_fn_config_dll npmshtml enable_npmshtml
15577 wine_fn_config_dll ntdll enable_ntdll implib
15578 wine_fn_config_test dlls/ntdll/tests ntdll_test
15579 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15580 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15581 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15582 wine_fn_config_dll ntprint enable_ntprint
15583 wine_fn_config_test dlls/ntprint/tests ntprint_test
15584 wine_fn_config_dll objsel enable_objsel
15585 wine_fn_config_dll odbc32 enable_odbc32 implib
15586 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15587 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15588 wine_fn_config_dll odbccu32 enable_odbccu32
15589 wine_fn_config_dll ole2.dll16 enable_win16
15590 wine_fn_config_dll ole2conv.dll16 enable_win16
15591 wine_fn_config_dll ole2disp.dll16 enable_win16
15592 wine_fn_config_dll ole2nls.dll16 enable_win16
15593 wine_fn_config_dll ole2prox.dll16 enable_win16
15594 wine_fn_config_dll ole2thk.dll16 enable_win16
15595 wine_fn_config_dll ole32 enable_ole32 implib
15596 wine_fn_config_test dlls/ole32/tests ole32_test
15597 wine_fn_config_dll oleacc enable_oleacc implib,po
15598 wine_fn_config_test dlls/oleacc/tests oleacc_test
15599 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15600 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15601 wine_fn_config_dll olecli.dll16 enable_win16
15602 wine_fn_config_dll olecli32 enable_olecli32 implib
15603 wine_fn_config_dll oledb32 enable_oledb32
15604 wine_fn_config_test dlls/oledb32/tests oledb32_test
15605 wine_fn_config_dll oledlg enable_oledlg implib,po
15606 wine_fn_config_dll olepro32 enable_olepro32 implib
15607 wine_fn_config_dll olesvr.dll16 enable_win16
15608 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15609 wine_fn_config_dll olethk32 enable_olethk32
15610 wine_fn_config_dll openal32 enable_openal32
15611 wine_fn_config_dll opencl enable_opencl
15612 wine_fn_config_dll opengl32 enable_opengl32 implib
15613 wine_fn_config_test dlls/opengl32/tests opengl32_test
15614 wine_fn_config_dll pdh enable_pdh implib
15615 wine_fn_config_test dlls/pdh/tests pdh_test
15616 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15617 wine_fn_config_dll pidgen enable_pidgen
15618 wine_fn_config_dll powrprof enable_powrprof implib
15619 wine_fn_config_dll printui enable_printui
15620 wine_fn_config_dll propsys enable_propsys implib
15621 wine_fn_config_test dlls/propsys/tests propsys_test
15622 wine_fn_config_dll psapi enable_psapi implib
15623 wine_fn_config_test dlls/psapi/tests psapi_test
15624 wine_fn_config_dll pstorec enable_pstorec
15625 wine_fn_config_dll qcap enable_qcap
15626 wine_fn_config_dll qedit enable_qedit
15627 wine_fn_config_test dlls/qedit/tests qedit_test
15628 wine_fn_config_dll qmgr enable_qmgr
15629 wine_fn_config_test dlls/qmgr/tests qmgr_test
15630 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15631 wine_fn_config_dll quartz enable_quartz implib
15632 wine_fn_config_test dlls/quartz/tests quartz_test
15633 wine_fn_config_dll query enable_query
15634 wine_fn_config_dll rasapi16.dll16 enable_win16
15635 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15636 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15637 wine_fn_config_dll rasdlg enable_rasdlg implib
15638 wine_fn_config_dll regapi enable_regapi
15639 wine_fn_config_dll resutils enable_resutils implib
15640 wine_fn_config_dll riched20 enable_riched20 implib
15641 wine_fn_config_test dlls/riched20/tests riched20_test
15642 wine_fn_config_dll riched32 enable_riched32
15643 wine_fn_config_test dlls/riched32/tests riched32_test
15644 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15645 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15646 wine_fn_config_dll rsabase enable_rsabase
15647 wine_fn_config_dll rsaenh enable_rsaenh implib
15648 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15649 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15650 wine_fn_config_dll rtutils enable_rtutils implib
15651 wine_fn_config_dll samlib enable_samlib
15652 wine_fn_config_dll sane.ds enable_sane_ds po
15653 wine_fn_config_dll scarddlg enable_scarddlg
15654 wine_fn_config_dll sccbase enable_sccbase
15655 wine_fn_config_dll schannel enable_schannel
15656 wine_fn_config_test dlls/schannel/tests schannel_test
15657 wine_fn_config_dll scrrun enable_scrrun
15658 wine_fn_config_test dlls/scrrun/tests scrrun_test
15659 wine_fn_config_dll scsiport.sys enable_scsiport_sys
15660 wine_fn_config_dll secur32 enable_secur32 implib
15661 wine_fn_config_test dlls/secur32/tests secur32_test
15662 wine_fn_config_dll security enable_security
15663 wine_fn_config_dll sensapi enable_sensapi implib
15664 wine_fn_config_dll serialui enable_serialui implib,po
15665 wine_fn_config_test dlls/serialui/tests serialui_test
15666 wine_fn_config_dll setupapi enable_setupapi implib,po
15667 wine_fn_config_test dlls/setupapi/tests setupapi_test
15668 wine_fn_config_dll setupx.dll16 enable_win16
15669 wine_fn_config_dll sfc enable_sfc implib
15670 wine_fn_config_dll sfc_os enable_sfc_os implib
15671 wine_fn_config_dll shdoclc enable_shdoclc po
15672 wine_fn_config_dll shdocvw enable_shdocvw implib
15673 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15674 wine_fn_config_dll shell.dll16 enable_win16
15675 wine_fn_config_dll shell32 enable_shell32 implib,po
15676 wine_fn_config_test dlls/shell32/tests shell32_test
15677 wine_fn_config_dll shfolder enable_shfolder implib
15678 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15679 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15680 wine_fn_config_dll slbcsp enable_slbcsp
15681 wine_fn_config_dll slc enable_slc implib
15682 wine_fn_config_dll snmpapi enable_snmpapi implib
15683 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15684 wine_fn_config_dll softpub enable_softpub
15685 wine_fn_config_dll sound.drv16 enable_win16
15686 wine_fn_config_dll spoolss enable_spoolss implib
15687 wine_fn_config_test dlls/spoolss/tests spoolss_test
15688 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15689 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15690 wine_fn_config_dll sti enable_sti implib
15691 wine_fn_config_test dlls/sti/tests sti_test
15692 wine_fn_config_dll storage.dll16 enable_win16
15693 wine_fn_config_dll stress.dll16 enable_win16
15694 wine_fn_config_lib strmbase
15695 wine_fn_config_lib strmiids
15696 wine_fn_config_dll svrapi enable_svrapi
15697 wine_fn_config_dll sxs enable_sxs implib
15698 wine_fn_config_test dlls/sxs/tests sxs_test
15699 wine_fn_config_dll system.drv16 enable_win16
15700 wine_fn_config_dll t2embed enable_t2embed
15701 wine_fn_config_dll tapi32 enable_tapi32 implib
15702 wine_fn_config_dll toolhelp.dll16 enable_win16
15703 wine_fn_config_dll traffic enable_traffic
15704 wine_fn_config_dll twain.dll16 enable_win16
15705 wine_fn_config_dll twain_32 enable_twain_32
15706 wine_fn_config_test dlls/twain_32/tests twain_32_test
15707 wine_fn_config_dll typelib.dll16 enable_win16
15708 wine_fn_config_dll unicows enable_unicows implib
15709 wine_fn_config_dll updspapi enable_updspapi
15710 wine_fn_config_dll url enable_url implib
15711 wine_fn_config_dll urlmon enable_urlmon implib,po
15712 wine_fn_config_test dlls/urlmon/tests urlmon_test
15713 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15714 wine_fn_config_dll user.exe16 enable_win16
15715 wine_fn_config_dll user32 enable_user32 implib,po
15716 wine_fn_config_test dlls/user32/tests user32_test
15717 wine_fn_config_dll userenv enable_userenv implib
15718 wine_fn_config_test dlls/userenv/tests userenv_test
15719 wine_fn_config_dll usp10 enable_usp10 implib
15720 wine_fn_config_test dlls/usp10/tests usp10_test
15721 wine_fn_config_lib uuid
15722 wine_fn_config_dll uxtheme enable_uxtheme implib
15723 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15724 wine_fn_config_dll vbscript enable_vbscript
15725 wine_fn_config_test dlls/vbscript/tests vbscript_test
15726 wine_fn_config_dll vcomp enable_vcomp
15727 wine_fn_config_dll vcomp100 enable_vcomp100
15728 wine_fn_config_dll vcomp90 enable_vcomp90
15729 wine_fn_config_dll vdhcp.vxd enable_win16
15730 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15731 wine_fn_config_dll ver.dll16 enable_win16
15732 wine_fn_config_dll version enable_version implib
15733 wine_fn_config_test dlls/version/tests version_test
15734 wine_fn_config_dll vmm.vxd enable_win16
15735 wine_fn_config_dll vnbt.vxd enable_win16
15736 wine_fn_config_dll vnetbios.vxd enable_win16
15737 wine_fn_config_dll vtdapi.vxd enable_win16
15738 wine_fn_config_dll vwin32.vxd enable_win16
15739 wine_fn_config_dll w32skrnl enable_win16
15740 wine_fn_config_dll w32sys.dll16 enable_win16
15741 wine_fn_config_dll wbemprox enable_wbemprox
15742 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
15743 wine_fn_config_dll wer enable_wer implib
15744 wine_fn_config_test dlls/wer/tests wer_test
15745 wine_fn_config_dll wevtapi enable_wevtapi
15746 wine_fn_config_dll wiaservc enable_wiaservc
15747 wine_fn_config_dll win32s16.dll16 enable_win16
15748 wine_fn_config_dll win87em.dll16 enable_win16
15749 wine_fn_config_dll winaspi.dll16 enable_win16
15750 wine_fn_config_dll windebug.dll16 enable_win16
15751 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15752 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15753 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15754 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15755 wine_fn_config_lib winecrt0
15756 wine_fn_config_dll wined3d enable_wined3d implib
15757 wine_fn_config_dll winegstreamer enable_winegstreamer
15758 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15759 wine_fn_config_dll winemapi enable_winemapi
15760 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15761 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15762 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15763 wine_fn_config_dll wineps16.drv16 enable_win16
15764 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15765 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15766 wine_fn_config_dll winex11.drv enable_winex11_drv
15767 wine_fn_config_dll wing.dll16 enable_win16
15768 wine_fn_config_dll wing32 enable_wing32
15769 wine_fn_config_dll winhttp enable_winhttp implib
15770 wine_fn_config_test dlls/winhttp/tests winhttp_test
15771 wine_fn_config_dll wininet enable_wininet implib,po
15772 wine_fn_config_test dlls/wininet/tests wininet_test
15773 wine_fn_config_dll winmm enable_winmm implib,po
15774 wine_fn_config_test dlls/winmm/tests winmm_test
15775 wine_fn_config_dll winnls.dll16 enable_win16
15776 wine_fn_config_dll winnls32 enable_winnls32 implib
15777 wine_fn_config_dll winscard enable_winscard implib
15778 wine_fn_config_dll winsock.dll16 enable_win16
15779 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15780 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15781 wine_fn_config_dll winsta enable_winsta
15782 wine_fn_config_dll wintab.dll16 enable_win16
15783 wine_fn_config_dll wintab32 enable_wintab32 implib
15784 wine_fn_config_test dlls/wintab32/tests wintab32_test
15785 wine_fn_config_dll wintrust enable_wintrust implib
15786 wine_fn_config_test dlls/wintrust/tests wintrust_test
15787 wine_fn_config_dll wlanapi enable_wlanapi
15788 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15789 wine_fn_config_test dlls/wldap32/tests wldap32_test
15790 wine_fn_config_dll wmi enable_wmi
15791 wine_fn_config_dll wmiutils enable_wmiutils
15792 wine_fn_config_dll wmvcore enable_wmvcore
15793 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15794 wine_fn_config_dll wow32 enable_win16 implib
15795 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15796 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15797 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15798 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15799 wine_fn_config_dll wsnmp32 enable_wsnmp32
15800 wine_fn_config_dll wsock32 enable_wsock32 implib
15801 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15802 wine_fn_config_dll wuapi enable_wuapi
15803 wine_fn_config_dll wuaueng enable_wuaueng
15804 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15805 wine_fn_config_dll xinput1_1 enable_xinput1_1
15806 wine_fn_config_dll xinput1_2 enable_xinput1_2
15807 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15808 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15809 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15810 wine_fn_config_dll xmllite enable_xmllite
15811 wine_fn_config_test dlls/xmllite/tests xmllite_test
15812 wine_fn_config_dll xolehlp enable_xolehlp
15813 wine_fn_config_dll xpsprint enable_xpsprint
15814 wine_fn_config_dll xpssvcs enable_xpssvcs
15815 wine_fn_config_makefile documentation enable_documentation
15816 wine_fn_config_makefile fonts enable_fonts install-lib
15817 wine_fn_config_makefile include enable_include install-dev
15818 wine_fn_config_makefile libs/port enable_libs_port
15819 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15820 wine_fn_config_makefile libs/wpp enable_libs_wpp
15821 wine_fn_config_makefile loader enable_loader install-lib,manpage
15822 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15823 wine_fn_config_program attrib enable_attrib install,po
15824 wine_fn_config_program cabarc enable_cabarc install
15825 wine_fn_config_program cacls enable_cacls install
15826 wine_fn_config_program clock enable_clock install,po
15827 wine_fn_config_program cmd enable_cmd install,po
15828 wine_fn_config_test programs/cmd/tests cmd.exe_test
15829 wine_fn_config_program control enable_control install
15830 wine_fn_config_program cscript enable_cscript install
15831 wine_fn_config_program dxdiag enable_dxdiag install,po
15832 wine_fn_config_program eject enable_eject install
15833 wine_fn_config_program expand enable_expand install
15834 wine_fn_config_program explorer enable_explorer install,po
15835 wine_fn_config_program extrac32 enable_extrac32 install
15836 wine_fn_config_program findstr enable_findstr install
15837 wine_fn_config_program hh enable_hh install
15838 wine_fn_config_program hostname enable_hostname install,po
15839 wine_fn_config_program icinfo enable_icinfo install
15840 wine_fn_config_program iexplore enable_iexplore install
15841 wine_fn_config_program ipconfig enable_ipconfig install,po
15842 wine_fn_config_program lodctr enable_lodctr install
15843 wine_fn_config_program mofcomp enable_mofcomp install
15844 wine_fn_config_program mshta enable_mshta install
15845 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15846 wine_fn_config_program net enable_net install,po
15847 wine_fn_config_program netsh enable_netsh install
15848 wine_fn_config_program ngen enable_ngen install
15849 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15850 wine_fn_config_program oleview enable_oleview install,po
15851 wine_fn_config_program ping enable_ping install
15852 wine_fn_config_program plugplay enable_plugplay install
15853 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15854 wine_fn_config_program progman enable_progman install,po
15855 wine_fn_config_program reg enable_reg install,po
15856 wine_fn_config_program regasm enable_regasm install
15857 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15858 wine_fn_config_test programs/regedit/tests regedit.exe_test
15859 wine_fn_config_program regsvcs enable_regsvcs install
15860 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15861 wine_fn_config_program rpcss enable_rpcss install
15862 wine_fn_config_program rundll.exe16 enable_win16 install
15863 wine_fn_config_program rundll32 enable_rundll32 install
15864 wine_fn_config_program sc enable_sc install
15865 wine_fn_config_program schtasks enable_schtasks install
15866 wine_fn_config_program secedit enable_secedit install
15867 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15868 wine_fn_config_program services enable_services install
15869 wine_fn_config_test programs/services/tests services.exe_test
15870 wine_fn_config_program spoolsv enable_spoolsv install
15871 wine_fn_config_program start enable_start install,po
15872 wine_fn_config_program svchost enable_svchost install
15873 wine_fn_config_program taskkill enable_taskkill install,po
15874 wine_fn_config_program taskmgr enable_taskmgr install,po
15875 wine_fn_config_program termsv enable_termsv install
15876 wine_fn_config_program uninstaller enable_uninstaller install,po
15877 wine_fn_config_program unlodctr enable_unlodctr install
15878 wine_fn_config_program view enable_view install,po
15879 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15880 wine_fn_config_program winebrowser enable_winebrowser install
15881 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15882 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15883 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15884 wine_fn_config_program winedevice enable_winedevice install
15885 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15886 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15887 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15888 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15889 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15890 wine_fn_config_program winetest enable_winetest
15891 wine_fn_config_program winevdm enable_win16 install
15892 wine_fn_config_program winhelp.exe16 enable_win16 install
15893 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15894 wine_fn_config_program winoldap.mod16 enable_win16 install
15895 wine_fn_config_program winver enable_winver install
15896 wine_fn_config_program wmic enable_wmic install,po
15897 wine_fn_config_program wordpad enable_wordpad install,po
15898 wine_fn_config_program write enable_write install,po
15899 wine_fn_config_program wscript enable_wscript install
15900 wine_fn_config_test programs/wscript/tests wscript.exe_test
15901 wine_fn_config_program wusa enable_wusa install
15902 wine_fn_config_program xcopy enable_xcopy install,po
15903 wine_fn_config_makefile server enable_server install-lib,manpage
15904 wine_fn_config_tool tools install-dev,install-lib,manpage
15905 wine_fn_config_tool tools/widl install-dev,manpage
15906 wine_fn_config_tool tools/winebuild install-dev,manpage
15907 wine_fn_config_tool tools/winedump install-dev,manpage
15908 wine_fn_config_tool tools/winegcc install-dev,manpage
15909 wine_fn_config_tool tools/wmc install-dev,manpage
15910 wine_fn_config_tool tools/wrc install-dev,manpage
15911
15912 LINGUAS="\
15913 ar \
15914 bg \
15915 ca \
15916 cs \
15917 da \
15918 de \
15919 el \
15920 en \
15921 en_US \
15922 eo \
15923 es \
15924 fa \
15925 fi \
15926 fr \
15927 he \
15928 hi \
15929 hu \
15930 it \
15931 ja \
15932 ko \
15933 lt \
15934 ml \
15935 nb_NO \
15936 nl \
15937 or \
15938 pa \
15939 pl \
15940 pt_BR \
15941 pt_PT \
15942 rm \
15943 ro \
15944 ru \
15945 sk \
15946 sl \
15947 sr_RS@cyrillic \
15948 sr_RS@latin \
15949 sv \
15950 te \
15951 th \
15952 tr \
15953 uk \
15954 wa \
15955 zh_CN \
15956 zh_TW"
15957
15958
15959
15960 ac_config_commands="$ac_config_commands Makefile"
15961
15962
15963 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15964
15965
15966
15967 if test "x$enable_maintainer_mode" = xyes
15968 then
15969     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15970         cd \$(srcdir) && autoconf --warnings=all
15971 \$(srcdir)/include/config.h.in: include/stamp-h.in
15972 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15973         cd \$(srcdir) && autoheader --warnings=all
15974         @echo timestamp > \$@"
15975 fi
15976
15977 if test "x$with_gettextpo" = xyes
15978 then
15979     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15980     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15981 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15982         msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15983 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15984         msgcat -o \$@ \$(ALL_POT_FILES)"
15985 fi
15986
15987 if test "$MSGFMT" != false
15988 then
15989     PORCFLAGS="--po-dir=\$(top_builddir)/po"
15990
15991     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15992 else
15993     LINGUAS=
15994 fi
15995
15996 if test "x$enable_tools" != xno
15997 then
15998     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15999 clean:: __clean__
16000         \$(RM) tools/makedep\$(EXEEXT)"
16001 fi
16002
16003 if test -n "$with_wine64"
16004 then
16005 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16006 fonts server tools:
16007         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16008 $with_wine64/loader/wine:
16009         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16010 $with_wine64/loader/wine-preloader:
16011         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16012 clean::
16013         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16014 fi
16015
16016 cat >confcache <<\_ACEOF
16017 # This file is a shell script that caches the results of configure
16018 # tests run on this system so they can be shared between configure
16019 # scripts and configure runs, see configure's option --config-cache.
16020 # It is not useful on other systems.  If it contains results you don't
16021 # want to keep, you may remove or edit it.
16022 #
16023 # config.status only pays attention to the cache file if you give it
16024 # the --recheck option to rerun configure.
16025 #
16026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16028 # following values.
16029
16030 _ACEOF
16031
16032 # The following way of writing the cache mishandles newlines in values,
16033 # but we know of no workaround that is simple, portable, and efficient.
16034 # So, we kill variables containing newlines.
16035 # Ultrix sh set writes to stderr and can't be redirected directly,
16036 # and sets the high bit in the cache file unless we assign to the vars.
16037 (
16038   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16039     eval ac_val=\$$ac_var
16040     case $ac_val in #(
16041     *${as_nl}*)
16042       case $ac_var in #(
16043       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16045       esac
16046       case $ac_var in #(
16047       _ | IFS | as_nl) ;; #(
16048       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16049       *) { eval $ac_var=; unset $ac_var;} ;;
16050       esac ;;
16051     esac
16052   done
16053
16054   (set) 2>&1 |
16055     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16056     *${as_nl}ac_space=\ *)
16057       # `set' does not quote correctly, so add quotes: double-quote
16058       # substitution turns \\\\ into \\, and sed turns \\ into \.
16059       sed -n \
16060         "s/'/'\\\\''/g;
16061           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16062       ;; #(
16063     *)
16064       # `set' quotes correctly as required by POSIX, so do not add quotes.
16065       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16066       ;;
16067     esac |
16068     sort
16069 ) |
16070   sed '
16071      /^ac_cv_env_/b end
16072      t clear
16073      :clear
16074      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16075      t end
16076      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16077      :end' >>confcache
16078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16079   if test -w "$cache_file"; then
16080     if test "x$cache_file" != "x/dev/null"; then
16081       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16082 $as_echo "$as_me: updating cache $cache_file" >&6;}
16083       if test ! -f "$cache_file" || test -h "$cache_file"; then
16084         cat confcache >"$cache_file"
16085       else
16086         case $cache_file in #(
16087         */* | ?:*)
16088           mv -f confcache "$cache_file"$$ &&
16089           mv -f "$cache_file"$$ "$cache_file" ;; #(
16090         *)
16091           mv -f confcache "$cache_file" ;;
16092         esac
16093       fi
16094     fi
16095   else
16096     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16097 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16098   fi
16099 fi
16100 rm -f confcache
16101
16102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16103 # Let make expand exec_prefix.
16104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16105
16106 DEFS=-DHAVE_CONFIG_H
16107
16108 ac_libobjs=
16109 ac_ltlibobjs=
16110 U=
16111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16112   # 1. Remove the extension, and $U if already installed.
16113   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16114   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16115   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16116   #    will be set to the directory where LIBOBJS objects are built.
16117   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16118   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16119 done
16120 LIBOBJS=$ac_libobjs
16121
16122 LTLIBOBJS=$ac_ltlibobjs
16123
16124
16125
16126 : "${CONFIG_STATUS=./config.status}"
16127 ac_write_fail=0
16128 ac_clean_files_save=$ac_clean_files
16129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16132 as_write_fail=0
16133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16134 #! $SHELL
16135 # Generated by $as_me.
16136 # Run this file to recreate the current configuration.
16137 # Compiler output produced by configure, useful for debugging
16138 # configure, is in config.log if it exists.
16139
16140 debug=false
16141 ac_cs_recheck=false
16142 ac_cs_silent=false
16143
16144 SHELL=\${CONFIG_SHELL-$SHELL}
16145 export SHELL
16146 _ASEOF
16147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16148 ## -------------------- ##
16149 ## M4sh Initialization. ##
16150 ## -------------------- ##
16151
16152 # Be more Bourne compatible
16153 DUALCASE=1; export DUALCASE # for MKS sh
16154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16155   emulate sh
16156   NULLCMD=:
16157   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16158   # is contrary to our usage.  Disable this feature.
16159   alias -g '${1+"$@"}'='"$@"'
16160   setopt NO_GLOB_SUBST
16161 else
16162   case `(set -o) 2>/dev/null` in #(
16163   *posix*) :
16164     set -o posix ;; #(
16165   *) :
16166      ;;
16167 esac
16168 fi
16169
16170
16171 as_nl='
16172 '
16173 export as_nl
16174 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16175 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16178 # Prefer a ksh shell builtin over an external printf program on Solaris,
16179 # but without wasting forks for bash or zsh.
16180 if test -z "$BASH_VERSION$ZSH_VERSION" \
16181     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16182   as_echo='print -r --'
16183   as_echo_n='print -rn --'
16184 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16185   as_echo='printf %s\n'
16186   as_echo_n='printf %s'
16187 else
16188   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16189     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16190     as_echo_n='/usr/ucb/echo -n'
16191   else
16192     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16193     as_echo_n_body='eval
16194       arg=$1;
16195       case $arg in #(
16196       *"$as_nl"*)
16197         expr "X$arg" : "X\\(.*\\)$as_nl";
16198         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16199       esac;
16200       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16201     '
16202     export as_echo_n_body
16203     as_echo_n='sh -c $as_echo_n_body as_echo'
16204   fi
16205   export as_echo_body
16206   as_echo='sh -c $as_echo_body as_echo'
16207 fi
16208
16209 # The user is always right.
16210 if test "${PATH_SEPARATOR+set}" != set; then
16211   PATH_SEPARATOR=:
16212   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16213     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16214       PATH_SEPARATOR=';'
16215   }
16216 fi
16217
16218
16219 # IFS
16220 # We need space, tab and new line, in precisely that order.  Quoting is
16221 # there to prevent editors from complaining about space-tab.
16222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16223 # splitting by setting IFS to empty value.)
16224 IFS=" ""        $as_nl"
16225
16226 # Find who we are.  Look in the path if we contain no directory separator.
16227 as_myself=
16228 case $0 in #((
16229   *[\\/]* ) as_myself=$0 ;;
16230   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16231 for as_dir in $PATH
16232 do
16233   IFS=$as_save_IFS
16234   test -z "$as_dir" && as_dir=.
16235     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16236   done
16237 IFS=$as_save_IFS
16238
16239      ;;
16240 esac
16241 # We did not find ourselves, most probably we were run as `sh COMMAND'
16242 # in which case we are not to be found in the path.
16243 if test "x$as_myself" = x; then
16244   as_myself=$0
16245 fi
16246 if test ! -f "$as_myself"; then
16247   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16248   exit 1
16249 fi
16250
16251 # Unset variables that we do not need and which cause bugs (e.g. in
16252 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16253 # suppresses any "Segmentation fault" message there.  '((' could
16254 # trigger a bug in pdksh 5.2.14.
16255 for as_var in BASH_ENV ENV MAIL MAILPATH
16256 do eval test x\${$as_var+set} = xset \
16257   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16258 done
16259 PS1='$ '
16260 PS2='> '
16261 PS4='+ '
16262
16263 # NLS nuisances.
16264 LC_ALL=C
16265 export LC_ALL
16266 LANGUAGE=C
16267 export LANGUAGE
16268
16269 # CDPATH.
16270 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16271
16272
16273 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16274 # ----------------------------------------
16275 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16276 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16277 # script with STATUS, using 1 if that was 0.
16278 as_fn_error ()
16279 {
16280   as_status=$1; test $as_status -eq 0 && as_status=1
16281   if test "$4"; then
16282     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16283     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16284   fi
16285   $as_echo "$as_me: error: $2" >&2
16286   as_fn_exit $as_status
16287 } # as_fn_error
16288
16289
16290 # as_fn_set_status STATUS
16291 # -----------------------
16292 # Set $? to STATUS, without forking.
16293 as_fn_set_status ()
16294 {
16295   return $1
16296 } # as_fn_set_status
16297
16298 # as_fn_exit STATUS
16299 # -----------------
16300 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16301 as_fn_exit ()
16302 {
16303   set +e
16304   as_fn_set_status $1
16305   exit $1
16306 } # as_fn_exit
16307
16308 # as_fn_unset VAR
16309 # ---------------
16310 # Portably unset VAR.
16311 as_fn_unset ()
16312 {
16313   { eval $1=; unset $1;}
16314 }
16315 as_unset=as_fn_unset
16316 # as_fn_append VAR VALUE
16317 # ----------------------
16318 # Append the text in VALUE to the end of the definition contained in VAR. Take
16319 # advantage of any shell optimizations that allow amortized linear growth over
16320 # repeated appends, instead of the typical quadratic growth present in naive
16321 # implementations.
16322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16323   eval 'as_fn_append ()
16324   {
16325     eval $1+=\$2
16326   }'
16327 else
16328   as_fn_append ()
16329   {
16330     eval $1=\$$1\$2
16331   }
16332 fi # as_fn_append
16333
16334 # as_fn_arith ARG...
16335 # ------------------
16336 # Perform arithmetic evaluation on the ARGs, and store the result in the
16337 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16338 # must be portable across $(()) and expr.
16339 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16340   eval 'as_fn_arith ()
16341   {
16342     as_val=$(( $* ))
16343   }'
16344 else
16345   as_fn_arith ()
16346   {
16347     as_val=`expr "$@" || test $? -eq 1`
16348   }
16349 fi # as_fn_arith
16350
16351
16352 if expr a : '\(a\)' >/dev/null 2>&1 &&
16353    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16354   as_expr=expr
16355 else
16356   as_expr=false
16357 fi
16358
16359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16360   as_basename=basename
16361 else
16362   as_basename=false
16363 fi
16364
16365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16366   as_dirname=dirname
16367 else
16368   as_dirname=false
16369 fi
16370
16371 as_me=`$as_basename -- "$0" ||
16372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16373          X"$0" : 'X\(//\)$' \| \
16374          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16375 $as_echo X/"$0" |
16376     sed '/^.*\/\([^/][^/]*\)\/*$/{
16377             s//\1/
16378             q
16379           }
16380           /^X\/\(\/\/\)$/{
16381             s//\1/
16382             q
16383           }
16384           /^X\/\(\/\).*/{
16385             s//\1/
16386             q
16387           }
16388           s/.*/./; q'`
16389
16390 # Avoid depending upon Character Ranges.
16391 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16392 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16393 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16394 as_cr_digits='0123456789'
16395 as_cr_alnum=$as_cr_Letters$as_cr_digits
16396
16397 ECHO_C= ECHO_N= ECHO_T=
16398 case `echo -n x` in #(((((
16399 -n*)
16400   case `echo 'xy\c'` in
16401   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16402   xy)  ECHO_C='\c';;
16403   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16404        ECHO_T=' ';;
16405   esac;;
16406 *)
16407   ECHO_N='-n';;
16408 esac
16409
16410 rm -f conf$$ conf$$.exe conf$$.file
16411 if test -d conf$$.dir; then
16412   rm -f conf$$.dir/conf$$.file
16413 else
16414   rm -f conf$$.dir
16415   mkdir conf$$.dir 2>/dev/null
16416 fi
16417 if (echo >conf$$.file) 2>/dev/null; then
16418   if ln -s conf$$.file conf$$ 2>/dev/null; then
16419     as_ln_s='ln -s'
16420     # ... but there are two gotchas:
16421     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16422     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16423     # In both cases, we have to default to `cp -pR'.
16424     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16425       as_ln_s='cp -pR'
16426   elif ln conf$$.file conf$$ 2>/dev/null; then
16427     as_ln_s=ln
16428   else
16429     as_ln_s='cp -pR'
16430   fi
16431 else
16432   as_ln_s='cp -pR'
16433 fi
16434 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16435 rmdir conf$$.dir 2>/dev/null
16436
16437
16438 # as_fn_mkdir_p
16439 # -------------
16440 # Create "$as_dir" as a directory, including parents if necessary.
16441 as_fn_mkdir_p ()
16442 {
16443
16444   case $as_dir in #(
16445   -*) as_dir=./$as_dir;;
16446   esac
16447   test -d "$as_dir" || eval $as_mkdir_p || {
16448     as_dirs=
16449     while :; do
16450       case $as_dir in #(
16451       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16452       *) as_qdir=$as_dir;;
16453       esac
16454       as_dirs="'$as_qdir' $as_dirs"
16455       as_dir=`$as_dirname -- "$as_dir" ||
16456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16457          X"$as_dir" : 'X\(//\)[^/]' \| \
16458          X"$as_dir" : 'X\(//\)$' \| \
16459          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16460 $as_echo X"$as_dir" |
16461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16462             s//\1/
16463             q
16464           }
16465           /^X\(\/\/\)[^/].*/{
16466             s//\1/
16467             q
16468           }
16469           /^X\(\/\/\)$/{
16470             s//\1/
16471             q
16472           }
16473           /^X\(\/\).*/{
16474             s//\1/
16475             q
16476           }
16477           s/.*/./; q'`
16478       test -d "$as_dir" && break
16479     done
16480     test -z "$as_dirs" || eval "mkdir $as_dirs"
16481   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16482
16483
16484 } # as_fn_mkdir_p
16485 if mkdir -p . 2>/dev/null; then
16486   as_mkdir_p='mkdir -p "$as_dir"'
16487 else
16488   test -d ./-p && rmdir ./-p
16489   as_mkdir_p=false
16490 fi
16491
16492
16493 # as_fn_executable_p FILE
16494 # -----------------------
16495 # Test if FILE is an executable regular file.
16496 as_fn_executable_p ()
16497 {
16498   test -f "$1" && test -x "$1"
16499 } # as_fn_executable_p
16500 as_test_x='test -x'
16501 as_executable_p=as_fn_executable_p
16502
16503 # Sed expression to map a string onto a valid CPP name.
16504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16505
16506 # Sed expression to map a string onto a valid variable name.
16507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16508
16509
16510 exec 6>&1
16511 ## ----------------------------------- ##
16512 ## Main body of $CONFIG_STATUS script. ##
16513 ## ----------------------------------- ##
16514 _ASEOF
16515 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16516
16517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16518 # Save the log message, to keep $0 and so on meaningful, and to
16519 # report actual input values of CONFIG_FILES etc. instead of their
16520 # values after options handling.
16521 ac_log="
16522 This file was extended by Wine $as_me 1.5.17, which was
16523 generated by GNU Autoconf 2.69.  Invocation command line was
16524
16525   CONFIG_FILES    = $CONFIG_FILES
16526   CONFIG_HEADERS  = $CONFIG_HEADERS
16527   CONFIG_LINKS    = $CONFIG_LINKS
16528   CONFIG_COMMANDS = $CONFIG_COMMANDS
16529   $ $0 $@
16530
16531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16532 "
16533
16534 _ACEOF
16535
16536 case $ac_config_files in *"
16537 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16538 esac
16539
16540 case $ac_config_headers in *"
16541 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16542 esac
16543
16544
16545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16546 # Files that config.status was made for.
16547 config_files="$ac_config_files"
16548 config_headers="$ac_config_headers"
16549 config_links="$ac_config_links"
16550 config_commands="$ac_config_commands"
16551
16552 _ACEOF
16553
16554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16555 ac_cs_usage="\
16556 \`$as_me' instantiates files and other configuration actions
16557 from templates according to the current configuration.  Unless the files
16558 and actions are specified as TAGs, all are instantiated by default.
16559
16560 Usage: $0 [OPTION]... [TAG]...
16561
16562   -h, --help       print this help, then exit
16563   -V, --version    print version number and configuration settings, then exit
16564       --config     print configuration, then exit
16565   -q, --quiet, --silent
16566                    do not print progress messages
16567   -d, --debug      don't remove temporary files
16568       --recheck    update $as_me by reconfiguring in the same conditions
16569       --file=FILE[:TEMPLATE]
16570                    instantiate the configuration file FILE
16571       --header=FILE[:TEMPLATE]
16572                    instantiate the configuration header FILE
16573
16574 Configuration files:
16575 $config_files
16576
16577 Configuration headers:
16578 $config_headers
16579
16580 Configuration links:
16581 $config_links
16582
16583 Configuration commands:
16584 $config_commands
16585
16586 Report bugs to <wine-devel@winehq.org>.
16587 Wine home page: <http://www.winehq.org>."
16588
16589 _ACEOF
16590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16592 ac_cs_version="\\
16593 Wine config.status 1.5.17
16594 configured by $0, generated by GNU Autoconf 2.69,
16595   with options \\"\$ac_cs_config\\"
16596
16597 Copyright (C) 2012 Free Software Foundation, Inc.
16598 This config.status script is free software; the Free Software Foundation
16599 gives unlimited permission to copy, distribute and modify it."
16600
16601 ac_pwd='$ac_pwd'
16602 srcdir='$srcdir'
16603 INSTALL='$INSTALL'
16604 test -n "\$AWK" || AWK=awk
16605 _ACEOF
16606
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608 # The default lists apply if the user does not specify any file.
16609 ac_need_defaults=:
16610 while test $# != 0
16611 do
16612   case $1 in
16613   --*=?*)
16614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16616     ac_shift=:
16617     ;;
16618   --*=)
16619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16620     ac_optarg=
16621     ac_shift=:
16622     ;;
16623   *)
16624     ac_option=$1
16625     ac_optarg=$2
16626     ac_shift=shift
16627     ;;
16628   esac
16629
16630   case $ac_option in
16631   # Handling of the options.
16632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16633     ac_cs_recheck=: ;;
16634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16635     $as_echo "$ac_cs_version"; exit ;;
16636   --config | --confi | --conf | --con | --co | --c )
16637     $as_echo "$ac_cs_config"; exit ;;
16638   --debug | --debu | --deb | --de | --d | -d )
16639     debug=: ;;
16640   --file | --fil | --fi | --f )
16641     $ac_shift
16642     case $ac_optarg in
16643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16644     '') as_fn_error $? "missing file argument" ;;
16645     esac
16646     as_fn_append CONFIG_FILES " '$ac_optarg'"
16647     ac_need_defaults=false;;
16648   --header | --heade | --head | --hea )
16649     $ac_shift
16650     case $ac_optarg in
16651     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16652     esac
16653     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16654     ac_need_defaults=false;;
16655   --he | --h)
16656     # Conflict between --help and --header
16657     as_fn_error $? "ambiguous option: \`$1'
16658 Try \`$0 --help' for more information.";;
16659   --help | --hel | -h )
16660     $as_echo "$ac_cs_usage"; exit ;;
16661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16663     ac_cs_silent=: ;;
16664
16665   # This is an error.
16666   -*) as_fn_error $? "unrecognized option: \`$1'
16667 Try \`$0 --help' for more information." ;;
16668
16669   *) as_fn_append ac_config_targets " $1"
16670      ac_need_defaults=false ;;
16671
16672   esac
16673   shift
16674 done
16675
16676 ac_configure_extra_args=
16677
16678 if $ac_cs_silent; then
16679   exec 6>/dev/null
16680   ac_configure_extra_args="$ac_configure_extra_args --silent"
16681 fi
16682
16683 _ACEOF
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 if \$ac_cs_recheck; then
16686   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16687   shift
16688   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16689   CONFIG_SHELL='$SHELL'
16690   export CONFIG_SHELL
16691   exec "\$@"
16692 fi
16693
16694 _ACEOF
16695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16696 exec 5>>config.log
16697 {
16698   echo
16699   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16700 ## Running $as_me. ##
16701 _ASBOX
16702   $as_echo "$ac_log"
16703 } >&5
16704
16705 _ACEOF
16706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16707 #
16708 # INIT-COMMANDS
16709 #
16710 wine_fn_output_makefile ()
16711 {
16712     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16713 $ALL_MAKEFILE_DEPENDS
16714 _WINE_EOF
16715     as_fn_error $? "could not create Makefile" "$LINENO" 5
16716 }
16717
16718 _ACEOF
16719
16720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721
16722 # Handling of arguments.
16723 for ac_config_target in $ac_config_targets
16724 do
16725   case $ac_config_target in
16726     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16727     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16728     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16729     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16730     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16731     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16732     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16733     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16734     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16735     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16736     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16737     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16738     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16739     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16740     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16741     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16742     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16743     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16744     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16745     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16746     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16747     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16748     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16749     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16750     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16751     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16752
16753   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16754   esac
16755 done
16756
16757
16758 # If the user did not use the arguments to specify the items to instantiate,
16759 # then the envvar interface is used.  Set only those that are not.
16760 # We use the long form for the default assignment because of an extremely
16761 # bizarre bug on SunOS 4.1.3.
16762 if $ac_need_defaults; then
16763   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16764   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16765   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16766   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16767 fi
16768
16769 # Have a temporary directory for convenience.  Make it in the build tree
16770 # simply because there is no reason against having it here, and in addition,
16771 # creating and moving files from /tmp can sometimes cause problems.
16772 # Hook for its removal unless debugging.
16773 # Note that there is a small window in which the directory will not be cleaned:
16774 # after its creation but before its name has been assigned to `$tmp'.
16775 $debug ||
16776 {
16777   tmp= ac_tmp=
16778   trap 'exit_status=$?
16779   : "${ac_tmp:=$tmp}"
16780   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16781 ' 0
16782   trap 'as_fn_exit 1' 1 2 13 15
16783 }
16784 # Create a (secure) tmp directory for tmp files.
16785
16786 {
16787   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16788   test -d "$tmp"
16789 }  ||
16790 {
16791   tmp=./conf$$-$RANDOM
16792   (umask 077 && mkdir "$tmp")
16793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16794 ac_tmp=$tmp
16795
16796 # Set up the scripts for CONFIG_FILES section.
16797 # No need to generate them if there are no CONFIG_FILES.
16798 # This happens for instance with `./config.status config.h'.
16799 if test -n "$CONFIG_FILES"; then
16800
16801 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16802   ac_cs_awk_getline=:
16803   ac_cs_awk_pipe_init=
16804   ac_cs_awk_read_file='
16805       while ((getline aline < (F[key])) > 0)
16806         print(aline)
16807       close(F[key])'
16808   ac_cs_awk_pipe_fini=
16809 else
16810   ac_cs_awk_getline=false
16811   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16812   ac_cs_awk_read_file='
16813       print "|#_!!_#|"
16814       print "cat " F[key] " &&"
16815       '$ac_cs_awk_pipe_init
16816   # The final `:' finishes the AND list.
16817   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16818 fi
16819 ac_cr=`echo X | tr X '\015'`
16820 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16821 # But we know of no other shell where ac_cr would be empty at this
16822 # point, so we can use a bashism as a fallback.
16823 if test "x$ac_cr" = x; then
16824   eval ac_cr=\$\'\\r\'
16825 fi
16826 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16828   ac_cs_awk_cr='\\r'
16829 else
16830   ac_cs_awk_cr=$ac_cr
16831 fi
16832
16833 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16834 _ACEOF
16835
16836 # Create commands to substitute file output variables.
16837 {
16838   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16839   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16840   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16841   echo "_ACAWK" &&
16842   echo "_ACEOF"
16843 } >conf$$files.sh &&
16844 . ./conf$$files.sh ||
16845   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16846 rm -f conf$$files.sh
16847
16848 {
16849   echo "cat >conf$$subs.awk <<_ACEOF" &&
16850   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16851   echo "_ACEOF"
16852 } >conf$$subs.sh ||
16853   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16855 ac_delim='%!_!# '
16856 for ac_last_try in false false false false false :; do
16857   . ./conf$$subs.sh ||
16858     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16859
16860   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16861   if test $ac_delim_n = $ac_delim_num; then
16862     break
16863   elif $ac_last_try; then
16864     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16865   else
16866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16867   fi
16868 done
16869 rm -f conf$$subs.sh
16870
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16873 _ACEOF
16874 sed -n '
16875 h
16876 s/^/S["/; s/!.*/"]=/
16877 p
16878 g
16879 s/^[^!]*!//
16880 :repl
16881 t repl
16882 s/'"$ac_delim"'$//
16883 t delim
16884 :nl
16885 h
16886 s/\(.\{148\}\)..*/\1/
16887 t more1
16888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16889 p
16890 n
16891 b repl
16892 :more1
16893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16894 p
16895 g
16896 s/.\{148\}//
16897 t nl
16898 :delim
16899 h
16900 s/\(.\{148\}\)..*/\1/
16901 t more2
16902 s/["\\]/\\&/g; s/^/"/; s/$/"/
16903 p
16904 b
16905 :more2
16906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16907 p
16908 g
16909 s/.\{148\}//
16910 t delim
16911 ' <conf$$subs.awk | sed '
16912 /^[^""]/{
16913   N
16914   s/\n//
16915 }
16916 ' >>$CONFIG_STATUS || ac_write_fail=1
16917 rm -f conf$$subs.awk
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 _ACAWK
16920 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16921   for (key in S) S_is_set[key] = 1
16922   FS = "\a"
16923   \$ac_cs_awk_pipe_init
16924 }
16925 {
16926   line = $ 0
16927   nfields = split(line, field, "@")
16928   substed = 0
16929   len = length(field[1])
16930   for (i = 2; i < nfields; i++) {
16931     key = field[i]
16932     keylen = length(key)
16933     if (S_is_set[key]) {
16934       value = S[key]
16935       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16936       len += length(value) + length(field[++i])
16937       substed = 1
16938     } else
16939       len += 1 + keylen
16940   }
16941   if (nfields == 3 && !substed) {
16942     key = field[2]
16943     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16944       \$ac_cs_awk_read_file
16945       next
16946     }
16947   }
16948   print line
16949 }
16950 \$ac_cs_awk_pipe_fini
16951 _ACAWK
16952 _ACEOF
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16955   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16956 else
16957   cat
16958 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16959   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16960 _ACEOF
16961
16962 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16963 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16964 # trailing colons and then remove the whole line if VPATH becomes empty
16965 # (actually we leave an empty line to preserve line numbers).
16966 if test "x$srcdir" = x.; then
16967   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16968 h
16969 s///
16970 s/^/:/
16971 s/[      ]*$/:/
16972 s/:\$(srcdir):/:/g
16973 s/:\${srcdir}:/:/g
16974 s/:@srcdir@:/:/g
16975 s/^:*//
16976 s/:*$//
16977 x
16978 s/\(=[   ]*\).*/\1/
16979 G
16980 s/\n//
16981 s/^[^=]*=[       ]*$//
16982 }'
16983 fi
16984
16985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986 fi # test -n "$CONFIG_FILES"
16987
16988 # Set up the scripts for CONFIG_HEADERS section.
16989 # No need to generate them if there are no CONFIG_HEADERS.
16990 # This happens for instance with `./config.status Makefile'.
16991 if test -n "$CONFIG_HEADERS"; then
16992 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16993 BEGIN {
16994 _ACEOF
16995
16996 # Transform confdefs.h into an awk script `defines.awk', embedded as
16997 # here-document in config.status, that substitutes the proper values into
16998 # config.h.in to produce config.h.
16999
17000 # Create a delimiter string that does not exist in confdefs.h, to ease
17001 # handling of long lines.
17002 ac_delim='%!_!# '
17003 for ac_last_try in false false :; do
17004   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17005   if test -z "$ac_tt"; then
17006     break
17007   elif $ac_last_try; then
17008     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17009   else
17010     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17011   fi
17012 done
17013
17014 # For the awk script, D is an array of macro values keyed by name,
17015 # likewise P contains macro parameters if any.  Preserve backslash
17016 # newline sequences.
17017
17018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17019 sed -n '
17020 s/.\{148\}/&'"$ac_delim"'/g
17021 t rset
17022 :rset
17023 s/^[     ]*#[    ]*define[       ][      ]*/ /
17024 t def
17025 d
17026 :def
17027 s/\\$//
17028 t bsnl
17029 s/["\\]/\\&/g
17030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17031 D["\1"]=" \3"/p
17032 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17033 d
17034 :bsnl
17035 s/["\\]/\\&/g
17036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17037 D["\1"]=" \3\\\\\\n"\\/p
17038 t cont
17039 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17040 t cont
17041 d
17042 :cont
17043 n
17044 s/.\{148\}/&'"$ac_delim"'/g
17045 t clear
17046 :clear
17047 s/\\$//
17048 t bsnlc
17049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17050 d
17051 :bsnlc
17052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17053 b cont
17054 ' <confdefs.h | sed '
17055 s/'"$ac_delim"'/"\\\
17056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17057
17058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17059   for (key in D) D_is_set[key] = 1
17060   FS = "\a"
17061 }
17062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17063   line = \$ 0
17064   split(line, arg, " ")
17065   if (arg[1] == "#") {
17066     defundef = arg[2]
17067     mac1 = arg[3]
17068   } else {
17069     defundef = substr(arg[1], 2)
17070     mac1 = arg[2]
17071   }
17072   split(mac1, mac2, "(") #)
17073   macro = mac2[1]
17074   prefix = substr(line, 1, index(line, defundef) - 1)
17075   if (D_is_set[macro]) {
17076     # Preserve the white space surrounding the "#".
17077     print prefix "define", macro P[macro] D[macro]
17078     next
17079   } else {
17080     # Replace #undef with comments.  This is necessary, for example,
17081     # in the case of _POSIX_SOURCE, which is predefined and required
17082     # on some systems where configure will not decide to define it.
17083     if (defundef == "undef") {
17084       print "/*", prefix defundef, macro, "*/"
17085       next
17086     }
17087   }
17088 }
17089 { print }
17090 _ACAWK
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17094 fi # test -n "$CONFIG_HEADERS"
17095
17096
17097 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17098 shift
17099 for ac_tag
17100 do
17101   case $ac_tag in
17102   :[FHLC]) ac_mode=$ac_tag; continue;;
17103   esac
17104   case $ac_mode$ac_tag in
17105   :[FHL]*:*);;
17106   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17107   :[FH]-) ac_tag=-:-;;
17108   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17109   esac
17110   ac_save_IFS=$IFS
17111   IFS=:
17112   set x $ac_tag
17113   IFS=$ac_save_IFS
17114   shift
17115   ac_file=$1
17116   shift
17117
17118   case $ac_mode in
17119   :L) ac_source=$1;;
17120   :[FH])
17121     ac_file_inputs=
17122     for ac_f
17123     do
17124       case $ac_f in
17125       -) ac_f="$ac_tmp/stdin";;
17126       *) # Look for the file first in the build tree, then in the source tree
17127          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17128          # because $ac_f cannot contain `:'.
17129          test -f "$ac_f" ||
17130            case $ac_f in
17131            [\\/$]*) false;;
17132            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17133            esac ||
17134            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17135       esac
17136       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17137       as_fn_append ac_file_inputs " '$ac_f'"
17138     done
17139
17140     # Let's still pretend it is `configure' which instantiates (i.e., don't
17141     # use $as_me), people would be surprised to read:
17142     #    /* config.h.  Generated by config.status.  */
17143     configure_input='Generated from '`
17144           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17145         `' by configure.'
17146     if test x"$ac_file" != x-; then
17147       configure_input="$ac_file.  $configure_input"
17148       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17149 $as_echo "$as_me: creating $ac_file" >&6;}
17150     fi
17151     # Neutralize special characters interpreted by sed in replacement strings.
17152     case $configure_input in #(
17153     *\&* | *\|* | *\\* )
17154        ac_sed_conf_input=`$as_echo "$configure_input" |
17155        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17156     *) ac_sed_conf_input=$configure_input;;
17157     esac
17158
17159     case $ac_tag in
17160     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17161       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17162     esac
17163     ;;
17164   esac
17165
17166   ac_dir=`$as_dirname -- "$ac_file" ||
17167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168          X"$ac_file" : 'X\(//\)[^/]' \| \
17169          X"$ac_file" : 'X\(//\)$' \| \
17170          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17171 $as_echo X"$ac_file" |
17172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17173             s//\1/
17174             q
17175           }
17176           /^X\(\/\/\)[^/].*/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\/\)$/{
17181             s//\1/
17182             q
17183           }
17184           /^X\(\/\).*/{
17185             s//\1/
17186             q
17187           }
17188           s/.*/./; q'`
17189   as_dir="$ac_dir"; as_fn_mkdir_p
17190   ac_builddir=.
17191
17192 case "$ac_dir" in
17193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17194 *)
17195   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17196   # A ".." for each directory in $ac_dir_suffix.
17197   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17198   case $ac_top_builddir_sub in
17199   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17201   esac ;;
17202 esac
17203 ac_abs_top_builddir=$ac_pwd
17204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17205 # for backward compatibility:
17206 ac_top_builddir=$ac_top_build_prefix
17207
17208 case $srcdir in
17209   .)  # We are building in place.
17210     ac_srcdir=.
17211     ac_top_srcdir=$ac_top_builddir_sub
17212     ac_abs_top_srcdir=$ac_pwd ;;
17213   [\\/]* | ?:[\\/]* )  # Absolute name.
17214     ac_srcdir=$srcdir$ac_dir_suffix;
17215     ac_top_srcdir=$srcdir
17216     ac_abs_top_srcdir=$srcdir ;;
17217   *) # Relative name.
17218     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17219     ac_top_srcdir=$ac_top_build_prefix$srcdir
17220     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17221 esac
17222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17223
17224
17225   case $ac_mode in
17226   :F)
17227   #
17228   # CONFIG_FILE
17229   #
17230
17231   case $INSTALL in
17232   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17233   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17234   esac
17235 _ACEOF
17236
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 # If the template does not know about datarootdir, expand it.
17239 # FIXME: This hack should be removed a few years after 2.60.
17240 ac_datarootdir_hack=; ac_datarootdir_seen=
17241 ac_sed_dataroot='
17242 /datarootdir/ {
17243   p
17244   q
17245 }
17246 /@datadir@/p
17247 /@docdir@/p
17248 /@infodir@/p
17249 /@localedir@/p
17250 /@mandir@/p'
17251 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17252 *datarootdir*) ac_datarootdir_seen=yes;;
17253 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17255 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17256 _ACEOF
17257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17258   ac_datarootdir_hack='
17259   s&@datadir@&$datadir&g
17260   s&@docdir@&$docdir&g
17261   s&@infodir@&$infodir&g
17262   s&@localedir@&$localedir&g
17263   s&@mandir@&$mandir&g
17264   s&\\\${datarootdir}&$datarootdir&g' ;;
17265 esac
17266 _ACEOF
17267
17268 # Neutralize VPATH when `$srcdir' = `.'.
17269 # Shell code in configure.ac might set extrasub.
17270 # FIXME: do we really want to maintain this feature?
17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17272 ac_sed_extra="$ac_vpsub
17273 $extrasub
17274 _ACEOF
17275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17276 :t
17277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17278 s|@configure_input@|$ac_sed_conf_input|;t t
17279 s&@top_builddir@&$ac_top_builddir_sub&;t t
17280 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17281 s&@srcdir@&$ac_srcdir&;t t
17282 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17283 s&@top_srcdir@&$ac_top_srcdir&;t t
17284 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17285 s&@builddir@&$ac_builddir&;t t
17286 s&@abs_builddir@&$ac_abs_builddir&;t t
17287 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17288 s&@INSTALL@&$ac_INSTALL&;t t
17289 $ac_datarootdir_hack
17290 "
17291 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17292 if $ac_cs_awk_getline; then
17293   $AWK -f "$ac_tmp/subs.awk"
17294 else
17295   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17296 fi \
17297   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17298
17299 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17300   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17301   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17302       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17303   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17304 which seems to be undefined.  Please make sure it is defined" >&5
17305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17306 which seems to be undefined.  Please make sure it is defined" >&2;}
17307
17308   rm -f "$ac_tmp/stdin"
17309   case $ac_file in
17310   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17311   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17312   esac \
17313   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17314  ;;
17315   :H)
17316   #
17317   # CONFIG_HEADER
17318   #
17319   if test x"$ac_file" != x-; then
17320     {
17321       $as_echo "/* $configure_input  */" \
17322       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17323     } >"$ac_tmp/config.h" \
17324       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17326       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17327 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17328     else
17329       rm -f "$ac_file"
17330       mv "$ac_tmp/config.h" "$ac_file" \
17331         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17332     fi
17333   else
17334     $as_echo "/* $configure_input  */" \
17335       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17336       || as_fn_error $? "could not create -" "$LINENO" 5
17337   fi
17338  ;;
17339   :L)
17340   #
17341   # CONFIG_LINK
17342   #
17343
17344   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17345     :
17346   else
17347     # Prefer the file from the source tree if names are identical.
17348     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17349       ac_source=$srcdir/$ac_source
17350     fi
17351
17352     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17353 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17354
17355     if test ! -r "$ac_source"; then
17356       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17357     fi
17358     rm -f "$ac_file"
17359
17360     # Try a relative symlink, then a hard link, then a copy.
17361     case $ac_source in
17362     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17363         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17364     esac
17365     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17366       ln "$ac_source" "$ac_file" 2>/dev/null ||
17367       cp -p "$ac_source" "$ac_file" ||
17368       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17369   fi
17370  ;;
17371   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17372 $as_echo "$as_me: executing $ac_file commands" >&6;}
17373  ;;
17374   esac
17375
17376
17377   case $ac_file$ac_mode in
17378     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17379     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17380 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17381     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17382 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17383     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17384 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17385     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17386 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17387     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17388 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17389     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17390 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17391     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17392 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17393     "Makefile":C) wine_fn_output_makefile Makefile ;;
17394
17395   esac
17396 done # for ac_tag
17397
17398
17399 as_fn_exit 0
17400 _ACEOF
17401 ac_clean_files=$ac_clean_files_save
17402
17403 test $ac_write_fail = 0 ||
17404   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17405
17406
17407 # configure is writing to config.log, and then calls config.status.
17408 # config.status does its own redirection, appending to config.log.
17409 # Unfortunately, on DOS this fails, as config.log is still kept open
17410 # by configure, so config.status won't be able to write to it; its
17411 # output is simply discarded.  So we exec the FD to /dev/null,
17412 # effectively closing config.log, so it can be properly (re)opened and
17413 # appended to by config.status.  When coming back to configure, we
17414 # need to make the FD available again.
17415 if test "$no_create" != yes; then
17416   ac_cs_success=:
17417   ac_config_status_args=
17418   test "$silent" = yes &&
17419     ac_config_status_args="$ac_config_status_args --quiet"
17420   exec 5>/dev/null
17421   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17422   exec 5>>config.log
17423   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17424   # would make configure fail if this is the last instruction.
17425   $ac_cs_success || as_fn_exit 1
17426 fi
17427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17428   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17430 fi
17431
17432
17433 if test "$no_create" = "yes"
17434 then
17435   exit 0
17436 fi
17437
17438 ac_save_IFS="$IFS"
17439 if test "x$wine_notices != "x; then
17440     echo >&6
17441     IFS="|"
17442     for msg in $wine_notices; do
17443         IFS="$ac_save_IFS"
17444         if test -n "$msg"; then
17445             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17446 $as_echo "$as_me: $msg" >&6;}
17447         fi
17448     done
17449 fi
17450 IFS="|"
17451 for msg in $wine_warnings; do
17452     IFS="$ac_save_IFS"
17453     if test -n "$msg"; then
17454         echo >&2
17455         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17456 $as_echo "$as_me: WARNING: $msg" >&2;}
17457     fi
17458 done
17459 IFS="$ac_save_IFS"
17460
17461 echo "
17462 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17463 " >&6
17464