atl80: Don't forward AtlAxWinInit to atl100.
[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.26.
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.26'
584 PACKAGE_STRING='Wine 1.5.26'
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 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 SOCKETLIBS
637 CRTLIBS
638 TOOLSEXT
639 LDPATH
640 UNWINDFLAGS
641 BUILTINFLAG
642 EXTRACFLAGS
643 LIBKSTAT
644 LIBOPENAL
645 LIBMPG123
646 PNGINCL
647 FONTCONFIGINCL
648 CUPSINCL
649 OSS4INCL
650 ALSALIBS
651 GSTREAMER_INCL
652 GSTREAMER_LIBS
653 LIBGETTEXTPO
654 ZLIB
655 FREETYPEINCL
656 FREETYPELIBS
657 ft_devel
658 LCMSLIBS
659 RESOLVLIBS
660 GPHOTO2INCL
661 GPHOTO2LIBS
662 gphoto2port_devel
663 gphoto2_devel
664 SANEINCL
665 sane_devel
666 GNUTLSINCL
667 HALINCL
668 DBUSINCL
669 XSLTINCL
670 XML2INCL
671 XML2LIBS
672 X_EXTRA_LIBS
673 X_LIBS
674 X_PRE_LIBS
675 X_CFLAGS
676 XMKMF
677 LIBPTHREAD
678 CROSSTARGET
679 CROSSCC
680 CROSSTEST_DISABLE
681 PRELINK
682 CARBONLIB
683 QUICKTIMELIB
684 LIBOPENCL
685 FRAMEWORK_OPENAL
686 COREAUDIO
687 SECURITYLIB
688 DISKARBITRATIONLIB
689 LDEXECFLAGS
690 CORESERVICESLIB
691 APPLICATIONSERVICESLIB
692 IOKITLIB
693 COREFOUNDATIONLIB
694 DLLWRAP
695 DLLTOOL
696 ac_ct_READELF
697 READELF
698 LDD
699 LDRPATH_LOCAL
700 LDRPATH_INSTALL
701 IMPLIBEXT
702 LIBEXT
703 LDDLLFLAGS
704 LDSHARED
705 DLLFLAGS
706 DLLEXT
707 CPP
708 OPENGL_LIBS
709 XLIB
710 MAINTAINER_MODE
711 MSGFMT
712 ICOTOOL
713 CONVERT
714 RSVG
715 PKG_CONFIG
716 FONTFORGE
717 LINTFLAGS
718 LINT
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 ac_ct_AR
729 AR
730 BISON
731 FLEX
732 TOOLSDIR
733 WOW64_DISABLE
734 TARGETFLAGS
735 CPPBIN
736 ac_ct_CXX
737 CXXFLAGS
738 CXX
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 SET_MAKE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='MAKE_RULES
794 MAKE_TEST_RULES
795 MAKE_DLL_RULES
796 MAKE_IMPLIB_RULES
797 MAKE_PROG_RULES'
798 ac_user_opts='
799 enable_option_checking
800 enable_win16
801 enable_win64
802 enable_tests
803 enable_maintainer_mode
804 with_alsa
805 with_capi
806 with_cms
807 with_coreaudio
808 with_cups
809 with_curses
810 with_dbus
811 with_fontconfig
812 with_freetype
813 with_gettext
814 with_gettextpo
815 with_gphoto
816 with_glu
817 with_gnutls
818 with_gsm
819 with_gstreamer
820 with_hal
821 with_jpeg
822 with_ldap
823 with_mpg123
824 with_openal
825 with_opencl
826 with_opengl
827 with_openssl
828 with_osmesa
829 with_oss
830 with_png
831 with_pthread
832 with_sane
833 with_tiff
834 with_v4l
835 with_xcomposite
836 with_xcursor
837 with_xinerama
838 with_xinput
839 with_xinput2
840 with_xml
841 with_xrandr
842 with_xrender
843 with_xshape
844 with_xshm
845 with_xslt
846 with_xxf86vm
847 with_zlib
848 with_wine_tools
849 with_wine64
850 enable_largefile
851 with_x
852 '
853       ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CXX
862 CXXFLAGS
863 CCC
864 CPP
865 XMKMF'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *=)   ac_optarg= ;;
930   *)    ac_optarg=yes ;;
931   esac
932
933   # Accept the important Cygnus configure options, so we can diagnose typos.
934
935   case $ac_dashdash$ac_option in
936   --)
937     ac_dashdash=yes ;;
938
939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
940     ac_prev=bindir ;;
941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942     bindir=$ac_optarg ;;
943
944   -build | --build | --buil | --bui | --bu)
945     ac_prev=build_alias ;;
946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947     build_alias=$ac_optarg ;;
948
949   -cache-file | --cache-file | --cache-fil | --cache-fi \
950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951     ac_prev=cache_file ;;
952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954     cache_file=$ac_optarg ;;
955
956   --config-cache | -C)
957     cache_file=config.cache ;;
958
959   -datadir | --datadir | --datadi | --datad)
960     ac_prev=datadir ;;
961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
962     datadir=$ac_optarg ;;
963
964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965   | --dataroo | --dataro | --datar)
966     ac_prev=datarootdir ;;
967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969     datarootdir=$ac_optarg ;;
970
971   -disable-* | --disable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error $? "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015   | --exec | --exe | --ex)
1016     ac_prev=exec_prefix ;;
1017   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019   | --exec=* | --exe=* | --ex=*)
1020     exec_prefix=$ac_optarg ;;
1021
1022   -gas | --gas | --ga | --g)
1023     # Obsolete; use --with-gas.
1024     with_gas=yes ;;
1025
1026   -help | --help | --hel | --he | -h)
1027     ac_init_help=long ;;
1028   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029     ac_init_help=recursive ;;
1030   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031     ac_init_help=short ;;
1032
1033   -host | --host | --hos | --ho)
1034     ac_prev=host_alias ;;
1035   -host=* | --host=* | --hos=* | --ho=*)
1036     host_alias=$ac_optarg ;;
1037
1038   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039     ac_prev=htmldir ;;
1040   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041   | --ht=*)
1042     htmldir=$ac_optarg ;;
1043
1044   -includedir | --includedir | --includedi | --included | --include \
1045   | --includ | --inclu | --incl | --inc)
1046     ac_prev=includedir ;;
1047   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048   | --includ=* | --inclu=* | --incl=* | --inc=*)
1049     includedir=$ac_optarg ;;
1050
1051   -infodir | --infodir | --infodi | --infod | --info | --inf)
1052     ac_prev=infodir ;;
1053   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054     infodir=$ac_optarg ;;
1055
1056   -libdir | --libdir | --libdi | --libd)
1057     ac_prev=libdir ;;
1058   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059     libdir=$ac_optarg ;;
1060
1061   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062   | --libexe | --libex | --libe)
1063     ac_prev=libexecdir ;;
1064   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065   | --libexe=* | --libex=* | --libe=*)
1066     libexecdir=$ac_optarg ;;
1067
1068   -localedir | --localedir | --localedi | --localed | --locale)
1069     ac_prev=localedir ;;
1070   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071     localedir=$ac_optarg ;;
1072
1073   -localstatedir | --localstatedir | --localstatedi | --localstated \
1074   | --localstate | --localstat | --localsta | --localst | --locals)
1075     ac_prev=localstatedir ;;
1076   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078     localstatedir=$ac_optarg ;;
1079
1080   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081     ac_prev=mandir ;;
1082   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083     mandir=$ac_optarg ;;
1084
1085   -nfp | --nfp | --nf)
1086     # Obsolete; use --without-fp.
1087     with_fp=no ;;
1088
1089   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090   | --no-cr | --no-c | -n)
1091     no_create=yes ;;
1092
1093   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095     no_recursion=yes ;;
1096
1097   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099   | --oldin | --oldi | --old | --ol | --o)
1100     ac_prev=oldincludedir ;;
1101   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104     oldincludedir=$ac_optarg ;;
1105
1106   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107     ac_prev=prefix ;;
1108   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109     prefix=$ac_optarg ;;
1110
1111   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112   | --program-pre | --program-pr | --program-p)
1113     ac_prev=program_prefix ;;
1114   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116     program_prefix=$ac_optarg ;;
1117
1118   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119   | --program-suf | --program-su | --program-s)
1120     ac_prev=program_suffix ;;
1121   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123     program_suffix=$ac_optarg ;;
1124
1125   -program-transform-name | --program-transform-name \
1126   | --program-transform-nam | --program-transform-na \
1127   | --program-transform-n | --program-transform- \
1128   | --program-transform | --program-transfor \
1129   | --program-transfo | --program-transf \
1130   | --program-trans | --program-tran \
1131   | --progr-tra | --program-tr | --program-t)
1132     ac_prev=program_transform_name ;;
1133   -program-transform-name=* | --program-transform-name=* \
1134   | --program-transform-nam=* | --program-transform-na=* \
1135   | --program-transform-n=* | --program-transform-=* \
1136   | --program-transform=* | --program-transfor=* \
1137   | --program-transfo=* | --program-transf=* \
1138   | --program-trans=* | --program-tran=* \
1139   | --progr-tra=* | --program-tr=* | --program-t=*)
1140     program_transform_name=$ac_optarg ;;
1141
1142   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143     ac_prev=pdfdir ;;
1144   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145     pdfdir=$ac_optarg ;;
1146
1147   -psdir | --psdir | --psdi | --psd | --ps)
1148     ac_prev=psdir ;;
1149   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150     psdir=$ac_optarg ;;
1151
1152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153   | -silent | --silent | --silen | --sile | --sil)
1154     silent=yes ;;
1155
1156   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157     ac_prev=sbindir ;;
1158   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159   | --sbi=* | --sb=*)
1160     sbindir=$ac_optarg ;;
1161
1162   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164   | --sharedst | --shareds | --shared | --share | --shar \
1165   | --sha | --sh)
1166     ac_prev=sharedstatedir ;;
1167   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170   | --sha=* | --sh=*)
1171     sharedstatedir=$ac_optarg ;;
1172
1173   -site | --site | --sit)
1174     ac_prev=site ;;
1175   -site=* | --site=* | --sit=*)
1176     site=$ac_optarg ;;
1177
1178   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179     ac_prev=srcdir ;;
1180   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181     srcdir=$ac_optarg ;;
1182
1183   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184   | --syscon | --sysco | --sysc | --sys | --sy)
1185     ac_prev=sysconfdir ;;
1186   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188     sysconfdir=$ac_optarg ;;
1189
1190   -target | --target | --targe | --targ | --tar | --ta | --t)
1191     ac_prev=target_alias ;;
1192   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193     target_alias=$ac_optarg ;;
1194
1195   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196     verbose=yes ;;
1197
1198   -version | --version | --versio | --versi | --vers | -V)
1199     ac_init_version=: ;;
1200
1201   -with-* | --with-*)
1202     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205       as_fn_error $? "invalid package name: $ac_useropt"
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error $? "invalid package name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     case $ac_envvar in #(
1259       '' | [0-9]* | *[!_$as_cr_alnum]* )
1260       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261     esac
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   as_fn_error $? "missing argument to $ac_option"
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319   if test "x$build_alias" = x; then
1320     cross_compiling=maybe
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   as_fn_error $? "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337   as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342   ac_srcdir_defaulted=yes
1343   # Try the directory containing this script, then the parent directory.
1344   ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346          X"$as_myself" : 'X\(//\)[^/]' \| \
1347          X"$as_myself" : 'X\(//\)$' \| \
1348          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)[^/].*/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\).*/{
1363             s//\1/
1364             q
1365           }
1366           s/.*/./; q'`
1367   srcdir=$ac_confdir
1368   if test ! -r "$srcdir/$ac_unique_file"; then
1369     srcdir=..
1370   fi
1371 else
1372   ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381         pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384   srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_env_${ac_var}_value=\$${ac_var}
1395   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403   # Omit some internal or obsolete options to make the list less imposing.
1404   # This message is too long to be a string in the A/UX 3.1 sh.
1405   cat <<_ACEOF
1406 \`configure' configures Wine 1.5.26 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416   -h, --help              display this help and exit
1417       --help=short        display options specific to this package
1418       --help=recursive    display the short help of all the included packages
1419   -V, --version           display version information and exit
1420   -q, --quiet, --silent   do not print \`checking ...' messages
1421       --cache-file=FILE   cache test results in FILE [disabled]
1422   -C, --config-cache      alias for \`--cache-file=config.cache'
1423   -n, --no-create         do not create output files
1424       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427   --prefix=PREFIX         install architecture-independent files in PREFIX
1428                           [$ac_default_prefix]
1429   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                           [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440   --bindir=DIR            user executables [EPREFIX/bin]
1441   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442   --libexecdir=DIR        program executables [EPREFIX/libexec]
1443   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446   --libdir=DIR            object code libraries [EPREFIX/lib]
1447   --includedir=DIR        C header files [PREFIX/include]
1448   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1449   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1450   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1451   --infodir=DIR           info documentation [DATAROOTDIR/info]
1452   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1453   --mandir=DIR            man documentation [DATAROOTDIR/man]
1454   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1455   --htmldir=DIR           html documentation [DOCDIR]
1456   --dvidir=DIR            dvi documentation [DOCDIR]
1457   --pdfdir=DIR            pdf documentation [DOCDIR]
1458   --psdir=DIR             ps documentation [DOCDIR]
1459 _ACEOF
1460
1461   cat <<\_ACEOF
1462
1463 X features:
1464   --x-includes=DIR    X include files are in DIR
1465   --x-libraries=DIR   X library files are in DIR
1466
1467 System types:
1468   --build=BUILD     configure for building on BUILD [guessed]
1469   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474   case $ac_init_help in
1475      short | recursive ) echo "Configuration of Wine 1.5.26:";;
1476    esac
1477   cat <<\_ACEOF
1478
1479 Optional Features:
1480   --disable-option-checking  ignore unrecognized --enable/--with options
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --disable-win16         do not include Win16 support
1484   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1485                           binaries)
1486   --disable-tests         do not build the regression tests
1487   --enable-maintainer-mode
1488                           enable maintainer-specific build rules
1489   --disable-largefile     omit support for large files
1490
1491 Optional Packages:
1492   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494   --without-alsa          do not use the Alsa sound support
1495   --without-capi          do not use CAPI (ISDN support)
1496   --without-cms           do not use CMS (color management support)
1497   --without-coreaudio     do not use the CoreAudio sound support
1498   --without-cups          do not use CUPS
1499   --without-curses        do not use (n)curses
1500   --without-dbus          do not use DBus (dynamic device support)
1501   --without-fontconfig    do not use fontconfig
1502   --without-freetype      do not use the FreeType library
1503   --without-gettext       do not use gettext
1504   --with-gettextpo        use the GetTextPO library to rebuild po files
1505   --without-gphoto        do not use gphoto (Digital Camera support)
1506   --without-glu           do not use the GLU library
1507   --without-gnutls        do not use GnuTLS (schannel support)
1508   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1509   --without-gstreamer     do not use GStreamer (codecs support)
1510   --without-hal           do not use HAL (dynamic device support)
1511   --without-jpeg          do not use JPEG
1512   --without-ldap          do not use LDAP
1513   --without-mpg123        do not use the mpg123 library
1514   --without-openal        do not use OpenAL
1515   --without-opencl        do not use OpenCL
1516   --without-opengl        do not use OpenGL
1517   --without-openssl       do not use OpenSSL
1518   --without-osmesa        do not use the OSMesa library
1519   --without-oss           do not use the OSS sound support
1520   --without-png           do not use PNG
1521   --without-pthread       do not use the pthread library
1522   --without-sane          do not use SANE (scanner support)
1523   --without-tiff          do not use TIFF
1524   --without-v4l           do not use v4l1 (v4l support)
1525   --without-xcomposite    do not use the Xcomposite extension
1526   --without-xcursor       do not use the Xcursor extension
1527   --without-xinerama      do not use Xinerama (multi-monitor support)
1528   --without-xinput        do not use the Xinput extension
1529   --without-xinput2       do not use the Xinput 2 extension
1530   --without-xml           do not use XML
1531   --without-xrandr        do not use Xrandr (resolution changes)
1532   --without-xrender       do not use the Xrender extension
1533   --without-xshape        do not use the Xshape extension
1534   --without-xshm          do not use XShm (shared memory extension)
1535   --without-xslt          do not use XSLT
1536   --without-xxf86vm       do not use XFree video mode extension
1537   --without-zlib          do not use Zlib (data compression)
1538   --with-wine-tools=DIR   use Wine tools from directory DIR
1539   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1540   --with-x                use the X Window System
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CXX         C++ compiler command
1551   CXXFLAGS    C++ compiler flags
1552   CPP         C preprocessor
1553   XMKMF       Path to xmkmf, Makefile generator for X Window System
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <wine-devel@winehq.org>.
1559 Wine home page: <http://www.winehq.org>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" ||
1568       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569       continue
1570     ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576   # A ".." for each directory in $ac_dir_suffix.
1577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578   case $ac_top_builddir_sub in
1579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581   esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589   .)  # We are building in place.
1590     ac_srcdir=.
1591     ac_top_srcdir=$ac_top_builddir_sub
1592     ac_abs_top_srcdir=$ac_pwd ;;
1593   [\\/]* | ?:[\\/]* )  # Absolute name.
1594     ac_srcdir=$srcdir$ac_dir_suffix;
1595     ac_top_srcdir=$srcdir
1596     ac_abs_top_srcdir=$srcdir ;;
1597   *) # Relative name.
1598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599     ac_top_srcdir=$ac_top_build_prefix$srcdir
1600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604     cd "$ac_dir" || { ac_status=$?; continue; }
1605     # Check for guested configure.
1606     if test -f "$ac_srcdir/configure.gnu"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609     elif test -f "$ac_srcdir/configure"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure" --help=recursive
1612     else
1613       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614     fi || ac_status=$?
1615     cd "$ac_pwd" || { ac_status=$?; break; }
1616   done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621   cat <<\_ACEOF
1622 Wine configure 1.5.26
1623 generated by GNU Autoconf 2.69
1624
1625 Copyright (C) 2012 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629   exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   rm -f conftest.$ac_objext
1643   if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_compile") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && {
1659          test -z "$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        } && test -s conftest.$ac_objext; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667         ac_retval=1
1668 fi
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_compile
1673
1674 # ac_fn_cxx_try_compile LINENO
1675 # ----------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_compile ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   rm -f conftest.$ac_objext
1681   if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_compile") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && {
1697          test -z "$ac_cxx_werror_flag" ||
1698          test ! -s conftest.err
1699        } && test -s conftest.$ac_objext; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708   as_fn_set_status $ac_retval
1709
1710 } # ac_fn_cxx_try_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext conftest$ac_exeext
1719   if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_link") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest$ac_exeext && {
1738          test "$cross_compiling" = yes ||
1739          test -x conftest$ac_exeext
1740        }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746         ac_retval=1
1747 fi
1748   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750   # interfere with the next link command; also delete a directory that is
1751   # left behind by Apple's compiler.  We do this before executing the actions.
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_link
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } > conftest.i && {
1780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788     ac_retval=1
1789 fi
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1799 # accordingly.
1800 ac_fn_c_check_header_mongrel ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   if eval \${$3+:} false; then :
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 else
1813   # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   ac_header_compiler=yes
1823 else
1824   ac_header_compiler=no
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1829
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838   ac_header_preproc=yes
1839 else
1840   ac_header_preproc=no
1841 fi
1842 rm -f conftest.err conftest.i conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1845
1846 # So?  What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848   yes:no: )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853     ;;
1854   no:yes:* )
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ( $as_echo "## ------------------------------------ ##
1866 ## Report this to wine-devel@winehq.org ##
1867 ## ------------------------------------ ##"
1868      ) | sed "s/^/$as_me: WARNING:     /" >&2
1869     ;;
1870 esac
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   eval "$3=\$ac_header_compiler"
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 fi
1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_header_mongrel
1885
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1890 ac_fn_c_try_run ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_link") 2>&5
1901   ac_status=$?
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904   { { case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_try") 2>&5
1911   ac_status=$?
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; }; }; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: program exited with status $ac_status" >&5
1917        $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920        ac_retval=$ac_status
1921 fi
1922   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924   as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_run
1927
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938   $as_echo_n "(cached) " >&6
1939 else
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   eval "$3=yes"
1947 else
1948   eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_header_compile
1958
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1974 #define $2 innocuous_$2
1975
1976 /* System header to define __stub macros and hopefully few prototypes,
1977     which can conflict with char $2 (); below.
1978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979     <limits.h> exists even on freestanding compilers.  */
1980
1981 #ifdef __STDC__
1982 # include <limits.h>
1983 #else
1984 # include <assert.h>
1985 #endif
1986
1987 #undef $2
1988
1989 /* Override any GCC internal prototype to avoid an error.
1990    Use char because int might match the return type of a GCC
1991    builtin and then its argument prototype would still apply.  */
1992 #ifdef __cplusplus
1993 extern "C"
1994 #endif
1995 char $2 ();
1996 /* The GNU C library defines this for functions which it implements
1997     to always fail with ENOSYS.  Some functions are actually named
1998     something starting with __ and the normal name is an alias.  */
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2002
2003 int
2004 main ()
2005 {
2006 return $2 ();
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_link "$LINENO"; then :
2012   eval "$3=yes"
2013 else
2014   eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext \
2017     conftest$ac_exeext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_func
2025
2026 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2027 # ----------------------------------------------------
2028 # Tries to find if the field MEMBER exists in type AGGR, after including
2029 # INCLUDES, setting cache variable VAR accordingly.
2030 ac_fn_c_check_member ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2034 $as_echo_n "checking for $2.$3... " >&6; }
2035 if eval \${$4+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 else
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $5
2041 int
2042 main ()
2043 {
2044 static $2 ac_aggr;
2045 if (ac_aggr.$3)
2046 return 0;
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   eval "$4=yes"
2053 else
2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $5
2057 int
2058 main ()
2059 {
2060 static $2 ac_aggr;
2061 if (sizeof ac_aggr.$3)
2062 return 0;
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   eval "$4=yes"
2069 else
2070   eval "$4=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$4
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_member
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093   $as_echo_n "(cached) " >&6
2094 else
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 if (sizeof (($2)))
2116             return 0;
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122
2123 else
2124   eval "$3=yes"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_type
2136 cat >config.log <<_ACEOF
2137 This file contains any messages produced by compilers while
2138 running configure, to aid debugging if configure makes a mistake.
2139
2140 It was created by Wine $as_me 1.5.26, which was
2141 generated by GNU Autoconf 2.69.  Invocation command line was
2142
2143   $ $0 $@
2144
2145 _ACEOF
2146 exec 5>>config.log
2147 {
2148 cat <<_ASUNAME
2149 ## --------- ##
2150 ## Platform. ##
2151 ## --------- ##
2152
2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2161
2162 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2163 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2166 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2167 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2168 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2169
2170 _ASUNAME
2171
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177     $as_echo "PATH: $as_dir"
2178   done
2179 IFS=$as_save_IFS
2180
2181 } >&5
2182
2183 cat >&5 <<_ACEOF
2184
2185
2186 ## ----------- ##
2187 ## Core tests. ##
2188 ## ----------- ##
2189
2190 _ACEOF
2191
2192
2193 # Keep a trace of the command line.
2194 # Strip out --no-create and --no-recursion so they do not pile up.
2195 # Strip out --silent because we don't want to record it for future runs.
2196 # Also quote any args containing shell meta-characters.
2197 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_configure_args=
2199 ac_configure_args0=
2200 ac_configure_args1=
2201 ac_must_keep_next=false
2202 for ac_pass in 1 2
2203 do
2204   for ac_arg
2205   do
2206     case $ac_arg in
2207     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209     | -silent | --silent | --silen | --sile | --sil)
2210       continue ;;
2211     *\'*)
2212       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213     esac
2214     case $ac_pass in
2215     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216     2)
2217       as_fn_append ac_configure_args1 " '$ac_arg'"
2218       if test $ac_must_keep_next = true; then
2219         ac_must_keep_next=false # Got value, back to normal.
2220       else
2221         case $ac_arg in
2222           *=* | --config-cache | -C | -disable-* | --disable-* \
2223           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225           | -with-* | --with-* | -without-* | --without-* | --x)
2226             case "$ac_configure_args0 " in
2227               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228             esac
2229             ;;
2230           -* ) ac_must_keep_next=true ;;
2231         esac
2232       fi
2233       as_fn_append ac_configure_args " '$ac_arg'"
2234       ;;
2235     esac
2236   done
2237 done
2238 { ac_configure_args0=; unset ac_configure_args0;}
2239 { ac_configure_args1=; unset ac_configure_args1;}
2240
2241 # When interrupted or exit'd, cleanup temporary files, and complete
2242 # config.log.  We remove comments because anyway the quotes in there
2243 # would cause problems or look ugly.
2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246 trap 'exit_status=$?
2247   # Save into config.log some information that might help in debugging.
2248   {
2249     echo
2250
2251     $as_echo "## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##"
2254     echo
2255     # The following way of writing the cache mishandles newlines in values,
2256 (
2257   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258     eval ac_val=\$$ac_var
2259     case $ac_val in #(
2260     *${as_nl}*)
2261       case $ac_var in #(
2262       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264       esac
2265       case $ac_var in #(
2266       _ | IFS | as_nl) ;; #(
2267       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268       *) { eval $ac_var=; unset $ac_var;} ;;
2269       esac ;;
2270     esac
2271   done
2272   (set) 2>&1 |
2273     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274     *${as_nl}ac_space=\ *)
2275       sed -n \
2276         "s/'\''/'\''\\\\'\'''\''/g;
2277           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278       ;; #(
2279     *)
2280       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281       ;;
2282     esac |
2283     sort
2284 )
2285     echo
2286
2287     $as_echo "## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##"
2290     echo
2291     for ac_var in $ac_subst_vars
2292     do
2293       eval ac_val=\$$ac_var
2294       case $ac_val in
2295       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296       esac
2297       $as_echo "$ac_var='\''$ac_val'\''"
2298     done | sort
2299     echo
2300
2301     if test -n "$ac_subst_files"; then
2302       $as_echo "## ------------------- ##
2303 ## File substitutions. ##
2304 ## ------------------- ##"
2305       echo
2306       for ac_var in $ac_subst_files
2307       do
2308         eval ac_val=\$$ac_var
2309         case $ac_val in
2310         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311         esac
2312         $as_echo "$ac_var='\''$ac_val'\''"
2313       done | sort
2314       echo
2315     fi
2316
2317     if test -s confdefs.h; then
2318       $as_echo "## ----------- ##
2319 ## confdefs.h. ##
2320 ## ----------- ##"
2321       echo
2322       cat confdefs.h
2323       echo
2324     fi
2325     test "$ac_signal" != 0 &&
2326       $as_echo "$as_me: caught signal $ac_signal"
2327     $as_echo "$as_me: exit $exit_status"
2328   } >&5
2329   rm -f core *.core core.conftest.* &&
2330     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331     exit $exit_status
2332 ' 0
2333 for ac_signal in 1 2 13 15; do
2334   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335 done
2336 ac_signal=0
2337
2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2339 rm -f -r conftest* confdefs.h
2340
2341 $as_echo "/* confdefs.h */" > confdefs.h
2342
2343 # Predefined preprocessor variables.
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_URL "$PACKAGE_URL"
2367 _ACEOF
2368
2369
2370 # Let the site file select an alternate cache file if it wants to.
2371 # Prefer an explicitly selected file to automatically selected ones.
2372 ac_site_file1=NONE
2373 ac_site_file2=NONE
2374 if test -n "$CONFIG_SITE"; then
2375   # We do not want a PATH search for config.site.
2376   case $CONFIG_SITE in #((
2377     -*)  ac_site_file1=./$CONFIG_SITE;;
2378     */*) ac_site_file1=$CONFIG_SITE;;
2379     *)   ac_site_file1=./$CONFIG_SITE;;
2380   esac
2381 elif test "x$prefix" != xNONE; then
2382   ac_site_file1=$prefix/share/config.site
2383   ac_site_file2=$prefix/etc/config.site
2384 else
2385   ac_site_file1=$ac_default_prefix/share/config.site
2386   ac_site_file2=$ac_default_prefix/etc/config.site
2387 fi
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 do
2390   test "x$ac_site_file" = xNONE && continue
2391   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394     sed 's/^/| /' "$ac_site_file" >&5
2395     . "$ac_site_file" \
2396       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 as_fn_error $? "failed to load site script $ac_site_file
2399 See \`config.log' for more details" "$LINENO" 5; }
2400   fi
2401 done
2402
2403 if test -r "$cache_file"; then
2404   # Some versions of bash will fail to source /dev/null (special files
2405   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2406   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2407     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409     case $cache_file in
2410       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411       *)                      . "./$cache_file";;
2412     esac
2413   fi
2414 else
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417   >$cache_file
2418 fi
2419
2420 # Check that the precious variables saved in the cache have kept the same
2421 # value.
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425   eval ac_new_set=\$ac_env_${ac_var}_set
2426   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427   eval ac_new_val=\$ac_env_${ac_var}_value
2428   case $ac_old_set,$ac_new_set in
2429     set,)
2430       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432       ac_cache_corrupted=: ;;
2433     ,set)
2434       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436       ac_cache_corrupted=: ;;
2437     ,);;
2438     *)
2439       if test "x$ac_old_val" != "x$ac_new_val"; then
2440         # differences in whitespace do not lead to failure.
2441         ac_old_val_w=`echo x $ac_old_val`
2442         ac_new_val_w=`echo x $ac_new_val`
2443         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446           ac_cache_corrupted=:
2447         else
2448           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450           eval $ac_var=\$ac_old_val
2451         fi
2452         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2453 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2454         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2456       fi;;
2457   esac
2458   # Pass precious variables to config.status.
2459   if test "$ac_new_set" = set; then
2460     case $ac_new_val in
2461     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462     *) ac_arg=$ac_var=$ac_new_val ;;
2463     esac
2464     case " $ac_configure_args " in
2465       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2466       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467     esac
2468   fi
2469 done
2470 if $ac_cache_corrupted; then
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 fi
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488
2489 ac_config_headers="$ac_config_headers include/config.h"
2490
2491 ac_aux_dir=
2492 for ac_dir in tools "$srcdir"/tools; do
2493   if test -f "$ac_dir/install-sh"; then
2494     ac_aux_dir=$ac_dir
2495     ac_install_sh="$ac_aux_dir/install-sh -c"
2496     break
2497   elif test -f "$ac_dir/install.sh"; then
2498     ac_aux_dir=$ac_dir
2499     ac_install_sh="$ac_aux_dir/install.sh -c"
2500     break
2501   elif test -f "$ac_dir/shtool"; then
2502     ac_aux_dir=$ac_dir
2503     ac_install_sh="$ac_aux_dir/shtool install -c"
2504     break
2505   fi
2506 done
2507 if test -z "$ac_aux_dir"; then
2508   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2509 fi
2510
2511 # These three variables are undocumented and unsupported,
2512 # and are intended to be withdrawn in a future Autoconf release.
2513 # They can cause serious problems if a builder's source tree is in a directory
2514 # whose full name contains unusual characters.
2515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2517 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2518
2519
2520
2521
2522
2523 # Check whether --enable-win16 was given.
2524 if test "${enable_win16+set}" = set; then :
2525   enableval=$enable_win16;
2526 fi
2527
2528 # Check whether --enable-win64 was given.
2529 if test "${enable_win64+set}" = set; then :
2530   enableval=$enable_win64;
2531 fi
2532
2533 # Check whether --enable-tests was given.
2534 if test "${enable_tests+set}" = set; then :
2535   enableval=$enable_tests;
2536 fi
2537
2538 # Check whether --enable-maintainer-mode was given.
2539 if test "${enable_maintainer_mode+set}" = set; then :
2540   enableval=$enable_maintainer_mode;
2541 fi
2542
2543
2544
2545 # Check whether --with-alsa was given.
2546 if test "${with_alsa+set}" = set; then :
2547   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2548 fi
2549
2550
2551 # Check whether --with-capi was given.
2552 if test "${with_capi+set}" = set; then :
2553   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2554 fi
2555
2556
2557 # Check whether --with-cms was given.
2558 if test "${with_cms+set}" = set; then :
2559   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2560 fi
2561
2562
2563 # Check whether --with-coreaudio was given.
2564 if test "${with_coreaudio+set}" = set; then :
2565   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2566 fi
2567
2568
2569 # Check whether --with-cups was given.
2570 if test "${with_cups+set}" = set; then :
2571   withval=$with_cups;
2572 fi
2573
2574
2575 # Check whether --with-curses was given.
2576 if test "${with_curses+set}" = set; then :
2577   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2578 fi
2579
2580
2581 # Check whether --with-dbus was given.
2582 if test "${with_dbus+set}" = set; then :
2583   withval=$with_dbus;
2584 fi
2585
2586
2587 # Check whether --with-fontconfig was given.
2588 if test "${with_fontconfig+set}" = set; then :
2589   withval=$with_fontconfig;
2590 fi
2591
2592
2593 # Check whether --with-freetype was given.
2594 if test "${with_freetype+set}" = set; then :
2595   withval=$with_freetype;
2596 fi
2597
2598
2599 # Check whether --with-gettext was given.
2600 if test "${with_gettext+set}" = set; then :
2601   withval=$with_gettext;
2602 fi
2603
2604
2605 # Check whether --with-gettextpo was given.
2606 if test "${with_gettextpo+set}" = set; then :
2607   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2608 fi
2609
2610
2611 # Check whether --with-gphoto was given.
2612 if test "${with_gphoto+set}" = set; then :
2613   withval=$with_gphoto;
2614 fi
2615
2616
2617 # Check whether --with-glu was given.
2618 if test "${with_glu+set}" = set; then :
2619   withval=$with_glu;
2620 fi
2621
2622
2623 # Check whether --with-gnutls was given.
2624 if test "${with_gnutls+set}" = set; then :
2625   withval=$with_gnutls;
2626 fi
2627
2628
2629 # Check whether --with-gsm was given.
2630 if test "${with_gsm+set}" = set; then :
2631   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2632 fi
2633
2634
2635 # Check whether --with-gstreamer was given.
2636 if test "${with_gstreamer+set}" = set; then :
2637   withval=$with_gstreamer;
2638 fi
2639
2640
2641 # Check whether --with-hal was given.
2642 if test "${with_hal+set}" = set; then :
2643   withval=$with_hal;
2644 fi
2645
2646
2647 # Check whether --with-jpeg was given.
2648 if test "${with_jpeg+set}" = set; then :
2649   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2650 fi
2651
2652
2653 # Check whether --with-ldap was given.
2654 if test "${with_ldap+set}" = set; then :
2655   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2656 fi
2657
2658
2659 # Check whether --with-mpg123 was given.
2660 if test "${with_mpg123+set}" = set; then :
2661   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2662 fi
2663
2664
2665 # Check whether --with-openal was given.
2666 if test "${with_openal+set}" = set; then :
2667   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2668 fi
2669
2670
2671 # Check whether --with-opencl was given.
2672 if test "${with_opencl+set}" = set; then :
2673   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2674 fi
2675
2676
2677 # Check whether --with-opengl was given.
2678 if test "${with_opengl+set}" = set; then :
2679   withval=$with_opengl;
2680 fi
2681
2682
2683 # Check whether --with-openssl was given.
2684 if test "${with_openssl+set}" = set; then :
2685   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2686 fi
2687
2688
2689 # Check whether --with-osmesa was given.
2690 if test "${with_osmesa+set}" = set; then :
2691   withval=$with_osmesa;
2692 fi
2693
2694
2695 # Check whether --with-oss was given.
2696 if test "${with_oss+set}" = set; then :
2697   withval=$with_oss;
2698 fi
2699
2700
2701 # Check whether --with-png was given.
2702 if test "${with_png+set}" = set; then :
2703   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2704 fi
2705
2706
2707 # Check whether --with-pthread was given.
2708 if test "${with_pthread+set}" = set; then :
2709   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2710 fi
2711
2712
2713 # Check whether --with-sane was given.
2714 if test "${with_sane+set}" = set; then :
2715   withval=$with_sane;
2716 fi
2717
2718
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2721   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2722 fi
2723
2724
2725 # Check whether --with-v4l was given.
2726 if test "${with_v4l+set}" = set; then :
2727   withval=$with_v4l;
2728 fi
2729
2730
2731 # Check whether --with-xcomposite was given.
2732 if test "${with_xcomposite+set}" = set; then :
2733   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2734 fi
2735
2736
2737 # Check whether --with-xcursor was given.
2738 if test "${with_xcursor+set}" = set; then :
2739   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2740 fi
2741
2742
2743 # Check whether --with-xinerama was given.
2744 if test "${with_xinerama+set}" = set; then :
2745   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2746 fi
2747
2748
2749 # Check whether --with-xinput was given.
2750 if test "${with_xinput+set}" = set; then :
2751   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2752 fi
2753
2754
2755 # Check whether --with-xinput2 was given.
2756 if test "${with_xinput2+set}" = set; then :
2757   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2758 fi
2759
2760
2761 # Check whether --with-xml was given.
2762 if test "${with_xml+set}" = set; then :
2763   withval=$with_xml;
2764 fi
2765
2766
2767 # Check whether --with-xrandr was given.
2768 if test "${with_xrandr+set}" = set; then :
2769   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2770 fi
2771
2772
2773 # Check whether --with-xrender was given.
2774 if test "${with_xrender+set}" = set; then :
2775   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2776 fi
2777
2778
2779 # Check whether --with-xshape was given.
2780 if test "${with_xshape+set}" = set; then :
2781   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2782 fi
2783
2784
2785 # Check whether --with-xshm was given.
2786 if test "${with_xshm+set}" = set; then :
2787   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2788 fi
2789
2790
2791 # Check whether --with-xslt was given.
2792 if test "${with_xslt+set}" = set; then :
2793   withval=$with_xslt;
2794 fi
2795
2796
2797 # Check whether --with-xxf86vm was given.
2798 if test "${with_xxf86vm+set}" = set; then :
2799   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
2800 fi
2801
2802
2803 # Check whether --with-zlib was given.
2804 if test "${with_zlib+set}" = set; then :
2805   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2806 fi
2807
2808
2809
2810 # Check whether --with-wine-tools was given.
2811 if test "${with_wine_tools+set}" = set; then :
2812   withval=$with_wine_tools;
2813 fi
2814
2815
2816 # Check whether --with-wine64 was given.
2817 if test "${with_wine64+set}" = set; then :
2818   withval=$with_wine64;
2819 fi
2820
2821
2822 # Make sure we can run config.sub.
2823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2824   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2827 $as_echo_n "checking build system type... " >&6; }
2828 if ${ac_cv_build+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   ac_build_alias=$build_alias
2832 test "x$ac_build_alias" = x &&
2833   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2834 test "x$ac_build_alias" = x &&
2835   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2837   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2838
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2841 $as_echo "$ac_cv_build" >&6; }
2842 case $ac_cv_build in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2845 esac
2846 build=$ac_cv_build
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_build
2849 shift
2850 build_cpu=$1
2851 build_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 build_os=$*
2856 IFS=$ac_save_IFS
2857 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2861 $as_echo_n "checking host system type... " >&6; }
2862 if ${ac_cv_host+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test "x$host_alias" = x; then
2866   ac_cv_host=$ac_cv_build
2867 else
2868   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2869     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2870 fi
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2874 $as_echo "$ac_cv_host" >&6; }
2875 case $ac_cv_host in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2878 esac
2879 host=$ac_cv_host
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_host
2882 shift
2883 host_cpu=$1
2884 host_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 host_os=$*
2889 IFS=$ac_save_IFS
2890 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2891
2892
2893
2894 case "$srcdir" in
2895  .) ;;
2896  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2897       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2898 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2899     fi ;;
2900 esac
2901
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905 set x ${MAKE-make}
2906 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   cat >conftest.make <<\_ACEOF
2911 SHELL = /bin/sh
2912 all:
2913         @echo '@@@%%%=$(MAKE)=@@@%%%'
2914 _ACEOF
2915 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2917   *@@@%%%=?*=@@@%%%*)
2918     eval ac_cv_prog_make_${ac_make}_set=yes;;
2919   *)
2920     eval ac_cv_prog_make_${ac_make}_set=no;;
2921 esac
2922 rm -f conftest.make
2923 fi
2924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927   SET_MAKE=
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931   SET_MAKE="MAKE=${MAKE-make}"
2932 fi
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_CC"; then
2979   ac_ct_CC=$CC
2980   # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_prog_ac_ct_CC="gcc"
2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002   done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     CC=$ac_ct_CC
3026   fi
3027 else
3028   CC="$ac_cv_prog_CC"
3029 fi
3030
3031 if test -z "$CC"; then
3032           if test -n "$ac_tool_prefix"; then
3033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050     ac_cv_prog_CC="${ac_tool_prefix}cc"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070   fi
3071 fi
3072 if test -z "$CC"; then
3073   # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$CC"; then
3081   ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083   ac_prog_rejected=no
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092        ac_prog_rejected=yes
3093        continue
3094      fi
3095     ac_cv_prog_CC="cc"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 if test $ac_prog_rejected = yes; then
3104   # We found a bogon in the path, so make sure we never use it.
3105   set dummy $ac_cv_prog_CC
3106   shift
3107   if test $# != 0; then
3108     # We chose a different compiler from the bogus one.
3109     # However, it has the same basename, so the bogon will be chosen
3110     # first if we set CC to just the basename; use the full file name.
3111     shift
3112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113   fi
3114 fi
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$CC"; then
3129   if test -n "$ac_tool_prefix"; then
3130   for ac_prog in cl.exe
3131   do
3132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169     test -n "$CC" && break
3170   done
3171 fi
3172 if test -z "$CC"; then
3173   ac_ct_CC=$CC
3174   for ac_prog in cl.exe
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_exec_ext in '' $ac_executable_extensions; do
3192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_ac_ct_CC="$ac_prog"
3194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198   done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213   test -n "$ac_ct_CC" && break
3214 done
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 fi
3228
3229 fi
3230
3231
3232 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details" "$LINENO" 5; }
3236
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3239 set X $ac_compile
3240 ac_compiler=$2
3241 for ac_option in --version -v -V -qversion; do
3242   { { ac_try="$ac_compiler $ac_option >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3250   ac_status=$?
3251   if test -s conftest.err; then
3252     sed '10a\
3253 ... rest of stderr output deleted ...
3254          10q' conftest.err >conftest.er1
3255     cat conftest.er1 >&5
3256   fi
3257   rm -f conftest.er1 conftest.err
3258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259   test $ac_status = 0; }
3260 done
3261
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3277 # of exeext.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279 $as_echo_n "checking whether the C compiler works... " >&6; }
3280 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281
3282 # The possible output files:
3283 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284
3285 ac_rmfiles=
3286 for ac_file in $ac_files
3287 do
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291   esac
3292 done
3293 rm -f $ac_rmfiles
3294
3295 if { { ac_try="$ac_link_default"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302   (eval "$ac_link_default") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3309 # so that the user can short-circuit this test for compilers unknown to
3310 # Autoconf.
3311 for ac_file in $ac_files ''
3312 do
3313   test -f "$ac_file" || continue
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316         ;;
3317     [ab].out )
3318         # We found the default executable, but exeext='' is most
3319         # certainly right.
3320         break;;
3321     *.* )
3322         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3323         then :; else
3324            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325         fi
3326         # We set ac_cv_exeext here because the later test for it is not
3327         # safe: cross compilers may not add the suffix if given an `-o'
3328         # argument, so we may need to know it at that point already.
3329         # Even if this section looks crufty: it has the advantage of
3330         # actually working.
3331         break;;
3332     * )
3333         break;;
3334   esac
3335 done
3336 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337
3338 else
3339   ac_file=''
3340 fi
3341 if test -z "$ac_file"; then :
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error 77 "C compiler cannot create executables
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 ac_exeext=$ac_cv_exeext
3360
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364 $as_echo_n "checking for suffix of executables... " >&6; }
3365 if { { ac_try="$ac_link"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_link") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; then :
3376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378 # work properly (i.e., refer to `conftest.exe'), while it won't with
3379 # `rm'.
3380 for ac_file in conftest.exe conftest conftest.*; do
3381   test -f "$ac_file" || continue
3382   case $ac_file in
3383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385           break;;
3386     * ) break;;
3387   esac
3388 done
3389 else
3390   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 rm -f conftest conftest$ac_cv_exeext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397 $as_echo "$ac_cv_exeext" >&6; }
3398
3399 rm -f conftest.$ac_ext
3400 EXEEXT=$ac_cv_exeext
3401 ac_exeext=$EXEEXT
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404 #include <stdio.h>
3405 int
3406 main ()
3407 {
3408 FILE *f = fopen ("conftest.out", "w");
3409  return ferror (f) || fclose (f) != 0;
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files="$ac_clean_files conftest.out"
3416 # Check that the compiler produces executables we can run.  If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 if test "$cross_compiling" != yes; then
3421   { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }
3432   if { ac_try='./conftest$ac_cv_exeext'
3433   { { case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442   test $ac_status = 0; }; }; then
3443     cross_compiling=no
3444   else
3445     if test "$cross_compiling" = maybe; then
3446         cross_compiling=yes
3447     else
3448         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot run C compiled programs.
3451 If you meant to cross compile, use \`--host'.
3452 See \`config.log' for more details" "$LINENO" 5; }
3453     fi
3454   fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457 $as_echo "$cross_compiling" >&6; }
3458
3459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460 ac_clean_files=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if ${ac_cv_objext+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_compile") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; then :
3489   for ac_file in conftest.o conftest.obj conftest.*; do
3490   test -f "$ac_file" || continue;
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494        break;;
3495   esac
3496 done
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details" "$LINENO" 5; }
3505 fi
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3511 ac_objext=$OBJEXT
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if ${ac_cv_c_compiler_gnu+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523 #ifndef __GNUC__
3524        choke me
3525 #endif
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_compiler_gnu=yes
3533 else
3534   ac_compiler_gnu=no
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3543   GCC=yes
3544 else
3545   GCC=
3546 fi
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if ${ac_cv_prog_cc_g+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 else
3572   CFLAGS=""
3573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585
3586 else
3587   ac_c_werror_flag=$ac_save_c_werror_flag
3588          CFLAGS="-g"
3589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_g=yes
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if ${ac_cv_prog_cc_c89+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 struct stat;
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643      char **p;
3644      int i;
3645 {
3646   return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650   char *s;
3651   va_list v;
3652   va_start (v,p);
3653   s = g (p, va_arg (v,int));
3654   va_end (v);
3655   return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3659    function prototypes and stuff, but not '\xHH' hex character constants.
3660    These don't provoke an error unfortunately, instead are silently treated
3661    as 'x'.  The following induces an error, until -std is added to get
3662    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3663    array size at least.  It's necessary to write '\x00'==0 to get something
3664    that's true only with -std.  */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668    inside strings and character constants.  */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689   CC="$ac_save_CC $ac_arg"
3690   if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694   test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702   x)
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705   xno)
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708   *)
3709     CC="$CC $ac_cv_prog_cc_c89"
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 ac_ext=cpp
3724 ac_cpp='$CXXCPP $CPPFLAGS'
3725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3728 if test -z "$CXX"; then
3729   if test -n "$CCC"; then
3730     CXX=$CCC
3731   else
3732     if test -n "$ac_tool_prefix"; then
3733   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3734   do
3735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CXX+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if test -n "$CXX"; then
3743   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757   done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CXX=$ac_cv_prog_CXX
3763 if test -n "$CXX"; then
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3765 $as_echo "$CXX" >&6; }
3766 else
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772     test -n "$CXX" && break
3773   done
3774 fi
3775 if test -z "$CXX"; then
3776   ac_ct_CXX=$CXX
3777   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3778 do
3779   # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$ac_ct_CXX"; then
3787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_ac_ct_CXX="$ac_prog"
3797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801   done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3807 if test -n "$ac_ct_CXX"; then
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3809 $as_echo "$ac_ct_CXX" >&6; }
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816   test -n "$ac_ct_CXX" && break
3817 done
3818
3819   if test "x$ac_ct_CXX" = x; then
3820     CXX="g++"
3821   else
3822     case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828     CXX=$ac_ct_CXX
3829   fi
3830 fi
3831
3832   fi
3833 fi
3834 # Provide some information about the compiler.
3835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3836 set X $ac_compile
3837 ac_compiler=$2
3838 for ac_option in --version -v -V -qversion; do
3839   { { ac_try="$ac_compiler $ac_option >&5"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847   ac_status=$?
3848   if test -s conftest.err; then
3849     sed '10a\
3850 ... rest of stderr output deleted ...
3851          10q' conftest.err >conftest.er1
3852     cat conftest.er1 >&5
3853   fi
3854   rm -f conftest.er1 conftest.err
3855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856   test $ac_status = 0; }
3857 done
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3860 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3861 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870 #ifndef __GNUC__
3871        choke me
3872 #endif
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879   ac_compiler_gnu=yes
3880 else
3881   ac_compiler_gnu=no
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3888 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3889 if test $ac_compiler_gnu = yes; then
3890   GXX=yes
3891 else
3892   GXX=
3893 fi
3894 ac_test_CXXFLAGS=${CXXFLAGS+set}
3895 ac_save_CXXFLAGS=$CXXFLAGS
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3897 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3898 if ${ac_cv_prog_cxx_g+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3902    ac_cxx_werror_flag=yes
3903    ac_cv_prog_cxx_g=no
3904    CXXFLAGS="-g"
3905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_cxx_try_compile "$LINENO"; then :
3917   ac_cv_prog_cxx_g=yes
3918 else
3919   CXXFLAGS=""
3920       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_cxx_try_compile "$LINENO"; then :
3932
3933 else
3934   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3935          CXXFLAGS="-g"
3936          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_cxx_try_compile "$LINENO"; then :
3948   ac_cv_prog_cxx_g=yes
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3958 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3959 if test "$ac_test_CXXFLAGS" = set; then
3960   CXXFLAGS=$ac_save_CXXFLAGS
3961 elif test $ac_cv_prog_cxx_g = yes; then
3962   if test "$GXX" = yes; then
3963     CXXFLAGS="-g -O2"
3964   else
3965     CXXFLAGS="-g"
3966   fi
3967 else
3968   if test "$GXX" = yes; then
3969     CXXFLAGS="-O2"
3970   else
3971     CXXFLAGS=
3972   fi
3973 fi
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980 if test -n "$ac_tool_prefix"; then
3981   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_CPPBIN+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$CPPBIN"; then
3989   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CPPBIN=$ac_cv_prog_CPPBIN
4009 if test -n "$CPPBIN"; then
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4011 $as_echo "$CPPBIN" >&6; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 fi
4019 if test -z "$ac_cv_prog_CPPBIN"; then
4020   ac_ct_CPPBIN=$CPPBIN
4021   # Extract the first word of "cpp", so it can be a program name with args.
4022 set dummy cpp; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   if test -n "$ac_ct_CPPBIN"; then
4029   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_prog_ac_ct_CPPBIN="cpp"
4039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043   done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4049 if test -n "$ac_ct_CPPBIN"; then
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4051 $as_echo "$ac_ct_CPPBIN" >&6; }
4052 else
4053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057   if test "x$ac_ct_CPPBIN" = x; then
4058     CPPBIN="cpp"
4059   else
4060     case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066     CPPBIN=$ac_ct_CPPBIN
4067   fi
4068 else
4069   CPPBIN="$ac_cv_prog_CPPBIN"
4070 fi
4071
4072
4073 cat >>confdefs.h <<_ACEOF
4074 #define EXEEXT "$ac_exeext"
4075 _ACEOF
4076
4077
4078 case $host in
4079   *-darwin*)
4080     if test "x$enable_win64" = "xyes"
4081     then
4082       CC="$CC -m64"
4083       CXX="$CXX -m64"
4084       host_cpu="x86_64"
4085       notice_platform="64-bit "
4086       TARGETFLAGS="-m64"
4087
4088     else
4089       CC="$CC -m32"
4090       CXX="$CXX -m32"
4091       host_cpu="i386"
4092       notice_platform="32-bit "
4093       TARGETFLAGS="-m32"
4094
4095       enable_win16=${enable_win16:-yes}
4096     fi
4097     with_fontconfig=${with_fontconfig:-no}
4098     ;;
4099   x86_64*)
4100     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4101     then
4102       CC="$CC -m32"
4103       CXX="$CXX -m32"
4104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4105 $as_echo_n "checking whether $CC works... " >&6; }
4106
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_link "$LINENO"; then :
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext \
4127     conftest$ac_exeext conftest.$ac_ext
4128       host_cpu="i386"
4129       notice_platform="32-bit "
4130       TARGETFLAGS="-m32"
4131
4132       enable_win16=${enable_win16:-yes}
4133     else
4134       if test "x${GCC}" = "xyes"
4135       then
4136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4137 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4138         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h.  */
4140 #include <stdarg.h>
4141 int
4142 main ()
4143 {
4144 void func(__builtin_ms_va_list *args);
4145   ;
4146   return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151 $as_echo "yes" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158       fi
4159       TARGETFLAGS="-m64"
4160
4161     fi
4162     ;;
4163   arm*)
4164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4165 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168 int ac_test(int i) { return i; }
4169 int
4170 main ()
4171 {
4172 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_link "$LINENO"; then :
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180 else
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183                        as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext \
4186     conftest$ac_exeext conftest.$ac_ext
4187     CFLAGS="$CFLAGS -marm"
4188     ;;
4189   *-mingw32*|*-cygwin*)
4190     enable_win16=${enable_win16:-no}
4191     CFLAGS="$CFLAGS -D_WIN32"
4192     ;;
4193   i[3456789]86*)
4194     enable_win16=${enable_win16:-yes}
4195     ;;
4196 esac
4197
4198 enable_win16=${enable_win16:-no}
4199 enable_win64=${enable_win64:-no}
4200
4201 enable_winetest=${enable_winetest:-$enable_tests}
4202
4203 if test -n "$with_wine64"
4204 then
4205     if test "x$enable_win64" = "xyes"
4206     then
4207         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4208 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4209     fi
4210     WOW64_DISABLE=\#
4211
4212     enable_fonts=${enable_fonts:-no}
4213     enable_server=${enable_server:-no}
4214     enable_tools=${enable_tools:-no}
4215 elif test "x$enable_win64" = "xyes"
4216 then
4217     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4218 fi
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4221 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4222 if ${wine_cv_toolsdir+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   wine_cv_toolsdir="$with_wine_tools"
4226    if test -z "$with_wine_tools"; then
4227      if test "$cross_compiling" = "yes"; then
4228        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4229      elif test -n "$with_wine64"; then
4230        wine_cv_toolsdir="$with_wine64"
4231      fi
4232    fi
4233    if test -z "$wine_cv_toolsdir"; then
4234      wine_cv_toolsdir="\$(top_builddir)"
4235    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4236      case "$wine_cv_toolsdir" in
4237        /*) ;;
4238        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4239      esac
4240    else
4241      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4242    fi
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4245 $as_echo "$wine_cv_toolsdir" >&6; }
4246 TOOLSDIR=$wine_cv_toolsdir
4247
4248 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4249 then
4250     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4251
4252 fi
4253
4254 for ac_prog in flex
4255 do
4256   # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_FLEX+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -n "$FLEX"; then
4264   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_FLEX="$ac_prog"
4274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278   done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 FLEX=$ac_cv_prog_FLEX
4284 if test -n "$FLEX"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4286 $as_echo "$FLEX" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293   test -n "$FLEX" && break
4294 done
4295 test -n "$FLEX" || FLEX="none"
4296
4297 if test "$FLEX" = "none"
4298 then
4299   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4302 $as_echo_n "checking whether flex is recent enough... " >&6; }
4303 cat >conftest.l <<EOF
4304 %top{
4305 #include "prediluvian.h"
4306 }
4307 %%
4308 EOF
4309 if $FLEX -t conftest.l >/dev/null 2>&5
4310 then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4312 $as_echo "yes" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4317 fi
4318
4319 for ac_prog in bison
4320 do
4321   # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_BISON+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$BISON"; then
4329   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_BISON="$ac_prog"
4339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343   done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 BISON=$ac_cv_prog_BISON
4349 if test -n "$BISON"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4351 $as_echo "$BISON" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358   test -n "$BISON" && break
4359 done
4360 test -n "$BISON" || BISON="none"
4361
4362 if test "$BISON" = "none"
4363 then
4364   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4365 fi
4366
4367 if test -n "$ac_tool_prefix"; then
4368   for ac_prog in ar gar
4369   do
4370     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_AR+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if test -n "$AR"; then
4378   ac_cv_prog_AR="$AR" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 AR=$ac_cv_prog_AR
4398 if test -n "$AR"; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4400 $as_echo "$AR" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407     test -n "$AR" && break
4408   done
4409 fi
4410 if test -z "$AR"; then
4411   ac_ct_AR=$AR
4412   for ac_prog in ar gar
4413 do
4414   # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$ac_ct_AR"; then
4422   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     ac_cv_prog_ac_ct_AR="$ac_prog"
4432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436   done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4442 if test -n "$ac_ct_AR"; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4444 $as_echo "$ac_ct_AR" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451   test -n "$ac_ct_AR" && break
4452 done
4453
4454   if test "x$ac_ct_AR" = x; then
4455     AR="ar"
4456   else
4457     case $cross_compiling:$ac_tool_warned in
4458 yes:)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461 ac_tool_warned=yes ;;
4462 esac
4463     AR=$ac_ct_AR
4464   fi
4465 fi
4466
4467 ARFLAGS=rc
4468
4469 if test -n "$ac_tool_prefix"; then
4470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_RANLIB+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -n "$RANLIB"; then
4478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 RANLIB=$ac_cv_prog_RANLIB
4498 if test -n "$RANLIB"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4500 $as_echo "$RANLIB" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507 fi
4508 if test -z "$ac_cv_prog_RANLIB"; then
4509   ac_ct_RANLIB=$RANLIB
4510   # Extract the first word of "ranlib", so it can be a program name with args.
4511 set dummy ranlib; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   if test -n "$ac_ct_RANLIB"; then
4518   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525     for ac_exec_ext in '' $ac_executable_extensions; do
4526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_prog_ac_ct_RANLIB="ranlib"
4528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532   done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538 if test -n "$ac_ct_RANLIB"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4540 $as_echo "$ac_ct_RANLIB" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546   if test "x$ac_ct_RANLIB" = x; then
4547     RANLIB=":"
4548   else
4549     case $cross_compiling:$ac_tool_warned in
4550 yes:)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553 ac_tool_warned=yes ;;
4554 esac
4555     RANLIB=$ac_ct_RANLIB
4556   fi
4557 else
4558   RANLIB="$ac_cv_prog_RANLIB"
4559 fi
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4562 $as_echo_n "checking whether ln -s works... " >&6; }
4563 LN_S=$as_ln_s
4564 if test "$LN_S" = "ln -s"; then
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4566 $as_echo "yes" >&6; }
4567 else
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4569 $as_echo "no, using $LN_S" >&6; }
4570 fi
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4574 if ${ac_cv_path_GREP+:} false; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   if test -z "$GREP"; then
4578   ac_path_GREP_found=false
4579   # Loop through the user's path and test for each of PROGNAME-LIST
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585     for ac_prog in grep ggrep; do
4586     for ac_exec_ext in '' $ac_executable_extensions; do
4587       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4588       as_fn_executable_p "$ac_path_GREP" || continue
4589 # Check for GNU ac_path_GREP and select it if it is found.
4590   # Check for GNU $ac_path_GREP
4591 case `"$ac_path_GREP" --version 2>&1` in
4592 *GNU*)
4593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594 *)
4595   ac_count=0
4596   $as_echo_n 0123456789 >"conftest.in"
4597   while :
4598   do
4599     cat "conftest.in" "conftest.in" >"conftest.tmp"
4600     mv "conftest.tmp" "conftest.in"
4601     cp "conftest.in" "conftest.nl"
4602     $as_echo 'GREP' >> "conftest.nl"
4603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605     as_fn_arith $ac_count + 1 && ac_count=$as_val
4606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4607       # Best one so far, save it but keep looking for a better one
4608       ac_cv_path_GREP="$ac_path_GREP"
4609       ac_path_GREP_max=$ac_count
4610     fi
4611     # 10*(2^10) chars as input seems more than enough
4612     test $ac_count -gt 10 && break
4613   done
4614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 esac
4616
4617       $ac_path_GREP_found && break 3
4618     done
4619   done
4620   done
4621 IFS=$as_save_IFS
4622   if test -z "$ac_cv_path_GREP"; then
4623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624   fi
4625 else
4626   ac_cv_path_GREP=$GREP
4627 fi
4628
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4631 $as_echo "$ac_cv_path_GREP" >&6; }
4632  GREP="$ac_cv_path_GREP"
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4636 $as_echo_n "checking for egrep... " >&6; }
4637 if ${ac_cv_path_EGREP+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4641    then ac_cv_path_EGREP="$GREP -E"
4642    else
4643      if test -z "$EGREP"; then
4644   ac_path_EGREP_found=false
4645   # Loop through the user's path and test for each of PROGNAME-LIST
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_prog in egrep; do
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654       as_fn_executable_p "$ac_path_EGREP" || continue
4655 # Check for GNU ac_path_EGREP and select it if it is found.
4656   # Check for GNU $ac_path_EGREP
4657 case `"$ac_path_EGREP" --version 2>&1` in
4658 *GNU*)
4659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 *)
4661   ac_count=0
4662   $as_echo_n 0123456789 >"conftest.in"
4663   while :
4664   do
4665     cat "conftest.in" "conftest.in" >"conftest.tmp"
4666     mv "conftest.tmp" "conftest.in"
4667     cp "conftest.in" "conftest.nl"
4668     $as_echo 'EGREP' >> "conftest.nl"
4669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671     as_fn_arith $ac_count + 1 && ac_count=$as_val
4672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673       # Best one so far, save it but keep looking for a better one
4674       ac_cv_path_EGREP="$ac_path_EGREP"
4675       ac_path_EGREP_max=$ac_count
4676     fi
4677     # 10*(2^10) chars as input seems more than enough
4678     test $ac_count -gt 10 && break
4679   done
4680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 esac
4682
4683       $ac_path_EGREP_found && break 3
4684     done
4685   done
4686   done
4687 IFS=$as_save_IFS
4688   if test -z "$ac_cv_path_EGREP"; then
4689     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690   fi
4691 else
4692   ac_cv_path_EGREP=$EGREP
4693 fi
4694
4695    fi
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4698 $as_echo "$ac_cv_path_EGREP" >&6; }
4699  EGREP="$ac_cv_path_EGREP"
4700
4701
4702 # Extract the first word of "ldconfig", so it can be a program name with args.
4703 set dummy ldconfig; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_path_LDCONFIG+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   case $LDCONFIG in
4710   [\\/]* | ?:[\\/]*)
4711   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712   ;;
4713   *)
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in /sbin /usr/sbin $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719     for ac_exec_ext in '' $ac_executable_extensions; do
4720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726   done
4727 IFS=$as_save_IFS
4728
4729   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4730   ;;
4731 esac
4732 fi
4733 LDCONFIG=$ac_cv_path_LDCONFIG
4734 if test -n "$LDCONFIG"; then
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4736 $as_echo "$LDCONFIG" >&6; }
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 # Find a good install program.  We prefer a C program (faster),
4744 # so one script is as good as another.  But avoid the broken or
4745 # incompatible versions:
4746 # SysV /etc/install, /usr/sbin/install
4747 # SunOS /usr/etc/install
4748 # IRIX /sbin/install
4749 # AIX /bin/install
4750 # AmigaOS /C/install, which installs bootblocks on floppy discs
4751 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4752 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4753 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4754 # OS/2's system install, which has a completely different semantic
4755 # ./install, which can be erroneously created by make from ./install.sh.
4756 # Reject install programs that cannot install multiple files.
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4758 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4759 if test -z "$INSTALL"; then
4760 if ${ac_cv_path_install+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     # Account for people who put trailing slashes in PATH elements.
4769 case $as_dir/ in #((
4770   ./ | .// | /[cC]/* | \
4771   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4772   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4773   /usr/ucb/* ) ;;
4774   *)
4775     # OSF1 and SCO ODT 3.0 have their own names for install.
4776     # Don't use installbsd from OSF since it installs stuff as root
4777     # by default.
4778     for ac_prog in ginstall scoinst install; do
4779       for ac_exec_ext in '' $ac_executable_extensions; do
4780         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4781           if test $ac_prog = install &&
4782             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783             # AIX install.  It has an incompatible calling convention.
4784             :
4785           elif test $ac_prog = install &&
4786             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787             # program-specific install script used by HP pwplus--don't use.
4788             :
4789           else
4790             rm -rf conftest.one conftest.two conftest.dir
4791             echo one > conftest.one
4792             echo two > conftest.two
4793             mkdir conftest.dir
4794             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4795               test -s conftest.one && test -s conftest.two &&
4796               test -s conftest.dir/conftest.one &&
4797               test -s conftest.dir/conftest.two
4798             then
4799               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4800               break 3
4801             fi
4802           fi
4803         fi
4804       done
4805     done
4806     ;;
4807 esac
4808
4809   done
4810 IFS=$as_save_IFS
4811
4812 rm -rf conftest.one conftest.two conftest.dir
4813
4814 fi
4815   if test "${ac_cv_path_install+set}" = set; then
4816     INSTALL=$ac_cv_path_install
4817   else
4818     # As a last resort, use the slow shell script.  Don't cache a
4819     # value for INSTALL within a source directory, because that will
4820     # break other packages using the cache if that directory is
4821     # removed, or if the value is a relative name.
4822     INSTALL=$ac_install_sh
4823   fi
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4826 $as_echo "$INSTALL" >&6; }
4827
4828 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4829 # It thinks the first close brace ends the variable substitution.
4830 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4831
4832 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4833
4834 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4835
4836 case "$INSTALL" in
4837   [\\/$]* | ?:[\\/]* ) ;;
4838   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4839 esac
4840
4841 for ac_prog in lclint lint
4842 do
4843   # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_LINT+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   if test -n "$LINT"; then
4851   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_prog_LINT="$ac_prog"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 LINT=$ac_cv_prog_LINT
4871 if test -n "$LINT"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4873 $as_echo "$LINT" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879
4880   test -n "$LINT" && break
4881 done
4882
4883 if test "$LINT" = "lint"
4884 then
4885   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4886   fi
4887
4888
4889 for ac_prog in fontforge
4890 do
4891   # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_FONTFORGE+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$FONTFORGE"; then
4899   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_prog_FONTFORGE="$ac_prog"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 FONTFORGE=$ac_cv_prog_FONTFORGE
4919 if test -n "$FONTFORGE"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4921 $as_echo "$FONTFORGE" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927
4928   test -n "$FONTFORGE" && break
4929 done
4930 test -n "$FONTFORGE" || FONTFORGE="false"
4931
4932 for ac_prog in pkg-config
4933 do
4934   # Extract the first word of "$ac_prog", so it can be a program name with args.
4935 set dummy $ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$PKG_CONFIG"; then
4942   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_prog_PKG_CONFIG="$ac_prog"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4962 if test -n "$PKG_CONFIG"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4964 $as_echo "$PKG_CONFIG" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971   test -n "$PKG_CONFIG" && break
4972 done
4973 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4974
4975 for ac_prog in rsvg
4976 do
4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_RSVG+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   if test -n "$RSVG"; then
4985   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_prog_RSVG="$ac_prog"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 RSVG=$ac_cv_prog_RSVG
5005 if test -n "$RSVG"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5007 $as_echo "$RSVG" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014   test -n "$RSVG" && break
5015 done
5016 test -n "$RSVG" || RSVG="false"
5017
5018 for ac_prog in convert
5019 do
5020   # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_CONVERT+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   if test -n "$CONVERT"; then
5028   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_prog_CONVERT="$ac_prog"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 CONVERT=$ac_cv_prog_CONVERT
5048 if test -n "$CONVERT"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5050 $as_echo "$CONVERT" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057   test -n "$CONVERT" && break
5058 done
5059 test -n "$CONVERT" || CONVERT="false"
5060
5061 for ac_prog in icotool
5062 do
5063   # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_ICOTOOL+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   if test -n "$ICOTOOL"; then
5071   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_prog_ICOTOOL="$ac_prog"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 ICOTOOL=$ac_cv_prog_ICOTOOL
5091 if test -n "$ICOTOOL"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5093 $as_echo "$ICOTOOL" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100   test -n "$ICOTOOL" && break
5101 done
5102 test -n "$ICOTOOL" || ICOTOOL="false"
5103
5104 for ac_prog in msgfmt
5105 do
5106   # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_MSGFMT+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$MSGFMT"; then
5114   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_MSGFMT="$ac_prog"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 MSGFMT=$ac_cv_prog_MSGFMT
5134 if test -n "$MSGFMT"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5136 $as_echo "$MSGFMT" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143   test -n "$MSGFMT" && break
5144 done
5145 test -n "$MSGFMT" || MSGFMT="false"
5146
5147
5148 if test "x$enable_maintainer_mode" != "xyes"
5149 then
5150   MAINTAINER_MODE=\#
5151
5152 else
5153   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5154   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5155
5156     if test "$CONVERT" = false
5157   then
5158     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5159   else
5160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5161 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5162     convert_version=`convert --version | head -n1`
5163     if test "x$convert_version" != "x"
5164     then
5165       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5166       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5167       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5168       then
5169         CONVERT=false
5170       fi
5171     fi
5172     if test "$CONVERT" = false
5173     then
5174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5175 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5176       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5177     else
5178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5179 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5180     fi
5181   fi
5182
5183     if test "$ICOTOOL" = false
5184   then
5185     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5186   else
5187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5188 $as_echo_n "checking for recent enough icotool... " >&6; }
5189     icotool_version=`icotool --version | head -n1`
5190     if test "x$icotool_version" != "x"
5191     then
5192       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5193       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5194       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5195       then
5196         ICOTOOL=false
5197         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5198       fi
5199     fi
5200     if test "$ICOTOOL" = false
5201     then
5202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5203 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5204       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5205     else
5206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5207 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5208     fi
5209   fi
5210
5211     with_gettext=yes
5212   with_gettextpo=yes
5213   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5214 fi
5215
5216 test "x$with_gettext" != xno || MSGFMT=false
5217 if test "$MSGFMT" != "false"
5218 then
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5220 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5221   cat >conftest.po <<EOF
5222 # comment
5223 msgctxt "ctxt"
5224 msgid "id"
5225 msgstr "str"
5226 EOF
5227   if $MSGFMT -o /dev/null conftest.po 2>&5
5228   then
5229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5231   else
5232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234     MSGFMT=false
5235   fi
5236 fi
5237 if test "$MSGFMT" = false; then :
5238   case "x$with_gettext" in
5239   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5240   xno) ;;
5241   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5242 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5243 esac
5244 fi
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5248 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5249 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-li386  $LIBS"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h.  */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258    Use char because int might match the return type of a GCC
5259    builtin and then its argument prototype would still apply.  */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 char i386_set_ldt ();
5264 int
5265 main ()
5266 {
5267 return i386_set_ldt ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_link "$LINENO"; then :
5273   ac_cv_lib_i386_i386_set_ldt=yes
5274 else
5275   ac_cv_lib_i386_i386_set_ldt=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext \
5278     conftest$ac_exeext conftest.$ac_ext
5279 LIBS=$ac_check_lib_save_LIBS
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5282 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5283 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5284   cat >>confdefs.h <<_ACEOF
5285 #define HAVE_LIBI386 1
5286 _ACEOF
5287
5288   LIBS="-li386 $LIBS"
5289
5290 fi
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5293 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5294 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lossaudio  $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 /* Override any GCC internal prototype to avoid an error.
5303    Use char because int might match the return type of a GCC
5304    builtin and then its argument prototype would still apply.  */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char _oss_ioctl ();
5309 int
5310 main ()
5311 {
5312 return _oss_ioctl ();
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318   ac_cv_lib_ossaudio__oss_ioctl=yes
5319 else
5320   ac_cv_lib_ossaudio__oss_ioctl=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323     conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5327 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5328 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5329   cat >>confdefs.h <<_ACEOF
5330 #define HAVE_LIBOSSAUDIO 1
5331 _ACEOF
5332
5333   LIBS="-lossaudio $LIBS"
5334
5335 fi
5336
5337
5338 XLIB=""
5339
5340 OPENGL_LIBS=""
5341
5342
5343
5344 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5345
5346 # Check whether --enable-largefile was given.
5347 if test "${enable_largefile+set}" = set; then :
5348   enableval=$enable_largefile;
5349 fi
5350
5351 if test "$enable_largefile" != no; then
5352
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5354 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5355 if ${ac_cv_sys_largefile_CC+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   ac_cv_sys_largefile_CC=no
5359      if test "$GCC" != yes; then
5360        ac_save_CC=$CC
5361        while :; do
5362          # IRIX 6.2 and later do not support large files by default,
5363          # so use the C compiler's -n32 option if that helps.
5364          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h.  */
5366 #include <sys/types.h>
5367  /* Check that off_t can represent 2**63 - 1 correctly.
5368     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5369     since some C++ compilers masquerading as C compilers
5370     incorrectly reject 9223372036854775807.  */
5371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5372   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5373                        && LARGE_OFF_T % 2147483647 == 1)
5374                       ? 1 : -1];
5375 int
5376 main ()
5377 {
5378
5379   ;
5380   return 0;
5381 }
5382 _ACEOF
5383          if ac_fn_c_try_compile "$LINENO"; then :
5384   break
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext
5387          CC="$CC -n32"
5388          if ac_fn_c_try_compile "$LINENO"; then :
5389   ac_cv_sys_largefile_CC=' -n32'; break
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext
5392          break
5393        done
5394        CC=$ac_save_CC
5395        rm -f conftest.$ac_ext
5396     fi
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5399 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5400   if test "$ac_cv_sys_largefile_CC" != no; then
5401     CC=$CC$ac_cv_sys_largefile_CC
5402   fi
5403
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5405 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5406 if ${ac_cv_sys_file_offset_bits+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   while :; do
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412 #include <sys/types.h>
5413  /* Check that off_t can represent 2**63 - 1 correctly.
5414     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415     since some C++ compilers masquerading as C compilers
5416     incorrectly reject 9223372036854775807.  */
5417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419                        && LARGE_OFF_T % 2147483647 == 1)
5420                       ? 1 : -1];
5421 int
5422 main ()
5423 {
5424
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430   ac_cv_sys_file_offset_bits=no; break
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h.  */
5435 #define _FILE_OFFSET_BITS 64
5436 #include <sys/types.h>
5437  /* Check that off_t can represent 2**63 - 1 correctly.
5438     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5439     since some C++ compilers masquerading as C compilers
5440     incorrectly reject 9223372036854775807.  */
5441 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5442   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5443                        && LARGE_OFF_T % 2147483647 == 1)
5444                       ? 1 : -1];
5445 int
5446 main ()
5447 {
5448
5449   ;
5450   return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454   ac_cv_sys_file_offset_bits=64; break
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457   ac_cv_sys_file_offset_bits=unknown
5458   break
5459 done
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5462 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5463 case $ac_cv_sys_file_offset_bits in #(
5464   no | unknown) ;;
5465   *)
5466 cat >>confdefs.h <<_ACEOF
5467 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5468 _ACEOF
5469 ;;
5470 esac
5471 rm -rf conftest*
5472   if test $ac_cv_sys_file_offset_bits = unknown; then
5473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5474 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5475 if ${ac_cv_sys_large_files+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   while :; do
5479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481 #include <sys/types.h>
5482  /* Check that off_t can represent 2**63 - 1 correctly.
5483     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5484     since some C++ compilers masquerading as C compilers
5485     incorrectly reject 9223372036854775807.  */
5486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5487   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5488                        && LARGE_OFF_T % 2147483647 == 1)
5489                       ? 1 : -1];
5490 int
5491 main ()
5492 {
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499   ac_cv_sys_large_files=no; break
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h.  */
5504 #define _LARGE_FILES 1
5505 #include <sys/types.h>
5506  /* Check that off_t can represent 2**63 - 1 correctly.
5507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5508     since some C++ compilers masquerading as C compilers
5509     incorrectly reject 9223372036854775807.  */
5510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5512                        && LARGE_OFF_T % 2147483647 == 1)
5513                       ? 1 : -1];
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523   ac_cv_sys_large_files=1; break
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526   ac_cv_sys_large_files=unknown
5527   break
5528 done
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5531 $as_echo "$ac_cv_sys_large_files" >&6; }
5532 case $ac_cv_sys_large_files in #(
5533   no | unknown) ;;
5534   *)
5535 cat >>confdefs.h <<_ACEOF
5536 #define _LARGE_FILES $ac_cv_sys_large_files
5537 _ACEOF
5538 ;;
5539 esac
5540 rm -rf conftest*
5541   fi
5542
5543
5544 fi
5545
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5556   CPP=
5557 fi
5558 if test -z "$CPP"; then
5559   if ${ac_cv_prog_CPP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562       # Double quotes because CPP needs to be expanded
5563     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564     do
5565       ac_preproc_ok=false
5566 for ac_c_preproc_warn_flag in '' yes
5567 do
5568   # Use a header file that comes with gcc, so configuring glibc
5569   # with a fresh cross-compiler works.
5570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571   # <limits.h> exists even on freestanding compilers.
5572   # On the NeXT, cc -E runs the code through the compiler's parser,
5573   # not just through cpp. "Syntax error" is here to catch this case.
5574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h.  */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581                      Syntax error
5582 _ACEOF
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5584
5585 else
5586   # Broken: fails on valid input.
5587 continue
5588 fi
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5590
5591   # OK, works on sane cases.  Now check whether nonexistent headers
5592   # can be detected and how.
5593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598   # Broken: success on invalid input.
5599 continue
5600 else
5601   # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5604 fi
5605 rm -f conftest.err conftest.i conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611   break
5612 fi
5613
5614     done
5615     ac_cv_prog_CPP=$CPP
5616
5617 fi
5618   CPP=$ac_cv_prog_CPP
5619 else
5620   ac_cv_prog_CPP=$CPP
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5624 ac_preproc_ok=false
5625 for ac_c_preproc_warn_flag in '' yes
5626 do
5627   # Use a header file that comes with gcc, so configuring glibc
5628   # with a fresh cross-compiler works.
5629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630   # <limits.h> exists even on freestanding compilers.
5631   # On the NeXT, cc -E runs the code through the compiler's parser,
5632   # not just through cpp. "Syntax error" is here to catch this case.
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #ifdef __STDC__
5636 # include <limits.h>
5637 #else
5638 # include <assert.h>
5639 #endif
5640                      Syntax error
5641 _ACEOF
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5643
5644 else
5645   # Broken: fails on valid input.
5646 continue
5647 fi
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5649
5650   # OK, works on sane cases.  Now check whether nonexistent headers
5651   # can be detected and how.
5652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657   # Broken: success on invalid input.
5658 continue
5659 else
5660   # Passes both tests.
5661 ac_preproc_ok=:
5662 break
5663 fi
5664 rm -f conftest.err conftest.i conftest.$ac_ext
5665
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.i conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5670
5671 else
5672   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details" "$LINENO" 5; }
5676 fi
5677
5678 ac_ext=c
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5686 $as_echo_n "checking for ANSI C header files... " >&6; }
5687 if ${ac_cv_header_stdc+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692 #include <stdlib.h>
5693 #include <stdarg.h>
5694 #include <string.h>
5695 #include <float.h>
5696
5697 int
5698 main ()
5699 {
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"; then :
5706   ac_cv_header_stdc=yes
5707 else
5708   ac_cv_header_stdc=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711
5712 if test $ac_cv_header_stdc = yes; then
5713   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h.  */
5716 #include <string.h>
5717
5718 _ACEOF
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720   $EGREP "memchr" >/dev/null 2>&1; then :
5721
5722 else
5723   ac_cv_header_stdc=no
5724 fi
5725 rm -f conftest*
5726
5727 fi
5728
5729 if test $ac_cv_header_stdc = yes; then
5730   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h.  */
5733 #include <stdlib.h>
5734
5735 _ACEOF
5736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5737   $EGREP "free" >/dev/null 2>&1; then :
5738
5739 else
5740   ac_cv_header_stdc=no
5741 fi
5742 rm -f conftest*
5743
5744 fi
5745
5746 if test $ac_cv_header_stdc = yes; then
5747   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5748   if test "$cross_compiling" = yes; then :
5749   :
5750 else
5751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753 #include <ctype.h>
5754 #include <stdlib.h>
5755 #if ((' ' & 0x0FF) == 0x020)
5756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5758 #else
5759 # define ISLOWER(c) \
5760                    (('a' <= (c) && (c) <= 'i') \
5761                      || ('j' <= (c) && (c) <= 'r') \
5762                      || ('s' <= (c) && (c) <= 'z'))
5763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5764 #endif
5765
5766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5767 int
5768 main ()
5769 {
5770   int i;
5771   for (i = 0; i < 256; i++)
5772     if (XOR (islower (i), ISLOWER (i))
5773         || toupper (i) != TOUPPER (i))
5774       return 2;
5775   return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_run "$LINENO"; then :
5779
5780 else
5781   ac_cv_header_stdc=no
5782 fi
5783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5784   conftest.$ac_objext conftest.beam conftest.$ac_ext
5785 fi
5786
5787 fi
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5790 $as_echo "$ac_cv_header_stdc" >&6; }
5791 if test $ac_cv_header_stdc = yes; then
5792
5793 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5794
5795 fi
5796
5797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5799                   inttypes.h stdint.h unistd.h
5800 do :
5801   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5803 "
5804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5805   cat >>confdefs.h <<_ACEOF
5806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807 _ACEOF
5808
5809 fi
5810
5811 done
5812
5813
5814 for ac_header in \
5815         AL/al.h \
5816         ApplicationServices/ApplicationServices.h \
5817         AudioToolbox/AudioConverter.h \
5818         AudioUnit/AudioUnit.h \
5819         AudioUnit/AudioComponent.h \
5820         CL/cl.h \
5821         Carbon/Carbon.h \
5822         CoreAudio/CoreAudio.h \
5823         CoreServices/CoreServices.h \
5824         DiskArbitration/DiskArbitration.h \
5825         IOKit/IOKitLib.h \
5826         IOKit/hid/IOHIDLib.h \
5827         OpenAL/al.h \
5828         OpenCL/opencl.h \
5829         QuickTime/ImageCompression.h \
5830         Security/Security.h \
5831         alias.h \
5832         alsa/asoundlib.h \
5833         arpa/inet.h \
5834         arpa/nameser.h \
5835         asm/types.h \
5836         capi20.h \
5837         curses.h \
5838         direct.h \
5839         dirent.h \
5840         dlfcn.h \
5841         elf.h \
5842         float.h \
5843         fnmatch.h \
5844         fontconfig/fontconfig.h \
5845         getopt.h \
5846         gettext-po.h \
5847         grp.h \
5848         gsm.h \
5849         gsm/gsm.h \
5850         ieeefp.h \
5851         inet/mib2.h \
5852         io.h \
5853         jpeglib.h \
5854         kstat.h \
5855         lber.h \
5856         lcms.h \
5857         lcms/lcms.h \
5858         ldap.h \
5859         link.h \
5860         linux/cdrom.h \
5861         linux/compiler.h \
5862         linux/filter.h \
5863         linux/hdreg.h \
5864         linux/input.h \
5865         linux/ioctl.h \
5866         linux/joystick.h \
5867         linux/major.h \
5868         linux/param.h \
5869         linux/serial.h \
5870         linux/types.h \
5871         linux/ucdrom.h \
5872         lwp.h \
5873         mach-o/nlist.h \
5874         mach-o/loader.h \
5875         mach/mach.h \
5876         mach/machine.h \
5877         machine/cpu.h \
5878         machine/limits.h \
5879         machine/sysarch.h \
5880         mntent.h \
5881         mpg123.h \
5882         ncurses.h \
5883         netdb.h \
5884         netinet/in.h \
5885         netinet/in_systm.h \
5886         netinet/tcp.h \
5887         netinet/tcp_fsm.h \
5888         openssl/err.h \
5889         openssl/ssl.h \
5890         png.h \
5891         poll.h \
5892         port.h \
5893         process.h \
5894         pthread.h \
5895         pwd.h \
5896         sched.h \
5897         scsi/scsi.h \
5898         scsi/scsi_ioctl.h \
5899         scsi/sg.h \
5900         stdbool.h \
5901         stdint.h \
5902         stropts.h \
5903         sys/asoundlib.h \
5904         sys/attr.h \
5905         sys/cdio.h \
5906         sys/elf32.h \
5907         sys/epoll.h \
5908         sys/event.h \
5909         sys/exec_elf.h \
5910         sys/filio.h \
5911         sys/inotify.h \
5912         sys/ioctl.h \
5913         sys/ipc.h \
5914         sys/limits.h \
5915         sys/link.h \
5916         sys/mman.h \
5917         sys/modem.h \
5918         sys/msg.h \
5919         sys/mtio.h \
5920         sys/param.h \
5921         sys/poll.h \
5922         sys/prctl.h \
5923         sys/protosw.h \
5924         sys/ptrace.h \
5925         sys/resource.h \
5926         sys/scsiio.h \
5927         sys/shm.h \
5928         sys/signal.h \
5929         sys/socket.h \
5930         sys/socketvar.h \
5931         sys/sockio.h \
5932         sys/statvfs.h \
5933         sys/strtio.h \
5934         sys/syscall.h \
5935         sys/tihdr.h \
5936         sys/time.h \
5937         sys/timeout.h \
5938         sys/times.h \
5939         sys/uio.h \
5940         sys/utsname.h \
5941         sys/vm86.h \
5942         sys/wait.h \
5943         syscall.h \
5944         termios.h \
5945         tiffio.h \
5946         unistd.h \
5947         utime.h \
5948         valgrind/memcheck.h \
5949         valgrind/valgrind.h \
5950         zlib.h
5951
5952 do :
5953   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5956   cat >>confdefs.h <<_ACEOF
5957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5959
5960 fi
5961
5962 done
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5965 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5966 if ${ac_cv_header_stat_broken+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 #include <sys/types.h>
5972 #include <sys/stat.h>
5973
5974 #if defined S_ISBLK && defined S_IFDIR
5975 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5976 #endif
5977
5978 #if defined S_ISBLK && defined S_IFCHR
5979 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5980 #endif
5981
5982 #if defined S_ISLNK && defined S_IFREG
5983 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5984 #endif
5985
5986 #if defined S_ISSOCK && defined S_IFREG
5987 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5988 #endif
5989
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992   ac_cv_header_stat_broken=no
5993 else
5994   ac_cv_header_stat_broken=yes
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5999 $as_echo "$ac_cv_header_stat_broken" >&6; }
6000 if test $ac_cv_header_stat_broken = yes; then
6001
6002 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6003
6004 fi
6005
6006
6007
6008 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6009 do :
6010   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6012      #ifdef HAVE_SYS_PARAM_H
6013      # include <sys/param.h>
6014      #endif
6015 "
6016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6017   cat >>confdefs.h <<_ACEOF
6018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019 _ACEOF
6020
6021 fi
6022
6023 done
6024
6025
6026 for ac_header in \
6027         netinet/ip.h \
6028         net/if.h \
6029         net/if_arp.h \
6030         net/if_dl.h \
6031         net/if_types.h \
6032         net/route.h \
6033         netinet/if_ether.h \
6034         netinet/if_inarp.h \
6035         netinet/in_pcb.h \
6036         netinet/ip_icmp.h \
6037         netinet/ip_var.h \
6038         netinet/udp.h \
6039         netipx/ipx.h \
6040         sys/un.h \
6041
6042 do :
6043   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6045      #ifdef HAVE_SYS_SOCKET_H
6046      # include <sys/socket.h>
6047      #endif
6048      #ifdef HAVE_SYS_SOCKETVAR_H
6049      # include <sys/socketvar.h>
6050      #endif
6051      #ifdef HAVE_NET_ROUTE_H
6052      # include <net/route.h>
6053      #endif
6054      #ifdef HAVE_NETINET_IN_H
6055      # include <netinet/in.h>
6056      #endif
6057      #ifdef HAVE_NETINET_IN_SYSTM_H
6058      # include <netinet/in_systm.h>
6059      #endif
6060      #ifdef HAVE_NET_IF_H
6061      # include <net/if.h>
6062      #endif
6063      #ifdef HAVE_NETINET_IP_H
6064      # include <netinet/ip.h>
6065      #endif
6066 "
6067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6068   cat >>confdefs.h <<_ACEOF
6069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 _ACEOF
6071
6072 fi
6073
6074 done
6075
6076
6077 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6078 do :
6079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6081      #ifdef HAVE_ALIAS_H
6082      # include <alias.h>
6083      #endif
6084      #ifdef HAVE_SYS_SOCKET_H
6085      # include <sys/socket.h>
6086      #endif
6087      #ifdef HAVE_SYS_SOCKETVAR_H
6088      # include <sys/socketvar.h>
6089      #endif
6090      #ifdef HAVE_SYS_TIMEOUT_H
6091      # include <sys/timeout.h>
6092      #endif
6093      #ifdef HAVE_NETINET_IN_H
6094      # include <netinet/in.h>
6095      #endif
6096      #ifdef HAVE_NETINET_IN_SYSTM_H
6097      # include <netinet/in_systm.h>
6098      #endif
6099      #ifdef HAVE_NETINET_IP_H
6100      # include <netinet/ip.h>
6101      #endif
6102      #ifdef HAVE_NETINET_IP_VAR_H
6103      # include <netinet/ip_var.h>
6104      #endif
6105      #ifdef HAVE_NETINET_IP_ICMP_H
6106      # include <netinet/ip_icmp.h>
6107      #endif
6108      #ifdef HAVE_NETINET_UDP_H
6109      # include <netinet/udp.h>
6110      #endif
6111      #ifdef HAVE_NETINET_TCP_H
6112      # include <netinet/tcp.h>
6113      #endif
6114      #ifdef HAVE_NETINET_TCP_TIMER_H
6115      #include <netinet/tcp_timer.h>
6116      #endif
6117 "
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_header in linux/ipx.h linux/irda.h
6129 do :
6130   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6132      #ifdef HAVE_ASM_TYPES_H
6133      # include <asm/types.h>
6134      #endif
6135      #ifdef HAVE_SYS_SOCKET_H
6136      # include <sys/socket.h>
6137      #endif
6138      #ifdef HAVE_LINUX_TYPES_H
6139      # include <linux/types.h>
6140      #endif
6141 "
6142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in mach-o/dyld_images.h
6153 do :
6154   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6155      # include <stdbool.h>
6156      #endif
6157      #ifdef HAVE_STDINT_H
6158      # include <stdint.h>
6159      #endif
6160 "
6161 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6162   cat >>confdefs.h <<_ACEOF
6163 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6164 _ACEOF
6165
6166 fi
6167
6168 done
6169
6170
6171 for ac_header in resolv.h
6172 do :
6173   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6174      #ifdef HAVE_SYS_SOCKET_H
6175      # include <sys/socket.h>
6176      #endif
6177      #ifdef HAVE_NETINET_IN_H
6178      # include <netinet/in.h>
6179      #endif
6180      #ifdef HAVE_ARPA_NAMESER_H
6181      # include <arpa/nameser.h>
6182      #endif
6183 "
6184 if test "x$ac_cv_header_resolv_h" = xyes; then :
6185   cat >>confdefs.h <<_ACEOF
6186 #define HAVE_RESOLV_H 1
6187 _ACEOF
6188
6189 fi
6190
6191 done
6192
6193
6194 for ac_header in ifaddrs.h
6195 do :
6196   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6197 "
6198 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6199   cat >>confdefs.h <<_ACEOF
6200 #define HAVE_IFADDRS_H 1
6201 _ACEOF
6202
6203 fi
6204
6205 done
6206
6207
6208 for ac_header in ucontext.h
6209 do :
6210   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6211 "
6212 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6213   cat >>confdefs.h <<_ACEOF
6214 #define HAVE_UCONTEXT_H 1
6215 _ACEOF
6216
6217 fi
6218
6219 done
6220
6221
6222 for ac_header in sys/thr.h
6223 do :
6224   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6225 #ifdef HAVE_UCONTEXT_H
6226 #include <ucontext.h>
6227 #endif
6228 "
6229 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6230   cat >>confdefs.h <<_ACEOF
6231 #define HAVE_SYS_THR_H 1
6232 _ACEOF
6233
6234 fi
6235
6236 done
6237
6238
6239 for ac_header in pthread_np.h
6240 do :
6241   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6242 #include <pthread.h>
6243 #endif
6244 "
6245 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6246   cat >>confdefs.h <<_ACEOF
6247 #define HAVE_PTHREAD_NP_H 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254
6255 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6256 do :
6257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6259 #include <sys/time.h>
6260 #endif
6261 #include <sys/types.h>
6262 #ifdef HAVE_ASM_TYPES_H
6263 #include <asm/types.h>
6264 #endif
6265 "
6266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6267   cat >>confdefs.h <<_ACEOF
6268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 _ACEOF
6270
6271 fi
6272
6273 done
6274
6275
6276 for ac_header in linux/capi.h
6277 do :
6278   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6279 "
6280 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6281   cat >>confdefs.h <<_ACEOF
6282 #define HAVE_LINUX_CAPI_H 1
6283 _ACEOF
6284
6285 fi
6286
6287 done
6288
6289
6290
6291 DLLEXT=""
6292
6293 DLLFLAGS="-D_REENTRANT"
6294
6295 LDSHARED=""
6296
6297 LDDLLFLAGS=""
6298
6299 LIBEXT="so"
6300
6301 IMPLIBEXT="def"
6302
6303 LDRPATH_INSTALL=""
6304
6305 LDRPATH_LOCAL=""
6306
6307 STATIC_IMPLIBEXT="def.a"
6308 # Extract the first word of "ldd", so it can be a program name with args.
6309 set dummy ldd; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_LDD+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $LDD in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 as_dummy="/sbin:/usr/sbin:$PATH"
6322 for as_dir in $as_dummy
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333   done
6334 IFS=$as_save_IFS
6335
6336   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6337   ;;
6338 esac
6339 fi
6340 LDD=$ac_cv_path_LDD
6341 if test -n "$LDD"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6343 $as_echo "$LDD" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 if test -n "$ac_tool_prefix"; then
6351   for ac_prog in readelf
6352   do
6353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_READELF+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$READELF"; then
6361   ac_cv_prog_READELF="$READELF" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 READELF=$ac_cv_prog_READELF
6381 if test -n "$READELF"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6383 $as_echo "$READELF" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390     test -n "$READELF" && break
6391   done
6392 fi
6393 if test -z "$READELF"; then
6394   ac_ct_READELF=$READELF
6395   for ac_prog in readelf
6396 do
6397   # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_READELF"; then
6405   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_READELF="$ac_prog"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6425 if test -n "$ac_ct_READELF"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6427 $as_echo "$ac_ct_READELF" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434   test -n "$ac_ct_READELF" && break
6435 done
6436
6437   if test "x$ac_ct_READELF" = x; then
6438     READELF="true"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     READELF=$ac_ct_READELF
6447   fi
6448 fi
6449
6450
6451 case $host_os in
6452   cygwin*|mingw32*)
6453     if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_DLLTOOL+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$DLLTOOL"; then
6462   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 DLLTOOL=$ac_cv_prog_DLLTOOL
6482 if test -n "$DLLTOOL"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6484 $as_echo "$DLLTOOL" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_DLLTOOL"; then
6493   ac_ct_DLLTOOL=$DLLTOOL
6494   # Extract the first word of "dlltool", so it can be a program name with args.
6495 set dummy dlltool; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_DLLTOOL"; then
6502   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6522 if test -n "$ac_ct_DLLTOOL"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6524 $as_echo "$ac_ct_DLLTOOL" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_DLLTOOL" = x; then
6531     DLLTOOL="false"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     DLLTOOL=$ac_ct_DLLTOOL
6540   fi
6541 else
6542   DLLTOOL="$ac_cv_prog_DLLTOOL"
6543 fi
6544
6545     if test -n "$ac_tool_prefix"; then
6546   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_DLLWRAP+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$DLLWRAP"; then
6554   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 DLLWRAP=$ac_cv_prog_DLLWRAP
6574 if test -n "$DLLWRAP"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6576 $as_echo "$DLLWRAP" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_DLLWRAP"; then
6585   ac_ct_DLLWRAP=$DLLWRAP
6586   # Extract the first word of "dllwrap", so it can be a program name with args.
6587 set dummy dllwrap; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$ac_ct_DLLWRAP"; then
6594   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6614 if test -n "$ac_ct_DLLWRAP"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6616 $as_echo "$ac_ct_DLLWRAP" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622   if test "x$ac_ct_DLLWRAP" = x; then
6623     DLLWRAP="false"
6624   else
6625     case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631     DLLWRAP=$ac_ct_DLLWRAP
6632   fi
6633 else
6634   DLLWRAP="$ac_cv_prog_DLLWRAP"
6635 fi
6636
6637     if test "$DLLWRAP" = "false"; then
6638       LIBEXT="a"
6639     else
6640             LIBEXT="dll"
6641     fi
6642     IMPLIBEXT="a"
6643     STATIC_IMPLIBEXT="a"
6644         enable_iphlpapi=${enable_iphlpapi:-no}
6645     enable_kernel32=${enable_kernel32:-no}
6646     enable_msvcrt=${enable_msvcrt:-no}
6647     enable_ntdll=${enable_ntdll:-no}
6648     enable_ws2_32=${enable_ws2_32:-no}
6649     enable_loader=${enable_loader:-no}
6650     enable_server=${enable_server:-no}
6651         with_x=${with_x:-no}
6652     with_pthread=${with_pthread:-no}
6653     ;;
6654   darwin*|macosx*)
6655     DLLEXT=".so"
6656     LIBEXT="dylib"
6657     DLLFLAGS="$DLLFLAGS -fPIC"
6658     LDDLLFLAGS="-bundle -multiply_defined suppress"
6659     LIBWINE_LDFLAGS="-multiply_defined suppress"
6660     LDSHARED="\$(CC) -dynamiclib"
6661     LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6662     LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6663         COREFOUNDATIONLIB="-framework CoreFoundation"
6664
6665     IOKITLIB="-framework IOKit -framework CoreFoundation"
6666
6667     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6668
6669     CORESERVICESLIB="-framework CoreServices"
6670
6671     case $host_os in
6672       darwin11*)
6673         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6674  ;;
6675       *)
6676         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6677  ;;
6678     esac
6679     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6680     then
6681                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6682
6683     fi
6684     if test "$ac_cv_header_Security_Security_h" = "yes"
6685     then
6686         SECURITYLIB="-framework Security -framework CoreFoundation"
6687
6688                 ac_save_LIBS="$LIBS"
6689         LIBS="$LIBS $SECURITYLIB"
6690         for ac_func in SSLCopyPeerCertificates
6691 do :
6692   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6693 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6694   cat >>confdefs.h <<_ACEOF
6695 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6696 _ACEOF
6697
6698 fi
6699 done
6700
6701         LIBS="$ac_save_LIBS"
6702         with_gnutls=${with_gnutls:-no}
6703     fi
6704     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6705     then
6706         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6707         then
6708             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6709
6710         else
6711                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6712
6713         fi
6714                 ac_save_LIBS="$LIBS"
6715         LIBS="$LIBS $COREAUDIO"
6716         for ac_func in AUGraphAddNode
6717 do :
6718   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6719 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6720   cat >>confdefs.h <<_ACEOF
6721 #define HAVE_AUGRAPHADDNODE 1
6722 _ACEOF
6723
6724 fi
6725 done
6726
6727         LIBS="$ac_save_LIBS"
6728     fi
6729     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6730     then
6731         FRAMEWORK_OPENAL="-framework OpenAL"
6732
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_OPENAL 1
6736 _ACEOF
6737
6738         ac_cv_lib_openal=yes
6739     fi
6740     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6741     then
6742         LIBOPENCL="-framework OpenCL"
6743
6744         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6745     fi
6746     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6747     then
6748         ac_save_LIBS="$LIBS"
6749         LIBS="$LIBS $IOKITLIB"
6750         for ac_func in IOHIDManagerCreate
6751 do :
6752   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6753 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6754   cat >>confdefs.h <<_ACEOF
6755 #define HAVE_IOHIDMANAGERCREATE 1
6756 _ACEOF
6757
6758 fi
6759 done
6760
6761         LIBS="$ac_save_LIBS"
6762     fi
6763     case $host_cpu in
6764       *powerpc*)
6765         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6766     esac
6767     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6768     then
6769         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6770
6771         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6772     else
6773         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6774     fi
6775     if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6776     then
6777         CARBONLIB="-framework Carbon"
6778
6779     fi
6780
6781         if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6782     then
6783         ac_save_LIBS="$LIBS"
6784         LIBS="$LIBS $APPLICATIONSERVICESLIB"
6785         ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6786 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6787   enable_winemac_drv=${enable_winemac_drv:-yes}
6788 fi
6789
6790         LIBS="$ac_save_LIBS"
6791     fi
6792
6793         if test "x$enable_win16" = "xyes"
6794     then
6795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6796 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6797         if test "$cross_compiling" = yes; then :
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6799 $as_echo "cross-compiling, assuming yes" >&6; }
6800 else
6801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803 asm(".text\n"
6804                                             "bad:\tnop;nop\n"
6805                                             "good:\tnop;nop\n\t"
6806                                             ".globl _testfunc\n"
6807                                             "_testfunc:\tcallw good");
6808                                         extern void testfunc();
6809 int
6810 main ()
6811 {
6812 unsigned short *p = (unsigned short *)testfunc;
6813                                         return p[0] != 0xe866 || p[1] != 0xfffa
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_run "$LINENO"; then :
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6820 $as_echo "yes" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824                                        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
6825 fi
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6827   conftest.$ac_objext conftest.beam conftest.$ac_ext
6828 fi
6829
6830     fi
6831     ;;
6832   *)
6833     DLLFLAGS="$DLLFLAGS -fPIC"
6834     DLLEXT=".so"
6835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6836 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6837 if ${ac_cv_c_dll_gnuelf+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   ac_wine_try_cflags_saved=$CFLAGS
6841 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844 void myfunc() {}
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847   ac_cv_c_dll_gnuelf="yes"
6848 else
6849   ac_cv_c_dll_gnuelf="no"
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext \
6852     conftest$ac_exeext conftest.$ac_ext
6853 CFLAGS=$ac_wine_try_cflags_saved
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6856 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6857     if test "$ac_cv_c_dll_gnuelf" = "yes"
6858     then
6859       LDSHARED="\$(CC) -shared"
6860       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6861       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6862 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6863 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   ac_wine_try_cflags_saved=$CFLAGS
6867 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870 int main(int argc, char **argv) { return 0; }
6871 _ACEOF
6872 if ac_fn_c_try_link "$LINENO"; then :
6873   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6874 else
6875   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext \
6878     conftest$ac_exeext conftest.$ac_ext
6879 CFLAGS=$ac_wine_try_cflags_saved
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6882 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6883 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6884   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6887 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6888 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   ac_wine_try_cflags_saved=$CFLAGS
6892 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895 int main(int argc, char **argv) { return 0; }
6896 _ACEOF
6897 if ac_fn_c_try_link "$LINENO"; then :
6898   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6899 else
6900   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext \
6903     conftest$ac_exeext conftest.$ac_ext
6904 CFLAGS=$ac_wine_try_cflags_saved
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6907 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6908 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6909   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6910 fi
6911 fi
6912
6913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6914 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6915 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   ac_wine_try_cflags_saved=$CFLAGS
6919 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h.  */
6922 int main(int argc, char **argv) { return 0; }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6926 else
6927   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930     conftest$ac_exeext conftest.$ac_ext
6931 CFLAGS=$ac_wine_try_cflags_saved
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6934 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6935 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6936   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6937 fi
6938
6939       { $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
6940 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6941 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   ac_wine_try_cflags_saved=$CFLAGS
6945 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h.  */
6948 int main(int argc, char **argv) { return 0; }
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6952 else
6953   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext \
6956     conftest$ac_exeext conftest.$ac_ext
6957 CFLAGS=$ac_wine_try_cflags_saved
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6960 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6961 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6962   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6963 fi
6964
6965       echo '{ global: *; };' >conftest.map
6966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6967 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6968 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   ac_wine_try_cflags_saved=$CFLAGS
6972 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975 int main(int argc, char **argv) { return 0; }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6979 else
6980   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 CFLAGS=$ac_wine_try_cflags_saved
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6987 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6988 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6989   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6990 fi
6991       rm -f conftest.map
6992
6993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6994 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6995 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   ac_wine_try_cflags_saved=$CFLAGS
6999 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h.  */
7002 int main(int argc, char **argv) { return 0; }
7003 _ACEOF
7004 if ac_fn_c_try_link "$LINENO"; then :
7005   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7006 else
7007   ac_cv_cflags__fPIC__Wl___export_dynamic=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext \
7010     conftest$ac_exeext conftest.$ac_ext
7011 CFLAGS=$ac_wine_try_cflags_saved
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7014 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7015 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7016   LDEXECFLAGS="-Wl,--export-dynamic"
7017
7018 fi
7019
7020       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7022 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7023 if eval \${$as_ac_var+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   ac_wine_try_cflags_saved=$CFLAGS
7027 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 int main(int argc, char **argv) { return 0; }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033   eval "$as_ac_var=yes"
7034 else
7035   eval "$as_ac_var=no"
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039 CFLAGS=$ac_wine_try_cflags_saved
7040 fi
7041 eval ac_res=\$$as_ac_var
7042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7043 $as_echo "$ac_res" >&6; }
7044 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7045   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7046                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7047 else
7048   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7050 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7051 if eval \${$as_ac_var+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   ac_wine_try_cflags_saved=$CFLAGS
7055 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 int main(int argc, char **argv) { return 0; }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   eval "$as_ac_var=yes"
7062 else
7063   eval "$as_ac_var=no"
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066     conftest$ac_exeext conftest.$ac_ext
7067 CFLAGS=$ac_wine_try_cflags_saved
7068 fi
7069 eval ac_res=\$$as_ac_var
7070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7073   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7074                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7075 fi
7076 fi
7077
7078       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7079 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7080 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   ac_wine_try_cflags_saved=$CFLAGS
7084 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h.  */
7087 int main(int argc, char **argv) { return 0; }
7088 _ACEOF
7089 if ac_fn_c_try_link "$LINENO"; then :
7090   ac_cv_cflags__Wl___enable_new_dtags=yes
7091 else
7092   ac_cv_cflags__Wl___enable_new_dtags=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext \
7095     conftest$ac_exeext conftest.$ac_ext
7096 CFLAGS=$ac_wine_try_cflags_saved
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7099 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7100 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7101   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7102 fi
7103
7104       case $host_cpu in
7105         *i[3456789]86* | x86_64)
7106           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7107 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7108 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   ac_wine_try_cflags_saved=$CFLAGS
7112 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7115 int main(int argc, char **argv) { return 0; }
7116 _ACEOF
7117 if ac_fn_c_try_link "$LINENO"; then :
7118   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7119 else
7120   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext \
7123     conftest$ac_exeext conftest.$ac_ext
7124 CFLAGS=$ac_wine_try_cflags_saved
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7127 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7128 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7129   case $host_os in
7130                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7131                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7132                            esac
7133
7134 fi
7135           # Extract the first word of "prelink", so it can be a program name with args.
7136 set dummy prelink; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_path_PRELINK+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   case $PRELINK in
7143   [\\/]* | ?:[\\/]*)
7144   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7145   ;;
7146   *)
7147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in /sbin /usr/sbin $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161
7162   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7163   ;;
7164 esac
7165 fi
7166 PRELINK=$ac_cv_path_PRELINK
7167 if test -n "$PRELINK"; then
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7169 $as_echo "$PRELINK" >&6; }
7170 else
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176           if test "x$PRELINK" = xfalse
7177           then
7178               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7179           fi
7180           ;;
7181       esac
7182
7183     else
7184       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7185 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7186 if ${ac_cv_c_dll_unixware+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   ac_wine_try_cflags_saved=$CFLAGS
7190 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 void myfunc() {}
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196   ac_cv_c_dll_unixware="yes"
7197 else
7198   ac_cv_c_dll_unixware="no"
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201     conftest$ac_exeext conftest.$ac_ext
7202 CFLAGS=$ac_wine_try_cflags_saved
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7205 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7206       if test "$ac_cv_c_dll_unixware" = "yes"
7207       then
7208         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7209         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7210
7211       else
7212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7213 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7214 if ${ac_cv_c_dll_hpux+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   ac_wine_try_cflags_saved=$CFLAGS
7218 CFLAGS="$CFLAGS -shared"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221 void myfunc() {}
7222 _ACEOF
7223 if ac_fn_c_try_link "$LINENO"; then :
7224   ac_cv_c_dll_hpux="yes"
7225 else
7226   ac_cv_c_dll_hpux="no"
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext \
7229     conftest$ac_exeext conftest.$ac_ext
7230 CFLAGS=$ac_wine_try_cflags_saved
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7233 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7234         if test "$ac_cv_c_dll_hpux" = "yes"
7235         then
7236           LIBEXT="sl"
7237           DLLEXT=".sl"
7238           LDDLLFLAGS="-shared -fPIC"
7239           LDSHARED="\$(CC) -shared"
7240         fi
7241       fi
7242     fi
7243     ;;
7244 esac
7245
7246 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7247 enable_winemac_drv=${enable_winemac_drv:-no}
7248
7249 if test "$LIBEXT" = "a"; then
7250   as_fn_error $? "could not find a way to build shared libraries.
7251 It is currently not possible to build Wine without shared library
7252 (.so) support to allow transparent switch between .so and .dll files.
7253 If you are using Linux, you will need a newer binutils.
7254 " "$LINENO" 5
7255 fi
7256
7257 CROSSTEST_DISABLE=\#
7258
7259 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7260 then
7261     case "$host_cpu" in
7262   i[3456789]86*)
7263     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
7264                         mingw32-gcc" ;;
7265   x86_64)
7266     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 " ;;
7267   *)
7268     ac_prefix_list="" ;;
7269 esac
7270 for ac_prog in $ac_prefix_list
7271 do
7272   # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_CROSSCC+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$CROSSCC"; then
7280   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_CROSSCC="$ac_prog"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 CROSSCC=$ac_cv_prog_CROSSCC
7300 if test -n "$CROSSCC"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7302 $as_echo "$CROSSCC" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309   test -n "$CROSSCC" && break
7310 done
7311 test -n "$CROSSCC" || CROSSCC="false"
7312
7313     if test "$CROSSCC" != "false"
7314     then
7315         ac_save_CC="$CC"
7316         CC="$CROSSCC"
7317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7318 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h.  */
7321
7322 int
7323 main ()
7324 {
7325
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7332 $as_echo "yes" >&6; }
7333                            set x $CROSSCC
7334                            shift
7335                            target=""
7336                            while test $# -ge 1
7337                            do
7338                                case "$1" in
7339                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7340                                esac
7341                                shift
7342                            done
7343                            if test -n "$target"
7344                            then
7345                                CROSSTEST_DISABLE=""
7346                                CROSSTARGET="$target"
7347
7348                            fi
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354         CC="$ac_save_CC"
7355     fi
7356 fi
7357
7358
7359 if test "$ac_cv_header_pthread_h" = "yes"
7360 then
7361     ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7362 if test "x$ac_cv_func_pthread_create" = xyes; then :
7363
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7366 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7367 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lpthread  $LIBS"
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374
7375 /* Override any GCC internal prototype to avoid an error.
7376    Use char because int might match the return type of a GCC
7377    builtin and then its argument prototype would still apply.  */
7378 #ifdef __cplusplus
7379 extern "C"
7380 #endif
7381 char pthread_create ();
7382 int
7383 main ()
7384 {
7385 return pthread_create ();
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_c_try_link "$LINENO"; then :
7391   ac_cv_lib_pthread_pthread_create=yes
7392 else
7393   ac_cv_lib_pthread_pthread_create=no
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext \
7396     conftest$ac_exeext conftest.$ac_ext
7397 LIBS=$ac_check_lib_save_LIBS
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7400 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7401 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7402   LIBPTHREAD="-lpthread"
7403
7404 fi
7405
7406 fi
7407
7408 fi
7409 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7410   case "x$with_pthread" in
7411   xno) ;;
7412   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7413 Wine cannot support threads without libpthread.
7414 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7415 esac
7416 fi
7417
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7420 $as_echo_n "checking for X... " >&6; }
7421
7422
7423 # Check whether --with-x was given.
7424 if test "${with_x+set}" = set; then :
7425   withval=$with_x;
7426 fi
7427
7428 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7429 if test "x$with_x" = xno; then
7430   # The user explicitly disabled X.
7431   have_x=disabled
7432 else
7433   case $x_includes,$x_libraries in #(
7434     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7435     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   # One or both of the vars are not set, and there is no cached value.
7439 ac_x_includes=no ac_x_libraries=no
7440 rm -f -r conftest.dir
7441 if mkdir conftest.dir; then
7442   cd conftest.dir
7443   cat >Imakefile <<'_ACEOF'
7444 incroot:
7445         @echo incroot='${INCROOT}'
7446 usrlibdir:
7447         @echo usrlibdir='${USRLIBDIR}'
7448 libdir:
7449         @echo libdir='${LIBDIR}'
7450 _ACEOF
7451   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7452     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7453     for ac_var in incroot usrlibdir libdir; do
7454       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7455     done
7456     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7457     for ac_extension in a so sl dylib la dll; do
7458       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7459          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7460         ac_im_usrlibdir=$ac_im_libdir; break
7461       fi
7462     done
7463     # Screen out bogus values from the imake configuration.  They are
7464     # bogus both because they are the default anyway, and because
7465     # using them would break gcc on systems where it needs fixed includes.
7466     case $ac_im_incroot in
7467         /usr/include) ac_x_includes= ;;
7468         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7469     esac
7470     case $ac_im_usrlibdir in
7471         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7472         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7473     esac
7474   fi
7475   cd ..
7476   rm -f -r conftest.dir
7477 fi
7478
7479 # Standard set of common directories for X headers.
7480 # Check X11 before X11Rn because it is often a symlink to the current release.
7481 ac_x_header_dirs='
7482 /usr/X11/include
7483 /usr/X11R7/include
7484 /usr/X11R6/include
7485 /usr/X11R5/include
7486 /usr/X11R4/include
7487
7488 /usr/include/X11
7489 /usr/include/X11R7
7490 /usr/include/X11R6
7491 /usr/include/X11R5
7492 /usr/include/X11R4
7493
7494 /usr/local/X11/include
7495 /usr/local/X11R7/include
7496 /usr/local/X11R6/include
7497 /usr/local/X11R5/include
7498 /usr/local/X11R4/include
7499
7500 /usr/local/include/X11
7501 /usr/local/include/X11R7
7502 /usr/local/include/X11R6
7503 /usr/local/include/X11R5
7504 /usr/local/include/X11R4
7505
7506 /usr/X386/include
7507 /usr/x386/include
7508 /usr/XFree86/include/X11
7509
7510 /usr/include
7511 /usr/local/include
7512 /usr/unsupported/include
7513 /usr/athena/include
7514 /usr/local/x11r5/include
7515 /usr/lpp/Xamples/include
7516
7517 /usr/openwin/include
7518 /usr/openwin/share/include'
7519
7520 if test "$ac_x_includes" = no; then
7521   # Guess where to find include files, by looking for Xlib.h.
7522   # First, try using that file with no special directory specified.
7523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h.  */
7525 #include <X11/Xlib.h>
7526 _ACEOF
7527 if ac_fn_c_try_cpp "$LINENO"; then :
7528   # We can compile using X headers with no special include directory.
7529 ac_x_includes=
7530 else
7531   for ac_dir in $ac_x_header_dirs; do
7532   if test -r "$ac_dir/X11/Xlib.h"; then
7533     ac_x_includes=$ac_dir
7534     break
7535   fi
7536 done
7537 fi
7538 rm -f conftest.err conftest.i conftest.$ac_ext
7539 fi # $ac_x_includes = no
7540
7541 if test "$ac_x_libraries" = no; then
7542   # Check for the libraries.
7543   # See if we find them without any special options.
7544   # Don't add to $LIBS permanently.
7545   ac_save_LIBS=$LIBS
7546   LIBS="-lX11 $LIBS"
7547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549 #include <X11/Xlib.h>
7550 int
7551 main ()
7552 {
7553 XrmInitialize ()
7554   ;
7555   return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_link "$LINENO"; then :
7559   LIBS=$ac_save_LIBS
7560 # We can link X programs with no special library path.
7561 ac_x_libraries=
7562 else
7563   LIBS=$ac_save_LIBS
7564 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7565 do
7566   # Don't even attempt the hair of trying to link an X program!
7567   for ac_extension in a so sl dylib la dll; do
7568     if test -r "$ac_dir/libX11.$ac_extension"; then
7569       ac_x_libraries=$ac_dir
7570       break 2
7571     fi
7572   done
7573 done
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576     conftest$ac_exeext conftest.$ac_ext
7577 fi # $ac_x_libraries = no
7578
7579 case $ac_x_includes,$ac_x_libraries in #(
7580   no,* | *,no | *\'*)
7581     # Didn't find X, or a directory has "'" in its name.
7582     ac_cv_have_x="have_x=no";; #(
7583   *)
7584     # Record where we found X for the cache.
7585     ac_cv_have_x="have_x=yes\
7586         ac_x_includes='$ac_x_includes'\
7587         ac_x_libraries='$ac_x_libraries'"
7588 esac
7589 fi
7590 ;; #(
7591     *) have_x=yes;;
7592   esac
7593   eval "$ac_cv_have_x"
7594 fi # $with_x != no
7595
7596 if test "$have_x" != yes; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7598 $as_echo "$have_x" >&6; }
7599   no_x=yes
7600 else
7601   # If each of the values was on the command line, it overrides each guess.
7602   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7603   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7604   # Update the cache value to reflect the command line values.
7605   ac_cv_have_x="have_x=yes\
7606         ac_x_includes='$x_includes'\
7607         ac_x_libraries='$x_libraries'"
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7609 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7610 fi
7611
7612 if test "$no_x" = yes; then
7613   # Not all programs may use this symbol, but it does not hurt to define it.
7614
7615 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7616
7617   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7618 else
7619   if test -n "$x_includes"; then
7620     X_CFLAGS="$X_CFLAGS -I$x_includes"
7621   fi
7622
7623   # It would also be nice to do this for all -L options, not just this one.
7624   if test -n "$x_libraries"; then
7625     X_LIBS="$X_LIBS -L$x_libraries"
7626     # For Solaris; some versions of Sun CC require a space after -R and
7627     # others require no space.  Words are not sufficient . . . .
7628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7629 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7630     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7631     ac_xsave_c_werror_flag=$ac_c_werror_flag
7632     ac_c_werror_flag=yes
7633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635
7636 int
7637 main ()
7638 {
7639
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647        X_LIBS="$X_LIBS -R$x_libraries"
7648 else
7649   LIBS="$ac_xsave_LIBS -R $x_libraries"
7650        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h.  */
7652
7653 int
7654 main ()
7655 {
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"; then :
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7663 $as_echo "yes" >&6; }
7664           X_LIBS="$X_LIBS -R $x_libraries"
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7667 $as_echo "neither works" >&6; }
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670     conftest$ac_exeext conftest.$ac_ext
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674     ac_c_werror_flag=$ac_xsave_c_werror_flag
7675     LIBS=$ac_xsave_LIBS
7676   fi
7677
7678   # Check for system-dependent libraries X programs must link with.
7679   # Do this before checking for the system-independent R6 libraries
7680   # (-lICE), since we may need -lsocket or whatever for X linking.
7681
7682   if test "$ISC" = yes; then
7683     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7684   else
7685     # Martyn Johnson says this is needed for Ultrix, if the X
7686     # libraries were built with DECnet support.  And Karl Berry says
7687     # the Alpha needs dnet_stub (dnet does not exist).
7688     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691
7692 /* Override any GCC internal prototype to avoid an error.
7693    Use char because int might match the return type of a GCC
7694    builtin and then its argument prototype would still apply.  */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 char XOpenDisplay ();
7699 int
7700 main ()
7701 {
7702 return XOpenDisplay ();
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7711 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7712 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-ldnet  $LIBS"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719
7720 /* Override any GCC internal prototype to avoid an error.
7721    Use char because int might match the return type of a GCC
7722    builtin and then its argument prototype would still apply.  */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 char dnet_ntoa ();
7727 int
7728 main ()
7729 {
7730 return dnet_ntoa ();
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736   ac_cv_lib_dnet_dnet_ntoa=yes
7737 else
7738   ac_cv_lib_dnet_dnet_ntoa=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741     conftest$ac_exeext conftest.$ac_ext
7742 LIBS=$ac_check_lib_save_LIBS
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7745 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7746 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7747   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7748 fi
7749
7750     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7752 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7753 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-ldnet_stub  $LIBS"
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760
7761 /* Override any GCC internal prototype to avoid an error.
7762    Use char because int might match the return type of a GCC
7763    builtin and then its argument prototype would still apply.  */
7764 #ifdef __cplusplus
7765 extern "C"
7766 #endif
7767 char dnet_ntoa ();
7768 int
7769 main ()
7770 {
7771 return dnet_ntoa ();
7772   ;
7773   return 0;
7774 }
7775 _ACEOF
7776 if ac_fn_c_try_link "$LINENO"; then :
7777   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7778 else
7779   ac_cv_lib_dnet_stub_dnet_ntoa=no
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext \
7782     conftest$ac_exeext conftest.$ac_ext
7783 LIBS=$ac_check_lib_save_LIBS
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7786 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7787 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7788   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7789 fi
7790
7791     fi
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext \
7794     conftest$ac_exeext conftest.$ac_ext
7795     LIBS="$ac_xsave_LIBS"
7796
7797     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7798     # to get the SysV transport functions.
7799     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7800     # needs -lnsl.
7801     # The nsl library prevents programs from opening the X display
7802     # on Irix 5.2, according to T.E. Dickey.
7803     # The functions gethostbyname, getservbyname, and inet_addr are
7804     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7805     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7806 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7807
7808 fi
7809
7810     if test $ac_cv_func_gethostbyname = no; then
7811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7812 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7813 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   ac_check_lib_save_LIBS=$LIBS
7817 LIBS="-lnsl  $LIBS"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820
7821 /* Override any GCC internal prototype to avoid an error.
7822    Use char because int might match the return type of a GCC
7823    builtin and then its argument prototype would still apply.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 char gethostbyname ();
7828 int
7829 main ()
7830 {
7831 return gethostbyname ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837   ac_cv_lib_nsl_gethostbyname=yes
7838 else
7839   ac_cv_lib_nsl_gethostbyname=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842     conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7846 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7847 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7848   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7849 fi
7850
7851       if test $ac_cv_lib_nsl_gethostbyname = no; then
7852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7853 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7854 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7855   $as_echo_n "(cached) " >&6
7856 else
7857   ac_check_lib_save_LIBS=$LIBS
7858 LIBS="-lbsd  $LIBS"
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h.  */
7861
7862 /* Override any GCC internal prototype to avoid an error.
7863    Use char because int might match the return type of a GCC
7864    builtin and then its argument prototype would still apply.  */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 char gethostbyname ();
7869 int
7870 main ()
7871 {
7872 return gethostbyname ();
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878   ac_cv_lib_bsd_gethostbyname=yes
7879 else
7880   ac_cv_lib_bsd_gethostbyname=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883     conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7887 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7888 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7889   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7890 fi
7891
7892       fi
7893     fi
7894
7895     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7896     # socket/setsockopt and other routines are undefined under SCO ODT
7897     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7898     # on later versions), says Simon Leinen: it contains gethostby*
7899     # variants that don't use the name server (or something).  -lsocket
7900     # must be given before -lnsl if both are needed.  We assume that
7901     # if connect needs -lnsl, so does gethostbyname.
7902     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7903 if test "x$ac_cv_func_connect" = xyes; then :
7904
7905 fi
7906
7907     if test $ac_cv_func_connect = no; then
7908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7909 $as_echo_n "checking for connect in -lsocket... " >&6; }
7910 if ${ac_cv_lib_socket_connect+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   ac_check_lib_save_LIBS=$LIBS
7914 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918 /* Override any GCC internal prototype to avoid an error.
7919    Use char because int might match the return type of a GCC
7920    builtin and then its argument prototype would still apply.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char connect ();
7925 int
7926 main ()
7927 {
7928 return connect ();
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934   ac_cv_lib_socket_connect=yes
7935 else
7936   ac_cv_lib_socket_connect=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext \
7939     conftest$ac_exeext conftest.$ac_ext
7940 LIBS=$ac_check_lib_save_LIBS
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7943 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7944 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7945   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7946 fi
7947
7948     fi
7949
7950     # Guillermo Gomez says -lposix is necessary on A/UX.
7951     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7952 if test "x$ac_cv_func_remove" = xyes; then :
7953
7954 fi
7955
7956     if test $ac_cv_func_remove = no; then
7957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7958 $as_echo_n "checking for remove in -lposix... " >&6; }
7959 if ${ac_cv_lib_posix_remove+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   ac_check_lib_save_LIBS=$LIBS
7963 LIBS="-lposix  $LIBS"
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966
7967 /* Override any GCC internal prototype to avoid an error.
7968    Use char because int might match the return type of a GCC
7969    builtin and then its argument prototype would still apply.  */
7970 #ifdef __cplusplus
7971 extern "C"
7972 #endif
7973 char remove ();
7974 int
7975 main ()
7976 {
7977 return remove ();
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983   ac_cv_lib_posix_remove=yes
7984 else
7985   ac_cv_lib_posix_remove=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7992 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7993 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7994   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7995 fi
7996
7997     fi
7998
7999     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8000     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8001 if test "x$ac_cv_func_shmat" = xyes; then :
8002
8003 fi
8004
8005     if test $ac_cv_func_shmat = no; then
8006       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8007 $as_echo_n "checking for shmat in -lipc... " >&6; }
8008 if ${ac_cv_lib_ipc_shmat+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   ac_check_lib_save_LIBS=$LIBS
8012 LIBS="-lipc  $LIBS"
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015
8016 /* Override any GCC internal prototype to avoid an error.
8017    Use char because int might match the return type of a GCC
8018    builtin and then its argument prototype would still apply.  */
8019 #ifdef __cplusplus
8020 extern "C"
8021 #endif
8022 char shmat ();
8023 int
8024 main ()
8025 {
8026 return shmat ();
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_link "$LINENO"; then :
8032   ac_cv_lib_ipc_shmat=yes
8033 else
8034   ac_cv_lib_ipc_shmat=no
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext \
8037     conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8041 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8042 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8043   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8044 fi
8045
8046     fi
8047   fi
8048
8049   # Check for libraries that X11R6 Xt/Xaw programs need.
8050   ac_save_LDFLAGS=$LDFLAGS
8051   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8052   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8053   # check for ICE first), but we must link in the order -lSM -lICE or
8054   # we get undefined symbols.  So assume we have SM if we have ICE.
8055   # These have to be linked with before -lX11, unlike the other
8056   # libraries we check for below, so use a different variable.
8057   # John Interrante, Karl Berry
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8059 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8060 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8061   $as_echo_n "(cached) " >&6
8062 else
8063   ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067
8068 /* Override any GCC internal prototype to avoid an error.
8069    Use char because int might match the return type of a GCC
8070    builtin and then its argument prototype would still apply.  */
8071 #ifdef __cplusplus
8072 extern "C"
8073 #endif
8074 char IceConnectionNumber ();
8075 int
8076 main ()
8077 {
8078 return IceConnectionNumber ();
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_link "$LINENO"; then :
8084   ac_cv_lib_ICE_IceConnectionNumber=yes
8085 else
8086   ac_cv_lib_ICE_IceConnectionNumber=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext \
8089     conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8091 fi
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8093 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8094 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8095   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8096 fi
8097
8098   LDFLAGS=$ac_save_LDFLAGS
8099
8100 fi
8101
8102
8103 if test "$have_x" = "yes"
8104 then
8105     XLIB="-lX11"
8106     ac_save_CPPFLAGS="$CPPFLAGS"
8107     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8108
8109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8110 $as_echo_n "checking for -lX11... " >&6; }
8111 if ${ac_cv_lib_soname_X11+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   ac_check_soname_save_LIBS=$LIBS
8115 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h.  */
8118
8119 /* Override any GCC internal prototype to avoid an error.
8120    Use char because int might match the return type of a GCC
8121    builtin and then its argument prototype would still apply.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char XCreateWindow ();
8126 int
8127 main ()
8128 {
8129 return XCreateWindow ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135   case "$LIBEXT" in
8136     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8137     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'` ;;
8138     *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
8139        if test "x$ac_cv_lib_soname_X11" = x; then :
8140   ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
8141 fi ;;
8142   esac
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145     conftest$ac_exeext conftest.$ac_ext
8146   LIBS=$ac_check_soname_save_LIBS
8147 fi
8148 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8150 $as_echo "not found" >&6; }
8151
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8154 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8155
8156 cat >>confdefs.h <<_ACEOF
8157 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8158 _ACEOF
8159
8160
8161 fi
8162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8163 $as_echo_n "checking for -lXext... " >&6; }
8164 if ${ac_cv_lib_soname_Xext+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   ac_check_soname_save_LIBS=$LIBS
8168 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h.  */
8171
8172 /* Override any GCC internal prototype to avoid an error.
8173    Use char because int might match the return type of a GCC
8174    builtin and then its argument prototype would still apply.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 char XextCreateExtension ();
8179 int
8180 main ()
8181 {
8182 return XextCreateExtension ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_link "$LINENO"; then :
8188   case "$LIBEXT" in
8189     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8190     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'` ;;
8191     *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
8192        if test "x$ac_cv_lib_soname_Xext" = x; then :
8193   ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
8194 fi ;;
8195   esac
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext \
8198     conftest$ac_exeext conftest.$ac_ext
8199   LIBS=$ac_check_soname_save_LIBS
8200 fi
8201 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8203 $as_echo "not found" >&6; }
8204
8205 else
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8207 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8211 _ACEOF
8212
8213        XLIB="-lXext $XLIB"
8214 fi
8215
8216         for ac_header in X11/Xlib.h \
8217                       X11/XKBlib.h \
8218                       X11/Xutil.h \
8219                       X11/Xcursor/Xcursor.h \
8220                       X11/extensions/shape.h \
8221                       X11/extensions/XInput.h \
8222                       X11/extensions/XInput2.h \
8223                       X11/extensions/XShm.h \
8224                       X11/extensions/Xcomposite.h \
8225                       X11/extensions/Xinerama.h \
8226                       X11/extensions/Xrandr.h \
8227                       X11/extensions/Xrender.h \
8228                       X11/extensions/xf86vmode.h \
8229                       X11/extensions/xf86vmproto.h
8230 do :
8231   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8233 # include <X11/Xlib.h>
8234 #endif
8235 #ifdef HAVE_X11_XUTIL_H
8236 # include <X11/Xutil.h>
8237 #endif
8238 "
8239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8240   cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8250         then
8251               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8252 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8253 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char XkbQueryExtension ();
8268 int
8269 main ()
8270 {
8271 return XkbQueryExtension ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277   ac_cv_lib_X11_XkbQueryExtension=yes
8278 else
8279   ac_cv_lib_X11_XkbQueryExtension=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282     conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8286 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8287 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8288
8289 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8290
8291 fi
8292
8293         fi
8294
8295                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8296         then
8297             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8298 $as_echo_n "checking for -lXcursor... " >&6; }
8299 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   ac_check_soname_save_LIBS=$LIBS
8303 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306
8307 /* Override any GCC internal prototype to avoid an error.
8308    Use char because int might match the return type of a GCC
8309    builtin and then its argument prototype would still apply.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 char XcursorImageLoadCursor ();
8314 int
8315 main ()
8316 {
8317 return XcursorImageLoadCursor ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323   case "$LIBEXT" in
8324     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8325     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'` ;;
8326     *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8327        if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8328   ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8329 fi ;;
8330   esac
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext \
8333     conftest$ac_exeext conftest.$ac_ext
8334   LIBS=$ac_check_soname_save_LIBS
8335 fi
8336 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8338 $as_echo "not found" >&6; }
8339
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8342 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8346 _ACEOF
8347
8348
8349 fi
8350         fi
8351         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8352   case "x$with_xcursor" in
8353   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8354   xno) ;;
8355   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8356 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8357 esac
8358 fi
8359
8360                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8361         then
8362             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8363 $as_echo_n "checking for -lXi... " >&6; }
8364 if ${ac_cv_lib_soname_Xi+:} false; then :
8365   $as_echo_n "(cached) " >&6
8366 else
8367   ac_check_soname_save_LIBS=$LIBS
8368 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h.  */
8371
8372 /* Override any GCC internal prototype to avoid an error.
8373    Use char because int might match the return type of a GCC
8374    builtin and then its argument prototype would still apply.  */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 char XOpenDevice ();
8379 int
8380 main ()
8381 {
8382 return XOpenDevice ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388   case "$LIBEXT" in
8389     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8390     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'` ;;
8391     *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8392        if test "x$ac_cv_lib_soname_Xi" = x; then :
8393   ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8394 fi ;;
8395   esac
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext \
8398     conftest$ac_exeext conftest.$ac_ext
8399   LIBS=$ac_check_soname_save_LIBS
8400 fi
8401 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8403 $as_echo "not found" >&6; }
8404
8405 else
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8407 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8411 _ACEOF
8412
8413
8414 fi
8415         fi
8416         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8417   case "x$with_xinput" in
8418   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8419   xno) ;;
8420   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8421 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8422 esac
8423 fi
8424
8425                 if test "x$ac_cv_lib_soname_Xi" != x
8426         then
8427             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8428   case "x$with_xinput2" in
8429   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8430   xno) ;;
8431   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8432 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8433 esac
8434 fi
8435         fi
8436
8437                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8438         then
8439               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8440 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8441 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h.  */
8448
8449 /* Override any GCC internal prototype to avoid an error.
8450    Use char because int might match the return type of a GCC
8451    builtin and then its argument prototype would still apply.  */
8452 #ifdef __cplusplus
8453 extern "C"
8454 #endif
8455 char XShmQueryExtension ();
8456 int
8457 main ()
8458 {
8459 return XShmQueryExtension ();
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465   ac_cv_lib_Xext_XShmQueryExtension=yes
8466 else
8467   ac_cv_lib_Xext_XShmQueryExtension=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470     conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8474 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8475 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8476
8477 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8478
8479 fi
8480
8481         fi
8482         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8483   case "x$with_xshm" in
8484   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8485   xno) ;;
8486   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8487 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8488 esac
8489 fi
8490
8491                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8492         then
8493               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8494 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8495 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502
8503 /* Override any GCC internal prototype to avoid an error.
8504    Use char because int might match the return type of a GCC
8505    builtin and then its argument prototype would still apply.  */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char XShapeQueryExtension ();
8510 int
8511 main ()
8512 {
8513 return XShapeQueryExtension ();
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519   ac_cv_lib_Xext_XShapeQueryExtension=yes
8520 else
8521   ac_cv_lib_Xext_XShapeQueryExtension=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext \
8524     conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8528 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8529 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8530
8531 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8532
8533 fi
8534
8535         fi
8536         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8537   case "x$with_xshape" in
8538   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8539   xno) ;;
8540   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8541 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8542 esac
8543 fi
8544
8545                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8546         then
8547             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8548 $as_echo_n "checking for -lXxf86vm... " >&6; }
8549 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   ac_check_soname_save_LIBS=$LIBS
8553 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h.  */
8556
8557 /* Override any GCC internal prototype to avoid an error.
8558    Use char because int might match the return type of a GCC
8559    builtin and then its argument prototype would still apply.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 char XF86VidModeQueryExtension ();
8564 int
8565 main ()
8566 {
8567 return XF86VidModeQueryExtension ();
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573   case "$LIBEXT" in
8574     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8575     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'` ;;
8576     *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8577        if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8578   ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8579 fi ;;
8580   esac
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584   LIBS=$ac_check_soname_save_LIBS
8585 fi
8586 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8588 $as_echo "not found" >&6; }
8589
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8592 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8593
8594 cat >>confdefs.h <<_ACEOF
8595 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8596 _ACEOF
8597
8598
8599 fi
8600         fi
8601         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8602   case "x$with_xxf86vm" in
8603   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8604   xno) ;;
8605   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8606 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8607 esac
8608 fi
8609
8610                 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"
8611         then
8612             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8613 $as_echo_n "checking for -lXrender... " >&6; }
8614 if ${ac_cv_lib_soname_Xrender+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   ac_check_soname_save_LIBS=$LIBS
8618 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h.  */
8621
8622 /* Override any GCC internal prototype to avoid an error.
8623    Use char because int might match the return type of a GCC
8624    builtin and then its argument prototype would still apply.  */
8625 #ifdef __cplusplus
8626 extern "C"
8627 #endif
8628 char XRenderQueryExtension ();
8629 int
8630 main ()
8631 {
8632 return XRenderQueryExtension ();
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 if ac_fn_c_try_link "$LINENO"; then :
8638   case "$LIBEXT" in
8639     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8640     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'` ;;
8641     *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8642        if test "x$ac_cv_lib_soname_Xrender" = x; then :
8643   ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8644 fi ;;
8645   esac
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext \
8648     conftest$ac_exeext conftest.$ac_ext
8649   LIBS=$ac_check_soname_save_LIBS
8650 fi
8651 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8653 $as_echo "not found" >&6; }
8654
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8657 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8658
8659 cat >>confdefs.h <<_ACEOF
8660 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8661 _ACEOF
8662
8663        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8664 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8665 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h.  */
8672
8673 /* Override any GCC internal prototype to avoid an error.
8674    Use char because int might match the return type of a GCC
8675    builtin and then its argument prototype would still apply.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 char XRenderSetPictureTransform ();
8680 int
8681 main ()
8682 {
8683 return XRenderSetPictureTransform ();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8690 else
8691   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext \
8694     conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8698 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8699 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8700
8701 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8702
8703 fi
8704
8705                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8706 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8707 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   ac_check_lib_save_LIBS=$LIBS
8711 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h.  */
8714
8715 /* Override any GCC internal prototype to avoid an error.
8716    Use char because int might match the return type of a GCC
8717    builtin and then its argument prototype would still apply.  */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 char XRenderCreateLinearGradient ();
8722 int
8723 main ()
8724 {
8725 return XRenderCreateLinearGradient ();
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8732 else
8733   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736     conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8740 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8741 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8742
8743 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8744
8745 fi
8746
8747 fi
8748
8749         fi
8750         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8751   case "x$with_xrender" in
8752   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8753   xno) ;;
8754   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8755 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8756 esac
8757 fi
8758
8759                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8760         then
8761                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h.  */
8763 #include <X11/Xlib.h>
8764 #include <X11/extensions/Xrandr.h>
8765 int
8766 main ()
8767 {
8768 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8775 $as_echo_n "checking for -lXrandr... " >&6; }
8776 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   ac_check_soname_save_LIBS=$LIBS
8780 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h.  */
8783
8784 /* Override any GCC internal prototype to avoid an error.
8785    Use char because int might match the return type of a GCC
8786    builtin and then its argument prototype would still apply.  */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 char XRRQueryExtension ();
8791 int
8792 main ()
8793 {
8794 return XRRQueryExtension ();
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800   case "$LIBEXT" in
8801     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8802     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'` ;;
8803     *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
8804        if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8805   ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
8806 fi ;;
8807   esac
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810     conftest$ac_exeext conftest.$ac_ext
8811   LIBS=$ac_check_soname_save_LIBS
8812 fi
8813 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8815 $as_echo "not found" >&6; }
8816
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8819 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8820
8821 cat >>confdefs.h <<_ACEOF
8822 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8823 _ACEOF
8824
8825        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827 #include <X11/Xlib.h>
8828 #include <X11/extensions/Xrandr.h>
8829 int
8830 main ()
8831 {
8832 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 if ac_fn_c_try_compile "$LINENO"; then :
8838
8839 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8840
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 fi
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846         fi
8847         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8848   case "x$with_xrandr" in
8849   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8850   xno) ;;
8851   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8852 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8853 esac
8854 fi
8855
8856                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8857         then
8858                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860 #include <X11/Xlib.h>
8861 #include <X11/extensions/Xinerama.h>
8862 int
8863 main ()
8864 {
8865 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8872 $as_echo_n "checking for -lXinerama... " >&6; }
8873 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   ac_check_soname_save_LIBS=$LIBS
8877 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h.  */
8880
8881 /* Override any GCC internal prototype to avoid an error.
8882    Use char because int might match the return type of a GCC
8883    builtin and then its argument prototype would still apply.  */
8884 #ifdef __cplusplus
8885 extern "C"
8886 #endif
8887 char XineramaQueryScreens ();
8888 int
8889 main ()
8890 {
8891 return XineramaQueryScreens ();
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 if ac_fn_c_try_link "$LINENO"; then :
8897   case "$LIBEXT" in
8898     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8899     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'` ;;
8900     *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
8901        if test "x$ac_cv_lib_soname_Xinerama" = x; then :
8902   ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
8903 fi ;;
8904   esac
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext \
8907     conftest$ac_exeext conftest.$ac_ext
8908   LIBS=$ac_check_soname_save_LIBS
8909 fi
8910 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8912 $as_echo "not found" >&6; }
8913
8914 else
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8916 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8917
8918 cat >>confdefs.h <<_ACEOF
8919 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8920 _ACEOF
8921
8922
8923 fi
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926         fi
8927         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8928   case "x$with_xinerama" in
8929   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8930   xno) ;;
8931   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8932 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8933 esac
8934 fi
8935
8936                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8937         then
8938             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8939 $as_echo_n "checking for -lXcomposite... " >&6; }
8940 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   ac_check_soname_save_LIBS=$LIBS
8944 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h.  */
8947
8948 /* Override any GCC internal prototype to avoid an error.
8949    Use char because int might match the return type of a GCC
8950    builtin and then its argument prototype would still apply.  */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char XCompositeRedirectWindow ();
8955 int
8956 main ()
8957 {
8958 return XCompositeRedirectWindow ();
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 if ac_fn_c_try_link "$LINENO"; then :
8964   case "$LIBEXT" in
8965     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8966     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'` ;;
8967     *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8968        if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
8969   ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8970 fi ;;
8971   esac
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext \
8974     conftest$ac_exeext conftest.$ac_ext
8975   LIBS=$ac_check_soname_save_LIBS
8976 fi
8977 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8979 $as_echo "not found" >&6; }
8980
8981 else
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8983 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8984
8985 cat >>confdefs.h <<_ACEOF
8986 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8987 _ACEOF
8988
8989
8990 fi
8991         fi
8992         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8993   case "x$with_xcomposite" in
8994   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8995   xno) ;;
8996   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8997 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8998 esac
8999 fi
9000
9001                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9002 #include <X11/Xlib.h>
9003 #endif
9004 "
9005 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9006
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_XICCALLBACK_CALLBACK 1
9009 _ACEOF
9010
9011
9012 fi
9013 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9014 #include <X11/Xlib.h>
9015 #endif
9016 "
9017 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9018
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_XEVENT_XCOOKIE 1
9021 _ACEOF
9022
9023
9024 fi
9025
9026
9027
9028         opengl_msg=""
9029     if test "x$with_opengl" != "xno"
9030     then
9031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9032 $as_echo_n "checking for -lGL... " >&6; }
9033 if ${ac_cv_lib_soname_GL+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   ac_check_soname_save_LIBS=$LIBS
9037 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h.  */
9040
9041 /* Override any GCC internal prototype to avoid an error.
9042    Use char because int might match the return type of a GCC
9043    builtin and then its argument prototype would still apply.  */
9044 #ifdef __cplusplus
9045 extern "C"
9046 #endif
9047 char glXCreateContext ();
9048 int
9049 main ()
9050 {
9051 return glXCreateContext ();
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"; then :
9057   case "$LIBEXT" in
9058     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9059     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'` ;;
9060     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9061        if test "x$ac_cv_lib_soname_GL" = x; then :
9062   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9063 fi ;;
9064   esac
9065 fi
9066 rm -f core conftest.err conftest.$ac_objext \
9067     conftest$ac_exeext conftest.$ac_ext
9068   LIBS=$ac_check_soname_save_LIBS
9069 fi
9070 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9072 $as_echo "not found" >&6; }
9073        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9074 $as_echo_n "checking for -lGL... " >&6; }
9075 if ${ac_cv_lib_soname_GL+:} false; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   ac_check_soname_save_LIBS=$LIBS
9079 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"
9080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h.  */
9082
9083 /* Override any GCC internal prototype to avoid an error.
9084    Use char because int might match the return type of a GCC
9085    builtin and then its argument prototype would still apply.  */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char glXCreateContext ();
9090 int
9091 main ()
9092 {
9093 return glXCreateContext ();
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099   case "$LIBEXT" in
9100     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9101     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'` ;;
9102     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9103        if test "x$ac_cv_lib_soname_GL" = x; then :
9104   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9105 fi ;;
9106   esac
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext \
9109     conftest$ac_exeext conftest.$ac_ext
9110   LIBS=$ac_check_soname_save_LIBS
9111 fi
9112 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9114 $as_echo "not found" >&6; }
9115        if test -f /usr/X11R6/lib/libGL.a
9116                             then
9117                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9118 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9119                             else
9120                                 opengl_msg="No OpenGL library found on this system."
9121                             fi
9122 else
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9124 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9125
9126 cat >>confdefs.h <<_ACEOF
9127 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9128 _ACEOF
9129
9130        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"
9131 fi
9132 else
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9134 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9135
9136 cat >>confdefs.h <<_ACEOF
9137 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9138 _ACEOF
9139
9140        OPENGL_LIBS="-lGL"
9141 fi
9142         if test "x$with_glu" != "xno"
9143         then
9144             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9145 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9146 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   ac_check_lib_save_LIBS=$LIBS
9150 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h.  */
9153
9154 /* Override any GCC internal prototype to avoid an error.
9155    Use char because int might match the return type of a GCC
9156    builtin and then its argument prototype would still apply.  */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 char gluLookAt ();
9161 int
9162 main ()
9163 {
9164 return gluLookAt ();
9165   ;
9166   return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170   ac_cv_lib_GLU_gluLookAt=yes
9171 else
9172   ac_cv_lib_GLU_gluLookAt=no
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext \
9175     conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9179 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9180 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9181   :
9182 fi
9183
9184             if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9185   case "x$with_glu" in
9186   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9187   xno) ;;
9188   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9189 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9190 esac
9191 fi
9192         fi
9193
9194         if test "x$with_osmesa" != "xno"
9195         then
9196             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9197 $as_echo_n "checking for -lOSMesa... " >&6; }
9198 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   ac_check_soname_save_LIBS=$LIBS
9202 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h.  */
9205
9206 /* Override any GCC internal prototype to avoid an error.
9207    Use char because int might match the return type of a GCC
9208    builtin and then its argument prototype would still apply.  */
9209 #ifdef __cplusplus
9210 extern "C"
9211 #endif
9212 char glAccum ();
9213 int
9214 main ()
9215 {
9216 return glAccum ();
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"; then :
9222   case "$LIBEXT" in
9223     dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9224     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'` ;;
9225     *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9226        if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9227   ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9228 fi ;;
9229   esac
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232     conftest$ac_exeext conftest.$ac_ext
9233   LIBS=$ac_check_soname_save_LIBS
9234 fi
9235 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9237 $as_echo "not found" >&6; }
9238
9239 else
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9241 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9242
9243 cat >>confdefs.h <<_ACEOF
9244 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9245 _ACEOF
9246
9247
9248 fi
9249             if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9250   case "x$with_osmesa" in
9251   x)   as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9252   xno) ;;
9253   *)   as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9254 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9255 esac
9256 fi
9257         fi
9258     fi
9259     if test -n "$opengl_msg"; then :
9260   case "x$with_opengl" in
9261   x)   as_fn_append wine_warnings "|$opengl_msg
9262 OpenGL and Direct3D won't be supported." ;;
9263   xno) ;;
9264   *)   as_fn_error $? "$opengl_msg
9265 OpenGL and Direct3D won't be supported.
9266 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9267 esac
9268 fi
9269
9270     CPPFLAGS="$ac_save_CPPFLAGS"
9271 else
9272     XLIB=""
9273     X_CFLAGS=""
9274     X_LIBS=""
9275     enable_winex11_drv=${enable_winex11_drv:-no}
9276 fi
9277 if test "x$XLIB" = "x"; then :
9278   case "x$with_x" in
9279   xno) ;;
9280   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9281 without X support, which probably isn't what you want. You will need
9282 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9283 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9284 esac
9285 fi
9286
9287 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9288
9289 if test "$ac_cv_header_CL_cl_h" = "yes"
9290 then
9291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9292 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9293 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   ac_check_lib_save_LIBS=$LIBS
9297 LIBS="-lOpenCL  $LIBS"
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h.  */
9300
9301 /* Override any GCC internal prototype to avoid an error.
9302    Use char because int might match the return type of a GCC
9303    builtin and then its argument prototype would still apply.  */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 char clGetPlatformInfo ();
9308 int
9309 main ()
9310 {
9311 return clGetPlatformInfo ();
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9318 else
9319   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext \
9322     conftest$ac_exeext conftest.$ac_ext
9323 LIBS=$ac_check_lib_save_LIBS
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9326 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9327 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9328   LIBOPENCL="-lOpenCL"
9329
9330 fi
9331
9332 fi
9333 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9334   case "x$with_opencl" in
9335   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9336   xno) ;;
9337   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9338 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9339 esac
9340 fi
9341 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9342
9343
9344 XML2LIBS=""
9345
9346 XML2INCL=""
9347
9348 XSLTINCL=""
9349
9350 if test "x$with_xml" != "xno"
9351 then
9352     ac_save_CPPFLAGS="$CPPFLAGS"
9353     if test "$PKG_CONFIG" != "false"
9354     then
9355         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9356         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9357     else
9358         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9359         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9360     fi
9361     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9362     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9363 do :
9364   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9367   cat >>confdefs.h <<_ACEOF
9368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 _ACEOF
9370
9371 fi
9372
9373 done
9374
9375     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"
9376     then
9377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9378 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9379 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9380   $as_echo_n "(cached) " >&6
9381 else
9382   ac_check_lib_save_LIBS=$LIBS
9383 LIBS="-lxml2 $ac_xml_libs $LIBS"
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h.  */
9386
9387 /* Override any GCC internal prototype to avoid an error.
9388    Use char because int might match the return type of a GCC
9389    builtin and then its argument prototype would still apply.  */
9390 #ifdef __cplusplus
9391 extern "C"
9392 #endif
9393 char xmlParseMemory ();
9394 int
9395 main ()
9396 {
9397 return xmlParseMemory ();
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403   ac_cv_lib_xml2_xmlParseMemory=yes
9404 else
9405   ac_cv_lib_xml2_xmlParseMemory=no
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext \
9408     conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9412 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9413 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9414
9415 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9416
9417              XML2LIBS="$ac_xml_libs"
9418              XML2INCL="$ac_xml_cflags"
9419 fi
9420
9421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9422 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9423 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   ac_check_lib_save_LIBS=$LIBS
9427 LIBS="-lxml2 $ac_xml_libs $LIBS"
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h.  */
9430
9431 /* Override any GCC internal prototype to avoid an error.
9432    Use char because int might match the return type of a GCC
9433    builtin and then its argument prototype would still apply.  */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char xmlReadMemory ();
9438 int
9439 main ()
9440 {
9441 return xmlReadMemory ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_link "$LINENO"; then :
9447   ac_cv_lib_xml2_xmlReadMemory=yes
9448 else
9449   ac_cv_lib_xml2_xmlReadMemory=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452     conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9456 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9457 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9458
9459 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9460
9461 fi
9462
9463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9464 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9465 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   ac_check_lib_save_LIBS=$LIBS
9469 LIBS="-lxml2 $ac_xml_libs $LIBS"
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char xmlNewDocPI ();
9480 int
9481 main ()
9482 {
9483 return xmlNewDocPI ();
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489   ac_cv_lib_xml2_xmlNewDocPI=yes
9490 else
9491   ac_cv_lib_xml2_xmlNewDocPI=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494     conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9498 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9499 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9500
9501 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9502
9503 fi
9504
9505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9506 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9507 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-lxml2 $ac_xml_libs $LIBS"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h.  */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516    Use char because int might match the return type of a GCC
9517    builtin and then its argument prototype would still apply.  */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char xmlSchemaSetParserStructuredErrors ();
9522 int
9523 main ()
9524 {
9525 return xmlSchemaSetParserStructuredErrors ();
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9532 else
9533   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536     conftest$ac_exeext conftest.$ac_ext
9537 LIBS=$ac_check_lib_save_LIBS
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9540 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9541 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9542
9543 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9544
9545 fi
9546
9547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9548 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9549 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-lxml2 $ac_xml_libs $LIBS"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char xmlSchemaSetValidStructuredErrors ();
9564 int
9565 main ()
9566 {
9567 return xmlSchemaSetValidStructuredErrors ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9574 else
9575   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578     conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9582 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9583 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9584
9585 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9586
9587 fi
9588
9589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9590 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9591 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-lxml2 $ac_xml_libs $LIBS"
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h.  */
9598
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char xmlFirstElementChild ();
9606 int
9607 main ()
9608 {
9609 return xmlFirstElementChild ();
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615   ac_cv_lib_xml2_xmlFirstElementChild=yes
9616 else
9617   ac_cv_lib_xml2_xmlFirstElementChild=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620     conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9624 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9625 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9626
9627 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9628
9629 fi
9630
9631         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9632 "
9633 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9634
9635 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9636
9637 fi
9638
9639     fi
9640     CPPFLAGS="$ac_save_CPPFLAGS"
9641 fi
9642 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9643   case "x$with_xml" in
9644   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9645   xno) ;;
9646   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9647 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9648 esac
9649 fi
9650
9651 if test "x$with_xslt" != "xno"
9652 then
9653     if test "$PKG_CONFIG" != "false"
9654     then
9655         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9656         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9657     else
9658         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9659         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9660     fi
9661     ac_save_CPPFLAGS="$CPPFLAGS"
9662     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9663     for ac_header in libxslt/pattern.h libxslt/transform.h
9664 do :
9665   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9666 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9667 # include <libxslt/pattern.h>
9668 #endif
9669 "
9670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9671   cat >>confdefs.h <<_ACEOF
9672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9673 _ACEOF
9674
9675 fi
9676
9677 done
9678
9679     CPPFLAGS="$ac_save_CPPFLAGS"
9680     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9681     then
9682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9683 $as_echo_n "checking for -lxslt... " >&6; }
9684 if ${ac_cv_lib_soname_xslt+:} false; then :
9685   $as_echo_n "(cached) " >&6
9686 else
9687   ac_check_soname_save_LIBS=$LIBS
9688 LIBS="-lxslt $ac_xslt_libs $LIBS"
9689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h.  */
9691
9692 /* Override any GCC internal prototype to avoid an error.
9693    Use char because int might match the return type of a GCC
9694    builtin and then its argument prototype would still apply.  */
9695 #ifdef __cplusplus
9696 extern "C"
9697 #endif
9698 char xsltCompilePattern ();
9699 int
9700 main ()
9701 {
9702 return xsltCompilePattern ();
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708   case "$LIBEXT" in
9709     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9710     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'` ;;
9711     *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
9712        if test "x$ac_cv_lib_soname_xslt" = x; then :
9713   ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
9714 fi ;;
9715   esac
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext \
9718     conftest$ac_exeext conftest.$ac_ext
9719   LIBS=$ac_check_soname_save_LIBS
9720 fi
9721 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9723 $as_echo "not found" >&6; }
9724
9725 else
9726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9727 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9728
9729 cat >>confdefs.h <<_ACEOF
9730 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9731 _ACEOF
9732
9733        XSLTINCL="$ac_xslt_cflags"
9734 fi
9735     fi
9736 fi
9737 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9738   case "x$with_xslt" in
9739   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9740   xno) ;;
9741   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9742 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9743 esac
9744 fi
9745
9746 if test "x$with_dbus" != "xno"
9747 then
9748     ac_save_CPPFLAGS="$CPPFLAGS"
9749     if test "$PKG_CONFIG" != "false"
9750     then
9751         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9752         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9753         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9754     fi
9755     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9756 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9758 $as_echo_n "checking for -ldbus-1... " >&6; }
9759 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   ac_check_soname_save_LIBS=$LIBS
9763 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h.  */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char dbus_connection_close ();
9774 int
9775 main ()
9776 {
9777 return dbus_connection_close ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783   case "$LIBEXT" in
9784     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9785     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'` ;;
9786     *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9787        if test "x$ac_cv_lib_soname_dbus_1" = x; then :
9788   ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9789 fi ;;
9790   esac
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext \
9793     conftest$ac_exeext conftest.$ac_ext
9794   LIBS=$ac_check_soname_save_LIBS
9795 fi
9796 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9798 $as_echo "not found" >&6; }
9799
9800 else
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9802 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9803
9804 cat >>confdefs.h <<_ACEOF
9805 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9806 _ACEOF
9807
9808        DBUSINCL="$ac_dbus_cflags"
9809
9810 fi
9811 fi
9812
9813
9814     CPPFLAGS="$ac_save_CPPFLAGS"
9815 fi
9816 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9817                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9818   case "x$with_dbus" in
9819   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9820   xno) ;;
9821   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9822 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9823 esac
9824 fi
9825
9826 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9827 then
9828     ac_save_CPPFLAGS="$CPPFLAGS"
9829     if test "$PKG_CONFIG" != "false"
9830     then
9831         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9832         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9833         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9834     fi
9835     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9836 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9838 $as_echo_n "checking for -lhal... " >&6; }
9839 if ${ac_cv_lib_soname_hal+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   ac_check_soname_save_LIBS=$LIBS
9843 LIBS="-lhal $ac_hal_libs $LIBS"
9844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char libhal_ctx_new ();
9854 int
9855 main ()
9856 {
9857 return libhal_ctx_new ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"; then :
9863   case "$LIBEXT" in
9864     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9865     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'` ;;
9866     *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
9867        if test "x$ac_cv_lib_soname_hal" = x; then :
9868   ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
9869 fi ;;
9870   esac
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873     conftest$ac_exeext conftest.$ac_ext
9874   LIBS=$ac_check_soname_save_LIBS
9875 fi
9876 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9878 $as_echo "not found" >&6; }
9879
9880 else
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9882 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9883
9884 cat >>confdefs.h <<_ACEOF
9885 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9886 _ACEOF
9887
9888        HALINCL="$ac_hal_cflags"
9889
9890 fi
9891 fi
9892
9893
9894     CPPFLAGS="$ac_save_CPPFLAGS"
9895     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9896                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9897   case "x$with_hal" in
9898   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9899   xno) ;;
9900   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9901 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9902 esac
9903 fi
9904 fi
9905
9906 if test "x$with_gnutls" != "xno"
9907 then
9908     ac_save_CPPFLAGS="$CPPFLAGS"
9909     if test "$PKG_CONFIG" != "false"
9910     then
9911         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9912         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9913         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9914     fi
9915     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9916 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h.  */
9919 #include <gnutls/gnutls.h>
9920 int
9921 main ()
9922 {
9923 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9930 $as_echo_n "checking for -lgnutls... " >&6; }
9931 if ${ac_cv_lib_soname_gnutls+:} false; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   ac_check_soname_save_LIBS=$LIBS
9935 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h.  */
9938
9939 /* Override any GCC internal prototype to avoid an error.
9940    Use char because int might match the return type of a GCC
9941    builtin and then its argument prototype would still apply.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char gnutls_global_init ();
9946 int
9947 main ()
9948 {
9949 return gnutls_global_init ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955   case "$LIBEXT" in
9956     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9957     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'` ;;
9958     *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9959        if test "x$ac_cv_lib_soname_gnutls" = x; then :
9960   ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9961 fi ;;
9962   esac
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext conftest.$ac_ext
9966   LIBS=$ac_check_soname_save_LIBS
9967 fi
9968 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9970 $as_echo "not found" >&6; }
9971
9972 else
9973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9974 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9978 _ACEOF
9979
9980        GNUTLSINCL="$ac_gnutls_cflags"
9981
9982 fi
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9985 fi
9986
9987
9988     CPPFLAGS="$ac_save_CPPFLAGS"
9989 fi
9990 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9991   case "x$with_gnutls" in
9992   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9993   xno) ;;
9994   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9995 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9996 esac
9997 fi
9998
9999 CURSESLIBS=""
10000 if test "$ac_cv_header_ncurses_h" = "yes"
10001 then
10002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10003 $as_echo_n "checking for -lncurses... " >&6; }
10004 if ${ac_cv_lib_soname_ncurses+:} false; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   ac_check_soname_save_LIBS=$LIBS
10008 LIBS="-lncurses  $LIBS"
10009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h.  */
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013    Use char because int might match the return type of a GCC
10014    builtin and then its argument prototype would still apply.  */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char waddch ();
10019 int
10020 main ()
10021 {
10022 return waddch ();
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028   case "$LIBEXT" in
10029     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10030     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'` ;;
10031     *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
10032        if test "x$ac_cv_lib_soname_ncurses" = x; then :
10033   ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
10034 fi ;;
10035   esac
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext \
10038     conftest$ac_exeext conftest.$ac_ext
10039   LIBS=$ac_check_soname_save_LIBS
10040 fi
10041 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10043 $as_echo "not found" >&6; }
10044
10045 else
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10047 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10048
10049 cat >>confdefs.h <<_ACEOF
10050 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10051 _ACEOF
10052
10053        CURSESLIBS="-lncurses"
10054 fi
10055 elif test "$ac_cv_header_curses_h" = "yes"
10056 then
10057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10058 $as_echo_n "checking for -lcurses... " >&6; }
10059 if ${ac_cv_lib_soname_curses+:} false; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062   ac_check_soname_save_LIBS=$LIBS
10063 LIBS="-lcurses  $LIBS"
10064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h.  */
10066
10067 /* Override any GCC internal prototype to avoid an error.
10068    Use char because int might match the return type of a GCC
10069    builtin and then its argument prototype would still apply.  */
10070 #ifdef __cplusplus
10071 extern "C"
10072 #endif
10073 char waddch ();
10074 int
10075 main ()
10076 {
10077 return waddch ();
10078   ;
10079   return 0;
10080 }
10081 _ACEOF
10082 if ac_fn_c_try_link "$LINENO"; then :
10083   case "$LIBEXT" in
10084     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10085     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'` ;;
10086     *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
10087        if test "x$ac_cv_lib_soname_curses" = x; then :
10088   ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
10089 fi ;;
10090   esac
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext \
10093     conftest$ac_exeext conftest.$ac_ext
10094   LIBS=$ac_check_soname_save_LIBS
10095 fi
10096 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10098 $as_echo "not found" >&6; }
10099
10100 else
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10102 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10103
10104 cat >>confdefs.h <<_ACEOF
10105 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10106 _ACEOF
10107
10108        CURSESLIBS="-lcurses"
10109 fi
10110 fi
10111 ac_save_LIBS="$LIBS"
10112 LIBS="$LIBS $CURSESLIBS"
10113 for ac_func in mousemask
10114 do :
10115   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10116 if test "x$ac_cv_func_mousemask" = xyes; then :
10117   cat >>confdefs.h <<_ACEOF
10118 #define HAVE_MOUSEMASK 1
10119 _ACEOF
10120
10121 fi
10122 done
10123
10124 LIBS="$ac_save_LIBS"
10125 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10126   case "x$with_curses" in
10127   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10128   xno) ;;
10129   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10130 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10131 esac
10132 fi
10133
10134 if test "x$with_sane" != "xno"
10135 then
10136     ac_save_CPPFLAGS="$CPPFLAGS"
10137     # Extract the first word of "sane-config", so it can be a program name with args.
10138 set dummy sane-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_sane_devel+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   if test -n "$sane_devel"; then
10145   ac_cv_prog_sane_devel="$sane_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_sane_devel="sane-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_sane_devel" && ac_cv_prog_sane_devel="no"
10163 fi
10164 fi
10165 sane_devel=$ac_cv_prog_sane_devel
10166 if test -n "$sane_devel"; then
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
10168 $as_echo "$sane_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     if test "$sane_devel" != "no"
10176     then
10177         ac_sane_incl="`$sane_devel --cflags`"
10178         ac_sane_libs="`$sane_devel --ldflags`"
10179         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10180     fi
10181     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10182 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10184 $as_echo_n "checking for -lsane... " >&6; }
10185 if ${ac_cv_lib_soname_sane+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   ac_check_soname_save_LIBS=$LIBS
10189 LIBS="-lsane $ac_sane_libs $LIBS"
10190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h.  */
10192
10193 /* Override any GCC internal prototype to avoid an error.
10194    Use char because int might match the return type of a GCC
10195    builtin and then its argument prototype would still apply.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char sane_init ();
10200 int
10201 main ()
10202 {
10203 return sane_init ();
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209   case "$LIBEXT" in
10210     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10211     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'` ;;
10212     *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10213        if test "x$ac_cv_lib_soname_sane" = x; then :
10214   ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10215 fi ;;
10216   esac
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext \
10219     conftest$ac_exeext conftest.$ac_ext
10220   LIBS=$ac_check_soname_save_LIBS
10221 fi
10222 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10224 $as_echo "not found" >&6; }
10225
10226 else
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10228 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10229
10230 cat >>confdefs.h <<_ACEOF
10231 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10232 _ACEOF
10233
10234        SANEINCL="$ac_sane_incl"
10235
10236 fi
10237 fi
10238
10239
10240     CPPFLAGS="$ac_save_CPPFLAGS"
10241 fi
10242 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10243   case "x$with_sane" in
10244   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10245   xno) ;;
10246   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10247 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10248 esac
10249 fi
10250
10251 if test "x$with_v4l" != "xno"
10252 then
10253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10254 $as_echo_n "checking for -lv4l1... " >&6; }
10255 if ${ac_cv_lib_soname_v4l1+:} false; then :
10256   $as_echo_n "(cached) " >&6
10257 else
10258   ac_check_soname_save_LIBS=$LIBS
10259 LIBS="-lv4l1  $LIBS"
10260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h.  */
10262
10263 /* Override any GCC internal prototype to avoid an error.
10264    Use char because int might match the return type of a GCC
10265    builtin and then its argument prototype would still apply.  */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char v4l1_open ();
10270 int
10271 main ()
10272 {
10273 return v4l1_open ();
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279   case "$LIBEXT" in
10280     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10281     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'` ;;
10282     *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10283        if test "x$ac_cv_lib_soname_v4l1" = x; then :
10284   ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10285 fi ;;
10286   esac
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext \
10289     conftest$ac_exeext conftest.$ac_ext
10290   LIBS=$ac_check_soname_save_LIBS
10291 fi
10292 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10294 $as_echo "not found" >&6; }
10295
10296 else
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10298 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10299
10300 cat >>confdefs.h <<_ACEOF
10301 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10302 _ACEOF
10303
10304
10305 fi
10306 fi
10307 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10308   case "x$with_v4l" in
10309   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10310   xno) ;;
10311   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10312 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10313 esac
10314 fi
10315
10316 if test "x$with_gphoto" != "xno"
10317 then
10318     ac_save_CPPFLAGS="$CPPFLAGS"
10319     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10320 set dummy gphoto2-config; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   if test -n "$gphoto2_devel"; then
10327   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332   IFS=$as_save_IFS
10333   test -z "$as_dir" && as_dir=.
10334     for ac_exec_ext in '' $ac_executable_extensions; do
10335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336     ac_cv_prog_gphoto2_devel="gphoto2-config"
10337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338     break 2
10339   fi
10340 done
10341   done
10342 IFS=$as_save_IFS
10343
10344   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10345 fi
10346 fi
10347 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10348 if test -n "$gphoto2_devel"; then
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10350 $as_echo "$gphoto2_devel" >&6; }
10351 else
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 fi
10355
10356
10357     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10358 set dummy gphoto2-port-config; ac_word=$2
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360 $as_echo_n "checking for $ac_word... " >&6; }
10361 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10362   $as_echo_n "(cached) " >&6
10363 else
10364   if test -n "$gphoto2port_devel"; then
10365   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370   IFS=$as_save_IFS
10371   test -z "$as_dir" && as_dir=.
10372     for ac_exec_ext in '' $ac_executable_extensions; do
10373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376     break 2
10377   fi
10378 done
10379   done
10380 IFS=$as_save_IFS
10381
10382   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10383 fi
10384 fi
10385 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10386 if test -n "$gphoto2port_devel"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10388 $as_echo "$gphoto2port_devel" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393
10394
10395     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10396     then
10397         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10398         ac_gphoto2_libs=""
10399         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10400         do
10401             case "$i" in
10402             -L/usr/lib|-L/usr/lib64) ;;
10403             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10404             esac
10405         done
10406         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10407     fi
10408     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10409     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10410 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10412 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10413 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   ac_check_lib_save_LIBS=$LIBS
10417 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h.  */
10420
10421 /* Override any GCC internal prototype to avoid an error.
10422    Use char because int might match the return type of a GCC
10423    builtin and then its argument prototype would still apply.  */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 char gp_camera_new ();
10428 int
10429 main ()
10430 {
10431 return gp_camera_new ();
10432   ;
10433   return 0;
10434 }
10435 _ACEOF
10436 if ac_fn_c_try_link "$LINENO"; then :
10437   ac_cv_lib_gphoto2_gp_camera_new=yes
10438 else
10439   ac_cv_lib_gphoto2_gp_camera_new=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext \
10442     conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10446 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10447 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10448
10449 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10450
10451                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10452
10453                                    GPHOTO2INCL="$ac_gphoto2_incl"
10454
10455 fi
10456
10457 fi
10458
10459
10460     CPPFLAGS="$ac_save_CPPFLAGS"
10461 fi
10462 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10463   case "x$with_gphoto" in
10464   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10465   xno) ;;
10466   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10467 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10468 esac
10469 fi
10470
10471
10472 if test "$ac_cv_header_resolv_h" = "yes"
10473 then
10474     ac_save_LIBS="$LIBS"
10475     for lib in '' -lresolv
10476     do
10477       LIBS="$lib $ac_save_LIBS"
10478       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h.  */
10480 #ifdef HAVE_NETINET_IN_H
10481 #include <netinet/in.h>
10482 #endif
10483 #include <resolv.h>
10484 int
10485 main ()
10486 {
10487 res_query("foo",ns_c_in,0,0,0);
10488   ;
10489   return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493
10494 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10495
10496          RESOLVLIBS="$lib"
10497
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext \
10500     conftest$ac_exeext conftest.$ac_ext
10501       if test "${RESOLVLIBS+set}" = set; then
10502         break
10503       fi
10504     done
10505     LIBS="$ac_save_LIBS"
10506 fi
10507
10508 LCMSLIBS=""
10509
10510 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10511 then
10512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10513 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10514 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-llcms  $LIBS"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h.  */
10521
10522 /* Override any GCC internal prototype to avoid an error.
10523    Use char because int might match the return type of a GCC
10524    builtin and then its argument prototype would still apply.  */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 char cmsOpenProfileFromFile ();
10529 int
10530 main ()
10531 {
10532 return cmsOpenProfileFromFile ();
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10539 else
10540   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10541 fi
10542 rm -f core conftest.err conftest.$ac_objext \
10543     conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10547 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10548 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10549
10550 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10551
10552          LCMSLIBS="-llcms"
10553 fi
10554
10555 fi
10556 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10557   case "x$with_cms" in
10558   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10559   xno) ;;
10560   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10561 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10562 esac
10563 fi
10564
10565 if test "x$with_freetype" != "xno"
10566 then
10567     if test "$PKG_CONFIG" != "false"
10568     then
10569         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10570         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10571     else
10572         for ac_prog in freetype-config freetype2-config
10573 do
10574   # Extract the first word of "$ac_prog", so it can be a program name with args.
10575 set dummy $ac_prog; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_prog_ft_devel+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   if test -n "$ft_devel"; then
10582   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589     for ac_exec_ext in '' $ac_executable_extensions; do
10590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591     ac_cv_prog_ft_devel="$ac_prog"
10592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596   done
10597 IFS=$as_save_IFS
10598
10599 fi
10600 fi
10601 ft_devel=$ac_cv_prog_ft_devel
10602 if test -n "$ft_devel"; then
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10604 $as_echo "$ft_devel" >&6; }
10605 else
10606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609
10610
10611   test -n "$ft_devel" && break
10612 done
10613 test -n "$ft_devel" || ft_devel="no"
10614
10615         if test "$ft_devel" != "no"
10616         then
10617             ac_freetype_incl=`$ft_devel --cflags`
10618             ac_freetype_libs=`$ft_devel --libs`
10619         fi
10620     fi
10621     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10623 $as_echo_n "checking for -lfreetype... " >&6; }
10624 if ${ac_cv_lib_soname_freetype+:} false; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   ac_check_soname_save_LIBS=$LIBS
10628 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h.  */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633    Use char because int might match the return type of a GCC
10634    builtin and then its argument prototype would still apply.  */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char FT_Init_FreeType ();
10639 int
10640 main ()
10641 {
10642 return FT_Init_FreeType ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648   case "$LIBEXT" in
10649     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10650     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'` ;;
10651     *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
10652        if test "x$ac_cv_lib_soname_freetype" = x; then :
10653   ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
10654 fi ;;
10655   esac
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658     conftest$ac_exeext conftest.$ac_ext
10659   LIBS=$ac_check_soname_save_LIBS
10660 fi
10661 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10663 $as_echo "not found" >&6; }
10664        ft_lib=no
10665 else
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10667 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10668
10669 cat >>confdefs.h <<_ACEOF
10670 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10671 _ACEOF
10672
10673        ft_lib=yes
10674 fi
10675     if test "$ft_lib" = "yes"
10676     then
10677         ac_save_CPPFLAGS="$CPPFLAGS"
10678         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10679         for ac_header in ft2build.h \
10680                          freetype/freetype.h \
10681                          freetype/ftglyph.h \
10682                          freetype/fttypes.h \
10683                          freetype/tttables.h \
10684                          freetype/ftsnames.h \
10685                          freetype/ttnameid.h \
10686                          freetype/ftoutln.h \
10687                          freetype/ftwinfnt.h \
10688                          freetype/ftmodapi.h \
10689                          freetype/ftlcdfil.h
10690 do :
10691   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10693                           # include <ft2build.h>
10694                           #endif
10695 "
10696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10697   cat >>confdefs.h <<_ACEOF
10698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10699 _ACEOF
10700
10701 fi
10702
10703 done
10704
10705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h.  */
10707 #include <ft2build.h>
10708                     #include <freetype/fttrigon.h>
10709 _ACEOF
10710 if ac_fn_c_try_cpp "$LINENO"; then :
10711
10712 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10713
10714                     wine_cv_fttrigon=yes
10715 else
10716   wine_cv_fttrigon=no
10717 fi
10718 rm -f conftest.err conftest.i conftest.$ac_ext
10719         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10720 "
10721 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10722
10723 cat >>confdefs.h <<_ACEOF
10724 #define HAVE_FT_TRUETYPEENGINETYPE 1
10725 _ACEOF
10726
10727
10728 fi
10729
10730                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10731         then
10732
10733 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10734
10735             FREETYPELIBS="$ac_freetype_libs"
10736
10737             FREETYPEINCL="$ac_freetype_incl"
10738
10739         fi
10740     fi
10741 fi
10742 if test "x$FREETYPELIBS" = "x"; then :
10743   case "x$with_freetype" in
10744   xno) ;;
10745   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10746 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10747 esac
10748 fi
10749 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10752 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10753 if ${ac_cv_c_ppdev+:} false; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758 #ifdef HAVE_SYS_IOCTL_H
10759 # include <sys/ioctl.h>
10760 #endif
10761 #include <linux/ppdev.h>
10762 int
10763 main ()
10764 {
10765 ioctl (1,PPCLAIM,0)
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_compile "$LINENO"; then :
10771   ac_cv_c_ppdev="yes"
10772 else
10773   ac_cv_c_ppdev="no"
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10778 $as_echo "$ac_cv_c_ppdev" >&6; }
10779 if test "$ac_cv_c_ppdev" = "yes"
10780 then
10781
10782 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10783
10784 fi
10785
10786 ac_wine_check_funcs_save_LIBS="$LIBS"
10787 LIBS="$LIBS $LIBPTHREAD"
10788 for ac_func in \
10789         pthread_attr_get_np \
10790         pthread_getattr_np \
10791         pthread_getthreadid_np \
10792         pthread_get_stackaddr_np \
10793         pthread_get_stacksize_np
10794 do :
10795   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10798   cat >>confdefs.h <<_ACEOF
10799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10800 _ACEOF
10801
10802 fi
10803 done
10804
10805 LIBS="$ac_wine_check_funcs_save_LIBS"
10806
10807 if test "$ac_cv_header_zlib_h" = "yes"
10808 then
10809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10810 $as_echo_n "checking for inflate in -lz... " >&6; }
10811 if ${ac_cv_lib_z_inflate+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   ac_check_lib_save_LIBS=$LIBS
10815 LIBS="-lz  $LIBS"
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820    Use char because int might match the return type of a GCC
10821    builtin and then its argument prototype would still apply.  */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char inflate ();
10826 int
10827 main ()
10828 {
10829 return inflate ();
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"; then :
10835   ac_cv_lib_z_inflate=yes
10836 else
10837   ac_cv_lib_z_inflate=no
10838 fi
10839 rm -f core conftest.err conftest.$ac_objext \
10840     conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10844 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10845 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10846
10847 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10848
10849                             ZLIB="-lz"
10850
10851 fi
10852
10853 fi
10854 if test "x$ZLIB" = "x"; then :
10855   case "x$with_zlib" in
10856   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10857   xno) ;;
10858   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10859 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10860 esac
10861 fi
10862
10863 if test "x$enable_tools" != xno
10864 then
10865     if test "$ac_cv_header_gettext_po_h" = "yes"
10866     then
10867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10868 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10869 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lgettextpo  $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878    Use char because int might match the return type of a GCC
10879    builtin and then its argument prototype would still apply.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char po_message_msgctxt ();
10884 int
10885 main ()
10886 {
10887 return po_message_msgctxt ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10894 else
10895   ac_cv_lib_gettextpo_po_message_msgctxt=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10902 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10903 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10904
10905 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10906
10907                       LIBGETTEXTPO="-lgettextpo"
10908
10909 fi
10910
10911     fi
10912     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10913   case "x$with_gettextpo" in
10914   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10915   xno) ;;
10916   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10917 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10918 esac
10919 fi
10920 fi
10921
10922 if test "x$with_gstreamer" != "xno"
10923 then
10924     ac_save_CPPFLAGS="$CPPFLAGS"
10925     if test "$PKG_CONFIG" != "false"; then
10926         ac_gst_incl=""
10927         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10928         do
10929             case "$i" in
10930                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10931             esac
10932         done
10933         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10934         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10935         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10937   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10938 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10940 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10941               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943 #include <gst/app/gstappsink.h>
10944 int
10945 main ()
10946 {
10947 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_compile "$LINENO"; then :
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954 $as_echo "yes" >&6; }
10955                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10956 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10957 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lgstreamer-0.10  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965 /* Override any GCC internal prototype to avoid an error.
10966    Use char because int might match the return type of a GCC
10967    builtin and then its argument prototype would still apply.  */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char gst_pad_get_caps_reffed ();
10972 int
10973 main ()
10974 {
10975 return gst_pad_get_caps_reffed ();
10976   ;
10977   return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10982 else
10983   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986     conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10990 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10991 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10993 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10994 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10995   $as_echo_n "(cached) " >&6
10996 else
10997   ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h.  */
11001
11002 /* Override any GCC internal prototype to avoid an error.
11003    Use char because int might match the return type of a GCC
11004    builtin and then its argument prototype would still apply.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char gst_app_buffer_new ();
11009 int
11010 main ()
11011 {
11012 return gst_app_buffer_new ();
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11019 else
11020   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext \
11023     conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11027 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11028 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11029   GSTREAMER_LIBS="$ac_gst_libs"
11030
11031                        GSTREAMER_INCL="$ac_gst_incl"
11032
11033 fi
11034
11035 fi
11036
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043
11044
11045 fi
11046
11047
11048     fi
11049     CPPFLAGS="$ac_save_CPPFLAGS"
11050 fi
11051 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11052   case "x$with_gstreamer" in
11053   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11054   xno) ;;
11055   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11056 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11057 esac
11058 fi
11059 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11060
11061 ALSALIBS=""
11062
11063 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11064 then
11065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11066 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11067 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-lasound  $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char snd_pcm_hw_params_get_access_mask ();
11082 int
11083 main ()
11084 {
11085 return snd_pcm_hw_params_get_access_mask ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11092 else
11093   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096     conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11100 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11101 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h.  */
11104 #ifdef HAVE_ALSA_ASOUNDLIB_H
11105 #include <alsa/asoundlib.h>
11106 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11107 #include <sys/asoundlib.h>
11108 #endif
11109 int
11110 main ()
11111 {
11112 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 if ac_fn_c_try_compile "$LINENO"; then :
11118   ALSALIBS="-lasound"
11119 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 fi
11122
11123 fi
11124
11125 if test "x$with_oss" != xno
11126 then
11127     ac_save_CPPFLAGS="$CPPFLAGS"
11128     if test -f /etc/oss.conf
11129     then
11130         . /etc/oss.conf
11131     fi
11132     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11133     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11134     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11135 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11136   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11137 "
11138 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11139
11140 cat >>confdefs.h <<_ACEOF
11141 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11142 _ACEOF
11143
11144 OSS4INCL="$ac_oss_incl"
11145
11146 fi
11147
11148 fi
11149
11150
11151     CPPFLAGS="$ac_save_CPPFLAGS"
11152     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11153     then
11154         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11155     fi
11156 fi
11157
11158
11159 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11160 then
11161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11162 $as_echo_n "checking for -lcapi20... " >&6; }
11163 if ${ac_cv_lib_soname_capi20+:} false; then :
11164   $as_echo_n "(cached) " >&6
11165 else
11166   ac_check_soname_save_LIBS=$LIBS
11167 LIBS="-lcapi20  $LIBS"
11168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h.  */
11170
11171 /* Override any GCC internal prototype to avoid an error.
11172    Use char because int might match the return type of a GCC
11173    builtin and then its argument prototype would still apply.  */
11174 #ifdef __cplusplus
11175 extern "C"
11176 #endif
11177 char capi20_register ();
11178 int
11179 main ()
11180 {
11181 return capi20_register ();
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"; then :
11187   case "$LIBEXT" in
11188     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11189     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'` ;;
11190     *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11191        if test "x$ac_cv_lib_soname_capi20" = x; then :
11192   ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11193 fi ;;
11194   esac
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext \
11197     conftest$ac_exeext conftest.$ac_ext
11198   LIBS=$ac_check_soname_save_LIBS
11199 fi
11200 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11202 $as_echo "not found" >&6; }
11203
11204 else
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11206 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11207
11208 cat >>confdefs.h <<_ACEOF
11209 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11210 _ACEOF
11211
11212
11213 fi
11214 fi
11215 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11216   case "x$with_capi" in
11217   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11218   xno) ;;
11219   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11220 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11221 esac
11222 fi
11223
11224 CUPSINCL=""
11225
11226 if test "x$with_cups" != "xno"
11227 then
11228     ac_save_CPPFLAGS="$CPPFLAGS"
11229     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11230     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11231     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11232     for ac_header in cups/cups.h
11233 do :
11234   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11235 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11236   cat >>confdefs.h <<_ACEOF
11237 #define HAVE_CUPS_CUPS_H 1
11238 _ACEOF
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11240 $as_echo_n "checking for -lcups... " >&6; }
11241 if ${ac_cv_lib_soname_cups+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   ac_check_soname_save_LIBS=$LIBS
11245 LIBS="-lcups $ac_cups_libs $LIBS"
11246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h.  */
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250    Use char because int might match the return type of a GCC
11251    builtin and then its argument prototype would still apply.  */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char cupsGetDefault ();
11256 int
11257 main ()
11258 {
11259 return cupsGetDefault ();
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265   case "$LIBEXT" in
11266     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11267     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'` ;;
11268     *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11269        if test "x$ac_cv_lib_soname_cups" = x; then :
11270   ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11271 fi ;;
11272   esac
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276   LIBS=$ac_check_soname_save_LIBS
11277 fi
11278 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11280 $as_echo "not found" >&6; }
11281
11282 else
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11284 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11285
11286 cat >>confdefs.h <<_ACEOF
11287 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11288 _ACEOF
11289
11290        CUPSINCL="$ac_cups_cflags"
11291 fi
11292 fi
11293
11294 done
11295
11296     CPPFLAGS="$ac_save_CPPFLAGS"
11297 fi
11298 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11299   case "x$with_cups" in
11300   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11301   xno) ;;
11302   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11303 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11304 esac
11305 fi
11306
11307 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11308 then
11309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11310 $as_echo_n "checking for -lfontconfig... " >&6; }
11311 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11312   $as_echo_n "(cached) " >&6
11313 else
11314   ac_check_soname_save_LIBS=$LIBS
11315 LIBS="-lfontconfig  $LIBS"
11316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h.  */
11318
11319 /* Override any GCC internal prototype to avoid an error.
11320    Use char because int might match the return type of a GCC
11321    builtin and then its argument prototype would still apply.  */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char FcInit ();
11326 int
11327 main ()
11328 {
11329 return FcInit ();
11330   ;
11331   return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335   case "$LIBEXT" in
11336     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11337     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'` ;;
11338     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11339        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11340   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11341 fi ;;
11342   esac
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345     conftest$ac_exeext conftest.$ac_ext
11346   LIBS=$ac_check_soname_save_LIBS
11347 fi
11348 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11350 $as_echo "not found" >&6; }
11351
11352 else
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11354 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11358 _ACEOF
11359
11360
11361 fi
11362 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11363 then
11364         ac_save_CPPFLAGS="$CPPFLAGS"
11365     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11366     $as_unset ac_cv_header_fontconfig_fontconfig_h
11367     for ac_header in fontconfig/fontconfig.h
11368 do :
11369   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11370 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11371   cat >>confdefs.h <<_ACEOF
11372 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11373 _ACEOF
11374
11375 fi
11376
11377 done
11378
11379     CPPFLAGS="$ac_save_CPPFLAGS"
11380     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11381     then
11382         FONTCONFIGINCL="$X_CFLAGS"
11383
11384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11385 $as_echo_n "checking for -lfontconfig... " >&6; }
11386 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   ac_check_soname_save_LIBS=$LIBS
11390 LIBS="-lfontconfig $X_LIBS $LIBS"
11391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395    Use char because int might match the return type of a GCC
11396    builtin and then its argument prototype would still apply.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char FcInit ();
11401 int
11402 main ()
11403 {
11404 return FcInit ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410   case "$LIBEXT" in
11411     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11412     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'` ;;
11413     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11414        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11415   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11416 fi ;;
11417   esac
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420     conftest$ac_exeext conftest.$ac_ext
11421   LIBS=$ac_check_soname_save_LIBS
11422 fi
11423 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11425 $as_echo "not found" >&6; }
11426
11427 else
11428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11429 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11430
11431 cat >>confdefs.h <<_ACEOF
11432 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11433 _ACEOF
11434
11435
11436 fi
11437     fi
11438 fi
11439 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11440   case "x$with_fontconfig" in
11441   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11442   xno) ;;
11443   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11444 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11445 esac
11446 fi
11447
11448 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11449 then
11450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11451 $as_echo_n "checking for -lssl... " >&6; }
11452 if ${ac_cv_lib_soname_ssl+:} false; then :
11453   $as_echo_n "(cached) " >&6
11454 else
11455   ac_check_soname_save_LIBS=$LIBS
11456 LIBS="-lssl  $LIBS"
11457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h.  */
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461    Use char because int might match the return type of a GCC
11462    builtin and then its argument prototype would still apply.  */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char SSL_library_init ();
11467 int
11468 main ()
11469 {
11470 return SSL_library_init ();
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476   case "$LIBEXT" in
11477     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11478     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'` ;;
11479     *) ac_cv_lib_soname_ssl=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libssl\\.$LIBEXT" | sed -e "s/^.*\\[\\(libssl\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11480        if test "x$ac_cv_lib_soname_ssl" = x; then :
11481   ac_cv_lib_soname_ssl=`$LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11482 fi ;;
11483   esac
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486     conftest$ac_exeext conftest.$ac_ext
11487   LIBS=$ac_check_soname_save_LIBS
11488 fi
11489 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11491 $as_echo "not found" >&6; }
11492
11493 else
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11495 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11496
11497 cat >>confdefs.h <<_ACEOF
11498 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11499 _ACEOF
11500
11501
11502 fi
11503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11504 $as_echo_n "checking for -lcrypto... " >&6; }
11505 if ${ac_cv_lib_soname_crypto+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   ac_check_soname_save_LIBS=$LIBS
11509 LIBS="-lcrypto  $LIBS"
11510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h.  */
11512
11513 /* Override any GCC internal prototype to avoid an error.
11514    Use char because int might match the return type of a GCC
11515    builtin and then its argument prototype would still apply.  */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char BIO_new_socket ();
11520 int
11521 main ()
11522 {
11523 return BIO_new_socket ();
11524   ;
11525   return 0;
11526 }
11527 _ACEOF
11528 if ac_fn_c_try_link "$LINENO"; then :
11529   case "$LIBEXT" in
11530     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11531     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'` ;;
11532     *) ac_cv_lib_soname_crypto=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcrypto\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcrypto\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11533        if test "x$ac_cv_lib_soname_crypto" = x; then :
11534   ac_cv_lib_soname_crypto=`$LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11535 fi ;;
11536   esac
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540   LIBS=$ac_check_soname_save_LIBS
11541 fi
11542 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11544 $as_echo "not found" >&6; }
11545
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11548 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11552 _ACEOF
11553
11554
11555 fi
11556 fi
11557 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11558   case "x$with_openssl" in
11559   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11560   xno) ;;
11561   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11562 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11563 esac
11564 fi
11565
11566 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11567 then
11568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11569 $as_echo_n "checking for -lgsm... " >&6; }
11570 if ${ac_cv_lib_soname_gsm+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   ac_check_soname_save_LIBS=$LIBS
11574 LIBS="-lgsm  $LIBS"
11575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579    Use char because int might match the return type of a GCC
11580    builtin and then its argument prototype would still apply.  */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char gsm_create ();
11585 int
11586 main ()
11587 {
11588 return gsm_create ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594   case "$LIBEXT" in
11595     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11596     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'` ;;
11597     *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11598        if test "x$ac_cv_lib_soname_gsm" = x; then :
11599   ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11600 fi ;;
11601   esac
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604     conftest$ac_exeext conftest.$ac_ext
11605   LIBS=$ac_check_soname_save_LIBS
11606 fi
11607 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11609 $as_echo "not found" >&6; }
11610
11611 else
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11613 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11614
11615 cat >>confdefs.h <<_ACEOF
11616 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11617 _ACEOF
11618
11619
11620 fi
11621 fi
11622 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11623   case "x$with_gsm" in
11624   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11625   xno) ;;
11626   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11627 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11628 esac
11629 fi
11630
11631 if test "$ac_cv_header_jpeglib_h" = "yes"
11632 then
11633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11634 $as_echo_n "checking for -ljpeg... " >&6; }
11635 if ${ac_cv_lib_soname_jpeg+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   ac_check_soname_save_LIBS=$LIBS
11639 LIBS="-ljpeg  $LIBS"
11640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h.  */
11642
11643 /* Override any GCC internal prototype to avoid an error.
11644    Use char because int might match the return type of a GCC
11645    builtin and then its argument prototype would still apply.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char jpeg_start_decompress ();
11650 int
11651 main ()
11652 {
11653 return jpeg_start_decompress ();
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659   case "$LIBEXT" in
11660     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11661     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'` ;;
11662     *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11663        if test "x$ac_cv_lib_soname_jpeg" = x; then :
11664   ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11665 fi ;;
11666   esac
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669     conftest$ac_exeext conftest.$ac_ext
11670   LIBS=$ac_check_soname_save_LIBS
11671 fi
11672 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11674 $as_echo "not found" >&6; }
11675
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11678 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11679
11680 cat >>confdefs.h <<_ACEOF
11681 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11682 _ACEOF
11683
11684
11685 fi
11686 fi
11687 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11688   case "x$with_jpeg" in
11689   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11690   xno) ;;
11691   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11692 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11693 esac
11694 fi
11695
11696 if test "$ac_cv_header_png_h" = "yes"
11697 then
11698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11699 $as_echo_n "checking for -lpng... " >&6; }
11700 if ${ac_cv_lib_soname_png+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   ac_check_soname_save_LIBS=$LIBS
11704 LIBS="-lpng -lm -lz $LIBS"
11705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h.  */
11707
11708 /* Override any GCC internal prototype to avoid an error.
11709    Use char because int might match the return type of a GCC
11710    builtin and then its argument prototype would still apply.  */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 char png_create_read_struct ();
11715 int
11716 main ()
11717 {
11718 return png_create_read_struct ();
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 if ac_fn_c_try_link "$LINENO"; then :
11724   case "$LIBEXT" in
11725     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11726     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'` ;;
11727     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11728        if test "x$ac_cv_lib_soname_png" = x; then :
11729   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11730 fi ;;
11731   esac
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735   LIBS=$ac_check_soname_save_LIBS
11736 fi
11737 if test "x$ac_cv_lib_soname_png" = "x"; then :
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11739 $as_echo "not found" >&6; }
11740
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11743 $as_echo "$ac_cv_lib_soname_png" >&6; }
11744
11745 cat >>confdefs.h <<_ACEOF
11746 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11747 _ACEOF
11748
11749
11750 fi
11751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11752 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11753 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lpng -lm -lz $LIBS"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h.  */
11760
11761 /* Override any GCC internal prototype to avoid an error.
11762    Use char because int might match the return type of a GCC
11763    builtin and then its argument prototype would still apply.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char png_set_expand_gray_1_2_4_to_8 ();
11768 int
11769 main ()
11770 {
11771 return png_set_expand_gray_1_2_4_to_8 ();
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11778 else
11779   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext \
11782     conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11786 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11787 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11788
11789 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11790
11791
11792 fi
11793
11794 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11795 then
11796         ac_save_CPPFLAGS="$CPPFLAGS"
11797     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11798     $as_unset ac_cv_header_png_h
11799     for ac_header in png.h
11800 do :
11801   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11802 if test "x$ac_cv_header_png_h" = xyes; then :
11803   cat >>confdefs.h <<_ACEOF
11804 #define HAVE_PNG_H 1
11805 _ACEOF
11806
11807 fi
11808
11809 done
11810
11811     CPPFLAGS="$ac_save_CPPFLAGS"
11812     if test "$ac_cv_header_png_h" = "yes"
11813     then
11814         PNGINCL="$X_CFLAGS"
11815
11816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11817 $as_echo_n "checking for -lpng... " >&6; }
11818 if ${ac_cv_lib_soname_png+:} false; then :
11819   $as_echo_n "(cached) " >&6
11820 else
11821   ac_check_soname_save_LIBS=$LIBS
11822 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h.  */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char png_create_read_struct ();
11833 int
11834 main ()
11835 {
11836 return png_create_read_struct ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842   case "$LIBEXT" in
11843     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11844     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'` ;;
11845     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11846        if test "x$ac_cv_lib_soname_png" = x; then :
11847   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11848 fi ;;
11849   esac
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852     conftest$ac_exeext conftest.$ac_ext
11853   LIBS=$ac_check_soname_save_LIBS
11854 fi
11855 if test "x$ac_cv_lib_soname_png" = "x"; then :
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11857 $as_echo "not found" >&6; }
11858
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11861 $as_echo "$ac_cv_lib_soname_png" >&6; }
11862
11863 cat >>confdefs.h <<_ACEOF
11864 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11865 _ACEOF
11866
11867
11868 fi
11869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11870 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11871 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h.  */
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880    Use char because int might match the return type of a GCC
11881    builtin and then its argument prototype would still apply.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char png_set_expand_gray_1_2_4_to_8 ();
11886 int
11887 main ()
11888 {
11889 return png_set_expand_gray_1_2_4_to_8 ();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"; then :
11895   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11896 else
11897   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext \
11900     conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11904 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11905 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11906   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11907
11908 fi
11909
11910     fi
11911 fi
11912 if test "x$ac_cv_lib_soname_png" = "x"; then :
11913   case "x$with_png" in
11914   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11915   xno) ;;
11916   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11917 This is an error since --with-png was requested." "$LINENO" 5 ;;
11918 esac
11919 fi
11920
11921 if test "$ac_cv_header_tiffio_h" = "yes"
11922 then
11923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11924 $as_echo_n "checking for -ltiff... " >&6; }
11925 if ${ac_cv_lib_soname_tiff+:} false; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928   ac_check_soname_save_LIBS=$LIBS
11929 LIBS="-ltiff  $LIBS"
11930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h.  */
11932
11933 /* Override any GCC internal prototype to avoid an error.
11934    Use char because int might match the return type of a GCC
11935    builtin and then its argument prototype would still apply.  */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 char TIFFClientOpen ();
11940 int
11941 main ()
11942 {
11943 return TIFFClientOpen ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 if ac_fn_c_try_link "$LINENO"; then :
11949   case "$LIBEXT" in
11950     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11951     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'` ;;
11952     *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11953        if test "x$ac_cv_lib_soname_tiff" = x; then :
11954   ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11955 fi ;;
11956   esac
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext \
11959     conftest$ac_exeext conftest.$ac_ext
11960   LIBS=$ac_check_soname_save_LIBS
11961 fi
11962 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11964 $as_echo "not found" >&6; }
11965
11966 else
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11968 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11969
11970 cat >>confdefs.h <<_ACEOF
11971 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11972 _ACEOF
11973
11974
11975 fi
11976 fi
11977 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11978   case "x$with_tiff" in
11979   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11980   xno) ;;
11981   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11982 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11983 esac
11984 fi
11985
11986 if test "$ac_cv_header_mpg123_h" = "yes"
11987 then
11988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11989 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11990 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11991   $as_echo_n "(cached) " >&6
11992 else
11993   ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lmpg123  $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h.  */
11997
11998 /* Override any GCC internal prototype to avoid an error.
11999    Use char because int might match the return type of a GCC
12000    builtin and then its argument prototype would still apply.  */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char mpg123_feed ();
12005 int
12006 main ()
12007 {
12008 return mpg123_feed ();
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014   ac_cv_lib_mpg123_mpg123_feed=yes
12015 else
12016   ac_cv_lib_mpg123_mpg123_feed=no
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext \
12019     conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12021 fi
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12023 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12024 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12025   LIBMPG123="-lmpg123"
12026
12027 fi
12028
12029 fi
12030 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12031   case "x$with_mpg123" in
12032   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12033   xno) ;;
12034   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12035 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12036 esac
12037 fi
12038 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}
12039
12040 if test "$ac_cv_header_AL_al_h" = "yes"
12041 then
12042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12043 $as_echo_n "checking for -lopenal... " >&6; }
12044 if ${ac_cv_lib_soname_openal+:} false; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   ac_check_soname_save_LIBS=$LIBS
12048 LIBS="-lopenal  $LIBS"
12049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053    Use char because int might match the return type of a GCC
12054    builtin and then its argument prototype would still apply.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char alGetSource3i ();
12059 int
12060 main ()
12061 {
12062 return alGetSource3i ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068   case "$LIBEXT" in
12069     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12070     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'` ;;
12071     *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
12072        if test "x$ac_cv_lib_soname_openal" = x; then :
12073   ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
12074 fi ;;
12075   esac
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext \
12078     conftest$ac_exeext conftest.$ac_ext
12079   LIBS=$ac_check_soname_save_LIBS
12080 fi
12081 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12083 $as_echo "not found" >&6; }
12084
12085 else
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12087 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12088
12089 cat >>confdefs.h <<_ACEOF
12090 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12091 _ACEOF
12092
12093        LIBOPENAL="-lopenal"
12094
12095                       ac_cv_lib_openal=yes
12096
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_OPENAL 1
12099 _ACEOF
12100
12101 fi
12102 fi
12103 if test "x$ac_cv_lib_openal" != xyes; then :
12104   case "x$with_openal" in
12105   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12106   xno) ;;
12107   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12108 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12109 esac
12110 fi
12111 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12112
12113 if test "$ac_cv_header_kstat_h" = "yes"
12114 then
12115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12116 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12117 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lkstat  $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126    Use char because int might match the return type of a GCC
12127    builtin and then its argument prototype would still apply.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char kstat_open ();
12132 int
12133 main ()
12134 {
12135 return kstat_open ();
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141   ac_cv_lib_kstat_kstat_open=yes
12142 else
12143   ac_cv_lib_kstat_kstat_open=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146     conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12150 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12151 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12152
12153 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12154
12155                   LIBKSTAT="-lkstat"
12156
12157 fi
12158
12159 fi
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12162 $as_echo_n "checking for -lodbc... " >&6; }
12163 if ${ac_cv_lib_soname_odbc+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   ac_check_soname_save_LIBS=$LIBS
12167 LIBS="-lodbc  $LIBS"
12168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char SQLConnect ();
12178 int
12179 main ()
12180 {
12181 return SQLConnect ();
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_link "$LINENO"; then :
12187   case "$LIBEXT" in
12188     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12189     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'` ;;
12190     *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
12191        if test "x$ac_cv_lib_soname_odbc" = x; then :
12192   ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
12193 fi ;;
12194   esac
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197     conftest$ac_exeext conftest.$ac_ext
12198   LIBS=$ac_check_soname_save_LIBS
12199 fi
12200 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12202 $as_echo "not found" >&6; }
12203        cat >>confdefs.h <<_ACEOF
12204 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12205 _ACEOF
12206
12207 else
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12209 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12210
12211 cat >>confdefs.h <<_ACEOF
12212 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12213 _ACEOF
12214
12215
12216 fi
12217
12218 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12219 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12220 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12221 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12222
12223 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12224         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12225         "x$with_alsa$with_coreaudio$with_oss" != xnonono
12226 then
12227     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12228 fi
12229
12230
12231 EXTRACFLAGS=""
12232
12233 if test "x${GCC}" = "xyes"
12234 then
12235   EXTRACFLAGS="-Wall -pipe"
12236
12237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12238 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12239 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   if test "$cross_compiling" = yes; then :
12243   ac_cv_c_gcc_strength_bug="yes"
12244 else
12245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247 int L[4] = {0,1,2,3};
12248 int
12249 main ()
12250 {
12251 static int Array[3];
12252   unsigned int B = 3;
12253   int i;
12254   for(i=0; i<B; i++) Array[i] = i - 3;
12255   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12256   L[i] = 4;
12257   return (Array[1] != -2 || L[2] != 3)
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 if ac_fn_c_try_run "$LINENO"; then :
12263   ac_cv_c_gcc_strength_bug="no"
12264 else
12265   ac_cv_c_gcc_strength_bug="yes"
12266 fi
12267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12268   conftest.$ac_objext conftest.beam conftest.$ac_ext
12269 fi
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12273 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12274   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12275   then
12276     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12277   fi
12278
12279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12280 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12281 if ${ac_cv_cflags__fno_builtin+:} false; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   ac_wine_try_cflags_saved=$CFLAGS
12285 CFLAGS="$CFLAGS -fno-builtin"
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288 int main(int argc, char **argv) { return 0; }
12289 _ACEOF
12290 if ac_fn_c_try_link "$LINENO"; then :
12291   ac_cv_cflags__fno_builtin=yes
12292 else
12293   ac_cv_cflags__fno_builtin=no
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext \
12296     conftest$ac_exeext conftest.$ac_ext
12297 CFLAGS=$ac_wine_try_cflags_saved
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12300 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12301 if test $ac_cv_cflags__fno_builtin = yes; then :
12302   BUILTINFLAG="-fno-builtin"
12303
12304 fi
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12306 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12307 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12308   $as_echo_n "(cached) " >&6
12309 else
12310   ac_wine_try_cflags_saved=$CFLAGS
12311 CFLAGS="$CFLAGS -fno-strict-aliasing"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h.  */
12314 int main(int argc, char **argv) { return 0; }
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"; then :
12317   ac_cv_cflags__fno_strict_aliasing=yes
12318 else
12319   ac_cv_cflags__fno_strict_aliasing=no
12320 fi
12321 rm -f core conftest.err conftest.$ac_objext \
12322     conftest$ac_exeext conftest.$ac_ext
12323 CFLAGS=$ac_wine_try_cflags_saved
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12326 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12327 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12328   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12329 fi
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12331 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12332 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   ac_wine_try_cflags_saved=$CFLAGS
12336 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h.  */
12339 int main(int argc, char **argv) { return 0; }
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"; then :
12342   ac_cv_cflags__Wdeclaration_after_statement=yes
12343 else
12344   ac_cv_cflags__Wdeclaration_after_statement=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext \
12347     conftest$ac_exeext conftest.$ac_ext
12348 CFLAGS=$ac_wine_try_cflags_saved
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12351 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12352 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12353   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12354 fi
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12356 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12357 if ${ac_cv_cflags__Wempty_body+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   ac_wine_try_cflags_saved=$CFLAGS
12361 CFLAGS="$CFLAGS -Wempty-body"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h.  */
12364 int main(int argc, char **argv) { return 0; }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367   ac_cv_cflags__Wempty_body=yes
12368 else
12369   ac_cv_cflags__Wempty_body=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext \
12372     conftest$ac_exeext conftest.$ac_ext
12373 CFLAGS=$ac_wine_try_cflags_saved
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12376 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12377 if test $ac_cv_cflags__Wempty_body = yes; then :
12378   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12379 fi
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12381 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12382 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   ac_wine_try_cflags_saved=$CFLAGS
12386 CFLAGS="$CFLAGS -Wignored-qualifiers"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389 int main(int argc, char **argv) { return 0; }
12390 _ACEOF
12391 if ac_fn_c_try_link "$LINENO"; then :
12392   ac_cv_cflags__Wignored_qualifiers=yes
12393 else
12394   ac_cv_cflags__Wignored_qualifiers=no
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext \
12397     conftest$ac_exeext conftest.$ac_ext
12398 CFLAGS=$ac_wine_try_cflags_saved
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12401 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12402 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12403   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12404 fi
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12406 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12407 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410   ac_wine_try_cflags_saved=$CFLAGS
12411 CFLAGS="$CFLAGS -Wstrict-prototypes"
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h.  */
12414 int main(int argc, char **argv) { return 0; }
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417   ac_cv_cflags__Wstrict_prototypes=yes
12418 else
12419   ac_cv_cflags__Wstrict_prototypes=no
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext \
12422     conftest$ac_exeext conftest.$ac_ext
12423 CFLAGS=$ac_wine_try_cflags_saved
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12426 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12427 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12428   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12429 fi
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12431 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12432 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12433   $as_echo_n "(cached) " >&6
12434 else
12435   ac_wine_try_cflags_saved=$CFLAGS
12436 CFLAGS="$CFLAGS -Wtype-limits"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h.  */
12439 int main(int argc, char **argv) { return 0; }
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442   ac_cv_cflags__Wtype_limits=yes
12443 else
12444   ac_cv_cflags__Wtype_limits=no
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext \
12447     conftest$ac_exeext conftest.$ac_ext
12448 CFLAGS=$ac_wine_try_cflags_saved
12449 fi
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12451 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12452 if test $ac_cv_cflags__Wtype_limits = yes; then :
12453   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12454 fi
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12456 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12457 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12458   $as_echo_n "(cached) " >&6
12459 else
12460   ac_wine_try_cflags_saved=$CFLAGS
12461 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h.  */
12464 int main(int argc, char **argv) { return 0; }
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467   ac_cv_cflags__Wunused_but_set_parameter=yes
12468 else
12469   ac_cv_cflags__Wunused_but_set_parameter=no
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext \
12472     conftest$ac_exeext conftest.$ac_ext
12473 CFLAGS=$ac_wine_try_cflags_saved
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12476 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12477 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12478   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12479 fi
12480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12481 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12482 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12483   $as_echo_n "(cached) " >&6
12484 else
12485   ac_wine_try_cflags_saved=$CFLAGS
12486 CFLAGS="$CFLAGS -Wwrite-strings"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489 int main(int argc, char **argv) { return 0; }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492   ac_cv_cflags__Wwrite_strings=yes
12493 else
12494   ac_cv_cflags__Wwrite_strings=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497     conftest$ac_exeext conftest.$ac_ext
12498 CFLAGS=$ac_wine_try_cflags_saved
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12501 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12502 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12503   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12504 fi
12505
12506     for ac_flag in $CFLAGS; do
12507     case $ac_flag in
12508       -g) case $host_os in
12509             darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12510 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12511 if ${ac_cv_cflags__gstabsp+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   ac_wine_try_cflags_saved=$CFLAGS
12515 CFLAGS="$CFLAGS -gstabs+"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h.  */
12518 int main(int argc, char **argv) { return 0; }
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521   ac_cv_cflags__gstabsp=yes
12522 else
12523   ac_cv_cflags__gstabsp=no
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext \
12526     conftest$ac_exeext conftest.$ac_ext
12527 CFLAGS=$ac_wine_try_cflags_saved
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12530 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12531 if test $ac_cv_cflags__gstabsp = yes; then :
12532   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12533 fi ;;
12534             *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12535 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12536 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   ac_wine_try_cflags_saved=$CFLAGS
12540 CFLAGS="$CFLAGS -gdwarf-2"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h.  */
12543 int main(int argc, char **argv) { return 0; }
12544 _ACEOF
12545 if ac_fn_c_try_link "$LINENO"; then :
12546   ac_cv_cflags__gdwarf_2=yes
12547 else
12548   ac_cv_cflags__gdwarf_2=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext \
12551     conftest$ac_exeext conftest.$ac_ext
12552 CFLAGS=$ac_wine_try_cflags_saved
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12555 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12556 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12557   EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12558 fi
12559                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12560 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12561 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   ac_wine_try_cflags_saved=$CFLAGS
12565 CFLAGS="$CFLAGS -gstrict-dwarf"
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h.  */
12568 int main(int argc, char **argv) { return 0; }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571   ac_cv_cflags__gstrict_dwarf=yes
12572 else
12573   ac_cv_cflags__gstrict_dwarf=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576     conftest$ac_exeext conftest.$ac_ext
12577 CFLAGS=$ac_wine_try_cflags_saved
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12580 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12581 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12582   EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12583 fi ;;
12584           esac ;;
12585     esac
12586   done
12587
12588     case $host_cpu in
12589     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12590 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12591 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   ac_wine_try_cflags_saved=$CFLAGS
12595 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h.  */
12598 int main(int argc, char **argv) { return 0; }
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601   ac_cv_cflags__fno_omit_frame_pointer=yes
12602 else
12603   ac_cv_cflags__fno_omit_frame_pointer=no
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext \
12606     conftest$ac_exeext conftest.$ac_ext
12607 CFLAGS=$ac_wine_try_cflags_saved
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12610 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12611 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12612   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12613 fi ;;
12614   esac
12615
12616     case $host in
12617     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12618 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12619 if ${ac_cv_cflags__Wno_format+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   ac_wine_try_cflags_saved=$CFLAGS
12623 CFLAGS="$CFLAGS -Wno-format"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626 int main(int argc, char **argv) { return 0; }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629   ac_cv_cflags__Wno_format=yes
12630 else
12631   ac_cv_cflags__Wno_format=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634     conftest$ac_exeext conftest.$ac_ext
12635 CFLAGS=$ac_wine_try_cflags_saved
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12638 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12639 if test $ac_cv_cflags__Wno_format = yes; then :
12640   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12641 fi ;;
12642   esac
12643
12644     saved_CFLAGS="$CFLAGS"
12645   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12647 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12648 if ${ac_cv_c_string_h_warnings+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h.  */
12653 #include <string.h>
12654 int
12655 main ()
12656 {
12657
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_compile "$LINENO"; then :
12663   ac_cv_c_string_h_warnings=no
12664 else
12665   ac_cv_c_string_h_warnings=yes
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 fi
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12670 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12671   CFLAGS="$saved_CFLAGS"
12672   if test "$ac_cv_c_string_h_warnings" = "no"
12673   then
12674     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12675   fi
12676
12677     saved_CFLAGS="$CFLAGS"
12678   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12680 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12681 if ${ac_cv_c_logicalop_noisy+:} false; then :
12682   $as_echo_n "(cached) " >&6
12683 else
12684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h.  */
12686 #include <string.h>
12687 int
12688 main ()
12689 {
12690 char*f(const char *h,char n) {return strchr(h,n);}
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_c_try_compile "$LINENO"; then :
12696   ac_cv_c_logicalop_noisy=no
12697 else
12698   ac_cv_c_logicalop_noisy=yes
12699 fi
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 fi
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12703 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12704   CFLAGS="$saved_CFLAGS"
12705   if test "$ac_cv_c_logicalop_noisy" = "no"
12706   then
12707     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12708   fi
12709
12710     if test "x$enable_maintainer_mode" = "xyes"
12711   then
12712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12713 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12714 if ${ac_cv_cflags__Werror+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   ac_wine_try_cflags_saved=$CFLAGS
12718 CFLAGS="$CFLAGS -Werror"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721 int main(int argc, char **argv) { return 0; }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724   ac_cv_cflags__Werror=yes
12725 else
12726   ac_cv_cflags__Werror=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729     conftest$ac_exeext conftest.$ac_ext
12730 CFLAGS=$ac_wine_try_cflags_saved
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12733 $as_echo "$ac_cv_cflags__Werror" >&6; }
12734 if test $ac_cv_cflags__Werror = yes; then :
12735   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12736 fi
12737   fi
12738
12739     saved_CFLAGS="$CFLAGS"
12740   CFLAGS="$CFLAGS -Werror"
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12742 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12743 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12749 int
12750 main ()
12751 {
12752
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 if ac_fn_c_try_compile "$LINENO"; then :
12758   ac_cv_have_ms_hook_prologue="yes"
12759 else
12760   ac_cv_have_ms_hook_prologue="no"
12761 fi
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12765 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12766   CFLAGS="$saved_CFLAGS"
12767   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12768   then
12769
12770 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12771
12772   else
12773       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12774
12775   fi
12776 fi
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12780 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12781 if ${ac_cv_c_fortify_enabled+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786 #include <string.h>
12787 int
12788 main ()
12789 {
12790 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12791 #error Fortify enabled
12792 #endif
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798   ac_cv_c_fortify_enabled=no
12799 else
12800   ac_cv_c_fortify_enabled=yes
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12805 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12806 if test "$ac_cv_c_fortify_enabled" = yes
12807 then
12808     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12809 fi
12810
12811
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12813 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12814 if ${ac_cv_c_extern_prefix+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819 extern int ac_test;
12820 int
12821 main ()
12822 {
12823 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   ac_cv_c_extern_prefix="yes"
12830 else
12831   ac_cv_c_extern_prefix="no"
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12837 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12838
12839 case $host_cpu in
12840   *i[3456789]86*)
12841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12842 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12843 if ${ac_cv_c_stdcall_suffix+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h.  */
12848 #ifndef _MSC_VER
12849 #define __stdcall __attribute__((__stdcall__))
12850 #endif
12851 int __stdcall ac_test(int i) { return i; }
12852 int
12853 main ()
12854 {
12855 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 if ac_fn_c_try_link "$LINENO"; then :
12861   ac_cv_c_stdcall_suffix="yes"
12862 else
12863   ac_cv_c_stdcall_suffix="no"
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext \
12866     conftest$ac_exeext conftest.$ac_ext
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12869 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12870   *) ac_cv_c_stdcall_suffix="no" ;;
12871 esac
12872
12873
12874 if test "$ac_cv_c_extern_prefix" = "yes"
12875 then
12876     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12877
12878     asm_name_prefix="_"
12879 else
12880     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12881
12882     asm_name_prefix=""
12883 fi
12884
12885
12886 if test "$ac_cv_c_stdcall_suffix" = "yes"
12887 then
12888     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12889
12890 else
12891     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12892
12893 fi
12894
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12897 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12898 if ${ac_cv_asm_func_def+:} false; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903
12904 int
12905 main ()
12906 {
12907 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913   ac_cv_asm_func_def=".def"
12914 else
12915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917
12918 int
12919 main ()
12920 {
12921 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927   ac_cv_asm_func_def=".type @function"
12928 else
12929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931
12932 int
12933 main ()
12934 {
12935 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 if ac_fn_c_try_link "$LINENO"; then :
12941   ac_cv_asm_func_def=".type 2"
12942 else
12943   ac_cv_asm_func_def="unknown"
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946     conftest$ac_exeext conftest.$ac_ext
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext \
12949     conftest$ac_exeext conftest.$ac_ext
12950 fi
12951 rm -f core conftest.err conftest.$ac_objext \
12952     conftest$ac_exeext conftest.$ac_ext
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12955 $as_echo "$ac_cv_asm_func_def" >&6; }
12956
12957
12958 case "$ac_cv_asm_func_def" in
12959   ".def")
12960      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12961
12962      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12963   ".type @function")
12964      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12965
12966      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12967   ".type 2")
12968      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12969
12970      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12971   *)
12972      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12973
12974      asm_func_header="" ;;
12975 esac
12976
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12978 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12979 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h.  */
12984 asm(".text\n\t.long 0");
12985 int
12986 main ()
12987 {
12988
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_compile "$LINENO"; then :
12994   ac_cv_c_asm_outside_funcs="yes"
12995 else
12996   ac_cv_c_asm_outside_funcs="no"
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 fi
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13001 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13004 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13005 if ${ac_cv_c_dot_previous+:} false; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h.  */
13010
13011 int
13012 main ()
13013 {
13014 asm(".text\nac_test:\t.long 0\n\t.previous");
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020   ac_cv_c_dot_previous="yes"
13021 else
13022   ac_cv_c_dot_previous="no"
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025     conftest$ac_exeext conftest.$ac_ext
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13028 $as_echo "$ac_cv_c_dot_previous" >&6; }
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13031 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13032 if ${ac_cv_c_cfi_support+:} false; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13038 int
13039 main ()
13040 {
13041
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"; then :
13047   ac_cv_c_cfi_support="yes"
13048 else
13049   ac_cv_c_cfi_support="no"
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13054 $as_echo "$ac_cv_c_cfi_support" >&6; }
13055
13056 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13057 asm_func_trailer=""
13058 if test "$ac_cv_c_dot_previous" = "yes"
13059 then
13060    asm_func_trailer="\\n\\t.previous"
13061 fi
13062 if test "$ac_cv_c_cfi_support" = "yes"
13063 then
13064    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13065    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13066
13067 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13068
13069    UNWINDFLAGS=-fasynchronous-unwind-tables
13070
13071 else
13072    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13073
13074 fi
13075
13076 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13077
13078
13079 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13080 then
13081     cat >>confdefs.h <<_ACEOF
13082 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13083 _ACEOF
13084
13085 else
13086     cat >>confdefs.h <<_ACEOF
13087 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13088 _ACEOF
13089
13090 fi
13091
13092 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13093
13094
13095 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13096
13097
13098
13099 LDPATH=""
13100
13101 case $build_os in
13102   cygwin*|mingw32*)
13103     TOOLSEXT=".exe"
13104
13105     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13106     ;;
13107   darwin*|macosx*)
13108     ;;
13109   *)
13110     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13111     ;;
13112 esac
13113
13114 case $host_os in
13115   mingw32*)
13116     CRTLIBS="-lmsvcrt"
13117
13118     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
13119
13120     ;;
13121 esac
13122
13123 MAIN_BINARY="wine"
13124
13125 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13126
13127 case $host_os in
13128   linux*)
13129     case $host_cpu in
13130       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13131  ;;
13132       x86_64*) EXTRA_BINARIES="wine64-preloader"
13133  ;;
13134     esac
13135     ;;
13136 esac
13137
13138
13139 ac_save_CFLAGS="$CFLAGS"
13140 CFLAGS="$CFLAGS $BUILTINFLAG"
13141 for ac_func in \
13142         _finite \
13143         _isnan \
13144         _pclose \
13145         _popen \
13146         _snprintf \
13147         _spawnvp \
13148         _strdup \
13149         _stricmp \
13150         _strnicmp \
13151         _strtoi64 \
13152         _strtoui64 \
13153         _vsnprintf \
13154         asctime_r \
13155         chsize \
13156         dlopen \
13157         epoll_create \
13158         ffs \
13159         finite \
13160         fnmatch \
13161         fork \
13162         fpclass \
13163         fstatfs \
13164         fstatvfs \
13165         ftruncate \
13166         futimens \
13167         futimes \
13168         futimesat \
13169         getattrlist \
13170         getdirentries \
13171         getopt_long_only \
13172         getpwuid \
13173         gettimeofday \
13174         getuid \
13175         kqueue \
13176         lstat \
13177         memmove \
13178         mmap \
13179         pclose \
13180         pipe2 \
13181         poll \
13182         popen \
13183         port_create \
13184         prctl \
13185         pread \
13186         pwrite \
13187         readdir \
13188         readlink \
13189         sched_yield \
13190         select \
13191         setproctitle \
13192         setrlimit \
13193         settimeofday \
13194         sigaltstack \
13195         sigprocmask \
13196         snprintf \
13197         spawnvp \
13198         statfs \
13199         statvfs \
13200         strcasecmp \
13201         strdup \
13202         strerror \
13203         strncasecmp \
13204         strtold \
13205         strtoll \
13206         strtoull \
13207         symlink \
13208         tcgetattr \
13209         thr_kill2 \
13210         timegm \
13211         usleep \
13212         vsnprintf
13213
13214 do :
13215   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13218   cat >>confdefs.h <<_ACEOF
13219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13220 _ACEOF
13221
13222 fi
13223 done
13224
13225 CFLAGS="$ac_save_CFLAGS"
13226
13227 if test "$ac_cv_func_dlopen" = no
13228 then
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13231 if ${ac_cv_lib_dl_dlopen+:} false; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-ldl  $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h.  */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240    Use char because int might match the return type of a GCC
13241    builtin and then its argument prototype would still apply.  */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char dlopen ();
13246 int
13247 main ()
13248 {
13249 return dlopen ();
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255   ac_cv_lib_dl_dlopen=yes
13256 else
13257   ac_cv_lib_dl_dlopen=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260     conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13265 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13266   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13267  LIBDL="-ldl"
13268
13269 fi
13270
13271 fi
13272 ac_wine_check_funcs_save_LIBS="$LIBS"
13273 LIBS="$LIBS $LIBDL"
13274 for ac_func in dladdr
13275 do :
13276   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13277 if test "x$ac_cv_func_dladdr" = xyes; then :
13278   cat >>confdefs.h <<_ACEOF
13279 #define HAVE_DLADDR 1
13280 _ACEOF
13281
13282 fi
13283 done
13284
13285 LIBS="$ac_wine_check_funcs_save_LIBS"
13286
13287 if test "$ac_cv_func_poll" = no
13288 then
13289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13290 $as_echo_n "checking for poll in -lpoll... " >&6; }
13291 if ${ac_cv_lib_poll_poll+:} false; then :
13292   $as_echo_n "(cached) " >&6
13293 else
13294   ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-lpoll  $LIBS"
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h.  */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300    Use char because int might match the return type of a GCC
13301    builtin and then its argument prototype would still apply.  */
13302 #ifdef __cplusplus
13303 extern "C"
13304 #endif
13305 char poll ();
13306 int
13307 main ()
13308 {
13309 return poll ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315   ac_cv_lib_poll_poll=yes
13316 else
13317   ac_cv_lib_poll_poll=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext \
13320     conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13322 fi
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13324 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13325 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13326   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13327  LIBPOLL="-lpoll"
13328
13329 fi
13330
13331 fi
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13334 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13335 if ${ac_cv_search_gethostbyname+:} false; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338   ac_func_search_save_LIBS=$LIBS
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 /* Override any GCC internal prototype to avoid an error.
13343    Use char because int might match the return type of a GCC
13344    builtin and then its argument prototype would still apply.  */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char gethostbyname ();
13349 int
13350 main ()
13351 {
13352 return gethostbyname ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 for ac_lib in '' nsl; do
13358   if test -z "$ac_lib"; then
13359     ac_res="none required"
13360   else
13361     ac_res=-l$ac_lib
13362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13363   fi
13364   if ac_fn_c_try_link "$LINENO"; then :
13365   ac_cv_search_gethostbyname=$ac_res
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext \
13368     conftest$ac_exeext
13369   if ${ac_cv_search_gethostbyname+:} false; then :
13370   break
13371 fi
13372 done
13373 if ${ac_cv_search_gethostbyname+:} false; then :
13374
13375 else
13376   ac_cv_search_gethostbyname=no
13377 fi
13378 rm conftest.$ac_ext
13379 LIBS=$ac_func_search_save_LIBS
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13382 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13383 ac_res=$ac_cv_search_gethostbyname
13384 if test "$ac_res" != no; then :
13385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13386
13387 fi
13388
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13391 $as_echo_n "checking for library containing connect... " >&6; }
13392 if ${ac_cv_search_connect+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   ac_func_search_save_LIBS=$LIBS
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398
13399 /* Override any GCC internal prototype to avoid an error.
13400    Use char because int might match the return type of a GCC
13401    builtin and then its argument prototype would still apply.  */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char connect ();
13406 int
13407 main ()
13408 {
13409 return connect ();
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 for ac_lib in '' socket; do
13415   if test -z "$ac_lib"; then
13416     ac_res="none required"
13417   else
13418     ac_res=-l$ac_lib
13419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13420   fi
13421   if ac_fn_c_try_link "$LINENO"; then :
13422   ac_cv_search_connect=$ac_res
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext \
13425     conftest$ac_exeext
13426   if ${ac_cv_search_connect+:} false; then :
13427   break
13428 fi
13429 done
13430 if ${ac_cv_search_connect+:} false; then :
13431
13432 else
13433   ac_cv_search_connect=no
13434 fi
13435 rm conftest.$ac_ext
13436 LIBS=$ac_func_search_save_LIBS
13437 fi
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13439 $as_echo "$ac_cv_search_connect" >&6; }
13440 ac_res=$ac_cv_search_connect
13441 if test "$ac_res" != no; then :
13442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13443
13444 fi
13445
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13448 $as_echo_n "checking for library containing inet_aton... " >&6; }
13449 if ${ac_cv_search_inet_aton+:} false; then :
13450   $as_echo_n "(cached) " >&6
13451 else
13452   ac_func_search_save_LIBS=$LIBS
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h.  */
13455
13456 /* Override any GCC internal prototype to avoid an error.
13457    Use char because int might match the return type of a GCC
13458    builtin and then its argument prototype would still apply.  */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char inet_aton ();
13463 int
13464 main ()
13465 {
13466 return inet_aton ();
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 for ac_lib in '' resolv; do
13472   if test -z "$ac_lib"; then
13473     ac_res="none required"
13474   else
13475     ac_res=-l$ac_lib
13476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13477   fi
13478   if ac_fn_c_try_link "$LINENO"; then :
13479   ac_cv_search_inet_aton=$ac_res
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext \
13482     conftest$ac_exeext
13483   if ${ac_cv_search_inet_aton+:} false; then :
13484   break
13485 fi
13486 done
13487 if ${ac_cv_search_inet_aton+:} false; then :
13488
13489 else
13490   ac_cv_search_inet_aton=no
13491 fi
13492 rm conftest.$ac_ext
13493 LIBS=$ac_func_search_save_LIBS
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13496 $as_echo "$ac_cv_search_inet_aton" >&6; }
13497 ac_res=$ac_cv_search_inet_aton
13498 if test "$ac_res" != no; then :
13499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13500
13501 fi
13502
13503
13504 for ac_func in \
13505         getaddrinfo \
13506         getnameinfo \
13507         getnetbyname \
13508         getprotobyname \
13509         getprotobynumber \
13510         getservbyport \
13511         inet_network \
13512         inet_ntop \
13513         inet_pton \
13514         sendmsg \
13515         socketpair \
13516
13517 do :
13518   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13521   cat >>confdefs.h <<_ACEOF
13522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13523 _ACEOF
13524
13525 fi
13526 done
13527
13528
13529 ac_save_LIBS=$LIBS
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13531 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13532 if ${ac_cv_search_clock_gettime+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   ac_func_search_save_LIBS=$LIBS
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h.  */
13538
13539 /* Override any GCC internal prototype to avoid an error.
13540    Use char because int might match the return type of a GCC
13541    builtin and then its argument prototype would still apply.  */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 char clock_gettime ();
13546 int
13547 main ()
13548 {
13549 return clock_gettime ();
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 for ac_lib in '' rt; do
13555   if test -z "$ac_lib"; then
13556     ac_res="none required"
13557   else
13558     ac_res=-l$ac_lib
13559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13560   fi
13561   if ac_fn_c_try_link "$LINENO"; then :
13562   ac_cv_search_clock_gettime=$ac_res
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565     conftest$ac_exeext
13566   if ${ac_cv_search_clock_gettime+:} false; then :
13567   break
13568 fi
13569 done
13570 if ${ac_cv_search_clock_gettime+:} false; then :
13571
13572 else
13573   ac_cv_search_clock_gettime=no
13574 fi
13575 rm conftest.$ac_ext
13576 LIBS=$ac_func_search_save_LIBS
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13579 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13580 ac_res=$ac_cv_search_clock_gettime
13581 if test "$ac_res" != no; then :
13582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13583
13584 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13585
13586                 test "$ac_res" = "none required" || LIBRT="$ac_res"
13587
13588 fi
13589
13590 LIBS=$ac_save_LIBS
13591
13592 LDAPLIBS=""
13593
13594 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13595 then
13596     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13597 "
13598 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13600 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13601 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   ac_check_lib_save_LIBS=$LIBS
13605 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h.  */
13608
13609 /* Override any GCC internal prototype to avoid an error.
13610    Use char because int might match the return type of a GCC
13611    builtin and then its argument prototype would still apply.  */
13612 #ifdef __cplusplus
13613 extern "C"
13614 #endif
13615 char ldap_initialize ();
13616 int
13617 main ()
13618 {
13619 return ldap_initialize ();
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625   ac_cv_lib_ldap_r_ldap_initialize=yes
13626 else
13627   ac_cv_lib_ldap_r_ldap_initialize=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext \
13630     conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13634 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13635 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13637 $as_echo_n "checking for ber_init in -llber... " >&6; }
13638 if ${ac_cv_lib_lber_ber_init+:} false; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-llber $LIBPTHREAD $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647    Use char because int might match the return type of a GCC
13648    builtin and then its argument prototype would still apply.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char ber_init ();
13653 int
13654 main ()
13655 {
13656 return ber_init ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662   ac_cv_lib_lber_ber_init=yes
13663 else
13664   ac_cv_lib_lber_ber_init=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667     conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13671 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13672 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13673
13674 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13675
13676                  LDAPLIBS="-lldap_r -llber"
13677 fi
13678
13679 fi
13680
13681 fi
13682
13683     ac_wine_check_funcs_save_LIBS="$LIBS"
13684 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13685 for ac_func in \
13686         ldap_count_references \
13687         ldap_first_reference \
13688         ldap_next_reference \
13689         ldap_parse_reference \
13690         ldap_parse_sort_control \
13691         ldap_parse_sortresponse_control \
13692         ldap_parse_vlv_control \
13693         ldap_parse_vlvresponse_control
13694 do :
13695   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13698   cat >>confdefs.h <<_ACEOF
13699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13700 _ACEOF
13701
13702 fi
13703 done
13704
13705 LIBS="$ac_wine_check_funcs_save_LIBS"
13706 fi
13707 if test "x$LDAPLIBS" = "x"; then :
13708   case "x$with_ldap" in
13709   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13710   xno) ;;
13711   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13712 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13713 esac
13714 fi
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13717 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13718 if ${wine_cv_one_arg_mkdir+:} false; then :
13719   $as_echo_n "(cached) " >&6
13720 else
13721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h.  */
13723 #include <sys/stat.h>
13724 int
13725 main ()
13726 {
13727 mkdir("foo");
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 if ac_fn_c_try_compile "$LINENO"; then :
13733   wine_cv_one_arg_mkdir=yes
13734 else
13735   wine_cv_one_arg_mkdir=no
13736 fi
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13740 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13741 if test "$wine_cv_one_arg_mkdir" = "yes"
13742 then
13743
13744 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13745
13746 fi
13747
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13749 $as_echo_n "checking for sched_setaffinity... " >&6; }
13750 if ${wine_cv_have_sched_setaffinity+:} false; then :
13751   $as_echo_n "(cached) " >&6
13752 else
13753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h.  */
13755 #define _GNU_SOURCE
13756 #include <sched.h>
13757 int
13758 main ()
13759 {
13760 sched_setaffinity(0, 0, 0);
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766   wine_cv_have_sched_setaffinity=yes
13767 else
13768   wine_cv_have_sched_setaffinity=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext \
13771     conftest$ac_exeext conftest.$ac_ext
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13774 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13775 if test "$wine_cv_have_sched_setaffinity" = "yes"
13776 then
13777
13778 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13779
13780 fi
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13783 $as_echo_n "checking for fallocate... " >&6; }
13784 if ${wine_cv_have_fallocate+:} false; then :
13785   $as_echo_n "(cached) " >&6
13786 else
13787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h.  */
13789 #define _GNU_SOURCE
13790 #include <fcntl.h>
13791 int
13792 main ()
13793 {
13794 fallocate(-1, 0, 0, 0);
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800   wine_cv_have_fallocate=yes
13801 else
13802   wine_cv_have_fallocate=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805     conftest$ac_exeext conftest.$ac_ext
13806 fi
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13808 $as_echo "$wine_cv_have_fallocate" >&6; }
13809 if test "$wine_cv_have_fallocate" = "yes"
13810 then
13811
13812 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13813
13814 fi
13815
13816
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13818 $as_echo_n "checking for inline... " >&6; }
13819 if ${ac_cv_c_inline+:} false; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822   ac_cv_c_inline=no
13823 for ac_kw in inline __inline__ __inline; do
13824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826 #ifndef __cplusplus
13827 typedef int foo_t;
13828 static $ac_kw foo_t static_foo () {return 0; }
13829 $ac_kw foo_t foo () {return 0; }
13830 #endif
13831
13832 _ACEOF
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834   ac_cv_c_inline=$ac_kw
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837   test "$ac_cv_c_inline" != no && break
13838 done
13839
13840 fi
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13842 $as_echo "$ac_cv_c_inline" >&6; }
13843
13844 case $ac_cv_c_inline in
13845   inline | yes) ;;
13846   *)
13847     case $ac_cv_c_inline in
13848       no) ac_val=;;
13849       *) ac_val=$ac_cv_c_inline;;
13850     esac
13851     cat >>confdefs.h <<_ACEOF
13852 #ifndef __cplusplus
13853 #define inline $ac_val
13854 #endif
13855 _ACEOF
13856     ;;
13857 esac
13858
13859 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13860 if test "x$ac_cv_type_mode_t" = xyes; then :
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_MODE_T 1
13864 _ACEOF
13865
13866
13867 fi
13868 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13869 if test "x$ac_cv_type_off_t" = xyes; then :
13870
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_OFF_T 1
13873 _ACEOF
13874
13875
13876 fi
13877 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13878 if test "x$ac_cv_type_pid_t" = xyes; then :
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_PID_T 1
13882 _ACEOF
13883
13884
13885 fi
13886 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13887 if test "x$ac_cv_type_size_t" = xyes; then :
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_SIZE_T 1
13891 _ACEOF
13892
13893
13894 fi
13895 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13896 if test "x$ac_cv_type_ssize_t" = xyes; then :
13897
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_SSIZE_T 1
13900 _ACEOF
13901
13902
13903 fi
13904 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13905 if test "x$ac_cv_type_long_long" = xyes; then :
13906
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_LONG_LONG 1
13909 _ACEOF
13910
13911
13912 fi
13913 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13914 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13915
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_FSBLKCNT_T 1
13918 _ACEOF
13919
13920
13921 fi
13922 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13923 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_FSFILCNT_T 1
13927 _ACEOF
13928
13929
13930 fi
13931
13932 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13933 #include <signal.h>
13934 "
13935 if test "x$ac_cv_type_sigset_t" = xyes; then :
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_SIGSET_T 1
13939 _ACEOF
13940
13941
13942 fi
13943
13944 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13945 "
13946 if test "x$ac_cv_type_request_sense" = xyes; then :
13947
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_REQUEST_SENSE 1
13950 _ACEOF
13951
13952
13953 fi
13954
13955
13956 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13957 #ifdef HAVE_SYS_SOCKET_H
13958 #include <sys/socket.h>
13959 #endif
13960 #ifdef HAVE_SYS_SOCKETVAR_H
13961 #include <sys/socketvar.h>
13962 #endif
13963 #ifdef HAVE_NET_ROUTE_H
13964 #include <net/route.h>
13965 #endif
13966 #ifdef HAVE_NETINET_IN_H
13967 #include <netinet/in.h>
13968 #endif
13969 #ifdef HAVE_NETINET_IN_SYSTM_H
13970 #include <netinet/in_systm.h>
13971 #endif
13972 #ifdef HAVE_NETINET_IP_H
13973 #include <netinet/ip.h>
13974 #endif
13975 #ifdef HAVE_NETINET_IN_PCB_H
13976 #include <netinet/in_pcb.h>
13977 #endif
13978 "
13979 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13980
13981 cat >>confdefs.h <<_ACEOF
13982 #define HAVE_STRUCT_XINPGEN 1
13983 _ACEOF
13984
13985
13986 fi
13987
13988
13989 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13990 #include <linux/input.h>
13991 #endif
13992 "
13993 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13994
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13997 _ACEOF
13998
13999
14000 fi
14001
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14004 $as_echo_n "checking for sigaddset... " >&6; }
14005 if ${wine_cv_have_sigaddset+:} false; then :
14006   $as_echo_n "(cached) " >&6
14007 else
14008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h.  */
14010 #include <signal.h>
14011 int
14012 main ()
14013 {
14014 sigset_t set; sigaddset(&set,SIGTERM);
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 if ac_fn_c_try_link "$LINENO"; then :
14020   wine_cv_have_sigaddset=yes
14021 else
14022   wine_cv_have_sigaddset=no
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext \
14025     conftest$ac_exeext conftest.$ac_ext
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14028 $as_echo "$wine_cv_have_sigaddset" >&6; }
14029 if test "$wine_cv_have_sigaddset" = "yes"
14030 then
14031
14032 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14033
14034 fi
14035
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14038 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14039 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044 #include <netdb.h>
14045 int
14046 main ()
14047 {
14048
14049     char *name=0;
14050     struct hostent he;
14051     struct hostent *result;
14052     char *buf=0;
14053     int bufsize=0;
14054     int errnr;
14055     char *addr=0;
14056     int addrlen=0;
14057     int addrtype=0;
14058     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14059     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14060
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_link "$LINENO"; then :
14066   wine_cv_linux_gethostbyname_r_6=yes
14067 else
14068   wine_cv_linux_gethostbyname_r_6=no
14069
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072     conftest$ac_exeext conftest.$ac_ext
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14076 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14077    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14078    then
14079
14080 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14081
14082    fi
14083
14084 if test "$ac_cv_header_linux_joystick_h" = "yes"
14085 then
14086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14087 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14088 if ${wine_cv_linux_joystick_22_api+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h.  */
14093
14094         #include <sys/ioctl.h>
14095         #include <sys/types.h>
14096         #include <linux/joystick.h>
14097
14098         struct js_event blub;
14099         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14100         #error "no 2.2 header"
14101         #endif
14102
14103 int
14104 main ()
14105 {
14106 /*empty*/
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112   wine_cv_linux_joystick_22_api=yes
14113 else
14114   wine_cv_linux_joystick_22_api=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117
14118 fi
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14120 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14121    if test "$wine_cv_linux_joystick_22_api" = "yes"
14122    then
14123
14124 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14125
14126    fi
14127 fi
14128
14129
14130 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14131 #ifdef HAVE_SYS_PARAM_H
14132 # include <sys/param.h>
14133 #endif
14134 #ifdef HAVE_SYS_MOUNT_H
14135 # include <sys/mount.h>
14136 #endif
14137 #ifdef HAVE_SYS_VFS_H
14138 # include <sys/vfs.h>
14139 #endif
14140 #ifdef HAVE_SYS_STATFS_H
14141 # include <sys/statfs.h>
14142 #endif
14143 "
14144 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14145
14146 cat >>confdefs.h <<_ACEOF
14147 #define HAVE_STRUCT_STATFS_F_BFREE 1
14148 _ACEOF
14149
14150
14151 fi
14152 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14153 #ifdef HAVE_SYS_PARAM_H
14154 # include <sys/param.h>
14155 #endif
14156 #ifdef HAVE_SYS_MOUNT_H
14157 # include <sys/mount.h>
14158 #endif
14159 #ifdef HAVE_SYS_VFS_H
14160 # include <sys/vfs.h>
14161 #endif
14162 #ifdef HAVE_SYS_STATFS_H
14163 # include <sys/statfs.h>
14164 #endif
14165 "
14166 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14167
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14170 _ACEOF
14171
14172
14173 fi
14174 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14175 #ifdef HAVE_SYS_PARAM_H
14176 # include <sys/param.h>
14177 #endif
14178 #ifdef HAVE_SYS_MOUNT_H
14179 # include <sys/mount.h>
14180 #endif
14181 #ifdef HAVE_SYS_VFS_H
14182 # include <sys/vfs.h>
14183 #endif
14184 #ifdef HAVE_SYS_STATFS_H
14185 # include <sys/statfs.h>
14186 #endif
14187 "
14188 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14189
14190 cat >>confdefs.h <<_ACEOF
14191 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14192 _ACEOF
14193
14194
14195 fi
14196 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14197 #ifdef HAVE_SYS_PARAM_H
14198 # include <sys/param.h>
14199 #endif
14200 #ifdef HAVE_SYS_MOUNT_H
14201 # include <sys/mount.h>
14202 #endif
14203 #ifdef HAVE_SYS_VFS_H
14204 # include <sys/vfs.h>
14205 #endif
14206 #ifdef HAVE_SYS_STATFS_H
14207 # include <sys/statfs.h>
14208 #endif
14209 "
14210 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14211
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_STRUCT_STATFS_F_FFREE 1
14214 _ACEOF
14215
14216
14217 fi
14218 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14219 #ifdef HAVE_SYS_PARAM_H
14220 # include <sys/param.h>
14221 #endif
14222 #ifdef HAVE_SYS_MOUNT_H
14223 # include <sys/mount.h>
14224 #endif
14225 #ifdef HAVE_SYS_VFS_H
14226 # include <sys/vfs.h>
14227 #endif
14228 #ifdef HAVE_SYS_STATFS_H
14229 # include <sys/statfs.h>
14230 #endif
14231 "
14232 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14233
14234 cat >>confdefs.h <<_ACEOF
14235 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14236 _ACEOF
14237
14238
14239 fi
14240 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14241 #ifdef HAVE_SYS_PARAM_H
14242 # include <sys/param.h>
14243 #endif
14244 #ifdef HAVE_SYS_MOUNT_H
14245 # include <sys/mount.h>
14246 #endif
14247 #ifdef HAVE_SYS_VFS_H
14248 # include <sys/vfs.h>
14249 #endif
14250 #ifdef HAVE_SYS_STATFS_H
14251 # include <sys/statfs.h>
14252 #endif
14253 "
14254 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14255
14256 cat >>confdefs.h <<_ACEOF
14257 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14258 _ACEOF
14259
14260
14261 fi
14262
14263
14264 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14265 #include <sys/statvfs.h>
14266 #endif
14267 "
14268 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14272 _ACEOF
14273
14274
14275 fi
14276
14277
14278 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14279 #include <dirent.h>
14280 #endif
14281 "
14282 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14283
14284 cat >>confdefs.h <<_ACEOF
14285 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14286 _ACEOF
14287
14288
14289 fi
14290
14291
14292 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14293 #ifdef HAVE_SYS_SOCKET_H
14294 # include <sys/socket.h>
14295 #endif
14296 #ifdef HAVE_SYS_UN_H
14297 # include <sys/un.h>
14298 #endif
14299 "
14300 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14301
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14304 _ACEOF
14305
14306
14307 fi
14308 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14309 #ifdef HAVE_SYS_SOCKET_H
14310 # include <sys/socket.h>
14311 #endif
14312 #ifdef HAVE_SYS_UN_H
14313 # include <sys/un.h>
14314 #endif
14315 "
14316 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14317
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14320 _ACEOF
14321
14322
14323 fi
14324 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14325 #ifdef HAVE_SYS_SOCKET_H
14326 # include <sys/socket.h>
14327 #endif
14328 #ifdef HAVE_SYS_UN_H
14329 # include <sys/un.h>
14330 #endif
14331 "
14332 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14333
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14336 _ACEOF
14337
14338
14339 fi
14340
14341
14342 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14343 #ifdef HAVE_SCSI_SG_H
14344 #include <scsi/sg.h>
14345 #endif
14346 "
14347 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_SCSIREQ_T_CMD 1
14351 _ACEOF
14352
14353
14354 fi
14355 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>
14356 #ifdef HAVE_SCSI_SG_H
14357 #include <scsi/sg.h>
14358 #endif
14359 "
14360 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14361
14362 cat >>confdefs.h <<_ACEOF
14363 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14364 _ACEOF
14365
14366
14367 fi
14368
14369
14370 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14371 "
14372 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_SIGINFO_T_SI_FD 1
14376 _ACEOF
14377
14378
14379 fi
14380
14381
14382 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14383 #ifdef HAVE_SYS_MTIO_H
14384 #include <sys/mtio.h>
14385 #endif
14386 "
14387 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14388
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14391 _ACEOF
14392
14393
14394 fi
14395 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14396 #ifdef HAVE_SYS_MTIO_H
14397 #include <sys/mtio.h>
14398 #endif
14399 "
14400 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14401
14402 cat >>confdefs.h <<_ACEOF
14403 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14404 _ACEOF
14405
14406
14407 fi
14408 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14409 #ifdef HAVE_SYS_MTIO_H
14410 #include <sys/mtio.h>
14411 #endif
14412 "
14413 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14414
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14417 _ACEOF
14418
14419
14420 fi
14421
14422
14423 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14424 #include <getopt.h>
14425 #endif
14426 "
14427 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14428
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_STRUCT_OPTION_NAME 1
14431 _ACEOF
14432
14433
14434 fi
14435
14436
14437 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14438 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14439
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14442 _ACEOF
14443
14444
14445 fi
14446 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14447 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_STRUCT_STAT_ST_MTIM 1
14451 _ACEOF
14452
14453
14454 fi
14455 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14456 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14457
14458 cat >>confdefs.h <<_ACEOF
14459 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14460 _ACEOF
14461
14462
14463 fi
14464 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14465 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14466
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_STRUCT_STAT_ST_CTIM 1
14469 _ACEOF
14470
14471
14472 fi
14473 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14474 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14475
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14478 _ACEOF
14479
14480
14481 fi
14482 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14483 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14484
14485 cat >>confdefs.h <<_ACEOF
14486 #define HAVE_STRUCT_STAT_ST_ATIM 1
14487 _ACEOF
14488
14489
14490 fi
14491 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14492 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14493
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14496 _ACEOF
14497
14498
14499 fi
14500 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14501 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14502
14503 cat >>confdefs.h <<_ACEOF
14504 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14505 _ACEOF
14506
14507
14508 fi
14509 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14510 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14514 _ACEOF
14515
14516
14517 fi
14518 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14519 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14520
14521 cat >>confdefs.h <<_ACEOF
14522 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14523 _ACEOF
14524
14525
14526 fi
14527 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14528 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14529
14530 cat >>confdefs.h <<_ACEOF
14531 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14532 _ACEOF
14533
14534
14535 fi
14536 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14537 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14538
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14541 _ACEOF
14542
14543
14544 fi
14545
14546
14547 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
14548 #include <sys/types.h>
14549 #endif
14550 #ifdef HAVE_NETINET_IN_H
14551 #include <netinet/in.h>
14552 #endif
14553 "
14554 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14555
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14558 _ACEOF
14559
14560
14561 fi
14562
14563
14564 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14565 #include <sys/types.h>
14566 #endif
14567 #ifdef HAVE_NETINET_IN_H
14568 # include <netinet/in.h>
14569 #endif
14570 #ifdef HAVE_ARPA_NAMESER_H
14571 # include <arpa/nameser.h>
14572 #endif
14573 "
14574 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14575
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_NS_MSG__MSG_PTR 1
14578 _ACEOF
14579
14580
14581 fi
14582
14583
14584 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14585 #include <sys/types.h>
14586 #endif
14587 #ifdef HAVE_NETINET_IP_H
14588 #include <netinet/ip.h>
14589 #endif
14590 #ifdef HAVE_NETINET_IP_ICMP_H
14591 #include <netinet/ip_icmp.h>
14592 #endif
14593 #ifdef HAVE_NETINET_ICMP_VAR_H
14594 #include <netinet/icmp_var.h>
14595 #endif
14596 "
14597 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14601 _ACEOF
14602
14603
14604 fi
14605
14606
14607 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14608 #include <sys/types.h>
14609 #endif
14610 #ifdef HAVE_ALIAS_H
14611 #include <alias.h>
14612 #endif
14613 #ifdef HAVE_SYS_SOCKET_H
14614 #include <sys/socket.h>
14615 #endif
14616 #ifdef HAVE_SYS_SOCKETVAR_H
14617 #include <sys/socketvar.h>
14618 #endif
14619 #ifdef HAVE_SYS_TIMEOUT_H
14620 #include <sys/timeout.h>
14621 #endif
14622 #ifdef HAVE_NETINET_IN_H
14623 #include <netinet/in.h>
14624 #endif
14625 #ifdef HAVE_NETINET_IN_SYSTM_H
14626 #include <netinet/in_systm.h>
14627 #endif
14628 #ifdef HAVE_NETINET_IP_H
14629 #include <netinet/ip.h>
14630 #endif
14631 #ifdef HAVE_NETINET_IP_VAR_H
14632 #include <netinet/ip_var.h>
14633 #endif
14634 #ifdef HAVE_NETINET_IP_ICMP_H
14635 #include <netinet/ip_icmp.h>
14636 #endif
14637 #ifdef HAVE_NETINET_ICMP_VAR_H
14638 #include <netinet/icmp_var.h>
14639 #endif
14640 "
14641 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14642
14643 cat >>confdefs.h <<_ACEOF
14644 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14645 _ACEOF
14646
14647
14648 fi
14649
14650
14651 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14652 #include <sys/types.h>
14653 #endif
14654 #ifdef HAVE_SYS_SOCKETVAR_H
14655 #include <sys/socketvar.h>
14656 #endif
14657 #ifdef HAVE_NETINET_IN_H
14658 #include <netinet/in.h>
14659 #endif
14660 #ifdef HAVE_NETINET_IP_VAR_H
14661 #include <netinet/ip_var.h>
14662 #endif
14663 "
14664 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14665
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14668 _ACEOF
14669
14670
14671 fi
14672
14673
14674 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
14675 #include <netinet/ip_var.h>
14676 #endif
14677 "
14678 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14679
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14682 _ACEOF
14683
14684
14685 fi
14686
14687
14688 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14689 #include <sys/types.h>
14690 #endif
14691 #ifdef HAVE_SYS_SOCKETVAR_H
14692 #include <sys/socketvar.h>
14693 #endif
14694 #ifdef HAVE_NETINET_IN_H
14695 #include <netinet/in.h>
14696 #endif
14697 #ifdef HAVE_NETINET_TCP_H
14698 #include <netinet/tcp.h>
14699 #endif
14700 #ifdef HAVE_NETINET_TCP_VAR_H
14701 #include <netinet/tcp_var.h>
14702 #endif
14703 "
14704 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14705
14706 cat >>confdefs.h <<_ACEOF
14707 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14708 _ACEOF
14709
14710
14711 fi
14712
14713
14714 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
14715 #include <netinet/tcp_var.h>
14716 #endif
14717 "
14718 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14719
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14722 _ACEOF
14723
14724
14725 fi
14726
14727
14728 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14729 #include <sys/types.h>
14730 #endif
14731 #ifdef HAVE_NETINET_IN_H
14732 #include <netinet/in.h>
14733 #endif
14734 #ifdef HAVE_NETINET_IP_VAR_H
14735 #include <netinet/ip_var.h>
14736 #endif
14737 #ifdef HAVE_NETINET_UDP_H
14738 #include <netinet/udp.h>
14739 #endif
14740 #ifdef HAVE_NETINET_UDP_VAR_H
14741 #include <netinet/udp_var.h>
14742 #endif
14743 "
14744 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14745
14746 cat >>confdefs.h <<_ACEOF
14747 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14748 _ACEOF
14749
14750
14751 fi
14752
14753
14754 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14755 #include <sys/types.h>
14756 #endif
14757 #ifdef HAVE_NET_IF_H
14758 # include <net/if.h>
14759 #endif
14760 "
14761 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14762
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14765 _ACEOF
14766
14767
14768 fi
14769
14770
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14772 $as_echo_n "checking for timezone variable... " >&6; }
14773 if ${ac_cv_have_timezone+:} false; then :
14774   $as_echo_n "(cached) " >&6
14775 else
14776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h.  */
14778 #include <time.h>
14779 int
14780 main ()
14781 {
14782 timezone = 1
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 if ac_fn_c_try_link "$LINENO"; then :
14788   ac_cv_have_timezone="yes"
14789 else
14790   ac_cv_have_timezone="no"
14791 fi
14792 rm -f core conftest.err conftest.$ac_objext \
14793     conftest$ac_exeext conftest.$ac_ext
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14796 $as_echo "$ac_cv_have_timezone" >&6; }
14797 if test "$ac_cv_have_timezone" = "yes"
14798 then
14799
14800 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14801
14802 fi
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14804 $as_echo_n "checking for daylight variable... " >&6; }
14805 if ${ac_cv_have_daylight+:} false; then :
14806   $as_echo_n "(cached) " >&6
14807 else
14808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h.  */
14810 #include <time.h>
14811 int
14812 main ()
14813 {
14814 daylight = 1
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820   ac_cv_have_daylight="yes"
14821 else
14822   ac_cv_have_daylight="no"
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825     conftest$ac_exeext conftest.$ac_ext
14826 fi
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14828 $as_echo "$ac_cv_have_daylight" >&6; }
14829 if test "$ac_cv_have_daylight" = "yes"
14830 then
14831
14832 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14833
14834 fi
14835
14836 ac_save_LIBS="$LIBS"
14837 LIBS="$LIBS -lm"
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14839 $as_echo_n "checking for isinf... " >&6; }
14840 if ${ac_cv_have_isinf+:} false; then :
14841   $as_echo_n "(cached) " >&6
14842 else
14843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h.  */
14845 #include <math.h>
14846 int
14847 main ()
14848 {
14849 float f = 0.0; return isinf(f)
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 if ac_fn_c_try_link "$LINENO"; then :
14855   ac_cv_have_isinf="yes"
14856 else
14857   ac_cv_have_isinf="no"
14858 fi
14859 rm -f core conftest.err conftest.$ac_objext \
14860     conftest$ac_exeext conftest.$ac_ext
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14863 $as_echo "$ac_cv_have_isinf" >&6; }
14864 if test "$ac_cv_have_isinf" = "yes"
14865 then
14866
14867 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14868
14869 fi
14870
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14872 $as_echo_n "checking for isnan... " >&6; }
14873 if ${ac_cv_have_isnan+:} false; then :
14874   $as_echo_n "(cached) " >&6
14875 else
14876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h.  */
14878 #include <math.h>
14879 int
14880 main ()
14881 {
14882 float f = 0.0; return isnan(f)
14883   ;
14884   return 0;
14885 }
14886 _ACEOF
14887 if ac_fn_c_try_link "$LINENO"; then :
14888   ac_cv_have_isnan="yes"
14889 else
14890   ac_cv_have_isnan="no"
14891 fi
14892 rm -f core conftest.err conftest.$ac_objext \
14893     conftest$ac_exeext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14896 $as_echo "$ac_cv_have_isnan" >&6; }
14897 if test "$ac_cv_have_isnan" = "yes"
14898 then
14899
14900 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14901
14902 fi
14903 LIBS="$ac_save_LIBS"
14904
14905
14906 case $host_cpu in
14907   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14908 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14909 if ${ac_cv_cpp_def___i386__+:} false; then :
14910   $as_echo_n "(cached) " >&6
14911 else
14912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h.  */
14914 #ifndef __i386__
14915 yes
14916 #endif
14917 _ACEOF
14918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14919   $EGREP "yes" >/dev/null 2>&1; then :
14920   ac_cv_cpp_def___i386__=yes
14921 else
14922   ac_cv_cpp_def___i386__=no
14923 fi
14924 rm -f conftest*
14925
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14928 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14929 if test $ac_cv_cpp_def___i386__ = yes; then :
14930   CFLAGS="$CFLAGS -D__i386__"
14931   LINTFLAGS="$LINTFLAGS -D__i386__"
14932 fi ;;
14933   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14934 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14935 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14936   $as_echo_n "(cached) " >&6
14937 else
14938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h.  */
14940 #ifndef __x86_64__
14941 yes
14942 #endif
14943 _ACEOF
14944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14945   $EGREP "yes" >/dev/null 2>&1; then :
14946   ac_cv_cpp_def___x86_64__=yes
14947 else
14948   ac_cv_cpp_def___x86_64__=no
14949 fi
14950 rm -f conftest*
14951
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14954 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14955 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14956   CFLAGS="$CFLAGS -D__x86_64__"
14957   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14958 fi ;;
14959   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14960 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14961 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14962   $as_echo_n "(cached) " >&6
14963 else
14964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h.  */
14966 #ifndef __sparc64__
14967 yes
14968 #endif
14969 _ACEOF
14970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14971   $EGREP "yes" >/dev/null 2>&1; then :
14972   ac_cv_cpp_def___sparc64__=yes
14973 else
14974   ac_cv_cpp_def___sparc64__=no
14975 fi
14976 rm -f conftest*
14977
14978 fi
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14980 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14981 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14982   CFLAGS="$CFLAGS -D__sparc64__"
14983   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14984 fi ;;
14985   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14986 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14987 if ${ac_cv_cpp_def___sparc__+:} false; then :
14988   $as_echo_n "(cached) " >&6
14989 else
14990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h.  */
14992 #ifndef __sparc__
14993 yes
14994 #endif
14995 _ACEOF
14996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14997   $EGREP "yes" >/dev/null 2>&1; then :
14998   ac_cv_cpp_def___sparc__=yes
14999 else
15000   ac_cv_cpp_def___sparc__=no
15001 fi
15002 rm -f conftest*
15003
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15006 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15007 if test $ac_cv_cpp_def___sparc__ = yes; then :
15008   CFLAGS="$CFLAGS -D__sparc__"
15009   LINTFLAGS="$LINTFLAGS -D__sparc__"
15010 fi ;;
15011   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15012 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15013 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15014   $as_echo_n "(cached) " >&6
15015 else
15016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h.  */
15018 #ifndef __powerpc64__
15019 yes
15020 #endif
15021 _ACEOF
15022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15023   $EGREP "yes" >/dev/null 2>&1; then :
15024   ac_cv_cpp_def___powerpc64__=yes
15025 else
15026   ac_cv_cpp_def___powerpc64__=no
15027 fi
15028 rm -f conftest*
15029
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15032 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15033 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15034   CFLAGS="$CFLAGS -D__powerpc64__"
15035   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15036 fi ;;
15037   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15038 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15039 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044 #ifndef __powerpc__
15045 yes
15046 #endif
15047 _ACEOF
15048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15049   $EGREP "yes" >/dev/null 2>&1; then :
15050   ac_cv_cpp_def___powerpc__=yes
15051 else
15052   ac_cv_cpp_def___powerpc__=no
15053 fi
15054 rm -f conftest*
15055
15056 fi
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15058 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15059 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15060   CFLAGS="$CFLAGS -D__powerpc__"
15061   LINTFLAGS="$LINTFLAGS -D__powerpc__"
15062 fi ;;
15063   *aarch64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15064 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15065 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15066   $as_echo_n "(cached) " >&6
15067 else
15068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h.  */
15070 #ifndef __aarch64__
15071 yes
15072 #endif
15073 _ACEOF
15074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15075   $EGREP "yes" >/dev/null 2>&1; then :
15076   ac_cv_cpp_def___aarch64__=yes
15077 else
15078   ac_cv_cpp_def___aarch64__=no
15079 fi
15080 rm -f conftest*
15081
15082 fi
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15084 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15085 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15086   CFLAGS="$CFLAGS -D__aarch64__"
15087   LINTFLAGS="$LINTFLAGS -D__aarch64__"
15088 fi ;;
15089   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15090 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15091 if ${ac_cv_cpp_def___arm__+:} false; then :
15092   $as_echo_n "(cached) " >&6
15093 else
15094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h.  */
15096 #ifndef __arm__
15097 yes
15098 #endif
15099 _ACEOF
15100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15101   $EGREP "yes" >/dev/null 2>&1; then :
15102   ac_cv_cpp_def___arm__=yes
15103 else
15104   ac_cv_cpp_def___arm__=no
15105 fi
15106 rm -f conftest*
15107
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15110 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15111 if test $ac_cv_cpp_def___arm__ = yes; then :
15112   CFLAGS="$CFLAGS -D__arm__"
15113   LINTFLAGS="$LINTFLAGS -D__arm__"
15114 fi ;;
15115 esac
15116
15117 case $host_vendor in
15118   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15119 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15120 if ${ac_cv_cpp_def___sun__+:} false; then :
15121   $as_echo_n "(cached) " >&6
15122 else
15123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h.  */
15125 #ifndef __sun__
15126 yes
15127 #endif
15128 _ACEOF
15129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15130   $EGREP "yes" >/dev/null 2>&1; then :
15131   ac_cv_cpp_def___sun__=yes
15132 else
15133   ac_cv_cpp_def___sun__=no
15134 fi
15135 rm -f conftest*
15136
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15139 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15140 if test $ac_cv_cpp_def___sun__ = yes; then :
15141   CFLAGS="$CFLAGS -D__sun__"
15142   LINTFLAGS="$LINTFLAGS -D__sun__"
15143 fi ;;
15144 esac
15145
15146
15147
15148
15149
15150 ac_config_commands="$ac_config_commands include/stamp-h"
15151
15152
15153 ALL_MAKEFILE_DEPENDS="
15154 # Rules automatically generated by configure
15155
15156 .INIT: Makefile
15157 .MAKEFILEDEPS:
15158 all: Makefile
15159 Makefile: Makefile.in Make.vars.in Make.rules config.status
15160         @./config.status Make.tmp Makefile"
15161
15162 ALL_POT_FILES=""
15163 ALL_TEST_RESOURCES=""
15164
15165
15166 wine_fn_append_file ()
15167 {
15168     as_fn_append $1 " \\$as_nl  $2"
15169 }
15170
15171 wine_fn_append_rule ()
15172 {
15173     as_fn_append $1 "$as_nl$2"
15174 }
15175
15176 wine_fn_has_flag ()
15177 {
15178     expr ",$2," : ".*,$1,.*" >/dev/null
15179 }
15180
15181 wine_fn_all_dir_rules ()
15182 {
15183     ac_dir=$1
15184     ac_alldeps=$2
15185     ac_makedep="\$(MAKEDEP)"
15186     ac_input=Make.vars.in:$ac_dir/Makefile.in
15187     if test $ac_dir != tools
15188     then
15189                 ac_alldeps="$2 $ac_makedep"
15190     else
15191         ac_alldeps="$2 include/config.h"
15192     fi
15193     case $2 in
15194       *.in) ac_input=$ac_input:$2 ;;
15195       *) ac_makedep="$2 $ac_makedep" ;;
15196     esac
15197
15198     wine_fn_append_file ALL_DIRS $ac_dir
15199     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15200 "__clean__: $ac_dir/__clean__
15201 .PHONY: $ac_dir/__clean__
15202 $ac_dir/__clean__: $ac_dir/Makefile
15203         @cd $ac_dir && \$(MAKE) clean
15204         \$(RM) $ac_dir/Makefile
15205 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15206         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15207 depend: $ac_dir/__depend__
15208 .PHONY: $ac_dir/__depend__
15209 $ac_dir/__depend__: $ac_makedep dummy
15210         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15211 }
15212
15213 wine_fn_pot_rules ()
15214 {
15215     ac_dir=$1
15216     ac_flags=$2
15217
15218     test "x$with_gettextpo" = xyes || return
15219
15220     if wine_fn_has_flag mc $ac_flags
15221     then
15222         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15223         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15224 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15225         @cd $ac_dir && \$(MAKE) msg.pot
15226 $ac_dir/msg.pot: tools/wmc include"
15227     fi
15228     if wine_fn_has_flag po $ac_flags
15229     then
15230         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15231         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15232 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15233         @cd $ac_dir && \$(MAKE) rsrc.pot
15234 $ac_dir/rsrc.pot: tools/wrc include"
15235     fi
15236 }
15237
15238 wine_fn_config_makefile ()
15239 {
15240     ac_dir=$1
15241     ac_enable=$2
15242     ac_flags=$3
15243     ac_rules=$4
15244     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15245   return 0
15246 fi
15247
15248     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15249     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15250 "all: $ac_dir
15251 .PHONY: $ac_dir
15252 $ac_dir: $ac_dir/Makefile dummy
15253         @cd $ac_dir && \$(MAKE)"
15254
15255     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15256
15257     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15258 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15259 $ac_dir/__install__:: $ac_dir
15260         @cd $ac_dir && \$(MAKE) install
15261 $ac_dir/__uninstall__:: $ac_dir/Makefile
15262         @cd $ac_dir && \$(MAKE) uninstall
15263 install:: $ac_dir/__install__
15264 __uninstall__: $ac_dir/__uninstall__"
15265
15266     if wine_fn_has_flag install-lib $ac_flags
15267     then
15268         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15269 ".PHONY: $ac_dir/__install-lib__
15270 $ac_dir/__install-lib__:: $ac_dir
15271         @cd $ac_dir && \$(MAKE) install-lib
15272 install-lib:: $ac_dir/__install-lib__"
15273     fi
15274
15275     if wine_fn_has_flag install-dev $ac_flags
15276     then
15277         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15278 ".PHONY: $ac_dir/__install-dev
15279 $ac_dir/__install-dev__:: $ac_dir
15280         @cd $ac_dir && \$(MAKE) install-dev
15281 install-dev:: $ac_dir/__install-dev__"
15282     fi
15283 }
15284
15285 wine_fn_config_lib ()
15286 {
15287     ac_name=$1
15288     ac_flags=$2
15289     ac_dir=dlls/$ac_name
15290     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15291
15292     if wine_fn_has_flag install-dev $ac_flags
15293     then :
15294     else
15295         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15296 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15297 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15298         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15299 $ac_dir/__uninstall__::
15300         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15301 install install-dev:: $ac_dir/__install__
15302 __uninstall__: $ac_dir/__uninstall__"
15303     fi
15304
15305     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15306     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15307 }
15308
15309 wine_fn_config_dll ()
15310 {
15311     ac_name=$1
15312     ac_dir=dlls/$ac_name
15313     ac_enable=$2
15314     ac_flags=$3
15315     ac_implib=${4:-$ac_name}
15316     ac_file=$ac_dir/lib$ac_implib
15317     ac_dll=$ac_name
15318     ac_deps="tools/widl tools/winebuild tools/winegcc include"
15319     ac_implibflags=""
15320
15321     case $ac_name in
15322       *16) ac_implibflags=" -m16" ;;
15323       *.*) ;;
15324       *)   ac_dll=$ac_dll.dll ;;
15325     esac
15326
15327     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15328
15329     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15330                 test "$ac_enable" != enable_win16 || return 0
15331                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15332 else
15333   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15334 "$ac_dir: __builddeps__
15335 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15336         @cd $ac_dir && \$(MAKE) \$@"
15337
15338         if wine_fn_has_flag install-lib $ac_flags
15339         then :
15340         else
15341             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15342 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15343 install install-lib:: $ac_dir/__install-lib__
15344 __uninstall__: $ac_dir/__uninstall__"
15345             if test -n "$DLLEXT"
15346             then
15347                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15348 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15349         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15350         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15351 $ac_dir/__uninstall__::
15352         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15353             else
15354                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15355 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15356         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15357 $ac_dir/__uninstall__::
15358         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15359             fi
15360         fi
15361
15362         wine_fn_pot_rules $ac_dir $ac_flags
15363 fi
15364
15365     if wine_fn_has_flag staticimplib $ac_flags
15366     then
15367         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15368 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15369 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15370 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15371         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15372 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15373         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15374 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15375 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15376         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15377 $ac_dir/__uninstall__::
15378         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15379 install install-dev:: $ac_dir/__install-dev__
15380 __uninstall__: $ac_dir/__uninstall__"
15381
15382         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15383         then
15384             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15385 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15386         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15387 $ac_dir/__uninstall__::
15388         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15389         fi
15390
15391         if test "x$CROSSTEST_DISABLE" = x
15392         then
15393             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15394 "__builddeps__: $ac_file.cross.a
15395 $ac_file.cross.a: $ac_dir/Makefile dummy
15396         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15397         fi
15398
15399     elif wine_fn_has_flag implib $ac_flags
15400     then
15401         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15402 "__builddeps__: $ac_file.$IMPLIBEXT
15403 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15404         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15405 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15406         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15407 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15408 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15409         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15410 $ac_dir/__uninstall__::
15411         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15412 install install-dev:: $ac_dir/__install-dev__
15413 __uninstall__: $ac_dir/__uninstall__"
15414         if test "x$CROSSTEST_DISABLE" = x
15415         then
15416             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15417 "__builddeps__: $ac_file.cross.a
15418 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15419         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15420         fi
15421
15422         if test "$ac_name" != "$ac_implib"
15423         then
15424             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15425 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15426 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15427         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15428 clean::
15429         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15430             if test "x$CROSSTEST_DISABLE" = x
15431             then
15432                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15433 "__builddeps__: dlls/lib$ac_implib.cross.a
15434 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15435         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15436             fi
15437         fi
15438     fi
15439 }
15440
15441 wine_fn_config_program ()
15442 {
15443     ac_name=$1
15444     ac_dir=programs/$ac_name
15445     ac_enable=$2
15446     ac_flags=$3
15447     ac_program=$ac_name
15448
15449     case $ac_name in
15450       *.*) ;;
15451       *)   ac_program=$ac_program.exe ;;
15452     esac
15453
15454     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15455
15456     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15457
15458 else
15459   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15460 "$ac_dir: __builddeps__"
15461
15462     wine_fn_pot_rules $ac_dir $ac_flags
15463
15464     wine_fn_has_flag install $ac_flags || return
15465     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15466 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15467 install install-lib:: $ac_dir/__install__
15468 __uninstall__: $ac_dir/__uninstall__"
15469
15470     if test -n "$DLLEXT"
15471     then
15472         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15473 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15474         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15475         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15476 $ac_dir/__uninstall__::
15477         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15478
15479         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15480         then
15481             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15482 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15483         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15484 $ac_dir/__uninstall__::
15485         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15486         fi
15487     else
15488         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15489 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15490         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15491 $ac_dir/__uninstall__::
15492         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15493     fi
15494
15495     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15496     then
15497         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15498 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15499         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15500 $ac_dir/__uninstall__::
15501         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15502     fi
15503 fi
15504 }
15505
15506 wine_fn_config_test ()
15507 {
15508     ac_dir=$1
15509     ac_name=$2
15510     ac_flags=$3
15511     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15512     wine_fn_all_dir_rules $ac_dir Maketest.rules
15513
15514     if test "x$enable_tests" = xno; then :
15515
15516 else
15517   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15518 "all: $ac_dir
15519 .PHONY: $ac_dir
15520 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15521         @cd $ac_dir && \$(MAKE)
15522 programs/winetest: $ac_dir
15523 check test: $ac_dir/__test__
15524 .PHONY: $ac_dir/__test__
15525 $ac_dir/__test__: dummy
15526         @cd $ac_dir && \$(MAKE) test
15527 testclean::
15528         \$(RM) $ac_dir/*.ok"
15529
15530         if test "x$CROSSTEST_DISABLE" = x
15531         then
15532             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15533 "crosstest: $ac_dir/__crosstest__
15534 .PHONY: $ac_dir/__crosstest__
15535 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15536         @cd $ac_dir && \$(MAKE) crosstest"
15537         fi
15538 fi
15539 }
15540
15541 wine_fn_config_tool ()
15542 {
15543     ac_dir=$1
15544     ac_flags=$2
15545     if test "x$enable_tools" = xno; then :
15546   return 0
15547 fi
15548
15549     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15550
15551     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15552     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15553     case $ac_dir in
15554       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15555     esac
15556 }
15557
15558 wine_fn_config_makerules ()
15559 {
15560     ac_rules=$1
15561     ac_deps=$2
15562     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15563 "$ac_rules: $ac_rules.in $ac_deps config.status
15564         @./config.status $ac_rules
15565 distclean::
15566         \$(RM) $ac_rules"
15567 }
15568
15569 wine_fn_config_symlink ()
15570 {
15571     ac_link=$1
15572     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15573 "$ac_link:
15574         @./config.status $ac_link
15575 distclean::
15576         \$(RM) $ac_link"
15577 }
15578
15579 if test "x$CROSSTEST_DISABLE" != x
15580 then
15581     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15582 "crosstest:
15583         @echo \"crosstest is not supported (mingw not installed?)\" && false"
15584 fi
15585 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15586 wine_fn_config_symlink dlls/shell32/AUTHORS
15587 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15588 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15589 if test "x$enable_fonts" != xno; then
15590 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15591 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15592 fi
15593 if test "x$enable_fonts" != xno; then
15594 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15595 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15596 fi
15597 if test "x$enable_fonts" != xno; then
15598 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15599 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15600 fi
15601 if test "x$enable_fonts" != xno; then
15602 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15603 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15604 fi
15605 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15606 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15607 if test "x$enable_tools" != xno; then
15608 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15609 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15610 fi
15611 ac_config_links="$ac_config_links wine:tools/winewrapper"
15612 wine_fn_config_symlink wine
15613 if test "x$enable_win64" != xno; then
15614 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15615 wine_fn_config_symlink wine64
15616 fi
15617
15618 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15619
15620 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15621
15622 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15623
15624 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15625
15626 ac_config_commands="$ac_config_commands dlls/user32/resources"
15627
15628 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15629
15630 ac_config_commands="$ac_config_commands include/wine"
15631
15632
15633 wine_fn_config_makerules Make.rules
15634 MAKE_RULES=Make.rules
15635 ac_config_files="$ac_config_files Make.rules"
15636
15637 wine_fn_config_makerules Maketest.rules Make.rules
15638 MAKE_TEST_RULES=Maketest.rules
15639 ac_config_files="$ac_config_files Maketest.rules"
15640
15641 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15642 MAKE_DLL_RULES=dlls/Makedll.rules
15643 ac_config_files="$ac_config_files dlls/Makedll.rules"
15644
15645 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15646 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15647 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15648
15649 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15650 MAKE_PROG_RULES=programs/Makeprog.rules
15651 ac_config_files="$ac_config_files programs/Makeprog.rules"
15652
15653
15654 wine_fn_config_dll acledit enable_acledit
15655 wine_fn_config_dll aclui enable_aclui implib
15656 wine_fn_config_dll activeds enable_activeds implib
15657 wine_fn_config_dll actxprxy enable_actxprxy
15658 wine_fn_config_lib adsiid
15659 wine_fn_config_dll advapi32 enable_advapi32 implib
15660 wine_fn_config_test dlls/advapi32/tests advapi32_test
15661 wine_fn_config_dll advpack enable_advpack implib
15662 wine_fn_config_test dlls/advpack/tests advpack_test
15663 wine_fn_config_dll amstream enable_amstream
15664 wine_fn_config_test dlls/amstream/tests amstream_test
15665 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15666 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15667 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15668 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15669 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15670 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15671 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15672 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15673 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15674 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15675 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15676 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15677 wine_fn_config_dll apphelp enable_apphelp
15678 wine_fn_config_test dlls/apphelp/tests apphelp_test
15679 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15680 wine_fn_config_dll atl enable_atl implib
15681 wine_fn_config_test dlls/atl/tests atl_test
15682 wine_fn_config_dll atl100 enable_atl100 implib
15683 wine_fn_config_test dlls/atl100/tests atl100_test
15684 wine_fn_config_dll atl80 enable_atl80 implib
15685 wine_fn_config_test dlls/atl80/tests atl80_test
15686 wine_fn_config_dll authz enable_authz
15687 wine_fn_config_dll avicap32 enable_avicap32 implib
15688 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15689 wine_fn_config_test dlls/avifil32/tests avifil32_test
15690 wine_fn_config_dll avifile.dll16 enable_win16
15691 wine_fn_config_dll avrt enable_avrt implib
15692 wine_fn_config_dll bcrypt enable_bcrypt
15693 wine_fn_config_dll browseui enable_browseui po
15694 wine_fn_config_test dlls/browseui/tests browseui_test
15695 wine_fn_config_dll cabinet enable_cabinet implib
15696 wine_fn_config_test dlls/cabinet/tests cabinet_test
15697 wine_fn_config_dll capi2032 enable_capi2032 implib
15698 wine_fn_config_dll cards enable_cards implib
15699 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15700 wine_fn_config_dll clusapi enable_clusapi implib
15701 wine_fn_config_dll comcat enable_comcat
15702 wine_fn_config_test dlls/comcat/tests comcat_test
15703 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15704 wine_fn_config_test dlls/comctl32/tests comctl32_test
15705 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15706 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15707 wine_fn_config_dll comm.drv16 enable_win16
15708 wine_fn_config_dll commdlg.dll16 enable_win16
15709 wine_fn_config_dll compobj.dll16 enable_win16
15710 wine_fn_config_dll compstui enable_compstui implib
15711 wine_fn_config_dll credui enable_credui implib,po
15712 wine_fn_config_test dlls/credui/tests credui_test
15713 wine_fn_config_dll crtdll enable_crtdll implib
15714 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15715 wine_fn_config_test dlls/crypt32/tests crypt32_test
15716 wine_fn_config_dll cryptdlg enable_cryptdlg po
15717 wine_fn_config_dll cryptdll enable_cryptdll implib
15718 wine_fn_config_dll cryptnet enable_cryptnet implib
15719 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15720 wine_fn_config_dll cryptui enable_cryptui implib,po
15721 wine_fn_config_test dlls/cryptui/tests cryptui_test
15722 wine_fn_config_dll ctapi32 enable_ctapi32
15723 wine_fn_config_dll ctl3d.dll16 enable_win16
15724 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15725 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15726 wine_fn_config_dll d3d10 enable_d3d10 implib
15727 wine_fn_config_test dlls/d3d10/tests d3d10_test
15728 wine_fn_config_dll d3d10core enable_d3d10core implib
15729 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15730 wine_fn_config_dll d3d11 enable_d3d11
15731 wine_fn_config_dll d3d8 enable_d3d8 implib
15732 wine_fn_config_test dlls/d3d8/tests d3d8_test
15733 wine_fn_config_dll d3d9 enable_d3d9 implib
15734 wine_fn_config_test dlls/d3d9/tests d3d9_test
15735 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15736 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15737 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15738 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15739 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15740 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15741 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15742 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15743 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15744 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15745 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15746 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15747 wine_fn_config_dll d3dim enable_d3dim implib
15748 wine_fn_config_dll d3drm enable_d3drm implib
15749 wine_fn_config_test dlls/d3drm/tests d3drm_test
15750 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15751 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15752 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15753 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15754 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15755 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15756 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15757 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15758 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15759 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15760 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15761 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15762 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15763 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15764 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15765 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15766 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15767 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15768 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15769 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15770 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15771 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15772 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15773 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15774 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15775 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15776 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15777 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15778 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15779 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15780 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15781 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15782 wine_fn_config_dll d3dxof enable_d3dxof implib
15783 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15784 wine_fn_config_dll dbgeng enable_dbgeng implib
15785 wine_fn_config_dll dbghelp enable_dbghelp implib
15786 wine_fn_config_dll dciman32 enable_dciman32 implib
15787 wine_fn_config_dll ddeml.dll16 enable_win16
15788 wine_fn_config_dll ddraw enable_ddraw implib
15789 wine_fn_config_test dlls/ddraw/tests ddraw_test
15790 wine_fn_config_dll ddrawex enable_ddrawex
15791 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15792 wine_fn_config_dll devenum enable_devenum po
15793 wine_fn_config_test dlls/devenum/tests devenum_test
15794 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15795 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15796 wine_fn_config_test dlls/dinput/tests dinput_test
15797 wine_fn_config_dll dinput8 enable_dinput8 implib
15798 wine_fn_config_test dlls/dinput8/tests dinput8_test
15799 wine_fn_config_dll dispdib.dll16 enable_win16
15800 wine_fn_config_dll dispex enable_dispex
15801 wine_fn_config_test dlls/dispex/tests dispex_test
15802 wine_fn_config_dll display.drv16 enable_win16
15803 wine_fn_config_dll dmband enable_dmband
15804 wine_fn_config_test dlls/dmband/tests dmband_test
15805 wine_fn_config_dll dmcompos enable_dmcompos
15806 wine_fn_config_dll dmime enable_dmime
15807 wine_fn_config_test dlls/dmime/tests dmime_test
15808 wine_fn_config_dll dmloader enable_dmloader
15809 wine_fn_config_test dlls/dmloader/tests dmloader_test
15810 wine_fn_config_dll dmscript enable_dmscript
15811 wine_fn_config_dll dmstyle enable_dmstyle
15812 wine_fn_config_dll dmsynth enable_dmsynth
15813 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15814 wine_fn_config_dll dmusic enable_dmusic
15815 wine_fn_config_test dlls/dmusic/tests dmusic_test
15816 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15817 wine_fn_config_dll dnsapi enable_dnsapi implib
15818 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15819 wine_fn_config_dll dplay enable_dplay implib
15820 wine_fn_config_dll dplayx enable_dplayx implib
15821 wine_fn_config_test dlls/dplayx/tests dplayx_test
15822 wine_fn_config_dll dpnaddr enable_dpnaddr
15823 wine_fn_config_dll dpnet enable_dpnet implib
15824 wine_fn_config_test dlls/dpnet/tests dpnet_test
15825 wine_fn_config_dll dpnhpast enable_dpnhpast
15826 wine_fn_config_dll dpnlobby enable_dpnlobby
15827 wine_fn_config_dll dpwsockx enable_dpwsockx
15828 wine_fn_config_dll drmclien enable_drmclien
15829 wine_fn_config_dll dsound enable_dsound implib
15830 wine_fn_config_test dlls/dsound/tests dsound_test
15831 wine_fn_config_dll dssenh enable_dssenh
15832 wine_fn_config_test dlls/dssenh/tests dssenh_test
15833 wine_fn_config_dll dswave enable_dswave
15834 wine_fn_config_dll dwmapi enable_dwmapi implib
15835 wine_fn_config_dll dwrite enable_dwrite implib
15836 wine_fn_config_test dlls/dwrite/tests dwrite_test
15837 wine_fn_config_dll dxdiagn enable_dxdiagn po
15838 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15839 wine_fn_config_lib dxerr8
15840 wine_fn_config_lib dxerr9
15841 wine_fn_config_dll dxgi enable_dxgi implib
15842 wine_fn_config_test dlls/dxgi/tests dxgi_test
15843 wine_fn_config_lib dxguid
15844 wine_fn_config_dll explorerframe enable_explorerframe
15845 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15846 wine_fn_config_dll faultrep enable_faultrep implib
15847 wine_fn_config_test dlls/faultrep/tests faultrep_test
15848 wine_fn_config_dll fltlib enable_fltlib
15849 wine_fn_config_dll fusion enable_fusion
15850 wine_fn_config_test dlls/fusion/tests fusion_test
15851 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15852 wine_fn_config_dll gameux enable_gameux
15853 wine_fn_config_test dlls/gameux/tests gameux_test
15854 wine_fn_config_dll gdi.exe16 enable_win16
15855 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15856 wine_fn_config_test dlls/gdi32/tests gdi32_test
15857 wine_fn_config_dll gdiplus enable_gdiplus implib
15858 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15859 wine_fn_config_dll glu32 enable_glu32 implib
15860 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15861 wine_fn_config_dll gpkcsp enable_gpkcsp
15862 wine_fn_config_dll hal enable_hal
15863 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15864 wine_fn_config_dll hid enable_hid implib
15865 wine_fn_config_dll hlink enable_hlink implib
15866 wine_fn_config_test dlls/hlink/tests hlink_test
15867 wine_fn_config_dll hnetcfg enable_hnetcfg
15868 wine_fn_config_dll httpapi enable_httpapi
15869 wine_fn_config_dll iccvid enable_iccvid po
15870 wine_fn_config_dll icmp enable_icmp
15871 wine_fn_config_dll ieframe enable_ieframe implib,po
15872 wine_fn_config_test dlls/ieframe/tests ieframe_test
15873 wine_fn_config_dll ifsmgr.vxd enable_win16
15874 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15875 wine_fn_config_dll imagehlp enable_imagehlp implib
15876 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15877 wine_fn_config_dll imm.dll16 enable_win16
15878 wine_fn_config_dll imm32 enable_imm32 implib
15879 wine_fn_config_test dlls/imm32/tests imm32_test
15880 wine_fn_config_dll inetcomm enable_inetcomm implib
15881 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15882 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15883 wine_fn_config_dll inetmib1 enable_inetmib1
15884 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15885 wine_fn_config_dll infosoft enable_infosoft
15886 wine_fn_config_test dlls/infosoft/tests infosoft_test
15887 wine_fn_config_dll initpki enable_initpki
15888 wine_fn_config_dll inkobj enable_inkobj
15889 wine_fn_config_dll inseng enable_inseng
15890 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15891 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15892 wine_fn_config_dll itircl enable_itircl
15893 wine_fn_config_dll itss enable_itss
15894 wine_fn_config_test dlls/itss/tests itss_test
15895 wine_fn_config_dll joy.cpl enable_joy_cpl po
15896 wine_fn_config_dll jscript enable_jscript po
15897 wine_fn_config_test dlls/jscript/tests jscript_test
15898 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15899 wine_fn_config_test dlls/kernel32/tests kernel32_test
15900 wine_fn_config_dll keyboard.drv16 enable_win16
15901 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15902 wine_fn_config_dll ktmw32 enable_ktmw32
15903 wine_fn_config_dll loadperf enable_loadperf implib
15904 wine_fn_config_dll localspl enable_localspl po
15905 wine_fn_config_test dlls/localspl/tests localspl_test
15906 wine_fn_config_dll localui enable_localui po
15907 wine_fn_config_test dlls/localui/tests localui_test
15908 wine_fn_config_dll lz32 enable_lz32 implib
15909 wine_fn_config_test dlls/lz32/tests lz32_test
15910 wine_fn_config_dll lzexpand.dll16 enable_win16
15911 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15912 wine_fn_config_test dlls/mapi32/tests mapi32_test
15913 wine_fn_config_dll mapistub enable_mapistub
15914 wine_fn_config_dll mciavi32 enable_mciavi32
15915 wine_fn_config_dll mcicda enable_mcicda
15916 wine_fn_config_dll mciqtz32 enable_mciqtz32
15917 wine_fn_config_dll mciseq enable_mciseq
15918 wine_fn_config_dll mciwave enable_mciwave
15919 wine_fn_config_dll mgmtapi enable_mgmtapi
15920 wine_fn_config_dll midimap enable_midimap
15921 wine_fn_config_dll mlang enable_mlang implib
15922 wine_fn_config_test dlls/mlang/tests mlang_test
15923 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15924 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15925 wine_fn_config_dll mmdevapi enable_mmdevapi
15926 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15927 wine_fn_config_dll mmdevldr.vxd enable_win16
15928 wine_fn_config_dll mmsystem.dll16 enable_win16
15929 wine_fn_config_dll monodebg.vxd enable_win16
15930 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15931 wine_fn_config_dll mouse.drv16 enable_win16
15932 wine_fn_config_dll mpr enable_mpr implib,po
15933 wine_fn_config_test dlls/mpr/tests mpr_test
15934 wine_fn_config_dll mprapi enable_mprapi implib
15935 wine_fn_config_dll msacm.dll16 enable_win16
15936 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15937 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15938 wine_fn_config_test dlls/msacm32/tests msacm32_test
15939 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15940 wine_fn_config_dll mscat32 enable_mscat32
15941 wine_fn_config_dll mscms enable_mscms implib
15942 wine_fn_config_test dlls/mscms/tests mscms_test
15943 wine_fn_config_dll mscoree enable_mscoree
15944 wine_fn_config_test dlls/mscoree/tests mscoree_test
15945 wine_fn_config_dll msctf enable_msctf
15946 wine_fn_config_test dlls/msctf/tests msctf_test
15947 wine_fn_config_dll msdaps enable_msdaps
15948 wine_fn_config_dll msdmo enable_msdmo implib
15949 wine_fn_config_dll msftedit enable_msftedit
15950 wine_fn_config_dll msg711.acm enable_msg711_acm
15951 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15952 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15953 wine_fn_config_dll mshtml enable_mshtml implib,po
15954 wine_fn_config_test dlls/mshtml/tests mshtml_test
15955 wine_fn_config_dll msi enable_msi implib,po
15956 wine_fn_config_test dlls/msi/tests msi_test
15957 wine_fn_config_dll msident enable_msident
15958 wine_fn_config_dll msimg32 enable_msimg32 implib
15959 wine_fn_config_dll msimsg enable_msimsg
15960 wine_fn_config_dll msimtf enable_msimtf
15961 wine_fn_config_dll msisip enable_msisip
15962 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15963 wine_fn_config_dll msls31 enable_msls31
15964 wine_fn_config_dll msnet32 enable_msnet32
15965 wine_fn_config_dll mspatcha enable_mspatcha
15966 wine_fn_config_dll msrle32 enable_msrle32 po
15967 wine_fn_config_dll mssign32 enable_mssign32
15968 wine_fn_config_dll mssip32 enable_mssip32
15969 wine_fn_config_dll mstask enable_mstask
15970 wine_fn_config_test dlls/mstask/tests mstask_test
15971 wine_fn_config_dll msvcirt enable_msvcirt
15972 wine_fn_config_dll msvcm80 enable_msvcm80
15973 wine_fn_config_dll msvcm90 enable_msvcm90
15974 wine_fn_config_dll msvcp100 enable_msvcp100
15975 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15976 wine_fn_config_dll msvcp60 enable_msvcp60
15977 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15978 wine_fn_config_dll msvcp70 enable_msvcp70
15979 wine_fn_config_dll msvcp71 enable_msvcp71
15980 wine_fn_config_dll msvcp80 enable_msvcp80
15981 wine_fn_config_dll msvcp90 enable_msvcp90
15982 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15983 wine_fn_config_dll msvcr100 enable_msvcr100
15984 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
15985 wine_fn_config_dll msvcr110 enable_msvcr110
15986 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15987 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15988 wine_fn_config_dll msvcr80 enable_msvcr80
15989 wine_fn_config_dll msvcr90 enable_msvcr90
15990 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15991 wine_fn_config_dll msvcrt enable_msvcrt implib
15992 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15993 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15994 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15995 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15996 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15997 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15998 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15999 wine_fn_config_dll msvidc32 enable_msvidc32 po
16000 wine_fn_config_dll msvideo.dll16 enable_win16
16001 wine_fn_config_dll mswsock enable_mswsock implib
16002 wine_fn_config_dll msxml enable_msxml
16003 wine_fn_config_dll msxml2 enable_msxml2
16004 wine_fn_config_dll msxml3 enable_msxml3
16005 wine_fn_config_test dlls/msxml3/tests msxml3_test
16006 wine_fn_config_dll msxml4 enable_msxml4
16007 wine_fn_config_dll msxml6 enable_msxml6
16008 wine_fn_config_dll nddeapi enable_nddeapi implib
16009 wine_fn_config_dll netapi32 enable_netapi32 implib
16010 wine_fn_config_test dlls/netapi32/tests netapi32_test
16011 wine_fn_config_dll newdev enable_newdev implib
16012 wine_fn_config_dll normaliz enable_normaliz implib
16013 wine_fn_config_dll npmshtml enable_npmshtml
16014 wine_fn_config_dll ntdll enable_ntdll implib
16015 wine_fn_config_test dlls/ntdll/tests ntdll_test
16016 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16017 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16018 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16019 wine_fn_config_dll ntprint enable_ntprint
16020 wine_fn_config_test dlls/ntprint/tests ntprint_test
16021 wine_fn_config_dll objsel enable_objsel
16022 wine_fn_config_dll odbc32 enable_odbc32 implib
16023 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16024 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16025 wine_fn_config_dll odbccu32 enable_odbccu32
16026 wine_fn_config_dll ole2.dll16 enable_win16
16027 wine_fn_config_dll ole2conv.dll16 enable_win16
16028 wine_fn_config_dll ole2disp.dll16 enable_win16
16029 wine_fn_config_dll ole2nls.dll16 enable_win16
16030 wine_fn_config_dll ole2prox.dll16 enable_win16
16031 wine_fn_config_dll ole2thk.dll16 enable_win16
16032 wine_fn_config_dll ole32 enable_ole32 implib
16033 wine_fn_config_test dlls/ole32/tests ole32_test
16034 wine_fn_config_dll oleacc enable_oleacc implib,po
16035 wine_fn_config_test dlls/oleacc/tests oleacc_test
16036 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16037 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16038 wine_fn_config_dll olecli.dll16 enable_win16
16039 wine_fn_config_dll olecli32 enable_olecli32 implib
16040 wine_fn_config_dll oledb32 enable_oledb32
16041 wine_fn_config_test dlls/oledb32/tests oledb32_test
16042 wine_fn_config_dll oledlg enable_oledlg implib,po
16043 wine_fn_config_dll olepro32 enable_olepro32 implib
16044 wine_fn_config_dll olesvr.dll16 enable_win16
16045 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16046 wine_fn_config_dll olethk32 enable_olethk32
16047 wine_fn_config_dll openal32 enable_openal32
16048 wine_fn_config_dll opencl enable_opencl
16049 wine_fn_config_dll opengl32 enable_opengl32 implib
16050 wine_fn_config_test dlls/opengl32/tests opengl32_test
16051 wine_fn_config_dll pdh enable_pdh implib
16052 wine_fn_config_test dlls/pdh/tests pdh_test
16053 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16054 wine_fn_config_dll pidgen enable_pidgen
16055 wine_fn_config_dll powrprof enable_powrprof implib
16056 wine_fn_config_dll printui enable_printui
16057 wine_fn_config_dll propsys enable_propsys implib
16058 wine_fn_config_test dlls/propsys/tests propsys_test
16059 wine_fn_config_dll psapi enable_psapi implib
16060 wine_fn_config_test dlls/psapi/tests psapi_test
16061 wine_fn_config_dll pstorec enable_pstorec
16062 wine_fn_config_dll qcap enable_qcap
16063 wine_fn_config_dll qedit enable_qedit
16064 wine_fn_config_test dlls/qedit/tests qedit_test
16065 wine_fn_config_dll qmgr enable_qmgr
16066 wine_fn_config_test dlls/qmgr/tests qmgr_test
16067 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16068 wine_fn_config_dll quartz enable_quartz implib
16069 wine_fn_config_test dlls/quartz/tests quartz_test
16070 wine_fn_config_dll query enable_query
16071 wine_fn_config_dll rasapi16.dll16 enable_win16
16072 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16073 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16074 wine_fn_config_dll rasdlg enable_rasdlg implib
16075 wine_fn_config_dll regapi enable_regapi
16076 wine_fn_config_dll resutils enable_resutils implib
16077 wine_fn_config_dll riched20 enable_riched20 implib
16078 wine_fn_config_test dlls/riched20/tests riched20_test
16079 wine_fn_config_dll riched32 enable_riched32
16080 wine_fn_config_test dlls/riched32/tests riched32_test
16081 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16082 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16083 wine_fn_config_dll rsabase enable_rsabase
16084 wine_fn_config_dll rsaenh enable_rsaenh implib
16085 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16086 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16087 wine_fn_config_dll rtutils enable_rtutils implib
16088 wine_fn_config_dll samlib enable_samlib
16089 wine_fn_config_dll sane.ds enable_sane_ds po
16090 wine_fn_config_dll scarddlg enable_scarddlg
16091 wine_fn_config_dll sccbase enable_sccbase
16092 wine_fn_config_dll schannel enable_schannel
16093 wine_fn_config_test dlls/schannel/tests schannel_test
16094 wine_fn_config_dll scrrun enable_scrrun
16095 wine_fn_config_test dlls/scrrun/tests scrrun_test
16096 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16097 wine_fn_config_dll secur32 enable_secur32 implib
16098 wine_fn_config_test dlls/secur32/tests secur32_test
16099 wine_fn_config_dll security enable_security
16100 wine_fn_config_dll sensapi enable_sensapi implib
16101 wine_fn_config_dll serialui enable_serialui implib,po
16102 wine_fn_config_test dlls/serialui/tests serialui_test
16103 wine_fn_config_dll setupapi enable_setupapi implib,po
16104 wine_fn_config_test dlls/setupapi/tests setupapi_test
16105 wine_fn_config_dll setupx.dll16 enable_win16
16106 wine_fn_config_dll sfc enable_sfc implib
16107 wine_fn_config_dll sfc_os enable_sfc_os implib
16108 wine_fn_config_dll shdoclc enable_shdoclc po
16109 wine_fn_config_dll shdocvw enable_shdocvw implib
16110 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16111 wine_fn_config_dll shell.dll16 enable_win16
16112 wine_fn_config_dll shell32 enable_shell32 implib,po
16113 wine_fn_config_test dlls/shell32/tests shell32_test
16114 wine_fn_config_dll shfolder enable_shfolder implib
16115 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16116 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16117 wine_fn_config_dll slbcsp enable_slbcsp
16118 wine_fn_config_dll slc enable_slc implib
16119 wine_fn_config_dll snmpapi enable_snmpapi implib
16120 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16121 wine_fn_config_dll softpub enable_softpub
16122 wine_fn_config_dll sound.drv16 enable_win16
16123 wine_fn_config_dll spoolss enable_spoolss implib
16124 wine_fn_config_test dlls/spoolss/tests spoolss_test
16125 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16126 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16127 wine_fn_config_dll sti enable_sti implib
16128 wine_fn_config_test dlls/sti/tests sti_test
16129 wine_fn_config_dll storage.dll16 enable_win16
16130 wine_fn_config_dll stress.dll16 enable_win16
16131 wine_fn_config_lib strmbase
16132 wine_fn_config_lib strmiids
16133 wine_fn_config_dll svrapi enable_svrapi
16134 wine_fn_config_dll sxs enable_sxs implib
16135 wine_fn_config_test dlls/sxs/tests sxs_test
16136 wine_fn_config_dll system.drv16 enable_win16
16137 wine_fn_config_dll t2embed enable_t2embed
16138 wine_fn_config_dll tapi32 enable_tapi32 implib
16139 wine_fn_config_dll toolhelp.dll16 enable_win16
16140 wine_fn_config_dll traffic enable_traffic
16141 wine_fn_config_dll twain.dll16 enable_win16
16142 wine_fn_config_dll twain_32 enable_twain_32
16143 wine_fn_config_test dlls/twain_32/tests twain_32_test
16144 wine_fn_config_dll typelib.dll16 enable_win16
16145 wine_fn_config_dll unicows enable_unicows implib
16146 wine_fn_config_dll updspapi enable_updspapi
16147 wine_fn_config_dll url enable_url implib
16148 wine_fn_config_dll urlmon enable_urlmon implib,po
16149 wine_fn_config_test dlls/urlmon/tests urlmon_test
16150 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16151 wine_fn_config_dll user.exe16 enable_win16
16152 wine_fn_config_dll user32 enable_user32 implib,po
16153 wine_fn_config_test dlls/user32/tests user32_test
16154 wine_fn_config_dll userenv enable_userenv implib
16155 wine_fn_config_test dlls/userenv/tests userenv_test
16156 wine_fn_config_dll usp10 enable_usp10 implib
16157 wine_fn_config_test dlls/usp10/tests usp10_test
16158 wine_fn_config_lib uuid
16159 wine_fn_config_dll uxtheme enable_uxtheme implib
16160 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16161 wine_fn_config_dll vbscript enable_vbscript
16162 wine_fn_config_test dlls/vbscript/tests vbscript_test
16163 wine_fn_config_dll vcomp enable_vcomp
16164 wine_fn_config_dll vcomp100 enable_vcomp100
16165 wine_fn_config_dll vcomp90 enable_vcomp90
16166 wine_fn_config_dll vdhcp.vxd enable_win16
16167 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16168 wine_fn_config_dll ver.dll16 enable_win16
16169 wine_fn_config_dll version enable_version implib
16170 wine_fn_config_test dlls/version/tests version_test
16171 wine_fn_config_dll vmm.vxd enable_win16
16172 wine_fn_config_dll vnbt.vxd enable_win16
16173 wine_fn_config_dll vnetbios.vxd enable_win16
16174 wine_fn_config_dll vtdapi.vxd enable_win16
16175 wine_fn_config_dll vwin32.vxd enable_win16
16176 wine_fn_config_dll w32skrnl enable_win16
16177 wine_fn_config_dll w32sys.dll16 enable_win16
16178 wine_fn_config_dll wbemprox enable_wbemprox
16179 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16180 wine_fn_config_dll webservices enable_webservices implib
16181 wine_fn_config_dll wer enable_wer implib
16182 wine_fn_config_test dlls/wer/tests wer_test
16183 wine_fn_config_dll wevtapi enable_wevtapi
16184 wine_fn_config_dll wiaservc enable_wiaservc
16185 wine_fn_config_dll win32s16.dll16 enable_win16
16186 wine_fn_config_dll win87em.dll16 enable_win16
16187 wine_fn_config_dll winaspi.dll16 enable_win16
16188 wine_fn_config_dll windebug.dll16 enable_win16
16189 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16190 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16191 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16192 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16193 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16194 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16195 wine_fn_config_lib winecrt0
16196 wine_fn_config_dll wined3d enable_wined3d implib
16197 wine_fn_config_dll winegstreamer enable_winegstreamer
16198 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16199 wine_fn_config_dll winemac.drv enable_winemac_drv
16200 wine_fn_config_dll winemapi enable_winemapi
16201 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16202 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16203 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16204 wine_fn_config_dll wineps16.drv16 enable_win16
16205 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16206 wine_fn_config_dll winex11.drv enable_winex11_drv
16207 wine_fn_config_dll wing.dll16 enable_win16
16208 wine_fn_config_dll wing32 enable_wing32
16209 wine_fn_config_dll winhttp enable_winhttp implib
16210 wine_fn_config_test dlls/winhttp/tests winhttp_test
16211 wine_fn_config_dll wininet enable_wininet implib,po
16212 wine_fn_config_test dlls/wininet/tests wininet_test
16213 wine_fn_config_dll winmm enable_winmm implib,po
16214 wine_fn_config_test dlls/winmm/tests winmm_test
16215 wine_fn_config_dll winnls.dll16 enable_win16
16216 wine_fn_config_dll winnls32 enable_winnls32 implib
16217 wine_fn_config_dll winscard enable_winscard implib
16218 wine_fn_config_dll winsock.dll16 enable_win16
16219 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16220 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16221 wine_fn_config_dll winsta enable_winsta
16222 wine_fn_config_dll wintab.dll16 enable_win16
16223 wine_fn_config_dll wintab32 enable_wintab32 implib
16224 wine_fn_config_test dlls/wintab32/tests wintab32_test
16225 wine_fn_config_dll wintrust enable_wintrust implib
16226 wine_fn_config_test dlls/wintrust/tests wintrust_test
16227 wine_fn_config_dll wlanapi enable_wlanapi
16228 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16229 wine_fn_config_test dlls/wldap32/tests wldap32_test
16230 wine_fn_config_dll wmi enable_wmi
16231 wine_fn_config_dll wmiutils enable_wmiutils
16232 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16233 wine_fn_config_dll wmvcore enable_wmvcore
16234 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16235 wine_fn_config_dll wow32 enable_win16 implib
16236 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16237 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16238 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16239 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16240 wine_fn_config_dll wsnmp32 enable_wsnmp32
16241 wine_fn_config_dll wsock32 enable_wsock32 implib
16242 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16243 wine_fn_config_dll wuapi enable_wuapi
16244 wine_fn_config_dll wuaueng enable_wuaueng
16245 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16246 wine_fn_config_dll xinput1_1 enable_xinput1_1
16247 wine_fn_config_dll xinput1_2 enable_xinput1_2
16248 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16249 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16250 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16251 wine_fn_config_dll xmllite enable_xmllite
16252 wine_fn_config_test dlls/xmllite/tests xmllite_test
16253 wine_fn_config_dll xolehlp enable_xolehlp
16254 wine_fn_config_dll xpsprint enable_xpsprint
16255 wine_fn_config_dll xpssvcs enable_xpssvcs
16256 wine_fn_config_makefile documentation enable_documentation
16257 wine_fn_config_makefile fonts enable_fonts install-lib
16258 wine_fn_config_makefile include enable_include install-dev
16259 wine_fn_config_makefile libs/port enable_libs_port
16260 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16261 wine_fn_config_makefile libs/wpp enable_libs_wpp
16262 wine_fn_config_makefile loader enable_loader install-lib,manpage
16263 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16264 wine_fn_config_program attrib enable_attrib install,po
16265 wine_fn_config_program cabarc enable_cabarc install
16266 wine_fn_config_program cacls enable_cacls install
16267 wine_fn_config_program clock enable_clock install,po
16268 wine_fn_config_program cmd enable_cmd install,po
16269 wine_fn_config_test programs/cmd/tests cmd.exe_test
16270 wine_fn_config_program conhost enable_conhost install
16271 wine_fn_config_program control enable_control install
16272 wine_fn_config_program cscript enable_cscript install
16273 wine_fn_config_program dxdiag enable_dxdiag install,po
16274 wine_fn_config_program eject enable_eject install
16275 wine_fn_config_program expand enable_expand install
16276 wine_fn_config_program explorer enable_explorer install,po
16277 wine_fn_config_program extrac32 enable_extrac32 install
16278 wine_fn_config_program findstr enable_findstr install
16279 wine_fn_config_program hh enable_hh install
16280 wine_fn_config_program hostname enable_hostname install,po
16281 wine_fn_config_program icinfo enable_icinfo install
16282 wine_fn_config_program iexplore enable_iexplore install
16283 wine_fn_config_program ipconfig enable_ipconfig install,po
16284 wine_fn_config_program lodctr enable_lodctr install
16285 wine_fn_config_program mofcomp enable_mofcomp install
16286 wine_fn_config_program mshta enable_mshta install
16287 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16288 wine_fn_config_program net enable_net install,po
16289 wine_fn_config_program netsh enable_netsh install
16290 wine_fn_config_program netstat enable_netstat install,po
16291 wine_fn_config_program ngen enable_ngen install
16292 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16293 wine_fn_config_program oleview enable_oleview install,po
16294 wine_fn_config_program ping enable_ping install
16295 wine_fn_config_program plugplay enable_plugplay install
16296 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16297 wine_fn_config_program progman enable_progman install,po
16298 wine_fn_config_program reg enable_reg install,po
16299 wine_fn_config_program regasm enable_regasm install
16300 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16301 wine_fn_config_test programs/regedit/tests regedit.exe_test
16302 wine_fn_config_program regsvcs enable_regsvcs install
16303 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16304 wine_fn_config_program rpcss enable_rpcss install
16305 wine_fn_config_program rundll.exe16 enable_win16 install
16306 wine_fn_config_program rundll32 enable_rundll32 install
16307 wine_fn_config_program sc enable_sc install
16308 wine_fn_config_program schtasks enable_schtasks install
16309 wine_fn_config_program secedit enable_secedit install
16310 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16311 wine_fn_config_program services enable_services install
16312 wine_fn_config_test programs/services/tests services.exe_test
16313 wine_fn_config_program spoolsv enable_spoolsv install
16314 wine_fn_config_program start enable_start install,po
16315 wine_fn_config_program svchost enable_svchost install
16316 wine_fn_config_program taskkill enable_taskkill install,po
16317 wine_fn_config_program taskmgr enable_taskmgr install,po
16318 wine_fn_config_program termsv enable_termsv install
16319 wine_fn_config_program uninstaller enable_uninstaller install,po
16320 wine_fn_config_program unlodctr enable_unlodctr install
16321 wine_fn_config_program view enable_view install,po
16322 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16323 wine_fn_config_program winebrowser enable_winebrowser install
16324 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16325 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16326 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16327 wine_fn_config_program winedevice enable_winedevice install
16328 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16329 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16330 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16331 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16332 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16333 wine_fn_config_program winetest enable_winetest
16334 wine_fn_config_program winevdm enable_win16 install
16335 wine_fn_config_program winhelp.exe16 enable_win16 install
16336 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16337 wine_fn_config_program winoldap.mod16 enable_win16 install
16338 wine_fn_config_program winver enable_winver install
16339 wine_fn_config_program wmic enable_wmic install,po
16340 wine_fn_config_program wordpad enable_wordpad install,po
16341 wine_fn_config_program write enable_write install,po
16342 wine_fn_config_program wscript enable_wscript install
16343 wine_fn_config_test programs/wscript/tests wscript.exe_test
16344 wine_fn_config_program wusa enable_wusa install
16345 wine_fn_config_program xcopy enable_xcopy install,po
16346 wine_fn_config_makefile server enable_server install-lib,manpage
16347 wine_fn_config_tool tools install-dev,install-lib,manpage
16348 wine_fn_config_tool tools/widl install-dev,manpage
16349 wine_fn_config_tool tools/winebuild install-dev,manpage
16350 wine_fn_config_tool tools/winedump install-dev,manpage
16351 wine_fn_config_tool tools/winegcc install-dev,manpage
16352 wine_fn_config_tool tools/wmc install-dev,manpage
16353 wine_fn_config_tool tools/wrc install-dev,manpage
16354
16355 LINGUAS="\
16356 ar \
16357 bg \
16358 ca \
16359 cs \
16360 da \
16361 de \
16362 el \
16363 en \
16364 en_US \
16365 eo \
16366 es \
16367 fa \
16368 fi \
16369 fr \
16370 he \
16371 hi \
16372 hu \
16373 it \
16374 ja \
16375 ko \
16376 lt \
16377 ml \
16378 nb_NO \
16379 nl \
16380 or \
16381 pa \
16382 pl \
16383 pt_BR \
16384 pt_PT \
16385 rm \
16386 ro \
16387 ru \
16388 sk \
16389 sl \
16390 sr_RS@cyrillic \
16391 sr_RS@latin \
16392 sv \
16393 te \
16394 th \
16395 tr \
16396 uk \
16397 wa \
16398 zh_CN \
16399 zh_TW"
16400
16401
16402
16403 ac_config_commands="$ac_config_commands Makefile"
16404
16405
16406 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16407
16408
16409
16410 if test "x$enable_maintainer_mode" = xyes
16411 then
16412     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16413         cd \$(srcdir) && autoconf --warnings=all
16414 \$(srcdir)/include/config.h.in: include/stamp-h.in
16415 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16416         cd \$(srcdir) && autoheader --warnings=all
16417         @echo timestamp > \$@"
16418 fi
16419
16420 if test "x$with_gettextpo" = xyes
16421 then
16422     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16423     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16424 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16425         msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16426 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16427         msgcat -o \$@ \$(ALL_POT_FILES)"
16428 fi
16429
16430 if test "$MSGFMT" != false
16431 then
16432     PORCFLAGS="--po-dir=\$(top_builddir)/po"
16433
16434     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16435 else
16436     LINGUAS=
16437 fi
16438
16439 if test "x$enable_tools" != xno
16440 then
16441     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16442 clean:: __clean__
16443         \$(RM) tools/makedep\$(EXEEXT)"
16444 fi
16445
16446 if test -n "$with_wine64"
16447 then
16448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16449 fonts server tools:
16450         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16451 $with_wine64/loader/wine:
16452         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16453 $with_wine64/loader/wine-preloader:
16454         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16455 clean::
16456         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16457 fi
16458
16459 cat >confcache <<\_ACEOF
16460 # This file is a shell script that caches the results of configure
16461 # tests run on this system so they can be shared between configure
16462 # scripts and configure runs, see configure's option --config-cache.
16463 # It is not useful on other systems.  If it contains results you don't
16464 # want to keep, you may remove or edit it.
16465 #
16466 # config.status only pays attention to the cache file if you give it
16467 # the --recheck option to rerun configure.
16468 #
16469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16471 # following values.
16472
16473 _ACEOF
16474
16475 # The following way of writing the cache mishandles newlines in values,
16476 # but we know of no workaround that is simple, portable, and efficient.
16477 # So, we kill variables containing newlines.
16478 # Ultrix sh set writes to stderr and can't be redirected directly,
16479 # and sets the high bit in the cache file unless we assign to the vars.
16480 (
16481   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16482     eval ac_val=\$$ac_var
16483     case $ac_val in #(
16484     *${as_nl}*)
16485       case $ac_var in #(
16486       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16487 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16488       esac
16489       case $ac_var in #(
16490       _ | IFS | as_nl) ;; #(
16491       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16492       *) { eval $ac_var=; unset $ac_var;} ;;
16493       esac ;;
16494     esac
16495   done
16496
16497   (set) 2>&1 |
16498     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16499     *${as_nl}ac_space=\ *)
16500       # `set' does not quote correctly, so add quotes: double-quote
16501       # substitution turns \\\\ into \\, and sed turns \\ into \.
16502       sed -n \
16503         "s/'/'\\\\''/g;
16504           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16505       ;; #(
16506     *)
16507       # `set' quotes correctly as required by POSIX, so do not add quotes.
16508       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16509       ;;
16510     esac |
16511     sort
16512 ) |
16513   sed '
16514      /^ac_cv_env_/b end
16515      t clear
16516      :clear
16517      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16518      t end
16519      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16520      :end' >>confcache
16521 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16522   if test -w "$cache_file"; then
16523     if test "x$cache_file" != "x/dev/null"; then
16524       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16525 $as_echo "$as_me: updating cache $cache_file" >&6;}
16526       if test ! -f "$cache_file" || test -h "$cache_file"; then
16527         cat confcache >"$cache_file"
16528       else
16529         case $cache_file in #(
16530         */* | ?:*)
16531           mv -f confcache "$cache_file"$$ &&
16532           mv -f "$cache_file"$$ "$cache_file" ;; #(
16533         *)
16534           mv -f confcache "$cache_file" ;;
16535         esac
16536       fi
16537     fi
16538   else
16539     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16541   fi
16542 fi
16543 rm -f confcache
16544
16545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16546 # Let make expand exec_prefix.
16547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16548
16549 DEFS=-DHAVE_CONFIG_H
16550
16551 ac_libobjs=
16552 ac_ltlibobjs=
16553 U=
16554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16555   # 1. Remove the extension, and $U if already installed.
16556   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16557   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16558   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16559   #    will be set to the directory where LIBOBJS objects are built.
16560   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16561   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16562 done
16563 LIBOBJS=$ac_libobjs
16564
16565 LTLIBOBJS=$ac_ltlibobjs
16566
16567
16568
16569 : "${CONFIG_STATUS=./config.status}"
16570 ac_write_fail=0
16571 ac_clean_files_save=$ac_clean_files
16572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16574 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16575 as_write_fail=0
16576 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16577 #! $SHELL
16578 # Generated by $as_me.
16579 # Run this file to recreate the current configuration.
16580 # Compiler output produced by configure, useful for debugging
16581 # configure, is in config.log if it exists.
16582
16583 debug=false
16584 ac_cs_recheck=false
16585 ac_cs_silent=false
16586
16587 SHELL=\${CONFIG_SHELL-$SHELL}
16588 export SHELL
16589 _ASEOF
16590 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16591 ## -------------------- ##
16592 ## M4sh Initialization. ##
16593 ## -------------------- ##
16594
16595 # Be more Bourne compatible
16596 DUALCASE=1; export DUALCASE # for MKS sh
16597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16598   emulate sh
16599   NULLCMD=:
16600   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16601   # is contrary to our usage.  Disable this feature.
16602   alias -g '${1+"$@"}'='"$@"'
16603   setopt NO_GLOB_SUBST
16604 else
16605   case `(set -o) 2>/dev/null` in #(
16606   *posix*) :
16607     set -o posix ;; #(
16608   *) :
16609      ;;
16610 esac
16611 fi
16612
16613
16614 as_nl='
16615 '
16616 export as_nl
16617 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16618 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16619 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16621 # Prefer a ksh shell builtin over an external printf program on Solaris,
16622 # but without wasting forks for bash or zsh.
16623 if test -z "$BASH_VERSION$ZSH_VERSION" \
16624     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16625   as_echo='print -r --'
16626   as_echo_n='print -rn --'
16627 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16628   as_echo='printf %s\n'
16629   as_echo_n='printf %s'
16630 else
16631   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16632     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16633     as_echo_n='/usr/ucb/echo -n'
16634   else
16635     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16636     as_echo_n_body='eval
16637       arg=$1;
16638       case $arg in #(
16639       *"$as_nl"*)
16640         expr "X$arg" : "X\\(.*\\)$as_nl";
16641         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16642       esac;
16643       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16644     '
16645     export as_echo_n_body
16646     as_echo_n='sh -c $as_echo_n_body as_echo'
16647   fi
16648   export as_echo_body
16649   as_echo='sh -c $as_echo_body as_echo'
16650 fi
16651
16652 # The user is always right.
16653 if test "${PATH_SEPARATOR+set}" != set; then
16654   PATH_SEPARATOR=:
16655   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16656     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16657       PATH_SEPARATOR=';'
16658   }
16659 fi
16660
16661
16662 # IFS
16663 # We need space, tab and new line, in precisely that order.  Quoting is
16664 # there to prevent editors from complaining about space-tab.
16665 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16666 # splitting by setting IFS to empty value.)
16667 IFS=" ""        $as_nl"
16668
16669 # Find who we are.  Look in the path if we contain no directory separator.
16670 as_myself=
16671 case $0 in #((
16672   *[\\/]* ) as_myself=$0 ;;
16673   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674 for as_dir in $PATH
16675 do
16676   IFS=$as_save_IFS
16677   test -z "$as_dir" && as_dir=.
16678     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16679   done
16680 IFS=$as_save_IFS
16681
16682      ;;
16683 esac
16684 # We did not find ourselves, most probably we were run as `sh COMMAND'
16685 # in which case we are not to be found in the path.
16686 if test "x$as_myself" = x; then
16687   as_myself=$0
16688 fi
16689 if test ! -f "$as_myself"; then
16690   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16691   exit 1
16692 fi
16693
16694 # Unset variables that we do not need and which cause bugs (e.g. in
16695 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16696 # suppresses any "Segmentation fault" message there.  '((' could
16697 # trigger a bug in pdksh 5.2.14.
16698 for as_var in BASH_ENV ENV MAIL MAILPATH
16699 do eval test x\${$as_var+set} = xset \
16700   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16701 done
16702 PS1='$ '
16703 PS2='> '
16704 PS4='+ '
16705
16706 # NLS nuisances.
16707 LC_ALL=C
16708 export LC_ALL
16709 LANGUAGE=C
16710 export LANGUAGE
16711
16712 # CDPATH.
16713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16714
16715
16716 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16717 # ----------------------------------------
16718 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16719 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16720 # script with STATUS, using 1 if that was 0.
16721 as_fn_error ()
16722 {
16723   as_status=$1; test $as_status -eq 0 && as_status=1
16724   if test "$4"; then
16725     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16726     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16727   fi
16728   $as_echo "$as_me: error: $2" >&2
16729   as_fn_exit $as_status
16730 } # as_fn_error
16731
16732
16733 # as_fn_set_status STATUS
16734 # -----------------------
16735 # Set $? to STATUS, without forking.
16736 as_fn_set_status ()
16737 {
16738   return $1
16739 } # as_fn_set_status
16740
16741 # as_fn_exit STATUS
16742 # -----------------
16743 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16744 as_fn_exit ()
16745 {
16746   set +e
16747   as_fn_set_status $1
16748   exit $1
16749 } # as_fn_exit
16750
16751 # as_fn_unset VAR
16752 # ---------------
16753 # Portably unset VAR.
16754 as_fn_unset ()
16755 {
16756   { eval $1=; unset $1;}
16757 }
16758 as_unset=as_fn_unset
16759 # as_fn_append VAR VALUE
16760 # ----------------------
16761 # Append the text in VALUE to the end of the definition contained in VAR. Take
16762 # advantage of any shell optimizations that allow amortized linear growth over
16763 # repeated appends, instead of the typical quadratic growth present in naive
16764 # implementations.
16765 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16766   eval 'as_fn_append ()
16767   {
16768     eval $1+=\$2
16769   }'
16770 else
16771   as_fn_append ()
16772   {
16773     eval $1=\$$1\$2
16774   }
16775 fi # as_fn_append
16776
16777 # as_fn_arith ARG...
16778 # ------------------
16779 # Perform arithmetic evaluation on the ARGs, and store the result in the
16780 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16781 # must be portable across $(()) and expr.
16782 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16783   eval 'as_fn_arith ()
16784   {
16785     as_val=$(( $* ))
16786   }'
16787 else
16788   as_fn_arith ()
16789   {
16790     as_val=`expr "$@" || test $? -eq 1`
16791   }
16792 fi # as_fn_arith
16793
16794
16795 if expr a : '\(a\)' >/dev/null 2>&1 &&
16796    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16797   as_expr=expr
16798 else
16799   as_expr=false
16800 fi
16801
16802 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16803   as_basename=basename
16804 else
16805   as_basename=false
16806 fi
16807
16808 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16809   as_dirname=dirname
16810 else
16811   as_dirname=false
16812 fi
16813
16814 as_me=`$as_basename -- "$0" ||
16815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16816          X"$0" : 'X\(//\)$' \| \
16817          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16818 $as_echo X/"$0" |
16819     sed '/^.*\/\([^/][^/]*\)\/*$/{
16820             s//\1/
16821             q
16822           }
16823           /^X\/\(\/\/\)$/{
16824             s//\1/
16825             q
16826           }
16827           /^X\/\(\/\).*/{
16828             s//\1/
16829             q
16830           }
16831           s/.*/./; q'`
16832
16833 # Avoid depending upon Character Ranges.
16834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16837 as_cr_digits='0123456789'
16838 as_cr_alnum=$as_cr_Letters$as_cr_digits
16839
16840 ECHO_C= ECHO_N= ECHO_T=
16841 case `echo -n x` in #(((((
16842 -n*)
16843   case `echo 'xy\c'` in
16844   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16845   xy)  ECHO_C='\c';;
16846   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16847        ECHO_T=' ';;
16848   esac;;
16849 *)
16850   ECHO_N='-n';;
16851 esac
16852
16853 rm -f conf$$ conf$$.exe conf$$.file
16854 if test -d conf$$.dir; then
16855   rm -f conf$$.dir/conf$$.file
16856 else
16857   rm -f conf$$.dir
16858   mkdir conf$$.dir 2>/dev/null
16859 fi
16860 if (echo >conf$$.file) 2>/dev/null; then
16861   if ln -s conf$$.file conf$$ 2>/dev/null; then
16862     as_ln_s='ln -s'
16863     # ... but there are two gotchas:
16864     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16865     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16866     # In both cases, we have to default to `cp -pR'.
16867     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16868       as_ln_s='cp -pR'
16869   elif ln conf$$.file conf$$ 2>/dev/null; then
16870     as_ln_s=ln
16871   else
16872     as_ln_s='cp -pR'
16873   fi
16874 else
16875   as_ln_s='cp -pR'
16876 fi
16877 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16878 rmdir conf$$.dir 2>/dev/null
16879
16880
16881 # as_fn_mkdir_p
16882 # -------------
16883 # Create "$as_dir" as a directory, including parents if necessary.
16884 as_fn_mkdir_p ()
16885 {
16886
16887   case $as_dir in #(
16888   -*) as_dir=./$as_dir;;
16889   esac
16890   test -d "$as_dir" || eval $as_mkdir_p || {
16891     as_dirs=
16892     while :; do
16893       case $as_dir in #(
16894       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16895       *) as_qdir=$as_dir;;
16896       esac
16897       as_dirs="'$as_qdir' $as_dirs"
16898       as_dir=`$as_dirname -- "$as_dir" ||
16899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900          X"$as_dir" : 'X\(//\)[^/]' \| \
16901          X"$as_dir" : 'X\(//\)$' \| \
16902          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16903 $as_echo X"$as_dir" |
16904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16905             s//\1/
16906             q
16907           }
16908           /^X\(\/\/\)[^/].*/{
16909             s//\1/
16910             q
16911           }
16912           /^X\(\/\/\)$/{
16913             s//\1/
16914             q
16915           }
16916           /^X\(\/\).*/{
16917             s//\1/
16918             q
16919           }
16920           s/.*/./; q'`
16921       test -d "$as_dir" && break
16922     done
16923     test -z "$as_dirs" || eval "mkdir $as_dirs"
16924   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16925
16926
16927 } # as_fn_mkdir_p
16928 if mkdir -p . 2>/dev/null; then
16929   as_mkdir_p='mkdir -p "$as_dir"'
16930 else
16931   test -d ./-p && rmdir ./-p
16932   as_mkdir_p=false
16933 fi
16934
16935
16936 # as_fn_executable_p FILE
16937 # -----------------------
16938 # Test if FILE is an executable regular file.
16939 as_fn_executable_p ()
16940 {
16941   test -f "$1" && test -x "$1"
16942 } # as_fn_executable_p
16943 as_test_x='test -x'
16944 as_executable_p=as_fn_executable_p
16945
16946 # Sed expression to map a string onto a valid CPP name.
16947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16948
16949 # Sed expression to map a string onto a valid variable name.
16950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16951
16952
16953 exec 6>&1
16954 ## ----------------------------------- ##
16955 ## Main body of $CONFIG_STATUS script. ##
16956 ## ----------------------------------- ##
16957 _ASEOF
16958 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16959
16960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16961 # Save the log message, to keep $0 and so on meaningful, and to
16962 # report actual input values of CONFIG_FILES etc. instead of their
16963 # values after options handling.
16964 ac_log="
16965 This file was extended by Wine $as_me 1.5.26, which was
16966 generated by GNU Autoconf 2.69.  Invocation command line was
16967
16968   CONFIG_FILES    = $CONFIG_FILES
16969   CONFIG_HEADERS  = $CONFIG_HEADERS
16970   CONFIG_LINKS    = $CONFIG_LINKS
16971   CONFIG_COMMANDS = $CONFIG_COMMANDS
16972   $ $0 $@
16973
16974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16975 "
16976
16977 _ACEOF
16978
16979 case $ac_config_files in *"
16980 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16981 esac
16982
16983 case $ac_config_headers in *"
16984 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16985 esac
16986
16987
16988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 # Files that config.status was made for.
16990 config_files="$ac_config_files"
16991 config_headers="$ac_config_headers"
16992 config_links="$ac_config_links"
16993 config_commands="$ac_config_commands"
16994
16995 _ACEOF
16996
16997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998 ac_cs_usage="\
16999 \`$as_me' instantiates files and other configuration actions
17000 from templates according to the current configuration.  Unless the files
17001 and actions are specified as TAGs, all are instantiated by default.
17002
17003 Usage: $0 [OPTION]... [TAG]...
17004
17005   -h, --help       print this help, then exit
17006   -V, --version    print version number and configuration settings, then exit
17007       --config     print configuration, then exit
17008   -q, --quiet, --silent
17009                    do not print progress messages
17010   -d, --debug      don't remove temporary files
17011       --recheck    update $as_me by reconfiguring in the same conditions
17012       --file=FILE[:TEMPLATE]
17013                    instantiate the configuration file FILE
17014       --header=FILE[:TEMPLATE]
17015                    instantiate the configuration header FILE
17016
17017 Configuration files:
17018 $config_files
17019
17020 Configuration headers:
17021 $config_headers
17022
17023 Configuration links:
17024 $config_links
17025
17026 Configuration commands:
17027 $config_commands
17028
17029 Report bugs to <wine-devel@winehq.org>.
17030 Wine home page: <http://www.winehq.org>."
17031
17032 _ACEOF
17033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17034 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17035 ac_cs_version="\\
17036 Wine config.status 1.5.26
17037 configured by $0, generated by GNU Autoconf 2.69,
17038   with options \\"\$ac_cs_config\\"
17039
17040 Copyright (C) 2012 Free Software Foundation, Inc.
17041 This config.status script is free software; the Free Software Foundation
17042 gives unlimited permission to copy, distribute and modify it."
17043
17044 ac_pwd='$ac_pwd'
17045 srcdir='$srcdir'
17046 INSTALL='$INSTALL'
17047 test -n "\$AWK" || AWK=awk
17048 _ACEOF
17049
17050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17051 # The default lists apply if the user does not specify any file.
17052 ac_need_defaults=:
17053 while test $# != 0
17054 do
17055   case $1 in
17056   --*=?*)
17057     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17058     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17059     ac_shift=:
17060     ;;
17061   --*=)
17062     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17063     ac_optarg=
17064     ac_shift=:
17065     ;;
17066   *)
17067     ac_option=$1
17068     ac_optarg=$2
17069     ac_shift=shift
17070     ;;
17071   esac
17072
17073   case $ac_option in
17074   # Handling of the options.
17075   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17076     ac_cs_recheck=: ;;
17077   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17078     $as_echo "$ac_cs_version"; exit ;;
17079   --config | --confi | --conf | --con | --co | --c )
17080     $as_echo "$ac_cs_config"; exit ;;
17081   --debug | --debu | --deb | --de | --d | -d )
17082     debug=: ;;
17083   --file | --fil | --fi | --f )
17084     $ac_shift
17085     case $ac_optarg in
17086     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17087     '') as_fn_error $? "missing file argument" ;;
17088     esac
17089     as_fn_append CONFIG_FILES " '$ac_optarg'"
17090     ac_need_defaults=false;;
17091   --header | --heade | --head | --hea )
17092     $ac_shift
17093     case $ac_optarg in
17094     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17095     esac
17096     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17097     ac_need_defaults=false;;
17098   --he | --h)
17099     # Conflict between --help and --header
17100     as_fn_error $? "ambiguous option: \`$1'
17101 Try \`$0 --help' for more information.";;
17102   --help | --hel | -h )
17103     $as_echo "$ac_cs_usage"; exit ;;
17104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17105   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17106     ac_cs_silent=: ;;
17107
17108   # This is an error.
17109   -*) as_fn_error $? "unrecognized option: \`$1'
17110 Try \`$0 --help' for more information." ;;
17111
17112   *) as_fn_append ac_config_targets " $1"
17113      ac_need_defaults=false ;;
17114
17115   esac
17116   shift
17117 done
17118
17119 ac_configure_extra_args=
17120
17121 if $ac_cs_silent; then
17122   exec 6>/dev/null
17123   ac_configure_extra_args="$ac_configure_extra_args --silent"
17124 fi
17125
17126 _ACEOF
17127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17128 if \$ac_cs_recheck; then
17129   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17130   shift
17131   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17132   CONFIG_SHELL='$SHELL'
17133   export CONFIG_SHELL
17134   exec "\$@"
17135 fi
17136
17137 _ACEOF
17138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 exec 5>>config.log
17140 {
17141   echo
17142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17143 ## Running $as_me. ##
17144 _ASBOX
17145   $as_echo "$ac_log"
17146 } >&5
17147
17148 _ACEOF
17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150 #
17151 # INIT-COMMANDS
17152 #
17153 wine_fn_output_makefile ()
17154 {
17155     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17156 $ALL_MAKEFILE_DEPENDS
17157 _WINE_EOF
17158     as_fn_error $? "could not create Makefile" "$LINENO" 5
17159 }
17160
17161 _ACEOF
17162
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164
17165 # Handling of arguments.
17166 for ac_config_target in $ac_config_targets
17167 do
17168   case $ac_config_target in
17169     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17170     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17171     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17172     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17173     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17174     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17175     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17176     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17177     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17178     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17179     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17180     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17181     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17182     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17183     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17184     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17185     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17186     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17187     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17188     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17189     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17190     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17191     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17192     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17193     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17194     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17195
17196   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17197   esac
17198 done
17199
17200
17201 # If the user did not use the arguments to specify the items to instantiate,
17202 # then the envvar interface is used.  Set only those that are not.
17203 # We use the long form for the default assignment because of an extremely
17204 # bizarre bug on SunOS 4.1.3.
17205 if $ac_need_defaults; then
17206   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17207   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17208   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17209   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17210 fi
17211
17212 # Have a temporary directory for convenience.  Make it in the build tree
17213 # simply because there is no reason against having it here, and in addition,
17214 # creating and moving files from /tmp can sometimes cause problems.
17215 # Hook for its removal unless debugging.
17216 # Note that there is a small window in which the directory will not be cleaned:
17217 # after its creation but before its name has been assigned to `$tmp'.
17218 $debug ||
17219 {
17220   tmp= ac_tmp=
17221   trap 'exit_status=$?
17222   : "${ac_tmp:=$tmp}"
17223   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17224 ' 0
17225   trap 'as_fn_exit 1' 1 2 13 15
17226 }
17227 # Create a (secure) tmp directory for tmp files.
17228
17229 {
17230   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17231   test -d "$tmp"
17232 }  ||
17233 {
17234   tmp=./conf$$-$RANDOM
17235   (umask 077 && mkdir "$tmp")
17236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17237 ac_tmp=$tmp
17238
17239 # Set up the scripts for CONFIG_FILES section.
17240 # No need to generate them if there are no CONFIG_FILES.
17241 # This happens for instance with `./config.status config.h'.
17242 if test -n "$CONFIG_FILES"; then
17243
17244 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17245   ac_cs_awk_getline=:
17246   ac_cs_awk_pipe_init=
17247   ac_cs_awk_read_file='
17248       while ((getline aline < (F[key])) > 0)
17249         print(aline)
17250       close(F[key])'
17251   ac_cs_awk_pipe_fini=
17252 else
17253   ac_cs_awk_getline=false
17254   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17255   ac_cs_awk_read_file='
17256       print "|#_!!_#|"
17257       print "cat " F[key] " &&"
17258       '$ac_cs_awk_pipe_init
17259   # The final `:' finishes the AND list.
17260   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17261 fi
17262 ac_cr=`echo X | tr X '\015'`
17263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17264 # But we know of no other shell where ac_cr would be empty at this
17265 # point, so we can use a bashism as a fallback.
17266 if test "x$ac_cr" = x; then
17267   eval ac_cr=\$\'\\r\'
17268 fi
17269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17271   ac_cs_awk_cr='\\r'
17272 else
17273   ac_cs_awk_cr=$ac_cr
17274 fi
17275
17276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17277 _ACEOF
17278
17279 # Create commands to substitute file output variables.
17280 {
17281   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17282   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17283   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17284   echo "_ACAWK" &&
17285   echo "_ACEOF"
17286 } >conf$$files.sh &&
17287 . ./conf$$files.sh ||
17288   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17289 rm -f conf$$files.sh
17290
17291 {
17292   echo "cat >conf$$subs.awk <<_ACEOF" &&
17293   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17294   echo "_ACEOF"
17295 } >conf$$subs.sh ||
17296   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17298 ac_delim='%!_!# '
17299 for ac_last_try in false false false false false :; do
17300   . ./conf$$subs.sh ||
17301     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17302
17303   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17304   if test $ac_delim_n = $ac_delim_num; then
17305     break
17306   elif $ac_last_try; then
17307     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17308   else
17309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17310   fi
17311 done
17312 rm -f conf$$subs.sh
17313
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17316 _ACEOF
17317 sed -n '
17318 h
17319 s/^/S["/; s/!.*/"]=/
17320 p
17321 g
17322 s/^[^!]*!//
17323 :repl
17324 t repl
17325 s/'"$ac_delim"'$//
17326 t delim
17327 :nl
17328 h
17329 s/\(.\{148\}\)..*/\1/
17330 t more1
17331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17332 p
17333 n
17334 b repl
17335 :more1
17336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17337 p
17338 g
17339 s/.\{148\}//
17340 t nl
17341 :delim
17342 h
17343 s/\(.\{148\}\)..*/\1/
17344 t more2
17345 s/["\\]/\\&/g; s/^/"/; s/$/"/
17346 p
17347 b
17348 :more2
17349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17350 p
17351 g
17352 s/.\{148\}//
17353 t delim
17354 ' <conf$$subs.awk | sed '
17355 /^[^""]/{
17356   N
17357   s/\n//
17358 }
17359 ' >>$CONFIG_STATUS || ac_write_fail=1
17360 rm -f conf$$subs.awk
17361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17362 _ACAWK
17363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17364   for (key in S) S_is_set[key] = 1
17365   FS = "\a"
17366   \$ac_cs_awk_pipe_init
17367 }
17368 {
17369   line = $ 0
17370   nfields = split(line, field, "@")
17371   substed = 0
17372   len = length(field[1])
17373   for (i = 2; i < nfields; i++) {
17374     key = field[i]
17375     keylen = length(key)
17376     if (S_is_set[key]) {
17377       value = S[key]
17378       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17379       len += length(value) + length(field[++i])
17380       substed = 1
17381     } else
17382       len += 1 + keylen
17383   }
17384   if (nfields == 3 && !substed) {
17385     key = field[2]
17386     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17387       \$ac_cs_awk_read_file
17388       next
17389     }
17390   }
17391   print line
17392 }
17393 \$ac_cs_awk_pipe_fini
17394 _ACAWK
17395 _ACEOF
17396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17397 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17398   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17399 else
17400   cat
17401 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17402   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17403 _ACEOF
17404
17405 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17406 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17407 # trailing colons and then remove the whole line if VPATH becomes empty
17408 # (actually we leave an empty line to preserve line numbers).
17409 if test "x$srcdir" = x.; then
17410   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17411 h
17412 s///
17413 s/^/:/
17414 s/[      ]*$/:/
17415 s/:\$(srcdir):/:/g
17416 s/:\${srcdir}:/:/g
17417 s/:@srcdir@:/:/g
17418 s/^:*//
17419 s/:*$//
17420 x
17421 s/\(=[   ]*\).*/\1/
17422 G
17423 s/\n//
17424 s/^[^=]*=[       ]*$//
17425 }'
17426 fi
17427
17428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17429 fi # test -n "$CONFIG_FILES"
17430
17431 # Set up the scripts for CONFIG_HEADERS section.
17432 # No need to generate them if there are no CONFIG_HEADERS.
17433 # This happens for instance with `./config.status Makefile'.
17434 if test -n "$CONFIG_HEADERS"; then
17435 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17436 BEGIN {
17437 _ACEOF
17438
17439 # Transform confdefs.h into an awk script `defines.awk', embedded as
17440 # here-document in config.status, that substitutes the proper values into
17441 # config.h.in to produce config.h.
17442
17443 # Create a delimiter string that does not exist in confdefs.h, to ease
17444 # handling of long lines.
17445 ac_delim='%!_!# '
17446 for ac_last_try in false false :; do
17447   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17448   if test -z "$ac_tt"; then
17449     break
17450   elif $ac_last_try; then
17451     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17452   else
17453     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17454   fi
17455 done
17456
17457 # For the awk script, D is an array of macro values keyed by name,
17458 # likewise P contains macro parameters if any.  Preserve backslash
17459 # newline sequences.
17460
17461 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17462 sed -n '
17463 s/.\{148\}/&'"$ac_delim"'/g
17464 t rset
17465 :rset
17466 s/^[     ]*#[    ]*define[       ][      ]*/ /
17467 t def
17468 d
17469 :def
17470 s/\\$//
17471 t bsnl
17472 s/["\\]/\\&/g
17473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17474 D["\1"]=" \3"/p
17475 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17476 d
17477 :bsnl
17478 s/["\\]/\\&/g
17479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17480 D["\1"]=" \3\\\\\\n"\\/p
17481 t cont
17482 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17483 t cont
17484 d
17485 :cont
17486 n
17487 s/.\{148\}/&'"$ac_delim"'/g
17488 t clear
17489 :clear
17490 s/\\$//
17491 t bsnlc
17492 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17493 d
17494 :bsnlc
17495 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17496 b cont
17497 ' <confdefs.h | sed '
17498 s/'"$ac_delim"'/"\\\
17499 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17500
17501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17502   for (key in D) D_is_set[key] = 1
17503   FS = "\a"
17504 }
17505 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17506   line = \$ 0
17507   split(line, arg, " ")
17508   if (arg[1] == "#") {
17509     defundef = arg[2]
17510     mac1 = arg[3]
17511   } else {
17512     defundef = substr(arg[1], 2)
17513     mac1 = arg[2]
17514   }
17515   split(mac1, mac2, "(") #)
17516   macro = mac2[1]
17517   prefix = substr(line, 1, index(line, defundef) - 1)
17518   if (D_is_set[macro]) {
17519     # Preserve the white space surrounding the "#".
17520     print prefix "define", macro P[macro] D[macro]
17521     next
17522   } else {
17523     # Replace #undef with comments.  This is necessary, for example,
17524     # in the case of _POSIX_SOURCE, which is predefined and required
17525     # on some systems where configure will not decide to define it.
17526     if (defundef == "undef") {
17527       print "/*", prefix defundef, macro, "*/"
17528       next
17529     }
17530   }
17531 }
17532 { print }
17533 _ACAWK
17534 _ACEOF
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17536   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17537 fi # test -n "$CONFIG_HEADERS"
17538
17539
17540 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17541 shift
17542 for ac_tag
17543 do
17544   case $ac_tag in
17545   :[FHLC]) ac_mode=$ac_tag; continue;;
17546   esac
17547   case $ac_mode$ac_tag in
17548   :[FHL]*:*);;
17549   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17550   :[FH]-) ac_tag=-:-;;
17551   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17552   esac
17553   ac_save_IFS=$IFS
17554   IFS=:
17555   set x $ac_tag
17556   IFS=$ac_save_IFS
17557   shift
17558   ac_file=$1
17559   shift
17560
17561   case $ac_mode in
17562   :L) ac_source=$1;;
17563   :[FH])
17564     ac_file_inputs=
17565     for ac_f
17566     do
17567       case $ac_f in
17568       -) ac_f="$ac_tmp/stdin";;
17569       *) # Look for the file first in the build tree, then in the source tree
17570          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17571          # because $ac_f cannot contain `:'.
17572          test -f "$ac_f" ||
17573            case $ac_f in
17574            [\\/$]*) false;;
17575            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17576            esac ||
17577            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17578       esac
17579       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17580       as_fn_append ac_file_inputs " '$ac_f'"
17581     done
17582
17583     # Let's still pretend it is `configure' which instantiates (i.e., don't
17584     # use $as_me), people would be surprised to read:
17585     #    /* config.h.  Generated by config.status.  */
17586     configure_input='Generated from '`
17587           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17588         `' by configure.'
17589     if test x"$ac_file" != x-; then
17590       configure_input="$ac_file.  $configure_input"
17591       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17592 $as_echo "$as_me: creating $ac_file" >&6;}
17593     fi
17594     # Neutralize special characters interpreted by sed in replacement strings.
17595     case $configure_input in #(
17596     *\&* | *\|* | *\\* )
17597        ac_sed_conf_input=`$as_echo "$configure_input" |
17598        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17599     *) ac_sed_conf_input=$configure_input;;
17600     esac
17601
17602     case $ac_tag in
17603     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17604       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17605     esac
17606     ;;
17607   esac
17608
17609   ac_dir=`$as_dirname -- "$ac_file" ||
17610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17611          X"$ac_file" : 'X\(//\)[^/]' \| \
17612          X"$ac_file" : 'X\(//\)$' \| \
17613          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17614 $as_echo X"$ac_file" |
17615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17616             s//\1/
17617             q
17618           }
17619           /^X\(\/\/\)[^/].*/{
17620             s//\1/
17621             q
17622           }
17623           /^X\(\/\/\)$/{
17624             s//\1/
17625             q
17626           }
17627           /^X\(\/\).*/{
17628             s//\1/
17629             q
17630           }
17631           s/.*/./; q'`
17632   as_dir="$ac_dir"; as_fn_mkdir_p
17633   ac_builddir=.
17634
17635 case "$ac_dir" in
17636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17637 *)
17638   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17639   # A ".." for each directory in $ac_dir_suffix.
17640   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17641   case $ac_top_builddir_sub in
17642   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17643   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17644   esac ;;
17645 esac
17646 ac_abs_top_builddir=$ac_pwd
17647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17648 # for backward compatibility:
17649 ac_top_builddir=$ac_top_build_prefix
17650
17651 case $srcdir in
17652   .)  # We are building in place.
17653     ac_srcdir=.
17654     ac_top_srcdir=$ac_top_builddir_sub
17655     ac_abs_top_srcdir=$ac_pwd ;;
17656   [\\/]* | ?:[\\/]* )  # Absolute name.
17657     ac_srcdir=$srcdir$ac_dir_suffix;
17658     ac_top_srcdir=$srcdir
17659     ac_abs_top_srcdir=$srcdir ;;
17660   *) # Relative name.
17661     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17662     ac_top_srcdir=$ac_top_build_prefix$srcdir
17663     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17664 esac
17665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17666
17667
17668   case $ac_mode in
17669   :F)
17670   #
17671   # CONFIG_FILE
17672   #
17673
17674   case $INSTALL in
17675   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17676   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17677   esac
17678 _ACEOF
17679
17680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17681 # If the template does not know about datarootdir, expand it.
17682 # FIXME: This hack should be removed a few years after 2.60.
17683 ac_datarootdir_hack=; ac_datarootdir_seen=
17684 ac_sed_dataroot='
17685 /datarootdir/ {
17686   p
17687   q
17688 }
17689 /@datadir@/p
17690 /@docdir@/p
17691 /@infodir@/p
17692 /@localedir@/p
17693 /@mandir@/p'
17694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17695 *datarootdir*) ac_datarootdir_seen=yes;;
17696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17699 _ACEOF
17700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17701   ac_datarootdir_hack='
17702   s&@datadir@&$datadir&g
17703   s&@docdir@&$docdir&g
17704   s&@infodir@&$infodir&g
17705   s&@localedir@&$localedir&g
17706   s&@mandir@&$mandir&g
17707   s&\\\${datarootdir}&$datarootdir&g' ;;
17708 esac
17709 _ACEOF
17710
17711 # Neutralize VPATH when `$srcdir' = `.'.
17712 # Shell code in configure.ac might set extrasub.
17713 # FIXME: do we really want to maintain this feature?
17714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17715 ac_sed_extra="$ac_vpsub
17716 $extrasub
17717 _ACEOF
17718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17719 :t
17720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17721 s|@configure_input@|$ac_sed_conf_input|;t t
17722 s&@top_builddir@&$ac_top_builddir_sub&;t t
17723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17724 s&@srcdir@&$ac_srcdir&;t t
17725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17726 s&@top_srcdir@&$ac_top_srcdir&;t t
17727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17728 s&@builddir@&$ac_builddir&;t t
17729 s&@abs_builddir@&$ac_abs_builddir&;t t
17730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17731 s&@INSTALL@&$ac_INSTALL&;t t
17732 $ac_datarootdir_hack
17733 "
17734 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17735 if $ac_cs_awk_getline; then
17736   $AWK -f "$ac_tmp/subs.awk"
17737 else
17738   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17739 fi \
17740   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17741
17742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17743   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17744   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17745       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17747 which seems to be undefined.  Please make sure it is defined" >&5
17748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17749 which seems to be undefined.  Please make sure it is defined" >&2;}
17750
17751   rm -f "$ac_tmp/stdin"
17752   case $ac_file in
17753   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17754   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17755   esac \
17756   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17757  ;;
17758   :H)
17759   #
17760   # CONFIG_HEADER
17761   #
17762   if test x"$ac_file" != x-; then
17763     {
17764       $as_echo "/* $configure_input  */" \
17765       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17766     } >"$ac_tmp/config.h" \
17767       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17768     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17769       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17771     else
17772       rm -f "$ac_file"
17773       mv "$ac_tmp/config.h" "$ac_file" \
17774         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17775     fi
17776   else
17777     $as_echo "/* $configure_input  */" \
17778       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17779       || as_fn_error $? "could not create -" "$LINENO" 5
17780   fi
17781  ;;
17782   :L)
17783   #
17784   # CONFIG_LINK
17785   #
17786
17787   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17788     :
17789   else
17790     # Prefer the file from the source tree if names are identical.
17791     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17792       ac_source=$srcdir/$ac_source
17793     fi
17794
17795     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17796 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17797
17798     if test ! -r "$ac_source"; then
17799       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17800     fi
17801     rm -f "$ac_file"
17802
17803     # Try a relative symlink, then a hard link, then a copy.
17804     case $ac_source in
17805     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17806         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17807     esac
17808     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17809       ln "$ac_source" "$ac_file" 2>/dev/null ||
17810       cp -p "$ac_source" "$ac_file" ||
17811       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17812   fi
17813  ;;
17814   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17815 $as_echo "$as_me: executing $ac_file commands" >&6;}
17816  ;;
17817   esac
17818
17819
17820   case $ac_file$ac_mode in
17821     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17822     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17823 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17824     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17825 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17826     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17827 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17828     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17829 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17830     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17831 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17832     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17833 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17834     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17835 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17836     "Makefile":C) wine_fn_output_makefile Makefile ;;
17837
17838   esac
17839 done # for ac_tag
17840
17841
17842 as_fn_exit 0
17843 _ACEOF
17844 ac_clean_files=$ac_clean_files_save
17845
17846 test $ac_write_fail = 0 ||
17847   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17848
17849
17850 # configure is writing to config.log, and then calls config.status.
17851 # config.status does its own redirection, appending to config.log.
17852 # Unfortunately, on DOS this fails, as config.log is still kept open
17853 # by configure, so config.status won't be able to write to it; its
17854 # output is simply discarded.  So we exec the FD to /dev/null,
17855 # effectively closing config.log, so it can be properly (re)opened and
17856 # appended to by config.status.  When coming back to configure, we
17857 # need to make the FD available again.
17858 if test "$no_create" != yes; then
17859   ac_cs_success=:
17860   ac_config_status_args=
17861   test "$silent" = yes &&
17862     ac_config_status_args="$ac_config_status_args --quiet"
17863   exec 5>/dev/null
17864   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17865   exec 5>>config.log
17866   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17867   # would make configure fail if this is the last instruction.
17868   $ac_cs_success || as_fn_exit 1
17869 fi
17870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17872 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17873 fi
17874
17875
17876 if test "$no_create" = "yes"
17877 then
17878   exit 0
17879 fi
17880
17881 ac_save_IFS="$IFS"
17882 if test "x$wine_notices != "x; then
17883     echo >&6
17884     IFS="|"
17885     for msg in $wine_notices; do
17886         IFS="$ac_save_IFS"
17887         if test -n "$msg"; then
17888             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17889 $as_echo "$as_me: $msg" >&6;}
17890         fi
17891     done
17892 fi
17893 IFS="|"
17894 for msg in $wine_warnings; do
17895     IFS="$ac_save_IFS"
17896     if test -n "$msg"; then
17897         echo >&2
17898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17899 $as_echo "$as_me: WARNING: $msg" >&2;}
17900     fi
17901 done
17902 IFS="$ac_save_IFS"
17903
17904 echo "
17905 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17906 " >&6
17907