oledb32: Add tests for DBTYPE_I1/DBTYPE_UI1/DBTYPE_UI2/DBTYPE_UI4/DBTYPE_I8/DBTYPE_UI...
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.1.42.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.1.42'
556 PACKAGE_STRING='Wine 1.1.42'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 BUILTINFLAG
611 EXTRACFLAGS
612 LIBKSTAT
613 LIBOPENAL
614 LIBMPG123
615 PNGINCL
616 FONTCONFIGINCL
617 CUPSINCL
618 AUDIOIOLIBS
619 ALSALIBS
620 ESDLIBS
621 ESDINCL
622 ESDCONFIG
623 ZLIB
624 FREETYPEINCL
625 FREETYPELIBS
626 ft_devel
627 LCMSLIBS
628 RESOLVLIBS
629 GPHOTO2INCL
630 GPHOTO2LIBS
631 gphoto2port_devel
632 gphoto2_devel
633 SANEINCL
634 sane_devel
635 GNUTLSINCL
636 HALINCL
637 XSLTINCL
638 XML2INCL
639 XML2LIBS
640 NASLIBS
641 X_EXTRA_LIBS
642 X_LIBS
643 X_PRE_LIBS
644 X_CFLAGS
645 XMKMF
646 LIBPTHREAD
647 CROSSTARGET
648 CROSSTEST
649 CROSSCC
650 CARBONLIB
651 FRAMEWORK_OPENAL
652 COREAUDIO
653 DISKARBITRATIONLIB
654 LDEXECFLAGS
655 IOKITLIB
656 COREFOUNDATIONLIB
657 SECURITYLIB
658 DLLWRAP
659 DLLTOOL
660 LDD
661 LDRPATH_LOCAL
662 LDRPATH_INSTALL
663 IMPLIBEXT
664 LIBEXT
665 LDDLLFLAGS
666 LDSHARED
667 DLLFLAGS
668 DLLEXT
669 CPP
670 OPENGL_LIBS
671 XLIB
672 PRELINK
673 ICOTOOL
674 RSVG
675 PKG_CONFIG
676 FONTFORGE
677 LINTFLAGS
678 LINT
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 LDCONFIG
683 EGREP
684 GREP
685 LN_S
686 STRIP
687 RANLIB
688 ARFLAGS
689 ac_ct_AR
690 AR
691 BISON
692 FLEX
693 TOOLSDIR
694 WOW64_DISABLE
695 TARGETFLAGS
696 CPPBIN
697 ac_ct_CXX
698 CXXFLAGS
699 CXX
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 SET_MAKE
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 MAINTAINER_MODE
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files='MAKE_RULES
756 MAKE_TEST_RULES
757 MAKE_DLL_RULES
758 MAKE_IMPLIB_RULES
759 MAKE_PROG_RULES'
760 ac_user_opts='
761 enable_option_checking
762 enable_win16
763 enable_win64
764 enable_tests
765 enable_maintainer_mode
766 with_alsa
767 with_audioio
768 with_capi
769 with_cms
770 with_coreaudio
771 with_cups
772 with_curses
773 with_esd
774 with_fontconfig
775 with_freetype
776 with_gphoto
777 with_glu
778 with_gnutls
779 with_gsm
780 with_hal
781 with_jack
782 with_jpeg
783 with_ldap
784 with_mpg123
785 with_nas
786 with_openal
787 with_opengl
788 with_openssl
789 with_oss
790 with_png
791 with_pthread
792 with_sane
793 with_tiff
794 with_v4l
795 with_xcomposite
796 with_xcursor
797 with_xinerama
798 with_xinput
799 with_xml
800 with_xrandr
801 with_xrender
802 with_xshape
803 with_xshm
804 with_xslt
805 with_xxf86vm
806 with_wine_tools
807 with_wine64
808 enable_largefile
809 with_x
810 '
811       ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CXX
820 CXXFLAGS
821 CCC
822 CPP
823 XMKMF'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878   # If the previous option needs an argument, assign it.
879   if test -n "$ac_prev"; then
880     eval $ac_prev=\$ac_option
881     ac_prev=
882     continue
883   fi
884
885   case $ac_option in
886   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=\$ac_optarg ;;
1173
1174   -without-* | --without-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     case $ac_envvar in #(
1216       '' | [0-9]* | *[!_$as_cr_alnum]* )
1217       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218     esac
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   as_fn_error "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239   case $enable_option_checking in
1240     no) ;;
1241     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243   esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   # Remove trailing slashes.
1254   case $ac_val in
1255     */ )
1256       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257       eval $ac_var=\$ac_val;;
1258   esac
1259   # Be sure to have absolute directory names.
1260   case $ac_val in
1261     [\\/$]* | ?:[\\/]* )  continue;;
1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263   esac
1264   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276   if test "x$build_alias" = x; then
1277     cross_compiling=maybe
1278     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279     If a cross compiler is detected then cross compile mode will be used." >&2
1280   elif test "x$build_alias" != "x$host_alias"; then
1281     cross_compiling=yes
1282   fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294   as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296   as_fn_error "pwd does not report name of working directory"
1297
1298
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301   ac_srcdir_defaulted=yes
1302   # Try the directory containing this script, then the parent directory.
1303   ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305          X"$as_myself" : 'X\(//\)[^/]' \| \
1306          X"$as_myself" : 'X\(//\)$' \| \
1307          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)[^/].*/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\).*/{
1322             s//\1/
1323             q
1324           }
1325           s/.*/./; q'`
1326   srcdir=$ac_confdir
1327   if test ! -r "$srcdir/$ac_unique_file"; then
1328     srcdir=..
1329   fi
1330 else
1331   ac_srcdir_defaulted=no
1332 fi
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336 fi
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340         pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343   srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_env_${ac_var}_value=\$${ac_var}
1354   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1357
1358 #
1359 # Report the --help message.
1360 #
1361 if test "$ac_init_help" = "long"; then
1362   # Omit some internal or obsolete options to make the list less imposing.
1363   # This message is too long to be a string in the A/UX 3.1 sh.
1364   cat <<_ACEOF
1365 \`configure' configures Wine 1.1.42 to adapt to many kinds of systems.
1366
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372 Defaults for the options are specified in brackets.
1373
1374 Configuration:
1375   -h, --help              display this help and exit
1376       --help=short        display options specific to this package
1377       --help=recursive    display the short help of all the included packages
1378   -V, --version           display version information and exit
1379   -q, --quiet, --silent   do not print \`checking...' messages
1380       --cache-file=FILE   cache test results in FILE [disabled]
1381   -C, --config-cache      alias for \`--cache-file=config.cache'
1382   -n, --no-create         do not create output files
1383       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385 Installation directories:
1386   --prefix=PREFIX         install architecture-independent files in PREFIX
1387                           [$ac_default_prefix]
1388   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                           [PREFIX]
1390
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1395
1396 For better control, use the options below.
1397
1398 Fine tuning of the installation directories:
1399   --bindir=DIR            user executables [EPREFIX/bin]
1400   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401   --libexecdir=DIR        program executables [EPREFIX/libexec]
1402   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405   --libdir=DIR            object code libraries [EPREFIX/lib]
1406   --includedir=DIR        C header files [PREFIX/include]
1407   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1408   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1409   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1410   --infodir=DIR           info documentation [DATAROOTDIR/info]
1411   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1412   --mandir=DIR            man documentation [DATAROOTDIR/man]
1413   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1414   --htmldir=DIR           html documentation [DOCDIR]
1415   --dvidir=DIR            dvi documentation [DOCDIR]
1416   --pdfdir=DIR            pdf documentation [DOCDIR]
1417   --psdir=DIR             ps documentation [DOCDIR]
1418 _ACEOF
1419
1420   cat <<\_ACEOF
1421
1422 X features:
1423   --x-includes=DIR    X include files are in DIR
1424   --x-libraries=DIR   X library files are in DIR
1425
1426 System types:
1427   --build=BUILD     configure for building on BUILD [guessed]
1428   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433   case $ac_init_help in
1434      short | recursive ) echo "Configuration of Wine 1.1.42:";;
1435    esac
1436   cat <<\_ACEOF
1437
1438 Optional Features:
1439   --disable-option-checking  ignore unrecognized --enable/--with options
1440   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1441   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1442   --disable-win16         do not include Win16 support
1443   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1444                           binaries)
1445   --disable-tests         do not build the regression tests
1446   --enable-maintainer-mode
1447                           enable maintainer-specific build rules
1448   --disable-largefile     omit support for large files
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --without-alsa          do not use the Alsa sound support
1454   --without-audioio       do not use the AudioIO sound support
1455   --without-capi          do not use CAPI (ISDN support)
1456   --without-cms           do not use CMS (color management support)
1457   --without-coreaudio     do not use the CoreAudio sound support
1458   --without-cups          do not use CUPS
1459   --without-curses        do not use (n)curses
1460   --without-esd           do not use the EsounD sound support
1461   --without-fontconfig    do not use fontconfig
1462   --without-freetype      do not use the FreeType library
1463   --without-gphoto        do not use gphoto (Digital Camera support)
1464   --without-glu           do not use the GLU library
1465   --without-gnutls        do not use GnuTLS (schannel support)
1466   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1467   --without-hal           do not use HAL (dynamic device support)
1468   --without-jack          do not use the Jack sound support
1469   --without-jpeg          do not use JPEG
1470   --without-ldap          do not use LDAP
1471   --without-mpg123        do not use the mpg123 library
1472   --without-nas           do not use the NAS sound support
1473   --without-openal        do not use OpenAL
1474   --without-opengl        do not use OpenGL
1475   --without-openssl       do not use OpenSSL
1476   --without-oss           do not use the OSS sound support
1477   --without-png           do not use PNG
1478   --without-pthread       do not use the pthread library
1479   --without-sane          do not use SANE (scanner support)
1480   --without-tiff          do not use TIFF
1481   --without-v4l           do not use v4l1 (v4l support)
1482   --without-xcomposite    do not use the Xcomposite extension
1483   --without-xcursor       do not use the Xcursor extension
1484   --without-xinerama      do not use Xinerama (multi-monitor support)
1485   --without-xinput        do not use the Xinput extension
1486   --without-xml           do not use XML
1487   --without-xrandr        do not use Xrandr (resolution changes)
1488   --without-xrender       do not use the Xrender extension
1489   --without-xshape        do not use the Xshape extension
1490   --without-xshm          do not use XShm (shared memory extension)
1491   --without-xslt          do not use XSLT
1492   --without-xxf86vm       do not use XFree video mode extension
1493   --with-wine-tools=DIR   use Wine tools from directory DIR
1494   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1495   --with-x                use the X Window System
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CXX         C++ compiler command
1506   CXXFLAGS    C++ compiler flags
1507   CPP         C preprocessor
1508   XMKMF       Path to xmkmf, Makefile generator for X Window System
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to <wine-devel@winehq.org>.
1514 Wine home page: <http://www.winehq.org>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520   # If there are subdirs, report their specific --help.
1521   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522     test -d "$ac_dir" ||
1523       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524       continue
1525     ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531   # A ".." for each directory in $ac_dir_suffix.
1532   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533   case $ac_top_builddir_sub in
1534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536   esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544   .)  # We are building in place.
1545     ac_srcdir=.
1546     ac_top_srcdir=$ac_top_builddir_sub
1547     ac_abs_top_srcdir=$ac_pwd ;;
1548   [\\/]* | ?:[\\/]* )  # Absolute name.
1549     ac_srcdir=$srcdir$ac_dir_suffix;
1550     ac_top_srcdir=$srcdir
1551     ac_abs_top_srcdir=$srcdir ;;
1552   *) # Relative name.
1553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554     ac_top_srcdir=$ac_top_build_prefix$srcdir
1555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559     cd "$ac_dir" || { ac_status=$?; continue; }
1560     # Check for guested configure.
1561     if test -f "$ac_srcdir/configure.gnu"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564     elif test -f "$ac_srcdir/configure"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure" --help=recursive
1567     else
1568       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569     fi || ac_status=$?
1570     cd "$ac_pwd" || { ac_status=$?; break; }
1571   done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576   cat <<\_ACEOF
1577 Wine configure 1.1.42
1578 generated by GNU Autoconf 2.65
1579
1580 Copyright (C) 2009 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584   exit
1585 fi
1586
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   rm -f conftest.$ac_objext
1598   if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_compile") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } && {
1614          test -z "$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        } && test -s conftest.$ac_objext; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622         ac_retval=1
1623 fi
1624   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_cxx_try_compile LINENO
1630 # ----------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_cxx_try_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext
1636   if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_compile") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_cxx_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest.$ac_objext; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_cxx_try_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext conftest$ac_exeext
1674   if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_link") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest$ac_exeext && {
1693          test "$cross_compiling" = yes ||
1694          $as_test_x conftest$ac_exeext
1695        }; then :
1696   ac_retval=0
1697 else
1698   $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701         ac_retval=1
1702 fi
1703   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705   # interfere with the next link command; also delete a directory that is
1706   # left behind by Apple's compiler.  We do this before executing the actions.
1707   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743     ac_retval=1
1744 fi
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762   $as_echo_n "(cached) " >&6
1763 fi
1764 eval ac_res=\$$3
1765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768   # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777   ac_header_compiler=yes
1778 else
1779   ac_header_compiler=no
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1784
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793   ac_header_preproc=yes
1794 else
1795   ac_header_preproc=no
1796 fi
1797 rm -f conftest.err conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1800
1801 # So?  What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803   yes:no: )
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808     ;;
1809   no:yes:* )
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ( cat <<\_ASBOX
1821 ## ------------------------------------ ##
1822 ## Report this to wine-devel@winehq.org ##
1823 ## ------------------------------------ ##
1824 _ASBOX
1825      ) | sed "s/^/$as_me: WARNING:     /" >&2
1826     ;;
1827 esac
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   eval "$3=\$ac_header_compiler"
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 fi
1839   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840
1841 } # ac_fn_c_check_header_mongrel
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_link") 2>&5
1858   ac_status=$?
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861   { { case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_try") 2>&5
1868   ac_status=$?
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; }; }; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: program exited with status $ac_status" >&5
1874        $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877        ac_retval=$ac_status
1878 fi
1879   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881   as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 $4
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903   eval "$3=yes"
1904 else
1905   eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914 } # ac_fn_c_check_header_compile
1915
1916 # ac_fn_c_check_func LINENO FUNC VAR
1917 # ----------------------------------
1918 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1919 ac_fn_c_check_func ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925   $as_echo_n "(cached) " >&6
1926 else
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1931 #define $2 innocuous_$2
1932
1933 /* System header to define __stub macros and hopefully few prototypes,
1934     which can conflict with char $2 (); below.
1935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936     <limits.h> exists even on freestanding compilers.  */
1937
1938 #ifdef __STDC__
1939 # include <limits.h>
1940 #else
1941 # include <assert.h>
1942 #endif
1943
1944 #undef $2
1945
1946 /* Override any GCC internal prototype to avoid an error.
1947    Use char because int might match the return type of a GCC
1948    builtin and then its argument prototype would still apply.  */
1949 #ifdef __cplusplus
1950 extern "C"
1951 #endif
1952 char $2 ();
1953 /* The GNU C library defines this for functions which it implements
1954     to always fail with ENOSYS.  Some functions are actually named
1955     something starting with __ and the normal name is an alias.  */
1956 #if defined __stub_$2 || defined __stub___$2
1957 choke me
1958 #endif
1959
1960 int
1961 main ()
1962 {
1963 return $2 ();
1964   ;
1965   return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_link "$LINENO"; then :
1969   eval "$3=yes"
1970 else
1971   eval "$3=no"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext \
1974     conftest$ac_exeext conftest.$ac_ext
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980
1981 } # ac_fn_c_check_func
1982
1983 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1984 # ----------------------------------------------------
1985 # Tries to find if the field MEMBER exists in type AGGR, after including
1986 # INCLUDES, setting cache variable VAR accordingly.
1987 ac_fn_c_check_member ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1991 $as_echo_n "checking for $2.$3... " >&6; }
1992 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $5
1998 int
1999 main ()
2000 {
2001 static $2 ac_aggr;
2002 if (ac_aggr.$3)
2003 return 0;
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   eval "$4=yes"
2010 else
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $5
2014 int
2015 main ()
2016 {
2017 static $2 ac_aggr;
2018 if (sizeof ac_aggr.$3)
2019 return 0;
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   eval "$4=yes"
2026 else
2027   eval "$4=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$4
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
2038 } # ac_fn_c_check_member
2039
2040 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041 # -------------------------------------------
2042 # Tests whether TYPE exists after having included INCLUDES, setting cache
2043 # variable VAR accordingly.
2044 ac_fn_c_check_type ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050   $as_echo_n "(cached) " >&6
2051 else
2052   eval "$3=no"
2053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main ()
2058 {
2059 if (sizeof ($2))
2060          return 0;
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 if (sizeof (($2)))
2073             return 0;
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079
2080 else
2081   eval "$3=yes"
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 eval ac_res=\$$3
2088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091
2092 } # ac_fn_c_check_type
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by Wine $as_me 1.1.42, which was
2098 generated by GNU Autoconf 2.65.  Invocation command line was
2099
2100   $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2118
2119 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2120 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2123 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2124 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2125 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132   IFS=$as_save_IFS
2133   test -z "$as_dir" && as_dir=.
2134     $as_echo "PATH: $as_dir"
2135   done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161   for ac_arg
2162   do
2163     case $ac_arg in
2164     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166     | -silent | --silent | --silen | --sile | --sil)
2167       continue ;;
2168     *\'*)
2169       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170     esac
2171     case $ac_pass in
2172     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173     2)
2174       as_fn_append ac_configure_args1 " '$ac_arg'"
2175       if test $ac_must_keep_next = true; then
2176         ac_must_keep_next=false # Got value, back to normal.
2177       else
2178         case $ac_arg in
2179           *=* | --config-cache | -C | -disable-* | --disable-* \
2180           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182           | -with-* | --with-* | -without-* | --without-* | --x)
2183             case "$ac_configure_args0 " in
2184               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185             esac
2186             ;;
2187           -* ) ac_must_keep_next=true ;;
2188         esac
2189       fi
2190       as_fn_append ac_configure_args " '$ac_arg'"
2191       ;;
2192     esac
2193   done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log.  We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204   # Save into config.log some information that might help in debugging.
2205   {
2206     echo
2207
2208     cat <<\_ASBOX
2209 ## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##
2212 _ASBOX
2213     echo
2214     # The following way of writing the cache mishandles newlines in values,
2215 (
2216   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217     eval ac_val=\$$ac_var
2218     case $ac_val in #(
2219     *${as_nl}*)
2220       case $ac_var in #(
2221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223       esac
2224       case $ac_var in #(
2225       _ | IFS | as_nl) ;; #(
2226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227       *) { eval $ac_var=; unset $ac_var;} ;;
2228       esac ;;
2229     esac
2230   done
2231   (set) 2>&1 |
2232     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233     *${as_nl}ac_space=\ *)
2234       sed -n \
2235         "s/'\''/'\''\\\\'\'''\''/g;
2236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237       ;; #(
2238     *)
2239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240       ;;
2241     esac |
2242     sort
2243 )
2244     echo
2245
2246     cat <<\_ASBOX
2247 ## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##
2250 _ASBOX
2251     echo
2252     for ac_var in $ac_subst_vars
2253     do
2254       eval ac_val=\$$ac_var
2255       case $ac_val in
2256       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257       esac
2258       $as_echo "$ac_var='\''$ac_val'\''"
2259     done | sort
2260     echo
2261
2262     if test -n "$ac_subst_files"; then
2263       cat <<\_ASBOX
2264 ## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##
2267 _ASBOX
2268       echo
2269       for ac_var in $ac_subst_files
2270       do
2271         eval ac_val=\$$ac_var
2272         case $ac_val in
2273         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274         esac
2275         $as_echo "$ac_var='\''$ac_val'\''"
2276       done | sort
2277       echo
2278     fi
2279
2280     if test -s confdefs.h; then
2281       cat <<\_ASBOX
2282 ## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##
2285 _ASBOX
2286       echo
2287       cat confdefs.h
2288       echo
2289     fi
2290     test "$ac_signal" != 0 &&
2291       $as_echo "$as_me: caught signal $ac_signal"
2292     $as_echo "$as_me: exit $exit_status"
2293   } >&5
2294   rm -f core *.core core.conftest.* &&
2295     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296     exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 $as_echo "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340   ac_site_file1=$CONFIG_SITE
2341 elif test "x$prefix" != xNONE; then
2342   ac_site_file1=$prefix/share/config.site
2343   ac_site_file2=$prefix/etc/config.site
2344 else
2345   ac_site_file1=$ac_default_prefix/share/config.site
2346   ac_site_file2=$ac_default_prefix/etc/config.site
2347 fi
2348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349 do
2350   test "x$ac_site_file" = xNONE && continue
2351   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354     sed 's/^/| /' "$ac_site_file" >&5
2355     . "$ac_site_file"
2356   fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360   # Some versions of bash will fail to source /dev/null (special files
2361   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2362   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365     case $cache_file in
2366       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367       *)                      . "./$cache_file";;
2368     esac
2369   fi
2370 else
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373   >$cache_file
2374 fi
2375
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381   eval ac_new_set=\$ac_env_${ac_var}_set
2382   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383   eval ac_new_val=\$ac_env_${ac_var}_value
2384   case $ac_old_set,$ac_new_set in
2385     set,)
2386       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388       ac_cache_corrupted=: ;;
2389     ,set)
2390       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392       ac_cache_corrupted=: ;;
2393     ,);;
2394     *)
2395       if test "x$ac_old_val" != "x$ac_new_val"; then
2396         # differences in whitespace do not lead to failure.
2397         ac_old_val_w=`echo x $ac_old_val`
2398         ac_new_val_w=`echo x $ac_new_val`
2399         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402           ac_cache_corrupted=:
2403         else
2404           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406           eval $ac_var=\$ac_old_val
2407         fi
2408         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2409 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2410         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2412       fi;;
2413   esac
2414   # Pass precious variables to config.status.
2415   if test "$ac_new_set" = set; then
2416     case $ac_new_val in
2417     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     *) ac_arg=$ac_var=$ac_new_val ;;
2419     esac
2420     case " $ac_configure_args " in
2421       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2422       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423     esac
2424   fi
2425 done
2426 if $ac_cache_corrupted; then
2427   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 fi
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2436
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445 ac_config_headers="$ac_config_headers include/config.h"
2446
2447 ac_aux_dir=
2448 for ac_dir in tools "$srcdir"/tools; do
2449   for ac_t in install-sh install.sh shtool; do
2450     if test -f "$ac_dir/$ac_t"; then
2451       ac_aux_dir=$ac_dir
2452       ac_install_sh="$ac_aux_dir/$ac_t -c"
2453       break 2
2454     fi
2455   done
2456 done
2457 if test -z "$ac_aux_dir"; then
2458   as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2459 fi
2460
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2468
2469
2470
2471
2472
2473 # Check whether --enable-win16 was given.
2474 if test "${enable_win16+set}" = set; then :
2475   enableval=$enable_win16;
2476 fi
2477
2478 # Check whether --enable-win64 was given.
2479 if test "${enable_win64+set}" = set; then :
2480   enableval=$enable_win64;
2481 fi
2482
2483 # Check whether --enable-tests was given.
2484 if test "${enable_tests+set}" = set; then :
2485   enableval=$enable_tests;
2486 fi
2487
2488 # Check whether --enable-maintainer-mode was given.
2489 if test "${enable_maintainer_mode+set}" = set; then :
2490   enableval=$enable_maintainer_mode;
2491 else
2492   MAINTAINER_MODE=\#
2493
2494 fi
2495
2496
2497
2498 # Check whether --with-alsa was given.
2499 if test "${with_alsa+set}" = set; then :
2500   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2501 fi
2502
2503
2504 # Check whether --with-audioio was given.
2505 if test "${with_audioio+set}" = set; then :
2506   withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2507 fi
2508
2509
2510 # Check whether --with-capi was given.
2511 if test "${with_capi+set}" = set; then :
2512   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2513 fi
2514
2515
2516 # Check whether --with-cms was given.
2517 if test "${with_cms+set}" = set; then :
2518   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2519 fi
2520
2521
2522 # Check whether --with-coreaudio was given.
2523 if test "${with_coreaudio+set}" = set; then :
2524   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2525 fi
2526
2527
2528 # Check whether --with-cups was given.
2529 if test "${with_cups+set}" = set; then :
2530   withval=$with_cups;
2531 fi
2532
2533
2534 # Check whether --with-curses was given.
2535 if test "${with_curses+set}" = set; then :
2536   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2537 fi
2538
2539
2540 # Check whether --with-esd was given.
2541 if test "${with_esd+set}" = set; then :
2542   withval=$with_esd;
2543 fi
2544
2545
2546 # Check whether --with-fontconfig was given.
2547 if test "${with_fontconfig+set}" = set; then :
2548   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2549 fi
2550
2551
2552 # Check whether --with-freetype was given.
2553 if test "${with_freetype+set}" = set; then :
2554   withval=$with_freetype;
2555 fi
2556
2557
2558 # Check whether --with-gphoto was given.
2559 if test "${with_gphoto+set}" = set; then :
2560   withval=$with_gphoto;
2561 fi
2562
2563
2564 # Check whether --with-glu was given.
2565 if test "${with_glu+set}" = set; then :
2566   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2567 fi
2568
2569
2570 # Check whether --with-gnutls was given.
2571 if test "${with_gnutls+set}" = set; then :
2572   withval=$with_gnutls;
2573 fi
2574
2575
2576 # Check whether --with-gsm was given.
2577 if test "${with_gsm+set}" = set; then :
2578   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2579 fi
2580
2581
2582 # Check whether --with-hal was given.
2583 if test "${with_hal+set}" = set; then :
2584   withval=$with_hal;
2585 fi
2586
2587
2588 # Check whether --with-jack was given.
2589 if test "${with_jack+set}" = set; then :
2590   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2591 fi
2592
2593
2594 # Check whether --with-jpeg was given.
2595 if test "${with_jpeg+set}" = set; then :
2596   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2597 fi
2598
2599
2600 # Check whether --with-ldap was given.
2601 if test "${with_ldap+set}" = set; then :
2602   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2603 fi
2604
2605
2606 # Check whether --with-mpg123 was given.
2607 if test "${with_mpg123+set}" = set; then :
2608   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2609 fi
2610
2611
2612 # Check whether --with-nas was given.
2613 if test "${with_nas+set}" = set; then :
2614   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2615 fi
2616
2617
2618 # Check whether --with-openal was given.
2619 if test "${with_openal+set}" = set; then :
2620   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2621 fi
2622
2623
2624 # Check whether --with-opengl was given.
2625 if test "${with_opengl+set}" = set; then :
2626   withval=$with_opengl;
2627 fi
2628
2629
2630 # Check whether --with-openssl was given.
2631 if test "${with_openssl+set}" = set; then :
2632   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2633 fi
2634
2635
2636 # Check whether --with-oss was given.
2637 if test "${with_oss+set}" = set; then :
2638   withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2639 fi
2640
2641
2642 # Check whether --with-png was given.
2643 if test "${with_png+set}" = set; then :
2644   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2645 fi
2646
2647
2648 # Check whether --with-pthread was given.
2649 if test "${with_pthread+set}" = set; then :
2650   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2651 fi
2652
2653
2654 # Check whether --with-sane was given.
2655 if test "${with_sane+set}" = set; then :
2656   withval=$with_sane;
2657 fi
2658
2659
2660 # Check whether --with-tiff was given.
2661 if test "${with_tiff+set}" = set; then :
2662   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2663 fi
2664
2665
2666 # Check whether --with-v4l was given.
2667 if test "${with_v4l+set}" = set; then :
2668   withval=$with_v4l;
2669 fi
2670
2671
2672 # Check whether --with-xcomposite was given.
2673 if test "${with_xcomposite+set}" = set; then :
2674   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2675 fi
2676
2677
2678 # Check whether --with-xcursor was given.
2679 if test "${with_xcursor+set}" = set; then :
2680   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2681 fi
2682
2683
2684 # Check whether --with-xinerama was given.
2685 if test "${with_xinerama+set}" = set; then :
2686   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2687 fi
2688
2689
2690 # Check whether --with-xinput was given.
2691 if test "${with_xinput+set}" = set; then :
2692   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2693 fi
2694
2695
2696 # Check whether --with-xml was given.
2697 if test "${with_xml+set}" = set; then :
2698   withval=$with_xml;
2699 fi
2700
2701
2702 # Check whether --with-xrandr was given.
2703 if test "${with_xrandr+set}" = set; then :
2704   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2705 fi
2706
2707
2708 # Check whether --with-xrender was given.
2709 if test "${with_xrender+set}" = set; then :
2710   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2711 fi
2712
2713
2714 # Check whether --with-xshape was given.
2715 if test "${with_xshape+set}" = set; then :
2716   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2717 fi
2718
2719
2720 # Check whether --with-xshm was given.
2721 if test "${with_xshm+set}" = set; then :
2722   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2723 fi
2724
2725
2726 # Check whether --with-xslt was given.
2727 if test "${with_xslt+set}" = set; then :
2728   withval=$with_xslt;
2729 fi
2730
2731
2732 # Check whether --with-xxf86vm was given.
2733 if test "${with_xxf86vm+set}" = set; then :
2734   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
2735 fi
2736
2737
2738
2739 # Check whether --with-wine-tools was given.
2740 if test "${with_wine_tools+set}" = set; then :
2741   withval=$with_wine_tools;
2742 fi
2743
2744
2745 # Check whether --with-wine64 was given.
2746 if test "${with_wine64+set}" = set; then :
2747   withval=$with_wine64;
2748 fi
2749
2750
2751 # Make sure we can run config.sub.
2752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2753   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2756 $as_echo_n "checking build system type... " >&6; }
2757 if test "${ac_cv_build+set}" = set; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   ac_build_alias=$build_alias
2761 test "x$ac_build_alias" = x &&
2762   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2763 test "x$ac_build_alias" = x &&
2764   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2765 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2766   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2767
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2770 $as_echo "$ac_cv_build" >&6; }
2771 case $ac_cv_build in
2772 *-*-*) ;;
2773 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2774 esac
2775 build=$ac_cv_build
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_build
2778 shift
2779 build_cpu=$1
2780 build_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 build_os=$*
2785 IFS=$ac_save_IFS
2786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2790 $as_echo_n "checking host system type... " >&6; }
2791 if test "${ac_cv_host+set}" = set; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test "x$host_alias" = x; then
2795   ac_cv_host=$ac_cv_build
2796 else
2797   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2798     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 fi
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2803 $as_echo "$ac_cv_host" >&6; }
2804 case $ac_cv_host in
2805 *-*-*) ;;
2806 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2807 esac
2808 host=$ac_cv_host
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_host
2811 shift
2812 host_cpu=$1
2813 host_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 host_os=$*
2818 IFS=$ac_save_IFS
2819 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820
2821
2822
2823 case "$srcdir" in
2824  .) ;;
2825  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2826       as_fn_error "you are building out of the source tree, but the source tree contains object files.
2827 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2828     fi ;;
2829 esac
2830
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2833 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2834 set x ${MAKE-make}
2835 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2836 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2837   $as_echo_n "(cached) " >&6
2838 else
2839   cat >conftest.make <<\_ACEOF
2840 SHELL = /bin/sh
2841 all:
2842         @echo '@@@%%%=$(MAKE)=@@@%%%'
2843 _ACEOF
2844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2845 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2846   *@@@%%%=?*=@@@%%%*)
2847     eval ac_cv_prog_make_${ac_make}_set=yes;;
2848   *)
2849     eval ac_cv_prog_make_${ac_make}_set=no;;
2850 esac
2851 rm -f conftest.make
2852 fi
2853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2855 $as_echo "yes" >&6; }
2856   SET_MAKE=
2857 else
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860   SET_MAKE="MAKE=${MAKE-make}"
2861 fi
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   if test -n "$CC"; then
2877   ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     for ac_exec_ext in '' $ac_executable_extensions; do
2885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891   done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908   ac_ct_CC=$CC
2909   # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$ac_ct_CC"; then
2917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924     for ac_exec_ext in '' $ac_executable_extensions; do
2925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926     ac_cv_prog_ac_ct_CC="gcc"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945   if test "x$ac_ct_CC" = x; then
2946     CC=""
2947   else
2948     case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954     CC=$ac_ct_CC
2955   fi
2956 else
2957   CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961           if test -n "$ac_tool_prefix"; then
2962     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_CC="${ac_tool_prefix}cc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999   fi
3000 fi
3001 if test -z "$CC"; then
3002   # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$CC"; then
3010   ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012   ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021        ac_prog_rejected=yes
3022        continue
3023      fi
3024     ac_cv_prog_CC="cc"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033   # We found a bogon in the path, so make sure we never use it.
3034   set dummy $ac_cv_prog_CC
3035   shift
3036   if test $# != 0; then
3037     # We chose a different compiler from the bogus one.
3038     # However, it has the same basename, so the bogon will be chosen
3039     # first if we set CC to just the basename; use the full file name.
3040     shift
3041     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042   fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058   if test -n "$ac_tool_prefix"; then
3059   for ac_prog in cl.exe
3060   do
3061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CC"; then
3069   ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098     test -n "$CC" && break
3099   done
3100 fi
3101 if test -z "$CC"; then
3102   ac_ct_CC=$CC
3103   for ac_prog in cl.exe
3104 do
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$ac_ct_CC"; then
3113   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120     for ac_exec_ext in '' $ac_executable_extensions; do
3121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122     ac_cv_prog_ac_ct_CC="$ac_prog"
3123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127   done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142   test -n "$ac_ct_CC" && break
3143 done
3144
3145   if test "x$ac_ct_CC" = x; then
3146     CC=""
3147   else
3148     case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154     CC=$ac_ct_CC
3155   fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details." "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171   { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179   ac_status=$?
3180   if test -s conftest.err; then
3181     sed '10a\
3182 ... rest of stderr output deleted ...
3183          10q' conftest.err >conftest.er1
3184     cat conftest.er1 >&5
3185   fi
3186   rm -f conftest.er1 conftest.err
3187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188   test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217   case $ac_file in
3218     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220   esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231   (eval "$ac_link_default") 2>&5
3232   ac_status=$?
3233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234   test $ac_status = 0; }; then :
3235   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242   test -f "$ac_file" || continue
3243   case $ac_file in
3244     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245         ;;
3246     [ab].out )
3247         # We found the default executable, but exeext='' is most
3248         # certainly right.
3249         break;;
3250     *.* )
3251         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252         then :; else
3253            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254         fi
3255         # We set ac_cv_exeext here because the later test for it is not
3256         # safe: cross compilers may not add the suffix if given an `-o'
3257         # argument, so we may need to know it at that point already.
3258         # Even if this section looks crufty: it has the advantage of
3259         # actually working.
3260         break;;
3261     * )
3262         break;;
3263   esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268   ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { as_fn_set_status 77
3279 as_fn_error "C compiler cannot create executables
3280 See \`config.log' for more details." "$LINENO" 5; }; }
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3290
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
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") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311   test -f "$ac_file" || continue
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315           break;;
3316     * ) break;;
3317   esac
3318 done
3319 else
3320   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." "$LINENO" 5; }
3324 fi
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3328
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h.  */
3334 #include <stdio.h>
3335 int
3336 main ()
3337 {
3338 FILE *f = fopen ("conftest.out", "w");
3339  return ferror (f) || fclose (f) != 0;
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run.  If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351   { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_link") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }
3362   if { ac_try='./conftest$ac_cv_exeext'
3363   { { case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369   (eval "$ac_try") 2>&5
3370   ac_status=$?
3371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372   test $ac_status = 0; }; }; then
3373     cross_compiling=no
3374   else
3375     if test "$cross_compiling" = maybe; then
3376         cross_compiling=yes
3377     else
3378         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details." "$LINENO" 5; }
3383     fi
3384   fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3388
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if test "${ac_cv_objext+set}" = set; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398
3399 int
3400 main ()
3401 {
3402
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415   (eval "$ac_compile") 2>&5
3416   ac_status=$?
3417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418   test $ac_status = 0; }; then :
3419   for ac_file in conftest.o conftest.obj conftest.*; do
3420   test -f "$ac_file" || continue;
3421   case $ac_file in
3422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424        break;;
3425   esac
3426 done
3427 else
3428   $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details." "$LINENO" 5; }
3435 fi
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453 #ifndef __GNUC__
3454        choke me
3455 #endif
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462   ac_compiler_gnu=yes
3463 else
3464   ac_compiler_gnu=no
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473   GCC=yes
3474 else
3475   GCC=
3476 fi
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if test "${ac_cv_prog_cc_g+set}" = set; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   ac_save_c_werror_flag=$ac_c_werror_flag
3485    ac_c_werror_flag=yes
3486    ac_cv_prog_cc_g=no
3487    CFLAGS="-g"
3488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500   ac_cv_prog_cc_g=yes
3501 else
3502   CFLAGS=""
3503       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515
3516 else
3517   ac_c_werror_flag=$ac_save_c_werror_flag
3518          CFLAGS="-g"
3519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531   ac_cv_prog_cc_g=yes
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538    ac_c_werror_flag=$ac_save_c_werror_flag
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543   CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545   if test "$GCC" = yes; then
3546     CFLAGS="-g -O2"
3547   else
3548     CFLAGS="-g"
3549   fi
3550 else
3551   if test "$GCC" = yes; then
3552     CFLAGS="-O2"
3553   else
3554     CFLAGS=
3555   fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 #include <sys/types.h>
3569 #include <sys/stat.h>
3570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3571 struct buf { int x; };
3572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3573 static char *e (p, i)
3574      char **p;
3575      int i;
3576 {
3577   return p[i];
3578 }
3579 static char *f (char * (*g) (char **, int), char **p, ...)
3580 {
3581   char *s;
3582   va_list v;
3583   va_start (v,p);
3584   s = g (p, va_arg (v,int));
3585   va_end (v);
3586   return s;
3587 }
3588
3589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3590    function prototypes and stuff, but not '\xHH' hex character constants.
3591    These don't provoke an error unfortunately, instead are silently treated
3592    as 'x'.  The following induces an error, until -std is added to get
3593    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3594    array size at least.  It's necessary to write '\x00'==0 to get something
3595    that's true only with -std.  */
3596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3597
3598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3599    inside strings and character constants.  */
3600 #define FOO(x) 'x'
3601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3602
3603 int test (int i, double x);
3604 struct s1 {int (*f) (int a);};
3605 struct s2 {int (*f) (double a);};
3606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3607 int argc;
3608 char **argv;
3609 int
3610 main ()
3611 {
3612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3618         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3619 do
3620   CC="$ac_save_CC $ac_arg"
3621   if ac_fn_c_try_compile "$LINENO"; then :
3622   ac_cv_prog_cc_c89=$ac_arg
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext
3625   test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3629
3630 fi
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3633   x)
3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3635 $as_echo "none needed" >&6; } ;;
3636   xno)
3637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3638 $as_echo "unsupported" >&6; } ;;
3639   *)
3640     CC="$CC $ac_cv_prog_cc_c89"
3641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644 if test "x$ac_cv_prog_cc_c89" != xno; then :
3645
3646 fi
3647
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653
3654 ac_ext=cpp
3655 ac_cpp='$CXXCPP $CPPFLAGS'
3656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3659 if test -z "$CXX"; then
3660   if test -n "$CCC"; then
3661     CXX=$CCC
3662   else
3663     if test -n "$ac_tool_prefix"; then
3664   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3665   do
3666     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CXX+set}" = set; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673   if test -n "$CXX"; then
3674   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681     for ac_exec_ext in '' $ac_executable_extensions; do
3682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688   done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 CXX=$ac_cv_prog_CXX
3694 if test -n "$CXX"; then
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3696 $as_echo "$CXX" >&6; }
3697 else
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3701
3702
3703     test -n "$CXX" && break
3704   done
3705 fi
3706 if test -z "$CXX"; then
3707   ac_ct_CXX=$CXX
3708   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3709 do
3710   # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   if test -n "$ac_ct_CXX"; then
3718   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725     for ac_exec_ext in '' $ac_executable_extensions; do
3726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727     ac_cv_prog_ac_ct_CXX="$ac_prog"
3728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732   done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3738 if test -n "$ac_ct_CXX"; then
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3740 $as_echo "$ac_ct_CXX" >&6; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746
3747   test -n "$ac_ct_CXX" && break
3748 done
3749
3750   if test "x$ac_ct_CXX" = x; then
3751     CXX="g++"
3752   else
3753     case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759     CXX=$ac_ct_CXX
3760   fi
3761 fi
3762
3763   fi
3764 fi
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3767 set X $ac_compile
3768 ac_compiler=$2
3769 for ac_option in --version -v -V -qversion; do
3770   { { ac_try="$ac_compiler $ac_option >&5"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3778   ac_status=$?
3779   if test -s conftest.err; then
3780     sed '10a\
3781 ... rest of stderr output deleted ...
3782          10q' conftest.err >conftest.er1
3783     cat conftest.er1 >&5
3784   fi
3785   rm -f conftest.er1 conftest.err
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }
3788 done
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3791 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3792 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801 #ifndef __GNUC__
3802        choke me
3803 #endif
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_cxx_try_compile "$LINENO"; then :
3810   ac_compiler_gnu=yes
3811 else
3812   ac_compiler_gnu=no
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3816
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3819 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3820 if test $ac_compiler_gnu = yes; then
3821   GXX=yes
3822 else
3823   GXX=
3824 fi
3825 ac_test_CXXFLAGS=${CXXFLAGS+set}
3826 ac_save_CXXFLAGS=$CXXFLAGS
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3828 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3829 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3830   $as_echo_n "(cached) " >&6
3831 else
3832   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3833    ac_cxx_werror_flag=yes
3834    ac_cv_prog_cxx_g=no
3835    CXXFLAGS="-g"
3836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_cxx_try_compile "$LINENO"; then :
3848   ac_cv_prog_cxx_g=yes
3849 else
3850   CXXFLAGS=""
3851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_cxx_try_compile "$LINENO"; then :
3863
3864 else
3865   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3866          CXXFLAGS="-g"
3867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869
3870 int
3871 main ()
3872 {
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879   ac_cv_prog_cxx_g=yes
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 fi
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3889 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3890 if test "$ac_test_CXXFLAGS" = set; then
3891   CXXFLAGS=$ac_save_CXXFLAGS
3892 elif test $ac_cv_prog_cxx_g = yes; then
3893   if test "$GXX" = yes; then
3894     CXXFLAGS="-g -O2"
3895   else
3896     CXXFLAGS="-g"
3897   fi
3898 else
3899   if test "$GXX" = yes; then
3900     CXXFLAGS="-O2"
3901   else
3902     CXXFLAGS=
3903   fi
3904 fi
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911 if test -n "$ac_tool_prefix"; then
3912   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -n "$CPPBIN"; then
3920   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934   done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 CPPBIN=$ac_cv_prog_CPPBIN
3940 if test -n "$CPPBIN"; then
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3942 $as_echo "$CPPBIN" >&6; }
3943 else
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949 fi
3950 if test -z "$ac_cv_prog_CPPBIN"; then
3951   ac_ct_CPPBIN=$CPPBIN
3952   # Extract the first word of "cpp", so it can be a program name with args.
3953 set dummy cpp; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   if test -n "$ac_ct_CPPBIN"; then
3960   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967     for ac_exec_ext in '' $ac_executable_extensions; do
3968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969     ac_cv_prog_ac_ct_CPPBIN="cpp"
3970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974   done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3980 if test -n "$ac_ct_CPPBIN"; then
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3982 $as_echo "$ac_ct_CPPBIN" >&6; }
3983 else
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988   if test "x$ac_ct_CPPBIN" = x; then
3989     CPPBIN="cpp"
3990   else
3991     case $cross_compiling:$ac_tool_warned in
3992 yes:)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995 ac_tool_warned=yes ;;
3996 esac
3997     CPPBIN=$ac_ct_CPPBIN
3998   fi
3999 else
4000   CPPBIN="$ac_cv_prog_CPPBIN"
4001 fi
4002
4003
4004 cat >>confdefs.h <<_ACEOF
4005 #define EXEEXT "$ac_exeext"
4006 _ACEOF
4007
4008
4009 case $host in
4010   *-darwin*)
4011     if test "x$enable_win64" = "xyes"
4012     then
4013       CC="$CC -m64"
4014       CXX="$CXX -m64"
4015       LD="${LD:-ld} -arch x86_64"
4016       AS="${AS:-as} -arch x86_64"
4017       host_cpu="x86_64"
4018       notice_platform="64-bit "
4019       TARGETFLAGS="-m64"
4020
4021     else
4022       CC="$CC -m32"
4023       CXX="$CXX -m32"
4024       LD="${LD:-ld} -arch i386"
4025       AS="${AS:-as} -arch i386"
4026       host_cpu="i386"
4027       notice_platform="32-bit "
4028       TARGETFLAGS="-m32"
4029
4030       enable_win16=${enable_win16:-yes}
4031     fi
4032     ;;
4033   x86_64*)
4034     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4035     then
4036       CC="$CC -m32"
4037       CXX="$CXX -m32"
4038       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4039 $as_echo_n "checking whether $CC works... " >&6; }
4040
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 if ac_fn_c_try_link "$LINENO"; then :
4053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4055 else
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058                       as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext \
4061     conftest$ac_exeext conftest.$ac_ext
4062       LD="${LD:-ld} -m elf_i386"
4063       AS="${AS:-as} --32"
4064       host_cpu="i386"
4065       notice_platform="32-bit "
4066       TARGETFLAGS="-m32"
4067
4068       enable_win16=${enable_win16:-yes}
4069     else
4070       if test "x${GCC}" = "xyes"
4071       then
4072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4073 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #include <stdarg.h>
4077 int
4078 main ()
4079 {
4080 void func(__builtin_ms_va_list *args);
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091                            as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094       fi
4095       TARGETFLAGS="-m64"
4096
4097     fi
4098     ;;
4099   *-mingw32*|*-cygwin*)
4100     enable_win16=${enable_win16:-no}
4101     CFLAGS="$CFLAGS -D_WIN32"
4102     ;;
4103   i[3456789]86*)
4104     enable_win16=${enable_win16:-yes}
4105     ;;
4106 esac
4107
4108 enable_win16=${enable_win16:-no}
4109
4110 enable_winetest=${enable_winetest:-$enable_tests}
4111
4112 if test -n "$with_wine64"
4113 then
4114     if test "x$enable_win64" = "xyes"
4115     then
4116         as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4117 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4118     fi
4119     WOW64_DISABLE=\#
4120
4121     enable_fonts=${enable_fonts:-no}
4122     enable_include=${enable_include:-no}
4123     enable_rpcss=${enable_rpcss:-no}
4124     enable_server=${enable_server:-no}
4125     enable_tools=${enable_tools:-no}
4126     enable_wineboot=${enable_wineboot:-no}
4127     enable_winedbg=${enable_winedbg:-no}
4128     enable_winemenubuilder=${enable_winemenubuilder:-no}
4129     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4130 fi
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4133 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4134 if test "${wine_cv_toolsdir+set}" = set; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   wine_cv_toolsdir="$with_wine_tools"
4138    if test -z "$with_wine_tools"; then
4139      if test "$cross_compiling" = "yes"; then
4140        as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4141      elif test -n "$with_wine64"; then
4142        wine_cv_toolsdir="$with_wine64"
4143      fi
4144    fi
4145    if test -z "$wine_cv_toolsdir"; then
4146      wine_cv_toolsdir="\$(TOPOBJDIR)"
4147    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4148      case "$wine_cv_toolsdir" in
4149        /*) ;;
4150        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4151      esac
4152    else
4153      as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4154    fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4157 $as_echo "$wine_cv_toolsdir" >&6; }
4158 TOOLSDIR=$wine_cv_toolsdir
4159
4160 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4161 then
4162     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4163
4164 fi
4165
4166 for ac_prog in flex
4167 do
4168   # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if test "${ac_cv_prog_FLEX+set}" = set; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -n "$FLEX"; then
4176   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_exec_ext in '' $ac_executable_extensions; do
4184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185     ac_cv_prog_FLEX="$ac_prog"
4186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190   done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 FLEX=$ac_cv_prog_FLEX
4196 if test -n "$FLEX"; then
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4198 $as_echo "$FLEX" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204
4205   test -n "$FLEX" && break
4206 done
4207 test -n "$FLEX" || FLEX="none"
4208
4209 if test "$FLEX" = "none"
4210 then
4211   as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4214 $as_echo_n "checking whether flex is recent enough... " >&6; }
4215 cat >conftest.l <<EOF
4216 %top{
4217 #include "prediluvian.h"
4218 }
4219 %%
4220 EOF
4221 if $FLEX -t conftest.l >/dev/null 2>&1
4222 then
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225 else
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228   as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4229 fi
4230
4231 for ac_prog in bison
4232 do
4233   # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_BISON+set}" = set; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$BISON"; then
4241   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250     ac_cv_prog_BISON="$ac_prog"
4251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255   done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 BISON=$ac_cv_prog_BISON
4261 if test -n "$BISON"; then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4263 $as_echo "$BISON" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270   test -n "$BISON" && break
4271 done
4272 test -n "$BISON" || BISON="none"
4273
4274 if test "$BISON" = "none"
4275 then
4276   as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4277 fi
4278
4279 if test -n "$ac_tool_prefix"; then
4280   for ac_prog in ar gar
4281   do
4282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if test "${ac_cv_prog_AR+set}" = set; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -n "$AR"; then
4290   ac_cv_prog_AR="$AR" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304   done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 AR=$ac_cv_prog_AR
4310 if test -n "$AR"; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4312 $as_echo "$AR" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319     test -n "$AR" && break
4320   done
4321 fi
4322 if test -z "$AR"; then
4323   ac_ct_AR=$AR
4324   for ac_prog in ar gar
4325 do
4326   # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -n "$ac_ct_AR"; then
4334   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341     for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_prog_ac_ct_AR="$ac_prog"
4344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348   done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4354 if test -n "$ac_ct_AR"; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4356 $as_echo "$ac_ct_AR" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363   test -n "$ac_ct_AR" && break
4364 done
4365
4366   if test "x$ac_ct_AR" = x; then
4367     AR="ar"
4368   else
4369     case $cross_compiling:$ac_tool_warned in
4370 yes:)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4374 esac
4375     AR=$ac_ct_AR
4376   fi
4377 fi
4378
4379 ARFLAGS=rc
4380
4381 if test -n "$ac_tool_prefix"; then
4382   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   if test -n "$RANLIB"; then
4390   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404   done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 RANLIB=$ac_cv_prog_RANLIB
4410 if test -n "$RANLIB"; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412 $as_echo "$RANLIB" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 fi
4420 if test -z "$ac_cv_prog_RANLIB"; then
4421   ac_ct_RANLIB=$RANLIB
4422   # Extract the first word of "ranlib", so it can be a program name with args.
4423 set dummy ranlib; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   if test -n "$ac_ct_RANLIB"; then
4430   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_ac_ct_RANLIB="ranlib"
4440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444   done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450 if test -n "$ac_ct_RANLIB"; then
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452 $as_echo "$ac_ct_RANLIB" >&6; }
4453 else
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458   if test "x$ac_ct_RANLIB" = x; then
4459     RANLIB=":"
4460   else
4461     case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467     RANLIB=$ac_ct_RANLIB
4468   fi
4469 else
4470   RANLIB="$ac_cv_prog_RANLIB"
4471 fi
4472
4473 if test -n "$ac_tool_prefix"; then
4474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4475 set dummy ${ac_tool_prefix}strip; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_prog_STRIP+set}" = set; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   if test -n "$STRIP"; then
4482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489     for ac_exec_ext in '' $ac_executable_extensions; do
4490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496   done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 STRIP=$ac_cv_prog_STRIP
4502 if test -n "$STRIP"; then
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4504 $as_echo "$STRIP" >&6; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509
4510
4511 fi
4512 if test -z "$ac_cv_prog_STRIP"; then
4513   ac_ct_STRIP=$STRIP
4514   # Extract the first word of "strip", so it can be a program name with args.
4515 set dummy strip; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4519   $as_echo_n "(cached) " >&6
4520 else
4521   if test -n "$ac_ct_STRIP"; then
4522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_exec_ext in '' $ac_executable_extensions; do
4530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531     ac_cv_prog_ac_ct_STRIP="strip"
4532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536   done
4537 IFS=$as_save_IFS
4538
4539 fi
4540 fi
4541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4542 if test -n "$ac_ct_STRIP"; then
4543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4544 $as_echo "$ac_ct_STRIP" >&6; }
4545 else
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549
4550   if test "x$ac_ct_STRIP" = x; then
4551     STRIP="strip"
4552   else
4553     case $cross_compiling:$ac_tool_warned in
4554 yes:)
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4557 ac_tool_warned=yes ;;
4558 esac
4559     STRIP=$ac_ct_STRIP
4560   fi
4561 else
4562   STRIP="$ac_cv_prog_STRIP"
4563 fi
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4566 $as_echo_n "checking whether ln -s works... " >&6; }
4567 LN_S=$as_ln_s
4568 if test "$LN_S" = "ln -s"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570 $as_echo "yes" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4573 $as_echo "no, using $LN_S" >&6; }
4574 fi
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -z "$GREP"; then
4582   ac_path_GREP_found=false
4583   # Loop through the user's path and test for each of PROGNAME-LIST
4584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_prog in grep ggrep; do
4590     for ac_exec_ext in '' $ac_executable_extensions; do
4591       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594   # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4596 *GNU*)
4597   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598 *)
4599   ac_count=0
4600   $as_echo_n 0123456789 >"conftest.in"
4601   while :
4602   do
4603     cat "conftest.in" "conftest.in" >"conftest.tmp"
4604     mv "conftest.tmp" "conftest.in"
4605     cp "conftest.in" "conftest.nl"
4606     $as_echo 'GREP' >> "conftest.nl"
4607     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609     as_fn_arith $ac_count + 1 && ac_count=$as_val
4610     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611       # Best one so far, save it but keep looking for a better one
4612       ac_cv_path_GREP="$ac_path_GREP"
4613       ac_path_GREP_max=$ac_count
4614     fi
4615     # 10*(2^10) chars as input seems more than enough
4616     test $ac_count -gt 10 && break
4617   done
4618   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4620
4621       $ac_path_GREP_found && break 3
4622     done
4623   done
4624   done
4625 IFS=$as_save_IFS
4626   if test -z "$ac_cv_path_GREP"; then
4627     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628   fi
4629 else
4630   ac_cv_path_GREP=$GREP
4631 fi
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635 $as_echo "$ac_cv_path_GREP" >&6; }
4636  GREP="$ac_cv_path_GREP"
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640 $as_echo_n "checking for egrep... " >&6; }
4641 if test "${ac_cv_path_EGREP+set}" = set; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645    then ac_cv_path_EGREP="$GREP -E"
4646    else
4647      if test -z "$EGREP"; then
4648   ac_path_EGREP_found=false
4649   # Loop through the user's path and test for each of PROGNAME-LIST
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_prog in egrep; do
4656     for ac_exec_ext in '' $ac_executable_extensions; do
4657       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659 # Check for GNU ac_path_EGREP and select it if it is found.
4660   # Check for GNU $ac_path_EGREP
4661 case `"$ac_path_EGREP" --version 2>&1` in
4662 *GNU*)
4663   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 *)
4665   ac_count=0
4666   $as_echo_n 0123456789 >"conftest.in"
4667   while :
4668   do
4669     cat "conftest.in" "conftest.in" >"conftest.tmp"
4670     mv "conftest.tmp" "conftest.in"
4671     cp "conftest.in" "conftest.nl"
4672     $as_echo 'EGREP' >> "conftest.nl"
4673     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675     as_fn_arith $ac_count + 1 && ac_count=$as_val
4676     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677       # Best one so far, save it but keep looking for a better one
4678       ac_cv_path_EGREP="$ac_path_EGREP"
4679       ac_path_EGREP_max=$ac_count
4680     fi
4681     # 10*(2^10) chars as input seems more than enough
4682     test $ac_count -gt 10 && break
4683   done
4684   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 esac
4686
4687       $ac_path_EGREP_found && break 3
4688     done
4689   done
4690   done
4691 IFS=$as_save_IFS
4692   if test -z "$ac_cv_path_EGREP"; then
4693     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694   fi
4695 else
4696   ac_cv_path_EGREP=$EGREP
4697 fi
4698
4699    fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702 $as_echo "$ac_cv_path_EGREP" >&6; }
4703  EGREP="$ac_cv_path_EGREP"
4704
4705
4706 # Extract the first word of "ldconfig", so it can be a program name with args.
4707 set dummy ldconfig; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   case $LDCONFIG in
4714   [\\/]* | ?:[\\/]*)
4715   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4716   ;;
4717   *)
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in /sbin /usr/sbin $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723     for ac_exec_ext in '' $ac_executable_extensions; do
4724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730   done
4731 IFS=$as_save_IFS
4732
4733   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4734   ;;
4735 esac
4736 fi
4737 LDCONFIG=$ac_cv_path_LDCONFIG
4738 if test -n "$LDCONFIG"; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4740 $as_echo "$LDCONFIG" >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 # Find a good install program.  We prefer a C program (faster),
4748 # so one script is as good as another.  But avoid the broken or
4749 # incompatible versions:
4750 # SysV /etc/install, /usr/sbin/install
4751 # SunOS /usr/etc/install
4752 # IRIX /sbin/install
4753 # AIX /bin/install
4754 # AmigaOS /C/install, which installs bootblocks on floppy discs
4755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4758 # OS/2's system install, which has a completely different semantic
4759 # ./install, which can be erroneously created by make from ./install.sh.
4760 # Reject install programs that cannot install multiple files.
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4762 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4763 if test -z "$INSTALL"; then
4764 if test "${ac_cv_path_install+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772     # Account for people who put trailing slashes in PATH elements.
4773 case $as_dir/ in #((
4774   ./ | .// | /[cC]/* | \
4775   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4776   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4777   /usr/ucb/* ) ;;
4778   *)
4779     # OSF1 and SCO ODT 3.0 have their own names for install.
4780     # Don't use installbsd from OSF since it installs stuff as root
4781     # by default.
4782     for ac_prog in ginstall scoinst install; do
4783       for ac_exec_ext in '' $ac_executable_extensions; do
4784         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4785           if test $ac_prog = install &&
4786             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787             # AIX install.  It has an incompatible calling convention.
4788             :
4789           elif test $ac_prog = install &&
4790             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791             # program-specific install script used by HP pwplus--don't use.
4792             :
4793           else
4794             rm -rf conftest.one conftest.two conftest.dir
4795             echo one > conftest.one
4796             echo two > conftest.two
4797             mkdir conftest.dir
4798             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4799               test -s conftest.one && test -s conftest.two &&
4800               test -s conftest.dir/conftest.one &&
4801               test -s conftest.dir/conftest.two
4802             then
4803               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4804               break 3
4805             fi
4806           fi
4807         fi
4808       done
4809     done
4810     ;;
4811 esac
4812
4813   done
4814 IFS=$as_save_IFS
4815
4816 rm -rf conftest.one conftest.two conftest.dir
4817
4818 fi
4819   if test "${ac_cv_path_install+set}" = set; then
4820     INSTALL=$ac_cv_path_install
4821   else
4822     # As a last resort, use the slow shell script.  Don't cache a
4823     # value for INSTALL within a source directory, because that will
4824     # break other packages using the cache if that directory is
4825     # removed, or if the value is a relative name.
4826     INSTALL=$ac_install_sh
4827   fi
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4830 $as_echo "$INSTALL" >&6; }
4831
4832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4833 # It thinks the first close brace ends the variable substitution.
4834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4835
4836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4837
4838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4839
4840 case "$INSTALL" in
4841   [\\/$]* | ?:[\\/]* ) ;;
4842   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4843 esac
4844
4845 for ac_prog in lclint lint
4846 do
4847   # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_LINT+set}" = set; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if test -n "$LINT"; then
4855   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862     for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_prog_LINT="$ac_prog"
4865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869   done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 LINT=$ac_cv_prog_LINT
4875 if test -n "$LINT"; then
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4877 $as_echo "$LINT" >&6; }
4878 else
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 fi
4882
4883
4884   test -n "$LINT" && break
4885 done
4886
4887 if test "$LINT" = "lint"
4888 then
4889   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4890   fi
4891
4892
4893
4894 for ac_prog in fontforge
4895 do
4896   # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   if test -n "$FONTFORGE"; then
4904   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911     for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_prog_FONTFORGE="$ac_prog"
4914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918   done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 FONTFORGE=$ac_cv_prog_FONTFORGE
4924 if test -n "$FONTFORGE"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4926 $as_echo "$FONTFORGE" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933   test -n "$FONTFORGE" && break
4934 done
4935 test -n "$FONTFORGE" || FONTFORGE="false"
4936
4937 for ac_prog in pkg-config
4938 do
4939   # Extract the first word of "$ac_prog", so it can be a program name with args.
4940 set dummy $ac_prog; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -n "$PKG_CONFIG"; then
4947   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954     for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_prog_PKG_CONFIG="$ac_prog"
4957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961   done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4967 if test -n "$PKG_CONFIG"; then
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4969 $as_echo "$PKG_CONFIG" >&6; }
4970 else
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975
4976   test -n "$PKG_CONFIG" && break
4977 done
4978 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4979
4980 for ac_prog in rsvg
4981 do
4982   # Extract the first word of "$ac_prog", so it can be a program name with args.
4983 set dummy $ac_prog; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_RSVG+set}" = set; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   if test -n "$RSVG"; then
4990   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_RSVG="$ac_prog"
5000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004   done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 RSVG=$ac_cv_prog_RSVG
5010 if test -n "$RSVG"; then
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5012 $as_echo "$RSVG" >&6; }
5013 else
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019   test -n "$RSVG" && break
5020 done
5021 test -n "$RSVG" || RSVG="false"
5022
5023 for ac_prog in icotool
5024 do
5025   # Extract the first word of "$ac_prog", so it can be a program name with args.
5026 set dummy $ac_prog; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   if test -n "$ICOTOOL"; then
5033   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040     for ac_exec_ext in '' $ac_executable_extensions; do
5041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042     ac_cv_prog_ICOTOOL="$ac_prog"
5043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044     break 2
5045   fi
5046 done
5047   done
5048 IFS=$as_save_IFS
5049
5050 fi
5051 fi
5052 ICOTOOL=$ac_cv_prog_ICOTOOL
5053 if test -n "$ICOTOOL"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5055 $as_echo "$ICOTOOL" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062   test -n "$ICOTOOL" && break
5063 done
5064 test -n "$ICOTOOL" || ICOTOOL="false"
5065
5066
5067 if test "${enable_maintainer_mode+set}" = set
5068 then
5069   if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5070   if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5071   if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5072 fi
5073
5074 case $host_cpu in
5075   *i[3456789]86*)
5076     # Extract the first word of "prelink", so it can be a program name with args.
5077 set dummy prelink; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_path_PRELINK+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   case $PRELINK in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in /sbin /usr/sbin $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5104   ;;
5105 esac
5106 fi
5107 PRELINK=$ac_cv_path_PRELINK
5108 if test -n "$PRELINK"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5110 $as_echo "$PRELINK" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117     ;;
5118 esac
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5122 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5123 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   ac_check_lib_save_LIBS=$LIBS
5127 LIBS="-li386  $LIBS"
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130
5131 /* Override any GCC internal prototype to avoid an error.
5132    Use char because int might match the return type of a GCC
5133    builtin and then its argument prototype would still apply.  */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 char i386_set_ldt ();
5138 int
5139 main ()
5140 {
5141 return i386_set_ldt ();
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_link "$LINENO"; then :
5147   ac_cv_lib_i386_i386_set_ldt=yes
5148 else
5149   ac_cv_lib_i386_i386_set_ldt=no
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext \
5152     conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5156 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5157 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5158   cat >>confdefs.h <<_ACEOF
5159 #define HAVE_LIBI386 1
5160 _ACEOF
5161
5162   LIBS="-li386 $LIBS"
5163
5164 fi
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5167 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5168 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   ac_check_lib_save_LIBS=$LIBS
5172 LIBS="-lossaudio  $LIBS"
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h.  */
5175
5176 /* Override any GCC internal prototype to avoid an error.
5177    Use char because int might match the return type of a GCC
5178    builtin and then its argument prototype would still apply.  */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 char _oss_ioctl ();
5183 int
5184 main ()
5185 {
5186 return _oss_ioctl ();
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 if ac_fn_c_try_link "$LINENO"; then :
5192   ac_cv_lib_ossaudio__oss_ioctl=yes
5193 else
5194   ac_cv_lib_ossaudio__oss_ioctl=no
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext \
5197     conftest$ac_exeext conftest.$ac_ext
5198 LIBS=$ac_check_lib_save_LIBS
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5201 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5202 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5203   cat >>confdefs.h <<_ACEOF
5204 #define HAVE_LIBOSSAUDIO 1
5205 _ACEOF
5206
5207   LIBS="-lossaudio $LIBS"
5208
5209 fi
5210
5211
5212 XLIB=""
5213
5214 OPENGL_LIBS=""
5215
5216
5217
5218 # Check whether --enable-largefile was given.
5219 if test "${enable_largefile+set}" = set; then :
5220   enableval=$enable_largefile;
5221 fi
5222
5223 if test "$enable_largefile" != no; then
5224
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5226 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5227 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   ac_cv_sys_largefile_CC=no
5231      if test "$GCC" != yes; then
5232        ac_save_CC=$CC
5233        while :; do
5234          # IRIX 6.2 and later do not support large files by default,
5235          # so use the C compiler's -n32 option if that helps.
5236          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h.  */
5238 #include <sys/types.h>
5239  /* Check that off_t can represent 2**63 - 1 correctly.
5240     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5241     since some C++ compilers masquerading as C compilers
5242     incorrectly reject 9223372036854775807.  */
5243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5244   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5245                        && LARGE_OFF_T % 2147483647 == 1)
5246                       ? 1 : -1];
5247 int
5248 main ()
5249 {
5250
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255          if ac_fn_c_try_compile "$LINENO"; then :
5256   break
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext
5259          CC="$CC -n32"
5260          if ac_fn_c_try_compile "$LINENO"; then :
5261   ac_cv_sys_largefile_CC=' -n32'; break
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext
5264          break
5265        done
5266        CC=$ac_save_CC
5267        rm -f conftest.$ac_ext
5268     fi
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5271 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5272   if test "$ac_cv_sys_largefile_CC" != no; then
5273     CC=$CC$ac_cv_sys_largefile_CC
5274   fi
5275
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5277 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5278 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   while :; do
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284 #include <sys/types.h>
5285  /* Check that off_t can represent 2**63 - 1 correctly.
5286     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287     since some C++ compilers masquerading as C compilers
5288     incorrectly reject 9223372036854775807.  */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291                        && LARGE_OFF_T % 2147483647 == 1)
5292                       ? 1 : -1];
5293 int
5294 main ()
5295 {
5296
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302   ac_cv_sys_file_offset_bits=no; break
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307 #define _FILE_OFFSET_BITS 64
5308 #include <sys/types.h>
5309  /* Check that off_t can represent 2**63 - 1 correctly.
5310     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5311     since some C++ compilers masquerading as C compilers
5312     incorrectly reject 9223372036854775807.  */
5313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5314   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5315                        && LARGE_OFF_T % 2147483647 == 1)
5316                       ? 1 : -1];
5317 int
5318 main ()
5319 {
5320
5321   ;
5322   return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326   ac_cv_sys_file_offset_bits=64; break
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329   ac_cv_sys_file_offset_bits=unknown
5330   break
5331 done
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5334 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5335 case $ac_cv_sys_file_offset_bits in #(
5336   no | unknown) ;;
5337   *)
5338 cat >>confdefs.h <<_ACEOF
5339 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5340 _ACEOF
5341 ;;
5342 esac
5343 rm -rf conftest*
5344   if test $ac_cv_sys_file_offset_bits = unknown; then
5345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5346 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5347 if test "${ac_cv_sys_large_files+set}" = set; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   while :; do
5351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5353 #include <sys/types.h>
5354  /* Check that off_t can represent 2**63 - 1 correctly.
5355     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5356     since some C++ compilers masquerading as C compilers
5357     incorrectly reject 9223372036854775807.  */
5358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5359   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5360                        && LARGE_OFF_T % 2147483647 == 1)
5361                       ? 1 : -1];
5362 int
5363 main ()
5364 {
5365
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371   ac_cv_sys_large_files=no; break
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h.  */
5376 #define _LARGE_FILES 1
5377 #include <sys/types.h>
5378  /* Check that off_t can represent 2**63 - 1 correctly.
5379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5380     since some C++ compilers masquerading as C compilers
5381     incorrectly reject 9223372036854775807.  */
5382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5384                        && LARGE_OFF_T % 2147483647 == 1)
5385                       ? 1 : -1];
5386 int
5387 main ()
5388 {
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395   ac_cv_sys_large_files=1; break
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398   ac_cv_sys_large_files=unknown
5399   break
5400 done
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5403 $as_echo "$ac_cv_sys_large_files" >&6; }
5404 case $ac_cv_sys_large_files in #(
5405   no | unknown) ;;
5406   *)
5407 cat >>confdefs.h <<_ACEOF
5408 #define _LARGE_FILES $ac_cv_sys_large_files
5409 _ACEOF
5410 ;;
5411 esac
5412 rm -rf conftest*
5413   fi
5414 fi
5415
5416
5417 ac_ext=c
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5423 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5424 # On Suns, sometimes $CPP names a directory.
5425 if test -n "$CPP" && test -d "$CPP"; then
5426   CPP=
5427 fi
5428 if test -z "$CPP"; then
5429   if test "${ac_cv_prog_CPP+set}" = set; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432       # Double quotes because CPP needs to be expanded
5433     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5434     do
5435       ac_preproc_ok=false
5436 for ac_c_preproc_warn_flag in '' yes
5437 do
5438   # Use a header file that comes with gcc, so configuring glibc
5439   # with a fresh cross-compiler works.
5440   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5441   # <limits.h> exists even on freestanding compilers.
5442   # On the NeXT, cc -E runs the code through the compiler's parser,
5443   # not just through cpp. "Syntax error" is here to catch this case.
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446 #ifdef __STDC__
5447 # include <limits.h>
5448 #else
5449 # include <assert.h>
5450 #endif
5451                      Syntax error
5452 _ACEOF
5453 if ac_fn_c_try_cpp "$LINENO"; then :
5454
5455 else
5456   # Broken: fails on valid input.
5457 continue
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460
5461   # OK, works on sane cases.  Now check whether nonexistent headers
5462   # can be detected and how.
5463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h.  */
5465 #include <ac_nonexistent.h>
5466 _ACEOF
5467 if ac_fn_c_try_cpp "$LINENO"; then :
5468   # Broken: success on invalid input.
5469 continue
5470 else
5471   # Passes both tests.
5472 ac_preproc_ok=:
5473 break
5474 fi
5475 rm -f conftest.err conftest.$ac_ext
5476
5477 done
5478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5479 rm -f conftest.err conftest.$ac_ext
5480 if $ac_preproc_ok; then :
5481   break
5482 fi
5483
5484     done
5485     ac_cv_prog_CPP=$CPP
5486
5487 fi
5488   CPP=$ac_cv_prog_CPP
5489 else
5490   ac_cv_prog_CPP=$CPP
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5493 $as_echo "$CPP" >&6; }
5494 ac_preproc_ok=false
5495 for ac_c_preproc_warn_flag in '' yes
5496 do
5497   # Use a header file that comes with gcc, so configuring glibc
5498   # with a fresh cross-compiler works.
5499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5500   # <limits.h> exists even on freestanding compilers.
5501   # On the NeXT, cc -E runs the code through the compiler's parser,
5502   # not just through cpp. "Syntax error" is here to catch this case.
5503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h.  */
5505 #ifdef __STDC__
5506 # include <limits.h>
5507 #else
5508 # include <assert.h>
5509 #endif
5510                      Syntax error
5511 _ACEOF
5512 if ac_fn_c_try_cpp "$LINENO"; then :
5513
5514 else
5515   # Broken: fails on valid input.
5516 continue
5517 fi
5518 rm -f conftest.err conftest.$ac_ext
5519
5520   # OK, works on sane cases.  Now check whether nonexistent headers
5521   # can be detected and how.
5522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524 #include <ac_nonexistent.h>
5525 _ACEOF
5526 if ac_fn_c_try_cpp "$LINENO"; then :
5527   # Broken: success on invalid input.
5528 continue
5529 else
5530   # Passes both tests.
5531 ac_preproc_ok=:
5532 break
5533 fi
5534 rm -f conftest.err conftest.$ac_ext
5535
5536 done
5537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5538 rm -f conftest.err conftest.$ac_ext
5539 if $ac_preproc_ok; then :
5540
5541 else
5542   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5544 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5545 See \`config.log' for more details." "$LINENO" 5; }
5546 fi
5547
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5556 $as_echo_n "checking for ANSI C header files... " >&6; }
5557 if test "${ac_cv_header_stdc+set}" = set; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h.  */
5562 #include <stdlib.h>
5563 #include <stdarg.h>
5564 #include <string.h>
5565 #include <float.h>
5566
5567 int
5568 main ()
5569 {
5570
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576   ac_cv_header_stdc=yes
5577 else
5578   ac_cv_header_stdc=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581
5582 if test $ac_cv_header_stdc = yes; then
5583   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586 #include <string.h>
5587
5588 _ACEOF
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590   $EGREP "memchr" >/dev/null 2>&1; then :
5591
5592 else
5593   ac_cv_header_stdc=no
5594 fi
5595 rm -f conftest*
5596
5597 fi
5598
5599 if test $ac_cv_header_stdc = yes; then
5600   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h.  */
5603 #include <stdlib.h>
5604
5605 _ACEOF
5606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5607   $EGREP "free" >/dev/null 2>&1; then :
5608
5609 else
5610   ac_cv_header_stdc=no
5611 fi
5612 rm -f conftest*
5613
5614 fi
5615
5616 if test $ac_cv_header_stdc = yes; then
5617   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5618   if test "$cross_compiling" = yes; then :
5619   :
5620 else
5621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h.  */
5623 #include <ctype.h>
5624 #include <stdlib.h>
5625 #if ((' ' & 0x0FF) == 0x020)
5626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5628 #else
5629 # define ISLOWER(c) \
5630                    (('a' <= (c) && (c) <= 'i') \
5631                      || ('j' <= (c) && (c) <= 'r') \
5632                      || ('s' <= (c) && (c) <= 'z'))
5633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5634 #endif
5635
5636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5637 int
5638 main ()
5639 {
5640   int i;
5641   for (i = 0; i < 256; i++)
5642     if (XOR (islower (i), ISLOWER (i))
5643         || toupper (i) != TOUPPER (i))
5644       return 2;
5645   return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_run "$LINENO"; then :
5649
5650 else
5651   ac_cv_header_stdc=no
5652 fi
5653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5654   conftest.$ac_objext conftest.beam conftest.$ac_ext
5655 fi
5656
5657 fi
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5660 $as_echo "$ac_cv_header_stdc" >&6; }
5661 if test $ac_cv_header_stdc = yes; then
5662
5663 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5664
5665 fi
5666
5667 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5668 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5669                   inttypes.h stdint.h unistd.h
5670 do :
5671   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5673 "
5674 eval as_val=\$$as_ac_Header
5675    if test "x$as_val" = x""yes; then :
5676   cat >>confdefs.h <<_ACEOF
5677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684
5685 for ac_header in \
5686         AL/al.h \
5687         AudioToolbox/AudioConverter.h \
5688         AudioToolbox/AudioFile.h \
5689         AudioToolbox/AudioFileStream.h \
5690         AudioUnit/AudioUnit.h \
5691         Carbon/Carbon.h \
5692         CoreAudio/CoreAudio.h \
5693         DiskArbitration/DiskArbitration.h \
5694         IOKit/IOKitLib.h \
5695         IOKit/hid/IOHIDLib.h \
5696         OpenAL/al.h \
5697         alias.h \
5698         alsa/asoundlib.h \
5699         arpa/inet.h \
5700         arpa/nameser.h \
5701         asm/types.h \
5702         capi20.h \
5703         curses.h \
5704         direct.h \
5705         dirent.h \
5706         dlfcn.h \
5707         elf.h \
5708         float.h \
5709         fnmatch.h \
5710         fontconfig/fontconfig.h \
5711         getopt.h \
5712         grp.h \
5713         gsm.h \
5714         gsm/gsm.h \
5715         ieeefp.h \
5716         inet/mib2.h \
5717         io.h \
5718         jack/jack.h \
5719         jpeglib.h \
5720         kstat.h \
5721         lber.h \
5722         lcms.h \
5723         lcms/lcms.h \
5724         ldap.h \
5725         libaudioio.h \
5726         link.h \
5727         linux/cdrom.h \
5728         linux/compiler.h \
5729         linux/hdreg.h \
5730         linux/input.h \
5731         linux/ioctl.h \
5732         linux/joystick.h \
5733         linux/major.h \
5734         linux/param.h \
5735         linux/serial.h \
5736         linux/types.h \
5737         linux/ucdrom.h \
5738         mach-o/nlist.h \
5739         mach/mach.h \
5740         mach/machine.h \
5741         machine/cpu.h \
5742         machine/limits.h \
5743         machine/soundcard.h \
5744         mntent.h \
5745         mpg123.h \
5746         ncurses.h \
5747         netdb.h \
5748         netinet/in.h \
5749         netinet/in_systm.h \
5750         netinet/tcp.h \
5751         netinet/tcp_fsm.h \
5752         openssl/err.h \
5753         openssl/ssl.h \
5754         png.h \
5755         poll.h \
5756         port.h \
5757         process.h \
5758         pthread.h \
5759         pwd.h \
5760         regex.h \
5761         sched.h \
5762         scsi/scsi.h \
5763         scsi/scsi_ioctl.h \
5764         scsi/sg.h \
5765         soundcard.h \
5766         stdbool.h \
5767         stdint.h \
5768         strings.h \
5769         stropts.h \
5770         sys/asoundlib.h \
5771         sys/cdio.h \
5772         sys/elf32.h \
5773         sys/epoll.h \
5774         sys/errno.h \
5775         sys/event.h \
5776         sys/exec_elf.h \
5777         sys/filio.h \
5778         sys/inotify.h \
5779         sys/ioctl.h \
5780         sys/ipc.h \
5781         sys/limits.h \
5782         sys/link.h \
5783         sys/mman.h \
5784         sys/modem.h \
5785         sys/msg.h \
5786         sys/mtio.h \
5787         sys/param.h \
5788         sys/poll.h \
5789         sys/prctl.h \
5790         sys/protosw.h \
5791         sys/ptrace.h \
5792         sys/resource.h \
5793         sys/scsiio.h \
5794         sys/shm.h \
5795         sys/signal.h \
5796         sys/socket.h \
5797         sys/socketvar.h \
5798         sys/sockio.h \
5799         sys/soundcard.h \
5800         sys/statvfs.h \
5801         sys/strtio.h \
5802         sys/syscall.h \
5803         sys/tihdr.h \
5804         sys/time.h \
5805         sys/timeout.h \
5806         sys/times.h \
5807         sys/uio.h \
5808         sys/un.h \
5809         sys/utsname.h \
5810         sys/vm86.h \
5811         sys/wait.h \
5812         syscall.h \
5813         termios.h \
5814         tiffio.h \
5815         unistd.h \
5816         utime.h \
5817         valgrind/memcheck.h \
5818         valgrind/valgrind.h \
5819         zlib.h
5820
5821 do :
5822   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5824 eval as_val=\$$as_ac_Header
5825    if test "x$as_val" = x""yes; then :
5826   cat >>confdefs.h <<_ACEOF
5827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5828 _ACEOF
5829
5830 fi
5831
5832 done
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5835 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5836 if test "${ac_cv_header_stat_broken+set}" = set; then :
5837   $as_echo_n "(cached) " >&6
5838 else
5839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841 #include <sys/types.h>
5842 #include <sys/stat.h>
5843
5844 #if defined S_ISBLK && defined S_IFDIR
5845 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5846 #endif
5847
5848 #if defined S_ISBLK && defined S_IFCHR
5849 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5850 #endif
5851
5852 #if defined S_ISLNK && defined S_IFREG
5853 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5854 #endif
5855
5856 #if defined S_ISSOCK && defined S_IFREG
5857 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5858 #endif
5859
5860 _ACEOF
5861 if ac_fn_c_try_compile "$LINENO"; then :
5862   ac_cv_header_stat_broken=no
5863 else
5864   ac_cv_header_stat_broken=yes
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5869 $as_echo "$ac_cv_header_stat_broken" >&6; }
5870 if test $ac_cv_header_stat_broken = yes; then
5871
5872 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5873
5874 fi
5875
5876
5877
5878 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5879 do :
5880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5882      #ifdef HAVE_SYS_PARAM_H
5883      # include <sys/param.h>
5884      #endif
5885 "
5886 eval as_val=\$$as_ac_Header
5887    if test "x$as_val" = x""yes; then :
5888   cat >>confdefs.h <<_ACEOF
5889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5890 _ACEOF
5891
5892 fi
5893
5894 done
5895
5896
5897 for ac_header in \
5898         netinet/ip.h \
5899         net/if.h \
5900         net/if_arp.h \
5901         net/if_dl.h \
5902         net/if_types.h \
5903         net/route.h \
5904         netinet/if_ether.h \
5905         netinet/if_inarp.h \
5906         netinet/in_pcb.h \
5907         netinet/ip_icmp.h \
5908         netinet/ip_var.h \
5909         netinet/udp.h \
5910         netipx/ipx.h \
5911
5912 do :
5913   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5915      #ifdef HAVE_SYS_SOCKET_H
5916      # include <sys/socket.h>
5917      #endif
5918      #ifdef HAVE_SYS_SOCKETVAR_H
5919      # include <sys/socketvar.h>
5920      #endif
5921      #ifdef HAVE_NET_ROUTE_H
5922      # include <net/route.h>
5923      #endif
5924      #ifdef HAVE_NETINET_IN_H
5925      # include <netinet/in.h>
5926      #endif
5927      #ifdef HAVE_NETINET_IN_SYSTM_H
5928      # include <netinet/in_systm.h>
5929      #endif
5930      #ifdef HAVE_NET_IF_H
5931      # include <net/if.h>
5932      #endif
5933      #ifdef HAVE_NETINET_IP_H
5934      # include <netinet/ip.h>
5935      #endif
5936 "
5937 eval as_val=\$$as_ac_Header
5938    if test "x$as_val" = x""yes; then :
5939   cat >>confdefs.h <<_ACEOF
5940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941 _ACEOF
5942
5943 fi
5944
5945 done
5946
5947
5948 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5949 do :
5950   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5952      #ifdef HAVE_ALIAS_H
5953      # include <alias.h>
5954      #endif
5955      #ifdef HAVE_SYS_SOCKET_H
5956      # include <sys/socket.h>
5957      #endif
5958      #ifdef HAVE_SYS_SOCKETVAR_H
5959      # include <sys/socketvar.h>
5960      #endif
5961      #ifdef HAVE_SYS_TIMEOUT_H
5962      # include <sys/timeout.h>
5963      #endif
5964      #ifdef HAVE_NETINET_IN_H
5965      # include <netinet/in.h>
5966      #endif
5967      #ifdef HAVE_NETINET_IN_SYSTM_H
5968      # include <netinet/in_systm.h>
5969      #endif
5970      #ifdef HAVE_NETINET_IP_H
5971      # include <netinet/ip.h>
5972      #endif
5973      #ifdef HAVE_NETINET_IP_VAR_H
5974      # include <netinet/ip_var.h>
5975      #endif
5976      #ifdef HAVE_NETINET_IP_ICMP_H
5977      # include <netinet/ip_icmp.h>
5978      #endif
5979      #ifdef HAVE_NETINET_UDP_H
5980      # include <netinet/udp.h>
5981      #endif
5982      #ifdef HAVE_NETINET_TCP_H
5983      # include <netinet/tcp.h>
5984      #endif
5985      #ifdef HAVE_NETINET_TCP_TIMER_H
5986      #include <netinet/tcp_timer.h>
5987      #endif
5988 "
5989 eval as_val=\$$as_ac_Header
5990    if test "x$as_val" = x""yes; then :
5991   cat >>confdefs.h <<_ACEOF
5992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5993 _ACEOF
5994
5995 fi
5996
5997 done
5998
5999
6000 for ac_header in linux/ipx.h linux/irda.h
6001 do :
6002   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6003 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6004      #ifdef HAVE_ASM_TYPES_H
6005      # include <asm/types.h>
6006      #endif
6007      #ifdef HAVE_SYS_SOCKET_H
6008      # include <sys/socket.h>
6009      #endif
6010      #ifdef HAVE_LINUX_TYPES_H
6011      # include <linux/types.h>
6012      #endif
6013 "
6014 eval as_val=\$$as_ac_Header
6015    if test "x$as_val" = x""yes; then :
6016   cat >>confdefs.h <<_ACEOF
6017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6019
6020 fi
6021
6022 done
6023
6024
6025 for ac_header in mach-o/dyld_images.h
6026 do :
6027   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6028      # include <stdbool.h>
6029      #endif
6030      #ifdef HAVE_STDINT_H
6031      # include <stdint.h>
6032      #endif
6033 "
6034 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6035   cat >>confdefs.h <<_ACEOF
6036 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6037 _ACEOF
6038
6039 fi
6040
6041 done
6042
6043
6044 for ac_header in resolv.h
6045 do :
6046   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6047      #ifdef HAVE_SYS_SOCKET_H
6048      # include <sys/socket.h>
6049      #endif
6050      #ifdef HAVE_NETINET_IN_H
6051      # include <netinet/in.h>
6052      #endif
6053      #ifdef HAVE_ARPA_NAMESER_H
6054      # include <arpa/nameser.h>
6055      #endif
6056 "
6057 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6058   cat >>confdefs.h <<_ACEOF
6059 #define HAVE_RESOLV_H 1
6060 _ACEOF
6061
6062 fi
6063
6064 done
6065
6066
6067 for ac_header in ifaddrs.h
6068 do :
6069   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6070 "
6071 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6072   cat >>confdefs.h <<_ACEOF
6073 #define HAVE_IFADDRS_H 1
6074 _ACEOF
6075
6076 fi
6077
6078 done
6079
6080
6081 for ac_header in ucontext.h
6082 do :
6083   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6084 "
6085 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6086   cat >>confdefs.h <<_ACEOF
6087 #define HAVE_UCONTEXT_H 1
6088 _ACEOF
6089
6090 fi
6091
6092 done
6093
6094
6095 for ac_header in sys/thr.h
6096 do :
6097   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6098 #ifdef HAVE_UCONTEXT_H
6099 #include <ucontext.h>
6100 #endif
6101 "
6102 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6103   cat >>confdefs.h <<_ACEOF
6104 #define HAVE_SYS_THR_H 1
6105 _ACEOF
6106
6107 fi
6108
6109 done
6110
6111
6112 for ac_header in pthread_np.h
6113 do :
6114   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6115 #include <pthread.h>
6116 #endif
6117 "
6118 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define HAVE_PTHREAD_NP_H 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_header in linux/videodev.h
6129 do :
6130   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6131 #include <sys/time.h>
6132 #endif
6133 #include <sys/types.h>
6134 #ifdef HAVE_ASM_TYPES_H
6135 #include <asm/types.h>
6136 #endif
6137 "
6138 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6139   cat >>confdefs.h <<_ACEOF
6140 #define HAVE_LINUX_VIDEODEV_H 1
6141 _ACEOF
6142
6143 fi
6144
6145 done
6146
6147
6148 for ac_header in linux/capi.h
6149 do :
6150   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6151 "
6152 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6153   cat >>confdefs.h <<_ACEOF
6154 #define HAVE_LINUX_CAPI_H 1
6155 _ACEOF
6156
6157 fi
6158
6159 done
6160
6161
6162
6163 DLLEXT=""
6164
6165 DLLFLAGS="-D_REENTRANT"
6166
6167 LDSHARED=""
6168
6169 LDDLLFLAGS=""
6170
6171 LIBEXT="so"
6172
6173 IMPLIBEXT="def"
6174
6175 LDRPATH_INSTALL=""
6176
6177 LDRPATH_LOCAL=""
6178
6179 STATIC_IMPLIBEXT="def.a"
6180 # Extract the first word of "ldd", so it can be a program name with args.
6181 set dummy ldd; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_path_LDD+set}" = set; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   case $LDD in
6188   [\\/]* | ?:[\\/]*)
6189   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6190   ;;
6191   *)
6192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 as_dummy="/sbin:/usr/sbin:$PATH"
6194 for as_dir in $as_dummy
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198     for ac_exec_ext in '' $ac_executable_extensions; do
6199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205   done
6206 IFS=$as_save_IFS
6207
6208   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6209   ;;
6210 esac
6211 fi
6212 LDD=$ac_cv_path_LDD
6213 if test -n "$LDD"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6215 $as_echo "$LDD" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222
6223 case $host_os in
6224   cygwin*|mingw32*)
6225     if test -n "$ac_tool_prefix"; then
6226   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$DLLTOOL"; then
6234   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 DLLTOOL=$ac_cv_prog_DLLTOOL
6254 if test -n "$DLLTOOL"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6256 $as_echo "$DLLTOOL" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262
6263 fi
6264 if test -z "$ac_cv_prog_DLLTOOL"; then
6265   ac_ct_DLLTOOL=$DLLTOOL
6266   # Extract the first word of "dlltool", so it can be a program name with args.
6267 set dummy dlltool; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   if test -n "$ac_ct_DLLTOOL"; then
6274   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281     for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288   done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6294 if test -n "$ac_ct_DLLTOOL"; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6296 $as_echo "$ac_ct_DLLTOOL" >&6; }
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301
6302   if test "x$ac_ct_DLLTOOL" = x; then
6303     DLLTOOL="false"
6304   else
6305     case $cross_compiling:$ac_tool_warned in
6306 yes:)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6309 ac_tool_warned=yes ;;
6310 esac
6311     DLLTOOL=$ac_ct_DLLTOOL
6312   fi
6313 else
6314   DLLTOOL="$ac_cv_prog_DLLTOOL"
6315 fi
6316
6317     if test -n "$ac_tool_prefix"; then
6318   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   if test -n "$DLLWRAP"; then
6326   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340   done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 DLLWRAP=$ac_cv_prog_DLLWRAP
6346 if test -n "$DLLWRAP"; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6348 $as_echo "$DLLWRAP" >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_DLLWRAP"; then
6357   ac_ct_DLLWRAP=$DLLWRAP
6358   # Extract the first word of "dllwrap", so it can be a program name with args.
6359 set dummy dllwrap; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   if test -n "$ac_ct_DLLWRAP"; then
6366   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6386 if test -n "$ac_ct_DLLWRAP"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6388 $as_echo "$ac_ct_DLLWRAP" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394   if test "x$ac_ct_DLLWRAP" = x; then
6395     DLLWRAP="false"
6396   else
6397     case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403     DLLWRAP=$ac_ct_DLLWRAP
6404   fi
6405 else
6406   DLLWRAP="$ac_cv_prog_DLLWRAP"
6407 fi
6408
6409     if test "$DLLWRAP" = "false"; then
6410       LIBEXT="a"
6411     else
6412             LIBEXT="dll"
6413     fi
6414     IMPLIBEXT="a"
6415     STATIC_IMPLIBEXT="a"
6416         enable_iphlpapi=${enable_iphlpapi:-no}
6417     enable_kernel32=${enable_kernel32:-no}
6418     enable_msvcrt=${enable_msvcrt:-no}
6419     enable_ntdll=${enable_ntdll:-no}
6420     enable_ws2_32=${enable_ws2_32:-no}
6421     enable_loader=${enable_loader:-no}
6422     enable_server=${enable_server:-no}
6423         with_x=${with_x:-no}
6424     with_pthread=${with_pthread:-no}
6425     ;;
6426   darwin*|macosx*)
6427     DLLEXT=".so"
6428     LIBEXT="dylib"
6429     DLLFLAGS="$DLLFLAGS -fPIC"
6430     LDDLLFLAGS="-bundle -multiply_defined suppress"
6431     LIBWINE_LDFLAGS="-multiply_defined suppress"
6432     LDSHARED="\$(CC) -dynamiclib"
6433     STRIP="$STRIP -x"
6434     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6435         SECURITYLIB="-framework Security -framework CoreFoundation"
6436
6437     COREFOUNDATIONLIB="-framework CoreFoundation"
6438
6439     IOKITLIB="-framework IOKit -framework CoreFoundation"
6440
6441     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6442
6443     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6444     then
6445                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6446
6447     fi
6448     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6449     then
6450                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6451
6452         ac_save_LIBS="$LIBS"
6453         if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6454         then
6455             LIBS="$LIBS $COREAUDIO"
6456             for ac_func in AudioFileStreamOpen
6457 do :
6458   ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6459 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6460   cat >>confdefs.h <<_ACEOF
6461 #define HAVE_AUDIOFILESTREAMOPEN 1
6462 _ACEOF
6463
6464 fi
6465 done
6466
6467             LIBS="$ac_save_LIBS"
6468         fi
6469         test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6470     fi
6471     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6472     then
6473         FRAMEWORK_OPENAL="-framework OpenAL"
6474
6475
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_OPENAL 1
6478 _ACEOF
6479
6480         ac_cv_lib_openal=yes
6481     fi
6482     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6483     then
6484         ac_save_LIBS="$LIBS"
6485         LIBS="$LIBS $IOKITLIB"
6486         for ac_func in IOHIDManagerCreate
6487 do :
6488   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6489 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6490   cat >>confdefs.h <<_ACEOF
6491 #define HAVE_IOHIDMANAGERCREATE 1
6492 _ACEOF
6493
6494 fi
6495 done
6496
6497         LIBS="$ac_save_LIBS"
6498     fi
6499     case $host_cpu in
6500       *powerpc*)
6501         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6502     esac
6503         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6504     then
6505         CARBONLIB="-framework Carbon"
6506
6507         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6508     fi
6509         if test "x$enable_win16" = "xyes"
6510     then
6511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6512 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6513         if test "$cross_compiling" = yes; then :
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6515 $as_echo "cross-compiling, assuming yes" >&6; }
6516 else
6517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h.  */
6519 asm(".text\n"
6520                                             "bad:\tnop;nop\n"
6521                                             "good:\tnop;nop\n\t"
6522                                             ".globl _testfunc\n"
6523                                             "_testfunc:\tcallw good");
6524                                         extern void testfunc();
6525 int
6526 main ()
6527 {
6528 unsigned short *p = (unsigned short *)testfunc;
6529                                         return p[0] != 0xe866 || p[1] != 0xfffa
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_run "$LINENO"; then :
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6536 $as_echo "yes" >&6; }
6537 else
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540                                        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
6541 fi
6542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6543   conftest.$ac_objext conftest.beam conftest.$ac_ext
6544 fi
6545
6546     fi
6547     ;;
6548   *)
6549     DLLFLAGS="$DLLFLAGS -fPIC"
6550     DLLEXT=".so"
6551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6552 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6553 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   ac_wine_try_cflags_saved=$CFLAGS
6557 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h.  */
6560 void myfunc() {}
6561 _ACEOF
6562 if ac_fn_c_try_link "$LINENO"; then :
6563   ac_cv_c_dll_gnuelf="yes"
6564 else
6565   ac_cv_c_dll_gnuelf="no"
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext \
6568     conftest$ac_exeext conftest.$ac_ext
6569 CFLAGS=$ac_wine_try_cflags_saved
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6572 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6573     if test "$ac_cv_c_dll_gnuelf" = "yes"
6574     then
6575       LDSHARED="\$(CC) -shared"
6576       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6578 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6579 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   ac_wine_try_cflags_saved=$CFLAGS
6583 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h.  */
6586 int main(int argc, char **argv) { return 0; }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6590 else
6591   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext \
6594     conftest$ac_exeext conftest.$ac_ext
6595 CFLAGS=$ac_wine_try_cflags_saved
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6598 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6599 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6600   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6603 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6604 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   ac_wine_try_cflags_saved=$CFLAGS
6608 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h.  */
6611 int main(int argc, char **argv) { return 0; }
6612 _ACEOF
6613 if ac_fn_c_try_link "$LINENO"; then :
6614   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6615 else
6616   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext \
6619     conftest$ac_exeext conftest.$ac_ext
6620 CFLAGS=$ac_wine_try_cflags_saved
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6623 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6624 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6625   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6626 fi
6627 fi
6628
6629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6630 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6631 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   ac_wine_try_cflags_saved=$CFLAGS
6635 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h.  */
6638 int main(int argc, char **argv) { return 0; }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"; then :
6641   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6642 else
6643   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646     conftest$ac_exeext conftest.$ac_ext
6647 CFLAGS=$ac_wine_try_cflags_saved
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6650 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6651 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6652   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6653 fi
6654
6655       { $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
6656 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6657 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   ac_wine_try_cflags_saved=$CFLAGS
6661 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h.  */
6664 int main(int argc, char **argv) { return 0; }
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6668 else
6669   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672     conftest$ac_exeext conftest.$ac_ext
6673 CFLAGS=$ac_wine_try_cflags_saved
6674 fi
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6676 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6677 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6678   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6679 fi
6680
6681       echo '{ global: *; };' >conftest.map
6682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6683 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6684 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   ac_wine_try_cflags_saved=$CFLAGS
6688 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h.  */
6691 int main(int argc, char **argv) { return 0; }
6692 _ACEOF
6693 if ac_fn_c_try_link "$LINENO"; then :
6694   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6695 else
6696   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext \
6699     conftest$ac_exeext conftest.$ac_ext
6700 CFLAGS=$ac_wine_try_cflags_saved
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6703 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6704 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6705   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6706 fi
6707       rm -f conftest.map
6708
6709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6710 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6711 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   ac_wine_try_cflags_saved=$CFLAGS
6715 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h.  */
6718 int main(int argc, char **argv) { return 0; }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6722 else
6723   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726     conftest$ac_exeext conftest.$ac_ext
6727 CFLAGS=$ac_wine_try_cflags_saved
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6730 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6731 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6732   LDEXECFLAGS="-Wl,--export-dynamic"
6733
6734 fi
6735
6736       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6738 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6740   $as_echo_n "(cached) " >&6
6741 else
6742   ac_wine_try_cflags_saved=$CFLAGS
6743 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h.  */
6746 int main(int argc, char **argv) { return 0; }
6747 _ACEOF
6748 if ac_fn_c_try_link "$LINENO"; then :
6749   eval "$as_ac_var=yes"
6750 else
6751   eval "$as_ac_var=no"
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext \
6754     conftest$ac_exeext conftest.$ac_ext
6755 CFLAGS=$ac_wine_try_cflags_saved
6756 fi
6757 eval ac_res=\$$as_ac_var
6758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6759 $as_echo "$ac_res" >&6; }
6760 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6761   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6762                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6763 else
6764   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6766 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   ac_wine_try_cflags_saved=$CFLAGS
6771 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h.  */
6774 int main(int argc, char **argv) { return 0; }
6775 _ACEOF
6776 if ac_fn_c_try_link "$LINENO"; then :
6777   eval "$as_ac_var=yes"
6778 else
6779   eval "$as_ac_var=no"
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782     conftest$ac_exeext conftest.$ac_ext
6783 CFLAGS=$ac_wine_try_cflags_saved
6784 fi
6785 eval ac_res=\$$as_ac_var
6786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6787 $as_echo "$ac_res" >&6; }
6788 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6789   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6790                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6791 fi
6792 fi
6793
6794       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6795 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6796 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6797   $as_echo_n "(cached) " >&6
6798 else
6799   ac_wine_try_cflags_saved=$CFLAGS
6800 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803 int main(int argc, char **argv) { return 0; }
6804 _ACEOF
6805 if ac_fn_c_try_link "$LINENO"; then :
6806   ac_cv_cflags__Wl___enable_new_dtags=yes
6807 else
6808   ac_cv_cflags__Wl___enable_new_dtags=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext \
6811     conftest$ac_exeext conftest.$ac_ext
6812 CFLAGS=$ac_wine_try_cflags_saved
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6815 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6816 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6817   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6818 fi
6819
6820       case $host_cpu in
6821         *i[3456789]86* | x86_64)
6822           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6823 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6824 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   ac_wine_try_cflags_saved=$CFLAGS
6828 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h.  */
6831 int main(int argc, char **argv) { return 0; }
6832 _ACEOF
6833 if ac_fn_c_try_link "$LINENO"; then :
6834   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6835 else
6836   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext \
6839     conftest$ac_exeext conftest.$ac_ext
6840 CFLAGS=$ac_wine_try_cflags_saved
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6843 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6844 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6845   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6846 fi
6847           ;;
6848       esac
6849
6850     else
6851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6852 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6853 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   ac_wine_try_cflags_saved=$CFLAGS
6857 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h.  */
6860 void myfunc() {}
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863   ac_cv_c_dll_unixware="yes"
6864 else
6865   ac_cv_c_dll_unixware="no"
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868     conftest$ac_exeext conftest.$ac_ext
6869 CFLAGS=$ac_wine_try_cflags_saved
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6872 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6873       if test "$ac_cv_c_dll_unixware" = "yes"
6874       then
6875         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6876         LDDLLFLAGS="-Wl,-G,-B,symbolic"
6877
6878       else
6879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6880 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6881 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   ac_wine_try_cflags_saved=$CFLAGS
6885 CFLAGS="$CFLAGS -shared"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h.  */
6888 void myfunc() {}
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891   ac_cv_c_dll_hpux="yes"
6892 else
6893   ac_cv_c_dll_hpux="no"
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext \
6896     conftest$ac_exeext conftest.$ac_ext
6897 CFLAGS=$ac_wine_try_cflags_saved
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6900 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6901         if test "$ac_cv_c_dll_hpux" = "yes"
6902         then
6903           LIBEXT="sl"
6904           DLLEXT=".sl"
6905           LDDLLFLAGS="-shared -fPIC"
6906           LDSHARED="\$(CC) -shared"
6907         fi
6908       fi
6909     fi
6910     ;;
6911 esac
6912
6913 enable_winequartz_drv=${enable_winequartz_drv:-no}
6914
6915 if test "$LIBEXT" = "a"; then
6916   as_fn_error "could not find a way to build shared libraries.
6917 It is currently not possible to build Wine without shared library
6918 (.so) support to allow transparent switch between .so and .dll files.
6919 If you are using Linux, you will need a newer binutils.
6920 " "$LINENO" 5
6921 fi
6922
6923 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6924 then
6925     case "$host_cpu" in
6926   i[3456789]86*)
6927     ac_prefix_list="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 " ;;
6928   x86_64)
6929     ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6930   *)
6931     ac_prefix_list="" ;;
6932 esac
6933 for ac_prog in $ac_prefix_list
6934 do
6935   # Extract the first word of "$ac_prog", so it can be a program name with args.
6936 set dummy $ac_prog; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   if test -n "$CROSSCC"; then
6943   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950     for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_prog_CROSSCC="$ac_prog"
6953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957   done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 CROSSCC=$ac_cv_prog_CROSSCC
6963 if test -n "$CROSSCC"; then
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6965 $as_echo "$CROSSCC" >&6; }
6966 else
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972   test -n "$CROSSCC" && break
6973 done
6974 test -n "$CROSSCC" || CROSSCC="false"
6975
6976     if test "$CROSSCC" != "false"
6977     then
6978         CROSSTEST="\$(CROSSTEST)"
6979
6980         set x $CROSSCC
6981         shift
6982         target=""
6983         while test $# -ge 1
6984         do
6985             case "$1" in
6986               *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6987             esac
6988             shift
6989         done
6990         if test -n "$target"
6991         then
6992             CROSSTARGET="$target"
6993
6994         fi
6995     fi
6996 fi
6997
6998
6999 if test "$ac_cv_header_pthread_h" = "yes"
7000 then
7001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7002 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7003 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-lpthread  $LIBS"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h.  */
7010
7011 /* Override any GCC internal prototype to avoid an error.
7012    Use char because int might match the return type of a GCC
7013    builtin and then its argument prototype would still apply.  */
7014 #ifdef __cplusplus
7015 extern "C"
7016 #endif
7017 char pthread_create ();
7018 int
7019 main ()
7020 {
7021 return pthread_create ();
7022   ;
7023   return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027   ac_cv_lib_pthread_pthread_create=yes
7028 else
7029   ac_cv_lib_pthread_pthread_create=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032     conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7036 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7037 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7038   LIBPTHREAD="-lpthread"
7039
7040 fi
7041
7042 fi
7043 if test "x$LIBPTHREAD" = "x"; then :
7044   case "x$with_pthread" in
7045   xno) ;;
7046   *)   as_fn_error "pthread ${notice_platform}development files not found.
7047 Wine cannot support threads without libpthread.
7048 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7049 esac
7050 fi
7051
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7054 $as_echo_n "checking for X... " >&6; }
7055
7056
7057 # Check whether --with-x was given.
7058 if test "${with_x+set}" = set; then :
7059   withval=$with_x;
7060 fi
7061
7062 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7063 if test "x$with_x" = xno; then
7064   # The user explicitly disabled X.
7065   have_x=disabled
7066 else
7067   case $x_includes,$x_libraries in #(
7068     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7069     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   # One or both of the vars are not set, and there is no cached value.
7073 ac_x_includes=no ac_x_libraries=no
7074 rm -f -r conftest.dir
7075 if mkdir conftest.dir; then
7076   cd conftest.dir
7077   cat >Imakefile <<'_ACEOF'
7078 incroot:
7079         @echo incroot='${INCROOT}'
7080 usrlibdir:
7081         @echo usrlibdir='${USRLIBDIR}'
7082 libdir:
7083         @echo libdir='${LIBDIR}'
7084 _ACEOF
7085   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7086     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7087     for ac_var in incroot usrlibdir libdir; do
7088       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7089     done
7090     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7091     for ac_extension in a so sl dylib la dll; do
7092       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7093          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7094         ac_im_usrlibdir=$ac_im_libdir; break
7095       fi
7096     done
7097     # Screen out bogus values from the imake configuration.  They are
7098     # bogus both because they are the default anyway, and because
7099     # using them would break gcc on systems where it needs fixed includes.
7100     case $ac_im_incroot in
7101         /usr/include) ac_x_includes= ;;
7102         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7103     esac
7104     case $ac_im_usrlibdir in
7105         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7106         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7107     esac
7108   fi
7109   cd ..
7110   rm -f -r conftest.dir
7111 fi
7112
7113 # Standard set of common directories for X headers.
7114 # Check X11 before X11Rn because it is often a symlink to the current release.
7115 ac_x_header_dirs='
7116 /usr/X11/include
7117 /usr/X11R7/include
7118 /usr/X11R6/include
7119 /usr/X11R5/include
7120 /usr/X11R4/include
7121
7122 /usr/include/X11
7123 /usr/include/X11R7
7124 /usr/include/X11R6
7125 /usr/include/X11R5
7126 /usr/include/X11R4
7127
7128 /usr/local/X11/include
7129 /usr/local/X11R7/include
7130 /usr/local/X11R6/include
7131 /usr/local/X11R5/include
7132 /usr/local/X11R4/include
7133
7134 /usr/local/include/X11
7135 /usr/local/include/X11R7
7136 /usr/local/include/X11R6
7137 /usr/local/include/X11R5
7138 /usr/local/include/X11R4
7139
7140 /usr/X386/include
7141 /usr/x386/include
7142 /usr/XFree86/include/X11
7143
7144 /usr/include
7145 /usr/local/include
7146 /usr/unsupported/include
7147 /usr/athena/include
7148 /usr/local/x11r5/include
7149 /usr/lpp/Xamples/include
7150
7151 /usr/openwin/include
7152 /usr/openwin/share/include'
7153
7154 if test "$ac_x_includes" = no; then
7155   # Guess where to find include files, by looking for Xlib.h.
7156   # First, try using that file with no special directory specified.
7157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159 #include <X11/Xlib.h>
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7162   # We can compile using X headers with no special include directory.
7163 ac_x_includes=
7164 else
7165   for ac_dir in $ac_x_header_dirs; do
7166   if test -r "$ac_dir/X11/Xlib.h"; then
7167     ac_x_includes=$ac_dir
7168     break
7169   fi
7170 done
7171 fi
7172 rm -f conftest.err conftest.$ac_ext
7173 fi # $ac_x_includes = no
7174
7175 if test "$ac_x_libraries" = no; then
7176   # Check for the libraries.
7177   # See if we find them without any special options.
7178   # Don't add to $LIBS permanently.
7179   ac_save_LIBS=$LIBS
7180   LIBS="-lX11 $LIBS"
7181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h.  */
7183 #include <X11/Xlib.h>
7184 int
7185 main ()
7186 {
7187 XrmInitialize ()
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 if ac_fn_c_try_link "$LINENO"; then :
7193   LIBS=$ac_save_LIBS
7194 # We can link X programs with no special library path.
7195 ac_x_libraries=
7196 else
7197   LIBS=$ac_save_LIBS
7198 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7199 do
7200   # Don't even attempt the hair of trying to link an X program!
7201   for ac_extension in a so sl dylib la dll; do
7202     if test -r "$ac_dir/libX11.$ac_extension"; then
7203       ac_x_libraries=$ac_dir
7204       break 2
7205     fi
7206   done
7207 done
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext \
7210     conftest$ac_exeext conftest.$ac_ext
7211 fi # $ac_x_libraries = no
7212
7213 case $ac_x_includes,$ac_x_libraries in #(
7214   no,* | *,no | *\'*)
7215     # Didn't find X, or a directory has "'" in its name.
7216     ac_cv_have_x="have_x=no";; #(
7217   *)
7218     # Record where we found X for the cache.
7219     ac_cv_have_x="have_x=yes\
7220         ac_x_includes='$ac_x_includes'\
7221         ac_x_libraries='$ac_x_libraries'"
7222 esac
7223 fi
7224 ;; #(
7225     *) have_x=yes;;
7226   esac
7227   eval "$ac_cv_have_x"
7228 fi # $with_x != no
7229
7230 if test "$have_x" != yes; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7232 $as_echo "$have_x" >&6; }
7233   no_x=yes
7234 else
7235   # If each of the values was on the command line, it overrides each guess.
7236   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7237   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7238   # Update the cache value to reflect the command line values.
7239   ac_cv_have_x="have_x=yes\
7240         ac_x_includes='$x_includes'\
7241         ac_x_libraries='$x_libraries'"
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7243 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7244 fi
7245
7246 if test "$no_x" = yes; then
7247   # Not all programs may use this symbol, but it does not hurt to define it.
7248
7249 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7250
7251   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7252 else
7253   if test -n "$x_includes"; then
7254     X_CFLAGS="$X_CFLAGS -I$x_includes"
7255   fi
7256
7257   # It would also be nice to do this for all -L options, not just this one.
7258   if test -n "$x_libraries"; then
7259     X_LIBS="$X_LIBS -L$x_libraries"
7260     # For Solaris; some versions of Sun CC require a space after -R and
7261     # others require no space.  Words are not sufficient . . . .
7262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7263 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7264     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7265     ac_xsave_c_werror_flag=$ac_c_werror_flag
7266     ac_c_werror_flag=yes
7267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269
7270 int
7271 main ()
7272 {
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281        X_LIBS="$X_LIBS -R$x_libraries"
7282 else
7283   LIBS="$ac_xsave_LIBS -R $x_libraries"
7284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_link "$LINENO"; then :
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297 $as_echo "yes" >&6; }
7298           X_LIBS="$X_LIBS -R $x_libraries"
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7301 $as_echo "neither works" >&6; }
7302 fi
7303 rm -f core conftest.err conftest.$ac_objext \
7304     conftest$ac_exeext conftest.$ac_ext
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext \
7307     conftest$ac_exeext conftest.$ac_ext
7308     ac_c_werror_flag=$ac_xsave_c_werror_flag
7309     LIBS=$ac_xsave_LIBS
7310   fi
7311
7312   # Check for system-dependent libraries X programs must link with.
7313   # Do this before checking for the system-independent R6 libraries
7314   # (-lICE), since we may need -lsocket or whatever for X linking.
7315
7316   if test "$ISC" = yes; then
7317     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7318   else
7319     # Martyn Johnson says this is needed for Ultrix, if the X
7320     # libraries were built with DECnet support.  And Karl Berry says
7321     # the Alpha needs dnet_stub (dnet does not exist).
7322     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h.  */
7325
7326 /* Override any GCC internal prototype to avoid an error.
7327    Use char because int might match the return type of a GCC
7328    builtin and then its argument prototype would still apply.  */
7329 #ifdef __cplusplus
7330 extern "C"
7331 #endif
7332 char XOpenDisplay ();
7333 int
7334 main ()
7335 {
7336 return XOpenDisplay ();
7337   ;
7338   return 0;
7339 }
7340 _ACEOF
7341 if ac_fn_c_try_link "$LINENO"; then :
7342
7343 else
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7345 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7346 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   ac_check_lib_save_LIBS=$LIBS
7350 LIBS="-ldnet  $LIBS"
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h.  */
7353
7354 /* Override any GCC internal prototype to avoid an error.
7355    Use char because int might match the return type of a GCC
7356    builtin and then its argument prototype would still apply.  */
7357 #ifdef __cplusplus
7358 extern "C"
7359 #endif
7360 char dnet_ntoa ();
7361 int
7362 main ()
7363 {
7364 return dnet_ntoa ();
7365   ;
7366   return 0;
7367 }
7368 _ACEOF
7369 if ac_fn_c_try_link "$LINENO"; then :
7370   ac_cv_lib_dnet_dnet_ntoa=yes
7371 else
7372   ac_cv_lib_dnet_dnet_ntoa=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext \
7375     conftest$ac_exeext conftest.$ac_ext
7376 LIBS=$ac_check_lib_save_LIBS
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7379 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7380 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7381   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7382 fi
7383
7384     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7386 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7387 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   ac_check_lib_save_LIBS=$LIBS
7391 LIBS="-ldnet_stub  $LIBS"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395 /* Override any GCC internal prototype to avoid an error.
7396    Use char because int might match the return type of a GCC
7397    builtin and then its argument prototype would still apply.  */
7398 #ifdef __cplusplus
7399 extern "C"
7400 #endif
7401 char dnet_ntoa ();
7402 int
7403 main ()
7404 {
7405 return dnet_ntoa ();
7406   ;
7407   return 0;
7408 }
7409 _ACEOF
7410 if ac_fn_c_try_link "$LINENO"; then :
7411   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7412 else
7413   ac_cv_lib_dnet_stub_dnet_ntoa=no
7414 fi
7415 rm -f core conftest.err conftest.$ac_objext \
7416     conftest$ac_exeext conftest.$ac_ext
7417 LIBS=$ac_check_lib_save_LIBS
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7420 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7421 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7422   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7423 fi
7424
7425     fi
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext \
7428     conftest$ac_exeext conftest.$ac_ext
7429     LIBS="$ac_xsave_LIBS"
7430
7431     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7432     # to get the SysV transport functions.
7433     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7434     # needs -lnsl.
7435     # The nsl library prevents programs from opening the X display
7436     # on Irix 5.2, according to T.E. Dickey.
7437     # The functions gethostbyname, getservbyname, and inet_addr are
7438     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7439     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7440 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7441
7442 fi
7443
7444     if test $ac_cv_func_gethostbyname = no; then
7445       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7446 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7447 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   ac_check_lib_save_LIBS=$LIBS
7451 LIBS="-lnsl  $LIBS"
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454
7455 /* Override any GCC internal prototype to avoid an error.
7456    Use char because int might match the return type of a GCC
7457    builtin and then its argument prototype would still apply.  */
7458 #ifdef __cplusplus
7459 extern "C"
7460 #endif
7461 char gethostbyname ();
7462 int
7463 main ()
7464 {
7465 return gethostbyname ();
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"; then :
7471   ac_cv_lib_nsl_gethostbyname=yes
7472 else
7473   ac_cv_lib_nsl_gethostbyname=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext \
7476     conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7480 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7481 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7482   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7483 fi
7484
7485       if test $ac_cv_lib_nsl_gethostbyname = no; then
7486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7487 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7488 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   ac_check_lib_save_LIBS=$LIBS
7492 LIBS="-lbsd  $LIBS"
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h.  */
7495
7496 /* Override any GCC internal prototype to avoid an error.
7497    Use char because int might match the return type of a GCC
7498    builtin and then its argument prototype would still apply.  */
7499 #ifdef __cplusplus
7500 extern "C"
7501 #endif
7502 char gethostbyname ();
7503 int
7504 main ()
7505 {
7506 return gethostbyname ();
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 if ac_fn_c_try_link "$LINENO"; then :
7512   ac_cv_lib_bsd_gethostbyname=yes
7513 else
7514   ac_cv_lib_bsd_gethostbyname=no
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext \
7517     conftest$ac_exeext conftest.$ac_ext
7518 LIBS=$ac_check_lib_save_LIBS
7519 fi
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7521 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7522 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7523   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7524 fi
7525
7526       fi
7527     fi
7528
7529     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7530     # socket/setsockopt and other routines are undefined under SCO ODT
7531     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7532     # on later versions), says Simon Leinen: it contains gethostby*
7533     # variants that don't use the name server (or something).  -lsocket
7534     # must be given before -lnsl if both are needed.  We assume that
7535     # if connect needs -lnsl, so does gethostbyname.
7536     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7537 if test "x$ac_cv_func_connect" = x""yes; then :
7538
7539 fi
7540
7541     if test $ac_cv_func_connect = no; then
7542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7543 $as_echo_n "checking for connect in -lsocket... " >&6; }
7544 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   ac_check_lib_save_LIBS=$LIBS
7548 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h.  */
7551
7552 /* Override any GCC internal prototype to avoid an error.
7553    Use char because int might match the return type of a GCC
7554    builtin and then its argument prototype would still apply.  */
7555 #ifdef __cplusplus
7556 extern "C"
7557 #endif
7558 char connect ();
7559 int
7560 main ()
7561 {
7562 return connect ();
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568   ac_cv_lib_socket_connect=yes
7569 else
7570   ac_cv_lib_socket_connect=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573     conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7577 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7578 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7579   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7580 fi
7581
7582     fi
7583
7584     # Guillermo Gomez says -lposix is necessary on A/UX.
7585     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7586 if test "x$ac_cv_func_remove" = x""yes; then :
7587
7588 fi
7589
7590     if test $ac_cv_func_remove = no; then
7591       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7592 $as_echo_n "checking for remove in -lposix... " >&6; }
7593 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   ac_check_lib_save_LIBS=$LIBS
7597 LIBS="-lposix  $LIBS"
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h.  */
7600
7601 /* Override any GCC internal prototype to avoid an error.
7602    Use char because int might match the return type of a GCC
7603    builtin and then its argument prototype would still apply.  */
7604 #ifdef __cplusplus
7605 extern "C"
7606 #endif
7607 char remove ();
7608 int
7609 main ()
7610 {
7611 return remove ();
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_link "$LINENO"; then :
7617   ac_cv_lib_posix_remove=yes
7618 else
7619   ac_cv_lib_posix_remove=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext \
7622     conftest$ac_exeext conftest.$ac_ext
7623 LIBS=$ac_check_lib_save_LIBS
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7626 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7627 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7629 fi
7630
7631     fi
7632
7633     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7634     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7635 if test "x$ac_cv_func_shmat" = x""yes; then :
7636
7637 fi
7638
7639     if test $ac_cv_func_shmat = no; then
7640       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7641 $as_echo_n "checking for shmat in -lipc... " >&6; }
7642 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   ac_check_lib_save_LIBS=$LIBS
7646 LIBS="-lipc  $LIBS"
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h.  */
7649
7650 /* Override any GCC internal prototype to avoid an error.
7651    Use char because int might match the return type of a GCC
7652    builtin and then its argument prototype would still apply.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 char shmat ();
7657 int
7658 main ()
7659 {
7660 return shmat ();
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_link "$LINENO"; then :
7666   ac_cv_lib_ipc_shmat=yes
7667 else
7668   ac_cv_lib_ipc_shmat=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext \
7671     conftest$ac_exeext conftest.$ac_ext
7672 LIBS=$ac_check_lib_save_LIBS
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7675 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7676 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7677   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7678 fi
7679
7680     fi
7681   fi
7682
7683   # Check for libraries that X11R6 Xt/Xaw programs need.
7684   ac_save_LDFLAGS=$LDFLAGS
7685   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7686   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7687   # check for ICE first), but we must link in the order -lSM -lICE or
7688   # we get undefined symbols.  So assume we have SM if we have ICE.
7689   # These have to be linked with before -lX11, unlike the other
7690   # libraries we check for below, so use a different variable.
7691   # John Interrante, Karl Berry
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7693 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7694 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   ac_check_lib_save_LIBS=$LIBS
7698 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h.  */
7701
7702 /* Override any GCC internal prototype to avoid an error.
7703    Use char because int might match the return type of a GCC
7704    builtin and then its argument prototype would still apply.  */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 char IceConnectionNumber ();
7709 int
7710 main ()
7711 {
7712 return IceConnectionNumber ();
7713   ;
7714   return 0;
7715 }
7716 _ACEOF
7717 if ac_fn_c_try_link "$LINENO"; then :
7718   ac_cv_lib_ICE_IceConnectionNumber=yes
7719 else
7720   ac_cv_lib_ICE_IceConnectionNumber=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext \
7723     conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7727 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7728 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7729   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7730 fi
7731
7732   LDFLAGS=$ac_save_LDFLAGS
7733
7734 fi
7735
7736
7737 if test "$have_x" = "yes"
7738 then
7739     XLIB="-lX11"
7740     ac_save_CPPFLAGS="$CPPFLAGS"
7741     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7742
7743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7744 $as_echo_n "checking for -lX11... " >&6; }
7745 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   ac_check_soname_save_LIBS=$LIBS
7749 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752
7753 /* Override any GCC internal prototype to avoid an error.
7754    Use char because int might match the return type of a GCC
7755    builtin and then its argument prototype would still apply.  */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 char XCreateWindow ();
7760 int
7761 main ()
7762 {
7763 return XCreateWindow ();
7764   ;
7765   return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"; then :
7769   case "$LIBEXT" in
7770     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7771     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'` ;;
7772     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7773   esac
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext \
7776     conftest$ac_exeext conftest.$ac_ext
7777   LIBS=$ac_check_soname_save_LIBS
7778 fi
7779 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7781 $as_echo "not found" >&6; }
7782
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7785 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7786
7787 cat >>confdefs.h <<_ACEOF
7788 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7789 _ACEOF
7790
7791
7792 fi
7793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7794 $as_echo_n "checking for -lXext... " >&6; }
7795 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   ac_check_soname_save_LIBS=$LIBS
7799 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802
7803 /* Override any GCC internal prototype to avoid an error.
7804    Use char because int might match the return type of a GCC
7805    builtin and then its argument prototype would still apply.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 char XextCreateExtension ();
7810 int
7811 main ()
7812 {
7813 return XextCreateExtension ();
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819   case "$LIBEXT" in
7820     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7821     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'` ;;
7822     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7823   esac
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826     conftest$ac_exeext conftest.$ac_ext
7827   LIBS=$ac_check_soname_save_LIBS
7828 fi
7829 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7831 $as_echo "not found" >&6; }
7832
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7835 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7839 _ACEOF
7840
7841        XLIB="-lXext $XLIB"
7842 fi
7843
7844         for ac_header in X11/Xlib.h \
7845                       X11/XKBlib.h \
7846                       X11/Xutil.h \
7847                       X11/Xcursor/Xcursor.h \
7848                       X11/extensions/shape.h \
7849                       X11/extensions/XInput.h \
7850                       X11/extensions/XShm.h \
7851                       X11/extensions/Xcomposite.h \
7852                       X11/extensions/Xinerama.h \
7853                       X11/extensions/Xrandr.h \
7854                       X11/extensions/Xrender.h \
7855                       X11/extensions/xf86vmode.h \
7856                       X11/extensions/xf86vmproto.h
7857 do :
7858   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7860 # include <X11/Xlib.h>
7861 #endif
7862 #ifdef HAVE_X11_XUTIL_H
7863 # include <X11/Xutil.h>
7864 #endif
7865 "
7866 eval as_val=\$$as_ac_Header
7867    if test "x$as_val" = x""yes; then :
7868   cat >>confdefs.h <<_ACEOF
7869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7870 _ACEOF
7871
7872 fi
7873
7874 done
7875
7876
7877                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7878         then
7879               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7880 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7881 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7882   $as_echo_n "(cached) " >&6
7883 else
7884   ac_check_lib_save_LIBS=$LIBS
7885 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888
7889 /* Override any GCC internal prototype to avoid an error.
7890    Use char because int might match the return type of a GCC
7891    builtin and then its argument prototype would still apply.  */
7892 #ifdef __cplusplus
7893 extern "C"
7894 #endif
7895 char XkbQueryExtension ();
7896 int
7897 main ()
7898 {
7899 return XkbQueryExtension ();
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"; then :
7905   ac_cv_lib_X11_XkbQueryExtension=yes
7906 else
7907   ac_cv_lib_X11_XkbQueryExtension=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext \
7910     conftest$ac_exeext conftest.$ac_ext
7911 LIBS=$ac_check_lib_save_LIBS
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7914 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7915 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7916
7917 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7918
7919 fi
7920
7921         fi
7922
7923                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7924         then
7925             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7926 $as_echo_n "checking for -lXcursor... " >&6; }
7927 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   ac_check_soname_save_LIBS=$LIBS
7931 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h.  */
7934
7935 /* Override any GCC internal prototype to avoid an error.
7936    Use char because int might match the return type of a GCC
7937    builtin and then its argument prototype would still apply.  */
7938 #ifdef __cplusplus
7939 extern "C"
7940 #endif
7941 char XcursorImageLoadCursor ();
7942 int
7943 main ()
7944 {
7945 return XcursorImageLoadCursor ();
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951   case "$LIBEXT" in
7952     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7953     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'` ;;
7954     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
7955   esac
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext \
7958     conftest$ac_exeext conftest.$ac_ext
7959   LIBS=$ac_check_soname_save_LIBS
7960 fi
7961 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7963 $as_echo "not found" >&6; }
7964
7965 else
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7967 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7968
7969 cat >>confdefs.h <<_ACEOF
7970 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7971 _ACEOF
7972
7973
7974 fi
7975         fi
7976         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7977   case "x$with_xcursor" in
7978   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7979   xno) ;;
7980   *)   as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7981 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7982 esac
7983 fi
7984
7985                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7986         then
7987             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7988 $as_echo_n "checking for -lXi... " >&6; }
7989 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   ac_check_soname_save_LIBS=$LIBS
7993 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996
7997 /* Override any GCC internal prototype to avoid an error.
7998    Use char because int might match the return type of a GCC
7999    builtin and then its argument prototype would still apply.  */
8000 #ifdef __cplusplus
8001 extern "C"
8002 #endif
8003 char XOpenDevice ();
8004 int
8005 main ()
8006 {
8007 return XOpenDevice ();
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"; then :
8013   case "$LIBEXT" in
8014     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8015     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'` ;;
8016     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8017   esac
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020     conftest$ac_exeext conftest.$ac_ext
8021   LIBS=$ac_check_soname_save_LIBS
8022 fi
8023 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8025 $as_echo "not found" >&6; }
8026
8027 else
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8029 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8030
8031 cat >>confdefs.h <<_ACEOF
8032 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8033 _ACEOF
8034
8035
8036 fi
8037         fi
8038         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8039   case "x$with_xinput" in
8040   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8041   xno) ;;
8042   *)   as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8043 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8044 esac
8045 fi
8046
8047                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8048         then
8049               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8050 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8051 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   ac_check_lib_save_LIBS=$LIBS
8055 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060    Use char because int might match the return type of a GCC
8061    builtin and then its argument prototype would still apply.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char XShmQueryExtension ();
8066 int
8067 main ()
8068 {
8069 return XShmQueryExtension ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075   ac_cv_lib_Xext_XShmQueryExtension=yes
8076 else
8077   ac_cv_lib_Xext_XShmQueryExtension=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080     conftest$ac_exeext conftest.$ac_ext
8081 LIBS=$ac_check_lib_save_LIBS
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8084 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8085 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8086
8087 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8088
8089 fi
8090
8091         fi
8092         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8093   case "x$with_xshm" in
8094   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8095   xno) ;;
8096   *)   as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8097 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8098 esac
8099 fi
8100
8101                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8102         then
8103               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8104 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8105 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h.  */
8112
8113 /* Override any GCC internal prototype to avoid an error.
8114    Use char because int might match the return type of a GCC
8115    builtin and then its argument prototype would still apply.  */
8116 #ifdef __cplusplus
8117 extern "C"
8118 #endif
8119 char XShapeQueryExtension ();
8120 int
8121 main ()
8122 {
8123 return XShapeQueryExtension ();
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_link "$LINENO"; then :
8129   ac_cv_lib_Xext_XShapeQueryExtension=yes
8130 else
8131   ac_cv_lib_Xext_XShapeQueryExtension=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext \
8134     conftest$ac_exeext conftest.$ac_ext
8135 LIBS=$ac_check_lib_save_LIBS
8136 fi
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8138 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8139 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8140
8141 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8142
8143 fi
8144
8145         fi
8146         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8147   case "x$with_xshape" in
8148   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8149   xno) ;;
8150   *)   as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8151 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8152 esac
8153 fi
8154
8155                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8156         then
8157             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8158 $as_echo_n "checking for -lXxf86vm... " >&6; }
8159 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   ac_check_soname_save_LIBS=$LIBS
8163 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166
8167 /* Override any GCC internal prototype to avoid an error.
8168    Use char because int might match the return type of a GCC
8169    builtin and then its argument prototype would still apply.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 char XF86VidModeQueryExtension ();
8174 int
8175 main ()
8176 {
8177 return XF86VidModeQueryExtension ();
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 if ac_fn_c_try_link "$LINENO"; then :
8183   case "$LIBEXT" in
8184     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8185     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'` ;;
8186     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8187   esac
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext \
8190     conftest$ac_exeext conftest.$ac_ext
8191   LIBS=$ac_check_soname_save_LIBS
8192 fi
8193 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8195 $as_echo "not found" >&6; }
8196
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8199 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8200
8201 cat >>confdefs.h <<_ACEOF
8202 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8203 _ACEOF
8204
8205
8206 fi
8207         fi
8208         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8209   case "x$with_xxf86vm" in
8210   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8211   xno) ;;
8212   *)   as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8213 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8214 esac
8215 fi
8216
8217                 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"
8218         then
8219             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8220 $as_echo_n "checking for -lXrender... " >&6; }
8221 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8222   $as_echo_n "(cached) " >&6
8223 else
8224   ac_check_soname_save_LIBS=$LIBS
8225 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h.  */
8228
8229 /* Override any GCC internal prototype to avoid an error.
8230    Use char because int might match the return type of a GCC
8231    builtin and then its argument prototype would still apply.  */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 char XRenderQueryExtension ();
8236 int
8237 main ()
8238 {
8239 return XRenderQueryExtension ();
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245   case "$LIBEXT" in
8246     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8247     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'` ;;
8248     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8249   esac
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext \
8252     conftest$ac_exeext conftest.$ac_ext
8253   LIBS=$ac_check_soname_save_LIBS
8254 fi
8255 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8257 $as_echo "not found" >&6; }
8258
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8261 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8262
8263 cat >>confdefs.h <<_ACEOF
8264 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8265 _ACEOF
8266
8267        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8268 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8269 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   ac_check_lib_save_LIBS=$LIBS
8273 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276
8277 /* Override any GCC internal prototype to avoid an error.
8278    Use char because int might match the return type of a GCC
8279    builtin and then its argument prototype would still apply.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 char XRenderSetPictureTransform ();
8284 int
8285 main ()
8286 {
8287 return XRenderSetPictureTransform ();
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_link "$LINENO"; then :
8293   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8294 else
8295   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext \
8298     conftest$ac_exeext conftest.$ac_ext
8299 LIBS=$ac_check_lib_save_LIBS
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8302 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8303 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8304
8305 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8306
8307 fi
8308
8309 fi
8310
8311         fi
8312         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8313   case "x$with_xrender" in
8314   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8315   xno) ;;
8316   *)   as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8317 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8318 esac
8319 fi
8320
8321                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8322         then
8323                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325 #include <X11/Xlib.h>
8326 #include <X11/extensions/Xrandr.h>
8327 int
8328 main ()
8329 {
8330 static typeof(XRRSetScreenConfigAndRate) * func;
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8337 $as_echo_n "checking for -lXrandr... " >&6; }
8338 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   ac_check_soname_save_LIBS=$LIBS
8342 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h.  */
8345
8346 /* Override any GCC internal prototype to avoid an error.
8347    Use char because int might match the return type of a GCC
8348    builtin and then its argument prototype would still apply.  */
8349 #ifdef __cplusplus
8350 extern "C"
8351 #endif
8352 char XRRQueryExtension ();
8353 int
8354 main ()
8355 {
8356 return XRRQueryExtension ();
8357   ;
8358   return 0;
8359 }
8360 _ACEOF
8361 if ac_fn_c_try_link "$LINENO"; then :
8362   case "$LIBEXT" in
8363     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8364     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'` ;;
8365     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8366   esac
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext \
8369     conftest$ac_exeext conftest.$ac_ext
8370   LIBS=$ac_check_soname_save_LIBS
8371 fi
8372 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8374 $as_echo "not found" >&6; }
8375
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8378 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8379
8380 cat >>confdefs.h <<_ACEOF
8381 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8382 _ACEOF
8383
8384
8385 fi
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388         fi
8389         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8390   case "x$with_xrandr" in
8391   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8392   xno) ;;
8393   *)   as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8394 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8395 esac
8396 fi
8397
8398                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8399         then
8400                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 #include <X11/Xlib.h>
8403 #include <X11/extensions/Xinerama.h>
8404 int
8405 main ()
8406 {
8407 static typeof(XineramaQueryScreens) * func;
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8414 $as_echo_n "checking for -lXinerama... " >&6; }
8415 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   ac_check_soname_save_LIBS=$LIBS
8419 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h.  */
8422
8423 /* Override any GCC internal prototype to avoid an error.
8424    Use char because int might match the return type of a GCC
8425    builtin and then its argument prototype would still apply.  */
8426 #ifdef __cplusplus
8427 extern "C"
8428 #endif
8429 char XineramaQueryScreens ();
8430 int
8431 main ()
8432 {
8433 return XineramaQueryScreens ();
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_link "$LINENO"; then :
8439   case "$LIBEXT" in
8440     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8441     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'` ;;
8442     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8443   esac
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446     conftest$ac_exeext conftest.$ac_ext
8447   LIBS=$ac_check_soname_save_LIBS
8448 fi
8449 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8451 $as_echo "not found" >&6; }
8452
8453 else
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8455 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8456
8457 cat >>confdefs.h <<_ACEOF
8458 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8459 _ACEOF
8460
8461
8462 fi
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465         fi
8466         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8467   case "x$with_xinerama" in
8468   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8469   xno) ;;
8470   *)   as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8471 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8472 esac
8473 fi
8474
8475                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8476         then
8477             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8478 $as_echo_n "checking for -lXcomposite... " >&6; }
8479 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   ac_check_soname_save_LIBS=$LIBS
8483 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h.  */
8486
8487 /* Override any GCC internal prototype to avoid an error.
8488    Use char because int might match the return type of a GCC
8489    builtin and then its argument prototype would still apply.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char XCompositeRedirectWindow ();
8494 int
8495 main ()
8496 {
8497 return XCompositeRedirectWindow ();
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503   case "$LIBEXT" in
8504     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8505     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'` ;;
8506     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8507   esac
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext \
8510     conftest$ac_exeext conftest.$ac_ext
8511   LIBS=$ac_check_soname_save_LIBS
8512 fi
8513 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8515 $as_echo "not found" >&6; }
8516
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8519 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8520
8521 cat >>confdefs.h <<_ACEOF
8522 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8523 _ACEOF
8524
8525
8526 fi
8527         fi
8528         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8529   case "x$with_xcomposite" in
8530   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8531   xno) ;;
8532   *)   as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8533 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8534 esac
8535 fi
8536
8537                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8538 #include <X11/Xlib.h>
8539 #endif
8540 "
8541 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8542
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_XICCALLBACK_CALLBACK 1
8545 _ACEOF
8546
8547
8548 fi
8549
8550
8551
8552         opengl_msg=""
8553     if test "x$with_opengl" != "xno"
8554     then
8555         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8556 do :
8557   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8558 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8559 # include <GL/glx.h>
8560 #endif
8561 "
8562 eval as_val=\$$as_ac_Header
8563    if test "x$as_val" = x""yes; then :
8564   cat >>confdefs.h <<_ACEOF
8565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566 _ACEOF
8567
8568 fi
8569
8570 done
8571
8572         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8573         then
8574                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8575 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8576 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h.  */
8581 #include <GL/gl.h>
8582 int
8583 main ()
8584 {
8585 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591   wine_cv_opengl_header_version_OK="yes"
8592 else
8593   wine_cv_opengl_header_version_OK="no"
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8598 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8599
8600             if test "$wine_cv_opengl_header_version_OK" = "yes"
8601             then
8602                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8603 $as_echo_n "checking for -lGL... " >&6; }
8604 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   ac_check_soname_save_LIBS=$LIBS
8608 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h.  */
8611
8612 /* Override any GCC internal prototype to avoid an error.
8613    Use char because int might match the return type of a GCC
8614    builtin and then its argument prototype would still apply.  */
8615 #ifdef __cplusplus
8616 extern "C"
8617 #endif
8618 char glXCreateContext ();
8619 int
8620 main ()
8621 {
8622 return glXCreateContext ();
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"; then :
8628   case "$LIBEXT" in
8629     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8630     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'` ;;
8631     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8632   esac
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635     conftest$ac_exeext conftest.$ac_ext
8636   LIBS=$ac_check_soname_save_LIBS
8637 fi
8638 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8640 $as_echo "not found" >&6; }
8641        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8642 $as_echo_n "checking for -lGL... " >&6; }
8643 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8644   $as_echo_n "(cached) " >&6
8645 else
8646   ac_check_soname_save_LIBS=$LIBS
8647 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"
8648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h.  */
8650
8651 /* Override any GCC internal prototype to avoid an error.
8652    Use char because int might match the return type of a GCC
8653    builtin and then its argument prototype would still apply.  */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 char glXCreateContext ();
8658 int
8659 main ()
8660 {
8661 return glXCreateContext ();
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"; then :
8667   case "$LIBEXT" in
8668     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8669     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'` ;;
8670     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8671   esac
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext \
8674     conftest$ac_exeext conftest.$ac_ext
8675   LIBS=$ac_check_soname_save_LIBS
8676 fi
8677 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8679 $as_echo "not found" >&6; }
8680        if test -f /usr/X11R6/lib/libGL.a
8681                                     then
8682                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8683 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8684                                     else
8685                                         opengl_msg="No OpenGL library found on this system."
8686                                     fi
8687 else
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8689 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8690
8691 cat >>confdefs.h <<_ACEOF
8692 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8693 _ACEOF
8694
8695        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"
8696
8697 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8698
8699 fi
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8702 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8703
8704 cat >>confdefs.h <<_ACEOF
8705 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8706 _ACEOF
8707
8708        OPENGL_LIBS="-lGL"
8709
8710 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8711
8712 fi
8713                  if test "$ac_cv_header_GL_glu_h" = "yes"
8714                  then
8715                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8716 $as_echo_n "checking for -lGLU... " >&6; }
8717 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   ac_check_soname_save_LIBS=$LIBS
8721 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h.  */
8724
8725 /* Override any GCC internal prototype to avoid an error.
8726    Use char because int might match the return type of a GCC
8727    builtin and then its argument prototype would still apply.  */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 char gluLookAt ();
8732 int
8733 main ()
8734 {
8735 return gluLookAt ();
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 if ac_fn_c_try_link "$LINENO"; then :
8741   case "$LIBEXT" in
8742     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8743     dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8744     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8745   esac
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext \
8748     conftest$ac_exeext conftest.$ac_ext
8749   LIBS=$ac_check_soname_save_LIBS
8750 fi
8751 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8753 $as_echo "not found" >&6; }
8754
8755 else
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8757 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8758
8759 cat >>confdefs.h <<_ACEOF
8760 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8761 _ACEOF
8762
8763
8764 fi
8765                  fi
8766                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8767   case "x$with_glu" in
8768   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8769   xno) ;;
8770   *)   as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8771 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8772 esac
8773 fi
8774              else
8775                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8776              fi
8777          else
8778              opengl_msg="OpenGL development headers not found."
8779          fi
8780          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8781          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8782     else
8783          enable_opengl32=${enable_opengl32:-no}
8784          enable_glu32=${enable_glu32:-no}
8785     fi
8786     if test -n "$opengl_msg"; then :
8787   case "x$with_opengl" in
8788   x)   as_fn_append wine_warnings "|$opengl_msg
8789 OpenGL and Direct3D won't be supported." ;;
8790   xno) ;;
8791   *)   as_fn_error "$opengl_msg
8792 OpenGL and Direct3D won't be supported.
8793 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8794 esac
8795 fi
8796
8797         NASLIBS=""
8798
8799     for ac_header in audio/audiolib.h
8800 do :
8801   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8802 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8803   cat >>confdefs.h <<_ACEOF
8804 #define HAVE_AUDIO_AUDIOLIB_H 1
8805 _ACEOF
8806  for ac_header in audio/soundlib.h
8807 do :
8808   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8809 "
8810 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8811   cat >>confdefs.h <<_ACEOF
8812 #define HAVE_AUDIO_SOUNDLIB_H 1
8813 _ACEOF
8814
8815 fi
8816
8817 done
8818
8819           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8820 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8821 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   ac_check_lib_save_LIBS=$LIBS
8825 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h.  */
8828
8829 /* Override any GCC internal prototype to avoid an error.
8830    Use char because int might match the return type of a GCC
8831    builtin and then its argument prototype would still apply.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 char AuCreateFlow ();
8836 int
8837 main ()
8838 {
8839 return AuCreateFlow ();
8840   ;
8841   return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"; then :
8845   ac_cv_lib_audio_AuCreateFlow=yes
8846 else
8847   ac_cv_lib_audio_AuCreateFlow=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext \
8850     conftest$ac_exeext conftest.$ac_ext
8851 LIBS=$ac_check_lib_save_LIBS
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8854 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8855 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8856
8857 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8858
8859                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8860 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8861 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   ac_check_lib_save_LIBS=$LIBS
8865 LIBS="-lXau $X_LIBS $LIBS"
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h.  */
8868
8869 /* Override any GCC internal prototype to avoid an error.
8870    Use char because int might match the return type of a GCC
8871    builtin and then its argument prototype would still apply.  */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char XauGetBestAuthByAddr ();
8876 int
8877 main ()
8878 {
8879 return XauGetBestAuthByAddr ();
8880   ;
8881   return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_link "$LINENO"; then :
8885   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8886 else
8887   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890     conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8894 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8895 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8896   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8897 else
8898   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8899 fi
8900
8901
8902 fi
8903
8904 fi
8905
8906 done
8907
8908
8909     CPPFLAGS="$ac_save_CPPFLAGS"
8910 else
8911     XLIB=""
8912     X_CFLAGS=""
8913     X_LIBS=""
8914     enable_winex11_drv=${enable_winex11_drv:-no}
8915     enable_opengl32=${enable_opengl32:-no}
8916     enable_glu32=${enable_glu32:-no}
8917 fi
8918 if test "x$XLIB" = "x"; then :
8919   case "x$with_x" in
8920   xno) ;;
8921   *)   as_fn_error "X ${notice_platform}development files not found. Wine will be built
8922 without X support, which probably isn't what you want. You will need to install
8923 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8924 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8925 esac
8926 fi
8927
8928
8929 XML2LIBS=""
8930
8931 XML2INCL=""
8932
8933 XSLTINCL=""
8934
8935 if test "x$with_xml" != "xno"
8936 then
8937     ac_save_CPPFLAGS="$CPPFLAGS"
8938     if test "$PKG_CONFIG" != "false"
8939     then
8940         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8941         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8942     else
8943         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8944         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
8945     fi
8946     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8947     for ac_header in libxml/parser.h
8948 do :
8949   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8950 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8951   cat >>confdefs.h <<_ACEOF
8952 #define HAVE_LIBXML_PARSER_H 1
8953 _ACEOF
8954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8955 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8956 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-lxml2 $ac_xml_libs $LIBS"
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h.  */
8963
8964 /* Override any GCC internal prototype to avoid an error.
8965    Use char because int might match the return type of a GCC
8966    builtin and then its argument prototype would still apply.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 char xmlParseMemory ();
8971 int
8972 main ()
8973 {
8974 return xmlParseMemory ();
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 if ac_fn_c_try_link "$LINENO"; then :
8980   ac_cv_lib_xml2_xmlParseMemory=yes
8981 else
8982   ac_cv_lib_xml2_xmlParseMemory=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985     conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8987 fi
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8989 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8990 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8991
8992 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8993
8994                  XML2LIBS="$ac_xml_libs"
8995                  XML2INCL="$ac_xml_cflags"
8996 fi
8997
8998              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
8999 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9000 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lxml2 $ac_xml_libs $LIBS"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h.  */
9007
9008 /* Override any GCC internal prototype to avoid an error.
9009    Use char because int might match the return type of a GCC
9010    builtin and then its argument prototype would still apply.  */
9011 #ifdef __cplusplus
9012 extern "C"
9013 #endif
9014 char xmlReadMemory ();
9015 int
9016 main ()
9017 {
9018 return xmlReadMemory ();
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024   ac_cv_lib_xml2_xmlReadMemory=yes
9025 else
9026   ac_cv_lib_xml2_xmlReadMemory=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029     conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_check_lib_save_LIBS
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9033 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9034 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9035
9036 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9037
9038 fi
9039
9040              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9041 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9042 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-lxml2 $ac_xml_libs $LIBS"
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h.  */
9049
9050 /* Override any GCC internal prototype to avoid an error.
9051    Use char because int might match the return type of a GCC
9052    builtin and then its argument prototype would still apply.  */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 char xmlNewDocPI ();
9057 int
9058 main ()
9059 {
9060 return xmlNewDocPI ();
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 if ac_fn_c_try_link "$LINENO"; then :
9066   ac_cv_lib_xml2_xmlNewDocPI=yes
9067 else
9068   ac_cv_lib_xml2_xmlNewDocPI=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext \
9071     conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9075 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9076 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9077
9078 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9079
9080 fi
9081
9082
9083 fi
9084
9085 done
9086
9087     CPPFLAGS="$ac_save_CPPFLAGS"
9088 fi
9089 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9090   case "x$with_xml" in
9091   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9092   xno) ;;
9093   *)   as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9094 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9095 esac
9096 fi
9097
9098 if test "x$with_xslt" != "xno"
9099 then
9100     if test "$PKG_CONFIG" != "false"
9101     then
9102         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9103         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9104     else
9105         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9106         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9107     fi
9108     ac_save_CPPFLAGS="$CPPFLAGS"
9109     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9110     for ac_header in libxslt/pattern.h libxslt/transform.h
9111 do :
9112   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9114 # include <libxslt/pattern.h>
9115 #endif
9116 "
9117 eval as_val=\$$as_ac_Header
9118    if test "x$as_val" = x""yes; then :
9119   cat >>confdefs.h <<_ACEOF
9120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9121 _ACEOF
9122
9123 fi
9124
9125 done
9126
9127     CPPFLAGS="$ac_save_CPPFLAGS"
9128     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9129     then
9130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9131 $as_echo_n "checking for -lxslt... " >&6; }
9132 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9133   $as_echo_n "(cached) " >&6
9134 else
9135   ac_check_soname_save_LIBS=$LIBS
9136 LIBS="-lxslt $ac_xslt_libs $LIBS"
9137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h.  */
9139
9140 /* Override any GCC internal prototype to avoid an error.
9141    Use char because int might match the return type of a GCC
9142    builtin and then its argument prototype would still apply.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char xsltCompilePattern ();
9147 int
9148 main ()
9149 {
9150 return xsltCompilePattern ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156   case "$LIBEXT" in
9157     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9158     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'` ;;
9159     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9160   esac
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext \
9163     conftest$ac_exeext conftest.$ac_ext
9164   LIBS=$ac_check_soname_save_LIBS
9165 fi
9166 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9168 $as_echo "not found" >&6; }
9169
9170 else
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9172 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9173
9174 cat >>confdefs.h <<_ACEOF
9175 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9176 _ACEOF
9177
9178        XSLTINCL="$ac_xslt_cflags"
9179 fi
9180     fi
9181 fi
9182 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9183   case "x$with_xslt" in
9184   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9185   xno) ;;
9186   *)   as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9187 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9188 esac
9189 fi
9190
9191 HALINCL=""
9192
9193 if test "x$with_hal" != "xno"
9194 then
9195     ac_save_CPPFLAGS="$CPPFLAGS"
9196     if test "$PKG_CONFIG" != "false"
9197     then
9198         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9199         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9200         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9201     fi
9202     for ac_header in dbus/dbus.h hal/libhal.h
9203 do :
9204   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9205 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9206 eval as_val=\$$as_ac_Header
9207    if test "x$as_val" = x""yes; then :
9208   cat >>confdefs.h <<_ACEOF
9209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9210 _ACEOF
9211
9212 fi
9213
9214 done
9215
9216     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9217     then
9218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9219 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9220 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9221   $as_echo_n "(cached) " >&6
9222 else
9223   ac_check_lib_save_LIBS=$LIBS
9224 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h.  */
9227
9228 /* Override any GCC internal prototype to avoid an error.
9229    Use char because int might match the return type of a GCC
9230    builtin and then its argument prototype would still apply.  */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char dbus_connection_close ();
9235 int
9236 main ()
9237 {
9238 return dbus_connection_close ();
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244   ac_cv_lib_dbus_1_dbus_connection_close=yes
9245 else
9246   ac_cv_lib_dbus_1_dbus_connection_close=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249     conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9253 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9254 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9256 $as_echo_n "checking for -lhal... " >&6; }
9257 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   ac_check_soname_save_LIBS=$LIBS
9261 LIBS="-lhal $ac_hal_libs $LIBS"
9262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h.  */
9264
9265 /* Override any GCC internal prototype to avoid an error.
9266    Use char because int might match the return type of a GCC
9267    builtin and then its argument prototype would still apply.  */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 char libhal_ctx_new ();
9272 int
9273 main ()
9274 {
9275 return libhal_ctx_new ();
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"; then :
9281   case "$LIBEXT" in
9282     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9283     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'` ;;
9284     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9285   esac
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext \
9288     conftest$ac_exeext conftest.$ac_ext
9289   LIBS=$ac_check_soname_save_LIBS
9290 fi
9291 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9293 $as_echo "not found" >&6; }
9294
9295 else
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9297 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9298
9299 cat >>confdefs.h <<_ACEOF
9300 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9301 _ACEOF
9302
9303        HALINCL="$ac_hal_cflags"
9304 fi
9305 fi
9306
9307     fi
9308     CPPFLAGS="$ac_save_CPPFLAGS"
9309 fi
9310 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9311   case "x$with_hal" in
9312   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9313   xno) ;;
9314   *)   as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9315 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9316 esac
9317 fi
9318
9319 if test "x$with_gnutls" != "xno"
9320 then
9321     ac_save_CPPFLAGS="$CPPFLAGS"
9322     if test "$PKG_CONFIG" != "false"
9323     then
9324         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9325         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9326         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9327     fi
9328     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9329 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h.  */
9332 #include <gnutls/gnutls.h>
9333 int
9334 main ()
9335 {
9336 typeof(gnutls_mac_get_key_size) *pfunc;
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9343 $as_echo_n "checking for -lgnutls... " >&6; }
9344 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9345   $as_echo_n "(cached) " >&6
9346 else
9347   ac_check_soname_save_LIBS=$LIBS
9348 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h.  */
9351
9352 /* Override any GCC internal prototype to avoid an error.
9353    Use char because int might match the return type of a GCC
9354    builtin and then its argument prototype would still apply.  */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char gnutls_global_init ();
9359 int
9360 main ()
9361 {
9362 return gnutls_global_init ();
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368   case "$LIBEXT" in
9369     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9370     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'` ;;
9371     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9372   esac
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext \
9375     conftest$ac_exeext conftest.$ac_ext
9376   LIBS=$ac_check_soname_save_LIBS
9377 fi
9378 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9380 $as_echo "not found" >&6; }
9381
9382 else
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9384 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9385
9386 cat >>confdefs.h <<_ACEOF
9387 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9388 _ACEOF
9389
9390        GNUTLSINCL="$ac_gnutls_cflags"
9391
9392 fi
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 fi
9396
9397
9398     CPPFLAGS="$ac_save_CPPFLAGS"
9399 fi
9400 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9401   case "x$with_gnutls" in
9402   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9403   xno) ;;
9404   *)   as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9405 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9406 esac
9407 fi
9408
9409 CURSESLIBS=""
9410 if test "$ac_cv_header_ncurses_h" = "yes"
9411 then
9412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9413 $as_echo_n "checking for -lncurses... " >&6; }
9414 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   ac_check_soname_save_LIBS=$LIBS
9418 LIBS="-lncurses  $LIBS"
9419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h.  */
9421
9422 /* Override any GCC internal prototype to avoid an error.
9423    Use char because int might match the return type of a GCC
9424    builtin and then its argument prototype would still apply.  */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char waddch ();
9429 int
9430 main ()
9431 {
9432 return waddch ();
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438   case "$LIBEXT" in
9439     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9440     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'` ;;
9441     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9442   esac
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext \
9445     conftest$ac_exeext conftest.$ac_ext
9446   LIBS=$ac_check_soname_save_LIBS
9447 fi
9448 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9450 $as_echo "not found" >&6; }
9451
9452 else
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9454 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9458 _ACEOF
9459
9460        CURSESLIBS="-lncurses"
9461 fi
9462 elif test "$ac_cv_header_curses_h" = "yes"
9463 then
9464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9465 $as_echo_n "checking for -lcurses... " >&6; }
9466 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   ac_check_soname_save_LIBS=$LIBS
9470 LIBS="-lcurses  $LIBS"
9471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h.  */
9473
9474 /* Override any GCC internal prototype to avoid an error.
9475    Use char because int might match the return type of a GCC
9476    builtin and then its argument prototype would still apply.  */
9477 #ifdef __cplusplus
9478 extern "C"
9479 #endif
9480 char waddch ();
9481 int
9482 main ()
9483 {
9484 return waddch ();
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490   case "$LIBEXT" in
9491     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9492     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'` ;;
9493     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9494   esac
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext \
9497     conftest$ac_exeext conftest.$ac_ext
9498   LIBS=$ac_check_soname_save_LIBS
9499 fi
9500 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9502 $as_echo "not found" >&6; }
9503
9504 else
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9506 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9510 _ACEOF
9511
9512        CURSESLIBS="-lcurses"
9513 fi
9514 fi
9515 ac_save_LIBS="$LIBS"
9516 LIBS="$LIBS $CURSESLIBS"
9517 for ac_func in mousemask
9518 do :
9519   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9520 if test "x$ac_cv_func_mousemask" = x""yes; then :
9521   cat >>confdefs.h <<_ACEOF
9522 #define HAVE_MOUSEMASK 1
9523 _ACEOF
9524
9525 fi
9526 done
9527
9528 LIBS="$ac_save_LIBS"
9529 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9530   case "x$with_curses" in
9531   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9532   xno) ;;
9533   *)   as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9534 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9535 esac
9536 fi
9537
9538 if test "x$with_sane" != "xno"
9539 then
9540     ac_save_CPPFLAGS="$CPPFLAGS"
9541     # Extract the first word of "sane-config", so it can be a program name with args.
9542 set dummy sane-config; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   if test -n "$sane_devel"; then
9549   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9553 do
9554   IFS=$as_save_IFS
9555   test -z "$as_dir" && as_dir=.
9556     for ac_exec_ext in '' $ac_executable_extensions; do
9557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9558     ac_cv_prog_sane_devel="sane-config"
9559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9560     break 2
9561   fi
9562 done
9563   done
9564 IFS=$as_save_IFS
9565
9566   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9567 fi
9568 fi
9569 sane_devel=$ac_cv_prog_sane_devel
9570 if test -n "$sane_devel"; then
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9572 $as_echo "$sane_devel" >&6; }
9573 else
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 fi
9577
9578
9579     if test "$sane_devel" != "no"
9580     then
9581         ac_sane_incl="`$sane_devel --cflags`"
9582         ac_sane_libs="`$sane_devel --ldflags`"
9583         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9584     fi
9585     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9586 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9588 $as_echo_n "checking for -lsane... " >&6; }
9589 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9590   $as_echo_n "(cached) " >&6
9591 else
9592   ac_check_soname_save_LIBS=$LIBS
9593 LIBS="-lsane $ac_sane_libs $LIBS"
9594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h.  */
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598    Use char because int might match the return type of a GCC
9599    builtin and then its argument prototype would still apply.  */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char sane_init ();
9604 int
9605 main ()
9606 {
9607 return sane_init ();
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613   case "$LIBEXT" in
9614     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9615     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'` ;;
9616     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9617   esac
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620     conftest$ac_exeext conftest.$ac_ext
9621   LIBS=$ac_check_soname_save_LIBS
9622 fi
9623 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9625 $as_echo "not found" >&6; }
9626
9627 else
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9629 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9630
9631 cat >>confdefs.h <<_ACEOF
9632 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9633 _ACEOF
9634
9635        SANEINCL="$ac_sane_incl"
9636
9637 fi
9638 fi
9639
9640
9641     CPPFLAGS="$ac_save_CPPFLAGS"
9642 fi
9643 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9644   case "x$with_sane" in
9645   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9646   xno) ;;
9647   *)   as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9648 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9649 esac
9650 fi
9651
9652 if test "x$with_v4l" != "xno"
9653 then
9654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9655 $as_echo_n "checking for -lv4l1... " >&6; }
9656 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   ac_check_soname_save_LIBS=$LIBS
9660 LIBS="-lv4l1  $LIBS"
9661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h.  */
9663
9664 /* Override any GCC internal prototype to avoid an error.
9665    Use char because int might match the return type of a GCC
9666    builtin and then its argument prototype would still apply.  */
9667 #ifdef __cplusplus
9668 extern "C"
9669 #endif
9670 char v4l1_open ();
9671 int
9672 main ()
9673 {
9674 return v4l1_open ();
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 if ac_fn_c_try_link "$LINENO"; then :
9680   case "$LIBEXT" in
9681     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9682     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'` ;;
9683     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9684   esac
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext \
9687     conftest$ac_exeext conftest.$ac_ext
9688   LIBS=$ac_check_soname_save_LIBS
9689 fi
9690 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9692 $as_echo "not found" >&6; }
9693
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9696 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9697
9698 cat >>confdefs.h <<_ACEOF
9699 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9700 _ACEOF
9701
9702
9703 fi
9704 fi
9705 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9706   case "x$with_v4l" in
9707   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9708   xno) ;;
9709   *)   as_fn_error "libv4l ${notice_platform}development files not found.
9710 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9711 esac
9712 fi
9713
9714 if test "x$with_gphoto" != "xno"
9715 then
9716     ac_save_CPPFLAGS="$CPPFLAGS"
9717     # Extract the first word of "gphoto2-config", so it can be a program name with args.
9718 set dummy gphoto2-config; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   if test -n "$gphoto2_devel"; then
9725   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9726 else
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9729 do
9730   IFS=$as_save_IFS
9731   test -z "$as_dir" && as_dir=.
9732     for ac_exec_ext in '' $ac_executable_extensions; do
9733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734     ac_cv_prog_gphoto2_devel="gphoto2-config"
9735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736     break 2
9737   fi
9738 done
9739   done
9740 IFS=$as_save_IFS
9741
9742   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9743 fi
9744 fi
9745 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9746 if test -n "$gphoto2_devel"; then
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9748 $as_echo "$gphoto2_devel" >&6; }
9749 else
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9752 fi
9753
9754
9755     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9756 set dummy gphoto2-port-config; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   if test -n "$gphoto2port_devel"; then
9763   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9767 do
9768   IFS=$as_save_IFS
9769   test -z "$as_dir" && as_dir=.
9770     for ac_exec_ext in '' $ac_executable_extensions; do
9771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774     break 2
9775   fi
9776 done
9777   done
9778 IFS=$as_save_IFS
9779
9780   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9781 fi
9782 fi
9783 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9784 if test -n "$gphoto2port_devel"; then
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9786 $as_echo "$gphoto2port_devel" >&6; }
9787 else
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791
9792
9793     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9794     then
9795         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9796         ac_gphoto2_libs=""
9797         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9798         do
9799             case "$i" in
9800             -L/usr/lib|-L/usr/lib64) ;;
9801             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9802             esac
9803         done
9804         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9805     fi
9806     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9807     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9808 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9810 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9811 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   ac_check_lib_save_LIBS=$LIBS
9815 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818
9819 /* Override any GCC internal prototype to avoid an error.
9820    Use char because int might match the return type of a GCC
9821    builtin and then its argument prototype would still apply.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char gp_camera_new ();
9826 int
9827 main ()
9828 {
9829 return gp_camera_new ();
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"; then :
9835   ac_cv_lib_gphoto2_gp_camera_new=yes
9836 else
9837   ac_cv_lib_gphoto2_gp_camera_new=no
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext \
9840     conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9844 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9845 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9846
9847 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9848
9849                                    GPHOTO2LIBS="$ac_gphoto2_libs"
9850
9851                                    GPHOTO2INCL="$ac_gphoto2_incl"
9852
9853 fi
9854
9855 fi
9856
9857
9858     CPPFLAGS="$ac_save_CPPFLAGS"
9859 fi
9860 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9861   case "x$with_gphoto" in
9862   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9863   xno) ;;
9864   *)   as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9865 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9866 esac
9867 fi
9868
9869
9870 RESOLVLIBS=""
9871
9872 if test "$ac_cv_header_resolv_h" = "yes"
9873 then
9874     ac_save_LIBS="$LIBS"
9875     LIBS="$LIBS -lresolv"
9876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h.  */
9878 #ifdef HAVE_NETINET_IN_H
9879 #include <netinet/in.h>
9880 #endif
9881 #include <resolv.h>
9882 int
9883 main ()
9884 {
9885 res_init();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891
9892 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9893
9894          RESOLVLIBS="-lresolv"
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext \
9897     conftest$ac_exeext conftest.$ac_ext
9898     LIBS="$ac_save_LIBS"
9899 fi
9900
9901 LCMSLIBS=""
9902
9903 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9904 then
9905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9906 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9907 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   ac_check_lib_save_LIBS=$LIBS
9911 LIBS="-llcms  $LIBS"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h.  */
9914
9915 /* Override any GCC internal prototype to avoid an error.
9916    Use char because int might match the return type of a GCC
9917    builtin and then its argument prototype would still apply.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char cmsOpenProfileFromFile ();
9922 int
9923 main ()
9924 {
9925 return cmsOpenProfileFromFile ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9932 else
9933   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext \
9936     conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9940 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9941 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9942
9943 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9944
9945          LCMSLIBS="-llcms"
9946 fi
9947
9948 fi
9949 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9950   case "x$with_cms" in
9951   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9952   xno) ;;
9953   *)   as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9954 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9955 esac
9956 fi
9957
9958 if test "x$with_freetype" != "xno"
9959 then
9960     for ac_prog in freetype-config freetype2-config
9961 do
9962   # Extract the first word of "$ac_prog", so it can be a program name with args.
9963 set dummy $ac_prog; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   if test -n "$ft_devel"; then
9970   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979     ac_cv_prog_ft_devel="$ac_prog"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986
9987 fi
9988 fi
9989 ft_devel=$ac_cv_prog_ft_devel
9990 if test -n "$ft_devel"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9992 $as_echo "$ft_devel" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997
9998
9999   test -n "$ft_devel" && break
10000 done
10001 test -n "$ft_devel" || ft_devel="no"
10002
10003     if test "$ft_devel" != "no"
10004     then
10005         ac_freetype_incl=`$ft_devel --cflags`
10006         ac_freetype_libs=`$ft_devel --libs`
10007     fi
10008     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10010 $as_echo_n "checking for -lfreetype... " >&6; }
10011 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014   ac_check_soname_save_LIBS=$LIBS
10015 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h.  */
10018
10019 /* Override any GCC internal prototype to avoid an error.
10020    Use char because int might match the return type of a GCC
10021    builtin and then its argument prototype would still apply.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char FT_Init_FreeType ();
10026 int
10027 main ()
10028 {
10029 return FT_Init_FreeType ();
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035   case "$LIBEXT" in
10036     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10037     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'` ;;
10038     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10039   esac
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042     conftest$ac_exeext conftest.$ac_ext
10043   LIBS=$ac_check_soname_save_LIBS
10044 fi
10045 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10047 $as_echo "not found" >&6; }
10048        ft_lib=no
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10051 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10052
10053 cat >>confdefs.h <<_ACEOF
10054 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10055 _ACEOF
10056
10057        ft_lib=yes
10058 fi
10059     if test "$ft_lib" = "yes"
10060     then
10061         ac_save_CPPFLAGS="$CPPFLAGS"
10062         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10063         for ac_header in ft2build.h \
10064                          freetype/freetype.h \
10065                          freetype/ftglyph.h \
10066                          freetype/fttypes.h \
10067                          freetype/tttables.h \
10068                          freetype/ftsnames.h \
10069                          freetype/ttnameid.h \
10070                          freetype/ftoutln.h \
10071                          freetype/ftwinfnt.h \
10072                          freetype/ftmodapi.h \
10073                          freetype/ftlcdfil.h \
10074                          freetype/internal/sfnt.h
10075 do :
10076   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10077 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10078                           # include <ft2build.h>
10079                           #endif
10080 "
10081 eval as_val=\$$as_ac_Header
10082    if test "x$as_val" = x""yes; then :
10083   cat >>confdefs.h <<_ACEOF
10084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10085 _ACEOF
10086
10087 fi
10088
10089 done
10090
10091         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h.  */
10093 #include <ft2build.h>
10094                     #include <freetype/fttrigon.h>
10095 _ACEOF
10096 if ac_fn_c_try_cpp "$LINENO"; then :
10097
10098 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10099
10100                     wine_cv_fttrigon=yes
10101 else
10102   wine_cv_fttrigon=no
10103 fi
10104 rm -f conftest.err conftest.$ac_ext
10105         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10106 "
10107 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10108
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_FT_TRUETYPEENGINETYPE 1
10111 _ACEOF
10112
10113
10114 fi
10115
10116         ac_save_CFLAGS="$CFLAGS"
10117         CFLAGS="$CFLAGS $ac_freetype_libs"
10118         for ac_func in FT_Load_Sfnt_Table
10119 do :
10120   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10121 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10122   cat >>confdefs.h <<_ACEOF
10123 #define HAVE_FT_LOAD_SFNT_TABLE 1
10124 _ACEOF
10125
10126 fi
10127 done
10128
10129         CFLAGS="$ac_save_CFLAGS"
10130         CPPFLAGS="$ac_save_CPPFLAGS"
10131                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10132         then
10133
10134 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10135
10136             FREETYPELIBS="$ac_freetype_libs"
10137
10138             FREETYPEINCL="$ac_freetype_incl"
10139
10140         fi
10141     fi
10142 fi
10143 if test "x$FREETYPELIBS" = "x"; then :
10144   case "x$with_freetype" in
10145   xno) ;;
10146   *)   as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10147 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10148 esac
10149 fi
10150 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10153 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10154 if test "${ac_cv_c_ppdev+set}" = set; then :
10155   $as_echo_n "(cached) " >&6
10156 else
10157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h.  */
10159 #ifdef HAVE_SYS_IOCTL_H
10160 # include <sys/ioctl.h>
10161 #endif
10162 #include <linux/ppdev.h>
10163 int
10164 main ()
10165 {
10166 ioctl (1,PPCLAIM,0)
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_compile "$LINENO"; then :
10172   ac_cv_c_ppdev="yes"
10173 else
10174   ac_cv_c_ppdev="no"
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 fi
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10179 $as_echo "$ac_cv_c_ppdev" >&6; }
10180 if test "$ac_cv_c_ppdev" = "yes"
10181 then
10182
10183 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10184
10185 fi
10186
10187 ac_wine_check_funcs_save_LIBS="$LIBS"
10188 LIBS="$LIBS $LIBPTHREAD"
10189 for ac_func in \
10190         pthread_attr_get_np \
10191         pthread_getattr_np \
10192         pthread_get_stackaddr_np \
10193         pthread_get_stacksize_np
10194 do :
10195   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10197 eval as_val=\$$as_ac_var
10198    if test "x$as_val" = x""yes; then :
10199   cat >>confdefs.h <<_ACEOF
10200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10201 _ACEOF
10202
10203 fi
10204 done
10205
10206 LIBS="$ac_wine_check_funcs_save_LIBS"
10207
10208 if test "$ac_cv_header_zlib_h" = "yes"
10209 then
10210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10211 $as_echo_n "checking for inflate in -lz... " >&6; }
10212 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10213   $as_echo_n "(cached) " >&6
10214 else
10215   ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-lz  $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h.  */
10219
10220 /* Override any GCC internal prototype to avoid an error.
10221    Use char because int might match the return type of a GCC
10222    builtin and then its argument prototype would still apply.  */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char inflate ();
10227 int
10228 main ()
10229 {
10230 return inflate ();
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236   ac_cv_lib_z_inflate=yes
10237 else
10238   ac_cv_lib_z_inflate=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241     conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10245 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10246 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10247
10248 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10249
10250                             ZLIB="-lz"
10251
10252 fi
10253
10254 fi
10255
10256 if test "x$with_esd" != xno
10257 then
10258     save_CFLAGS="$CFLAGS"
10259     # Extract the first word of "esd-config", so it can be a program name with args.
10260 set dummy esd-config; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   case $ESDCONFIG in
10267   [\\/]* | ?:[\\/]*)
10268   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10269   ;;
10270   *)
10271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272 for as_dir in $PATH
10273 do
10274   IFS=$as_save_IFS
10275   test -z "$as_dir" && as_dir=.
10276     for ac_exec_ext in '' $ac_executable_extensions; do
10277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10278     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280     break 2
10281   fi
10282 done
10283   done
10284 IFS=$as_save_IFS
10285
10286   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10287   ;;
10288 esac
10289 fi
10290 ESDCONFIG=$ac_cv_path_ESDCONFIG
10291 if test -n "$ESDCONFIG"; then
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10293 $as_echo "$ESDCONFIG" >&6; }
10294 else
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297 fi
10298
10299
10300     if test "x$ESDCONFIG" != "xno"
10301     then
10302         ac_esd_incl=""
10303         for i in `$ESDCONFIG --cflags`
10304         do
10305             case "$i" in
10306                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10307             esac
10308         done
10309         ac_esd_libs=`$ESDCONFIG --libs`
10310         CFLAGS="$CFLAGS $ac_esd_incl"
10311     fi
10312     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10313     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10314 if test "x$ac_cv_header_esd_h" = x""yes; then :
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10316 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10317 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10318   $as_echo_n "(cached) " >&6
10319 else
10320   ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-lesd $ac_esd_libs $LIBS"
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h.  */
10324
10325 /* Override any GCC internal prototype to avoid an error.
10326    Use char because int might match the return type of a GCC
10327    builtin and then its argument prototype would still apply.  */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char esd_open_sound ();
10332 int
10333 main ()
10334 {
10335 return esd_open_sound ();
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341   ac_cv_lib_esd_esd_open_sound=yes
10342 else
10343   ac_cv_lib_esd_esd_open_sound=no
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext \
10346     conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10350 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10351 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10352   ESDINCL="$ac_esd_incl"
10353
10354              ESDLIBS="$ac_esd_libs"
10355
10356
10357 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10358
10359 fi
10360
10361 fi
10362
10363
10364     CFLAGS="$save_CFLAGS"
10365 fi
10366
10367 ALSALIBS=""
10368
10369 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10370 then
10371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10372 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10373 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10374   $as_echo_n "(cached) " >&6
10375 else
10376   ac_check_lib_save_LIBS=$LIBS
10377 LIBS="-lasound  $LIBS"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h.  */
10380
10381 /* Override any GCC internal prototype to avoid an error.
10382    Use char because int might match the return type of a GCC
10383    builtin and then its argument prototype would still apply.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char snd_pcm_hw_params_get_access ();
10388 int
10389 main ()
10390 {
10391 return snd_pcm_hw_params_get_access ();
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10398 else
10399   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext \
10402     conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10406 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10407 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h.  */
10410 #ifdef HAVE_ALSA_ASOUNDLIB_H
10411 #include <alsa/asoundlib.h>
10412 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10413 #include <sys/asoundlib.h>
10414 #endif
10415 int
10416 main ()
10417 {
10418 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424
10425 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10426
10427                          ALSALIBS="-lasound"
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 fi
10431
10432 fi
10433
10434 AUDIOIOLIBS=""
10435
10436 if test "$ac_cv_header_libaudioio_h" = "yes"
10437 then
10438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10439 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10440 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-laudioio  $LIBS"
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h.  */
10447
10448 /* Override any GCC internal prototype to avoid an error.
10449    Use char because int might match the return type of a GCC
10450    builtin and then its argument prototype would still apply.  */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 char AudioIOGetVersion ();
10455 int
10456 main ()
10457 {
10458 return AudioIOGetVersion ();
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464   ac_cv_lib_audioio_AudioIOGetVersion=yes
10465 else
10466   ac_cv_lib_audioio_AudioIOGetVersion=no
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext \
10469     conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10473 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10474 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10475   AUDIOIOLIBS="-laudioio"
10476
10477 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10478
10479 fi
10480
10481 fi
10482
10483
10484 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10485 then
10486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10487 $as_echo_n "checking for -lcapi20... " >&6; }
10488 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10489   $as_echo_n "(cached) " >&6
10490 else
10491   ac_check_soname_save_LIBS=$LIBS
10492 LIBS="-lcapi20  $LIBS"
10493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h.  */
10495
10496 /* Override any GCC internal prototype to avoid an error.
10497    Use char because int might match the return type of a GCC
10498    builtin and then its argument prototype would still apply.  */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 char capi20_register ();
10503 int
10504 main ()
10505 {
10506 return capi20_register ();
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512   case "$LIBEXT" in
10513     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10514     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'` ;;
10515     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10516   esac
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext \
10519     conftest$ac_exeext conftest.$ac_ext
10520   LIBS=$ac_check_soname_save_LIBS
10521 fi
10522 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10524 $as_echo "not found" >&6; }
10525
10526 else
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10528 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10529
10530 cat >>confdefs.h <<_ACEOF
10531 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10532 _ACEOF
10533
10534
10535 fi
10536 fi
10537 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10538   case "x$with_capi" in
10539   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10540   xno) ;;
10541   *)   as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10542 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10543 esac
10544 fi
10545
10546 CUPSINCL=""
10547
10548 if test "x$with_cups" != "xno"
10549 then
10550     ac_save_CPPFLAGS="$CPPFLAGS"
10551     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10552     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10553     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10554     for ac_header in cups/cups.h
10555 do :
10556   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10557 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10558   cat >>confdefs.h <<_ACEOF
10559 #define HAVE_CUPS_CUPS_H 1
10560 _ACEOF
10561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10562 $as_echo_n "checking for -lcups... " >&6; }
10563 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   ac_check_soname_save_LIBS=$LIBS
10567 LIBS="-lcups $ac_cups_libs $LIBS"
10568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h.  */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572    Use char because int might match the return type of a GCC
10573    builtin and then its argument prototype would still apply.  */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char cupsGetDefault ();
10578 int
10579 main ()
10580 {
10581 return cupsGetDefault ();
10582   ;
10583   return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587   case "$LIBEXT" in
10588     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10589     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'` ;;
10590     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10591   esac
10592 fi
10593 rm -f core conftest.err conftest.$ac_objext \
10594     conftest$ac_exeext conftest.$ac_ext
10595   LIBS=$ac_check_soname_save_LIBS
10596 fi
10597 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10599 $as_echo "not found" >&6; }
10600
10601 else
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10603 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10604
10605 cat >>confdefs.h <<_ACEOF
10606 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10607 _ACEOF
10608
10609        CUPSINCL="$ac_cups_cflags"
10610 fi
10611 fi
10612
10613 done
10614
10615     CPPFLAGS="$ac_save_CPPFLAGS"
10616 fi
10617 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10618   case "x$with_cups" in
10619   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10620   xno) ;;
10621   *)   as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10622 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10623 esac
10624 fi
10625
10626 if test "$ac_cv_header_jack_jack_h" = "yes"
10627 then
10628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10629 $as_echo_n "checking for -ljack... " >&6; }
10630 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10631   $as_echo_n "(cached) " >&6
10632 else
10633   ac_check_soname_save_LIBS=$LIBS
10634 LIBS="-ljack  $LIBS"
10635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h.  */
10637
10638 /* Override any GCC internal prototype to avoid an error.
10639    Use char because int might match the return type of a GCC
10640    builtin and then its argument prototype would still apply.  */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 char jack_client_new ();
10645 int
10646 main ()
10647 {
10648 return jack_client_new ();
10649   ;
10650   return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_c_try_link "$LINENO"; then :
10654   case "$LIBEXT" in
10655     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10656     dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10657     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10658   esac
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext \
10661     conftest$ac_exeext conftest.$ac_ext
10662   LIBS=$ac_check_soname_save_LIBS
10663 fi
10664 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10666 $as_echo "not found" >&6; }
10667
10668 else
10669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10670 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10674 _ACEOF
10675
10676
10677 fi
10678 fi
10679
10680 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10681 then
10682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10683 $as_echo_n "checking for -lfontconfig... " >&6; }
10684 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   ac_check_soname_save_LIBS=$LIBS
10688 LIBS="-lfontconfig  $LIBS"
10689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h.  */
10691
10692 /* Override any GCC internal prototype to avoid an error.
10693    Use char because int might match the return type of a GCC
10694    builtin and then its argument prototype would still apply.  */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 char FcInit ();
10699 int
10700 main ()
10701 {
10702 return FcInit ();
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"; then :
10708   case "$LIBEXT" in
10709     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10710     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'` ;;
10711     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10712   esac
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715     conftest$ac_exeext conftest.$ac_ext
10716   LIBS=$ac_check_soname_save_LIBS
10717 fi
10718 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10720 $as_echo "not found" >&6; }
10721
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10724 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10725
10726 cat >>confdefs.h <<_ACEOF
10727 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10728 _ACEOF
10729
10730
10731 fi
10732 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10733 then
10734         ac_save_CPPFLAGS="$CPPFLAGS"
10735     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10736     $as_unset ac_cv_header_fontconfig_fontconfig_h
10737     for ac_header in fontconfig/fontconfig.h
10738 do :
10739   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10740 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10741   cat >>confdefs.h <<_ACEOF
10742 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10743 _ACEOF
10744
10745 fi
10746
10747 done
10748
10749     CPPFLAGS="$ac_save_CPPFLAGS"
10750     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10751     then
10752         FONTCONFIGINCL="$X_CFLAGS"
10753
10754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10755 $as_echo_n "checking for -lfontconfig... " >&6; }
10756 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   ac_check_soname_save_LIBS=$LIBS
10760 LIBS="-lfontconfig $X_LIBS $LIBS"
10761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h.  */
10763
10764 /* Override any GCC internal prototype to avoid an error.
10765    Use char because int might match the return type of a GCC
10766    builtin and then its argument prototype would still apply.  */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char FcInit ();
10771 int
10772 main ()
10773 {
10774 return FcInit ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 if ac_fn_c_try_link "$LINENO"; then :
10780   case "$LIBEXT" in
10781     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10782     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'` ;;
10783     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10784   esac
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787     conftest$ac_exeext conftest.$ac_ext
10788   LIBS=$ac_check_soname_save_LIBS
10789 fi
10790 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10792 $as_echo "not found" >&6; }
10793
10794 else
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10796 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10797
10798 cat >>confdefs.h <<_ACEOF
10799 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10800 _ACEOF
10801
10802
10803 fi
10804     fi
10805 fi
10806 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10807   case "x$with_fontconfig" in
10808   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10809   xno) ;;
10810   *)   as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10811 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10812 esac
10813 fi
10814
10815 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10816 then
10817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10818 $as_echo_n "checking for -lssl... " >&6; }
10819 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   ac_check_soname_save_LIBS=$LIBS
10823 LIBS="-lssl  $LIBS"
10824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char SSL_library_init ();
10834 int
10835 main ()
10836 {
10837 return SSL_library_init ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843   case "$LIBEXT" in
10844     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10845     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'` ;;
10846     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
10847   esac
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850     conftest$ac_exeext conftest.$ac_ext
10851   LIBS=$ac_check_soname_save_LIBS
10852 fi
10853 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10855 $as_echo "not found" >&6; }
10856
10857 else
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10859 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10863 _ACEOF
10864
10865
10866 fi
10867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10868 $as_echo_n "checking for -lcrypto... " >&6; }
10869 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   ac_check_soname_save_LIBS=$LIBS
10873 LIBS="-lcrypto  $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 BIO_new_socket ();
10884 int
10885 main ()
10886 {
10887 return BIO_new_socket ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   case "$LIBEXT" in
10894     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10895     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'` ;;
10896     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10897   esac
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900     conftest$ac_exeext conftest.$ac_ext
10901   LIBS=$ac_check_soname_save_LIBS
10902 fi
10903 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10905 $as_echo "not found" >&6; }
10906
10907 else
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10909 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10910
10911 cat >>confdefs.h <<_ACEOF
10912 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10913 _ACEOF
10914
10915
10916 fi
10917 fi
10918 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10919   case "x$with_openssl" in
10920   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10921   xno) ;;
10922   *)   as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10923 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10924 esac
10925 fi
10926
10927 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10928 then
10929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10930 $as_echo_n "checking for -lgsm... " >&6; }
10931 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   ac_check_soname_save_LIBS=$LIBS
10935 LIBS="-lgsm  $LIBS"
10936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h.  */
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char gsm_create ();
10946 int
10947 main ()
10948 {
10949 return gsm_create ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   case "$LIBEXT" in
10956     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10957     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'` ;;
10958     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
10959   esac
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963   LIBS=$ac_check_soname_save_LIBS
10964 fi
10965 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10967 $as_echo "not found" >&6; }
10968
10969 else
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10971 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10972
10973 cat >>confdefs.h <<_ACEOF
10974 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10975 _ACEOF
10976
10977
10978 fi
10979 fi
10980 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10981   case "x$with_gsm" in
10982   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10983   xno) ;;
10984   *)   as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10985 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10986 esac
10987 fi
10988
10989 if test "$ac_cv_header_jpeglib_h" = "yes"
10990 then
10991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10992 $as_echo_n "checking for -ljpeg... " >&6; }
10993 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   ac_check_soname_save_LIBS=$LIBS
10997 LIBS="-ljpeg  $LIBS"
10998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char jpeg_start_decompress ();
11008 int
11009 main ()
11010 {
11011 return jpeg_start_decompress ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017   case "$LIBEXT" in
11018     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11019     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'` ;;
11020     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11021   esac
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024     conftest$ac_exeext conftest.$ac_ext
11025   LIBS=$ac_check_soname_save_LIBS
11026 fi
11027 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11029 $as_echo "not found" >&6; }
11030
11031 else
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11033 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11034
11035 cat >>confdefs.h <<_ACEOF
11036 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11037 _ACEOF
11038
11039
11040 fi
11041 fi
11042 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11043   case "x$with_jpeg" in
11044   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11045   xno) ;;
11046   *)   as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11047 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11048 esac
11049 fi
11050
11051 if test "$ac_cv_header_png_h" = "yes"
11052 then
11053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11054 $as_echo_n "checking for -lpng... " >&6; }
11055 if test "${ac_cv_lib_soname_png+set}" = set; then :
11056   $as_echo_n "(cached) " >&6
11057 else
11058   ac_check_soname_save_LIBS=$LIBS
11059 LIBS="-lpng -lm -lz $LIBS"
11060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h.  */
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064    Use char because int might match the return type of a GCC
11065    builtin and then its argument prototype would still apply.  */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char png_create_read_struct ();
11070 int
11071 main ()
11072 {
11073 return png_create_read_struct ();
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079   case "$LIBEXT" in
11080     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11081     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'` ;;
11082     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11083   esac
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086     conftest$ac_exeext conftest.$ac_ext
11087   LIBS=$ac_check_soname_save_LIBS
11088 fi
11089 if test "x$ac_cv_lib_soname_png" = "x"; then :
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11091 $as_echo "not found" >&6; }
11092
11093 else
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11095 $as_echo "$ac_cv_lib_soname_png" >&6; }
11096
11097 cat >>confdefs.h <<_ACEOF
11098 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11099 _ACEOF
11100
11101
11102 fi
11103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11104 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11105 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lpng -lm -lz $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h.  */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114    Use char because int might match the return type of a GCC
11115    builtin and then its argument prototype would still apply.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char png_set_expand_gray_1_2_4_to_8 ();
11120 int
11121 main ()
11122 {
11123 return png_set_expand_gray_1_2_4_to_8 ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11130 else
11131   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134     conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11138 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11139 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11140
11141 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11142
11143
11144 fi
11145
11146 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11147 then
11148         ac_save_CPPFLAGS="$CPPFLAGS"
11149     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11150     $as_unset ac_cv_header_png_h
11151     for ac_header in png.h
11152 do :
11153   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11154 if test "x$ac_cv_header_png_h" = x""yes; then :
11155   cat >>confdefs.h <<_ACEOF
11156 #define HAVE_PNG_H 1
11157 _ACEOF
11158
11159 fi
11160
11161 done
11162
11163     CPPFLAGS="$ac_save_CPPFLAGS"
11164     if test "$ac_cv_header_png_h" = "yes"
11165     then
11166         PNGINCL="$X_CFLAGS"
11167
11168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11169 $as_echo_n "checking for -lpng... " >&6; }
11170 if test "${ac_cv_lib_soname_png+set}" = set; then :
11171   $as_echo_n "(cached) " >&6
11172 else
11173   ac_check_soname_save_LIBS=$LIBS
11174 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h.  */
11177
11178 /* Override any GCC internal prototype to avoid an error.
11179    Use char because int might match the return type of a GCC
11180    builtin and then its argument prototype would still apply.  */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 char png_create_read_struct ();
11185 int
11186 main ()
11187 {
11188 return png_create_read_struct ();
11189   ;
11190   return 0;
11191 }
11192 _ACEOF
11193 if ac_fn_c_try_link "$LINENO"; then :
11194   case "$LIBEXT" in
11195     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11196     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'` ;;
11197     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11198   esac
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext \
11201     conftest$ac_exeext conftest.$ac_ext
11202   LIBS=$ac_check_soname_save_LIBS
11203 fi
11204 if test "x$ac_cv_lib_soname_png" = "x"; then :
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11206 $as_echo "not found" >&6; }
11207
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11210 $as_echo "$ac_cv_lib_soname_png" >&6; }
11211
11212 cat >>confdefs.h <<_ACEOF
11213 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11214 _ACEOF
11215
11216
11217 fi
11218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11219 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11220 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char png_set_expand_gray_1_2_4_to_8 ();
11235 int
11236 main ()
11237 {
11238 return png_set_expand_gray_1_2_4_to_8 ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11245 else
11246   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11253 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11254 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11255   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11256
11257 fi
11258
11259     fi
11260 fi
11261 if test "x$ac_cv_lib_soname_png" = "x"; then :
11262   case "x$with_png" in
11263   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11264   xno) ;;
11265   *)   as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11266 This is an error since --with-png was requested." "$LINENO" 5 ;;
11267 esac
11268 fi
11269
11270 if test "$ac_cv_header_tiffio_h" = "yes"
11271 then
11272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11273 $as_echo_n "checking for -ltiff... " >&6; }
11274 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11275   $as_echo_n "(cached) " >&6
11276 else
11277   ac_check_soname_save_LIBS=$LIBS
11278 LIBS="-ltiff  $LIBS"
11279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281
11282 /* Override any GCC internal prototype to avoid an error.
11283    Use char because int might match the return type of a GCC
11284    builtin and then its argument prototype would still apply.  */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char TIFFClientOpen ();
11289 int
11290 main ()
11291 {
11292 return TIFFClientOpen ();
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298   case "$LIBEXT" in
11299     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11300     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'` ;;
11301     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11302   esac
11303 fi
11304 rm -f core conftest.err conftest.$ac_objext \
11305     conftest$ac_exeext conftest.$ac_ext
11306   LIBS=$ac_check_soname_save_LIBS
11307 fi
11308 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11310 $as_echo "not found" >&6; }
11311
11312 else
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11314 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11315
11316 cat >>confdefs.h <<_ACEOF
11317 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11318 _ACEOF
11319
11320
11321 fi
11322 fi
11323 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11324   case "x$with_tiff" in
11325   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11326   xno) ;;
11327   *)   as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11328 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11329 esac
11330 fi
11331
11332 if test "$ac_cv_header_mpg123_h" = "yes"
11333 then
11334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11335 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11336 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-lmpg123  $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h.  */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345    Use char because int might match the return type of a GCC
11346    builtin and then its argument prototype would still apply.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char mpg123_feed ();
11351 int
11352 main ()
11353 {
11354 return mpg123_feed ();
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360   ac_cv_lib_mpg123_mpg123_feed=yes
11361 else
11362   ac_cv_lib_mpg123_mpg123_feed=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365     conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11369 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11370 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11371   LIBMPG123="-lmpg123"
11372
11373 fi
11374
11375 fi
11376 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11377   case "x$with_mpg123" in
11378   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11379   xno) ;;
11380   *)   as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11381 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11382 esac
11383 fi
11384 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11385
11386 if test "$ac_cv_header_AL_al_h" = "yes"
11387 then
11388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11389 $as_echo_n "checking for -lopenal... " >&6; }
11390 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   ac_check_soname_save_LIBS=$LIBS
11394 LIBS="-lopenal  $LIBS"
11395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h.  */
11397
11398 /* Override any GCC internal prototype to avoid an error.
11399    Use char because int might match the return type of a GCC
11400    builtin and then its argument prototype would still apply.  */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char alGetSource3i ();
11405 int
11406 main ()
11407 {
11408 return alGetSource3i ();
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414   case "$LIBEXT" in
11415     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11416     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'` ;;
11417     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11418   esac
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext \
11421     conftest$ac_exeext conftest.$ac_ext
11422   LIBS=$ac_check_soname_save_LIBS
11423 fi
11424 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11426 $as_echo "not found" >&6; }
11427
11428 else
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11430 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11431
11432 cat >>confdefs.h <<_ACEOF
11433 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11434 _ACEOF
11435
11436        LIBOPENAL="-lopenal"
11437
11438                       ac_cv_lib_openal=yes
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define HAVE_OPENAL 1
11442 _ACEOF
11443
11444 fi
11445 fi
11446 if test "x$ac_cv_lib_openal" != xyes; then :
11447   case "x$with_openal" in
11448   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11449   xno) ;;
11450   *)   as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11451 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11452 esac
11453 fi
11454 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11455
11456 if test "$ac_cv_header_kstat_h" = "yes"
11457 then
11458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11459 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11460 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463   ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-lkstat  $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h.  */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char kstat_open ();
11475 int
11476 main ()
11477 {
11478 return kstat_open ();
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484   ac_cv_lib_kstat_kstat_open=yes
11485 else
11486   ac_cv_lib_kstat_kstat_open=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489     conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11493 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11494 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11495
11496 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11497
11498                   LIBKSTAT="-lkstat"
11499
11500 fi
11501
11502 fi
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11505 $as_echo_n "checking for -lodbc... " >&6; }
11506 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   ac_check_soname_save_LIBS=$LIBS
11510 LIBS="-lodbc  $LIBS"
11511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h.  */
11513
11514 /* Override any GCC internal prototype to avoid an error.
11515    Use char because int might match the return type of a GCC
11516    builtin and then its argument prototype would still apply.  */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char SQLConnect ();
11521 int
11522 main ()
11523 {
11524 return SQLConnect ();
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530   case "$LIBEXT" in
11531     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11532     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'` ;;
11533     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11534   esac
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext \
11537     conftest$ac_exeext conftest.$ac_ext
11538   LIBS=$ac_check_soname_save_LIBS
11539 fi
11540 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11542 $as_echo "not found" >&6; }
11543        cat >>confdefs.h <<_ACEOF
11544 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11545 _ACEOF
11546
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11549 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11553 _ACEOF
11554
11555
11556 fi
11557
11558 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11559         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11560         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11561         "$ac_cv_header_soundcard_h" != "yes" -a \
11562         "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11563 then
11564     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11565 fi
11566
11567
11568 EXTRACFLAGS=""
11569
11570 if test "x${GCC}" = "xyes"
11571 then
11572   EXTRACFLAGS="-Wall -pipe"
11573
11574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11575 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11576 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if test "$cross_compiling" = yes; then :
11580   ac_cv_c_gcc_strength_bug="yes"
11581 else
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584 int L[4] = {0,1,2,3};
11585 int
11586 main ()
11587 {
11588 static int Array[3];
11589   unsigned int B = 3;
11590   int i;
11591   for(i=0; i<B; i++) Array[i] = i - 3;
11592   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11593   L[i] = 4;
11594   return (Array[1] != -2 || L[2] != 3)
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_run "$LINENO"; then :
11600   ac_cv_c_gcc_strength_bug="no"
11601 else
11602   ac_cv_c_gcc_strength_bug="yes"
11603 fi
11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11605   conftest.$ac_objext conftest.beam conftest.$ac_ext
11606 fi
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11610 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11611   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11612   then
11613     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11614   fi
11615
11616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11617 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11618 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   ac_wine_try_cflags_saved=$CFLAGS
11622 CFLAGS="$CFLAGS -fno-builtin"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h.  */
11625 int main(int argc, char **argv) { return 0; }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628   ac_cv_cflags__fno_builtin=yes
11629 else
11630   ac_cv_cflags__fno_builtin=no
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633     conftest$ac_exeext conftest.$ac_ext
11634 CFLAGS=$ac_wine_try_cflags_saved
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11637 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11638 if test $ac_cv_cflags__fno_builtin = yes; then :
11639   BUILTINFLAG="-fno-builtin"
11640
11641 fi
11642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11643 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11644 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   ac_wine_try_cflags_saved=$CFLAGS
11648 CFLAGS="$CFLAGS -fno-strict-aliasing"
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h.  */
11651 int main(int argc, char **argv) { return 0; }
11652 _ACEOF
11653 if ac_fn_c_try_link "$LINENO"; then :
11654   ac_cv_cflags__fno_strict_aliasing=yes
11655 else
11656   ac_cv_cflags__fno_strict_aliasing=no
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext \
11659     conftest$ac_exeext conftest.$ac_ext
11660 CFLAGS=$ac_wine_try_cflags_saved
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11663 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11664 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11665   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11666 fi
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11668 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11669 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11670   $as_echo_n "(cached) " >&6
11671 else
11672   ac_wine_try_cflags_saved=$CFLAGS
11673 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h.  */
11676 int main(int argc, char **argv) { return 0; }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679   ac_cv_cflags__Wdeclaration_after_statement=yes
11680 else
11681   ac_cv_cflags__Wdeclaration_after_statement=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684     conftest$ac_exeext conftest.$ac_ext
11685 CFLAGS=$ac_wine_try_cflags_saved
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11688 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11689 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11690   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11691 fi
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11693 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11694 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   ac_wine_try_cflags_saved=$CFLAGS
11698 CFLAGS="$CFLAGS -Wstrict-prototypes"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h.  */
11701 int main(int argc, char **argv) { return 0; }
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11704   ac_cv_cflags__Wstrict_prototypes=yes
11705 else
11706   ac_cv_cflags__Wstrict_prototypes=no
11707 fi
11708 rm -f core conftest.err conftest.$ac_objext \
11709     conftest$ac_exeext conftest.$ac_ext
11710 CFLAGS=$ac_wine_try_cflags_saved
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11713 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11714 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11715   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11716 fi
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11718 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11719 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   ac_wine_try_cflags_saved=$CFLAGS
11723 CFLAGS="$CFLAGS -Wtype-limits"
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h.  */
11726 int main(int argc, char **argv) { return 0; }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   ac_cv_cflags__Wtype_limits=yes
11730 else
11731   ac_cv_cflags__Wtype_limits=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735 CFLAGS=$ac_wine_try_cflags_saved
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11738 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11739 if test $ac_cv_cflags__Wtype_limits = yes; then :
11740   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11741 fi
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11743 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11744 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   ac_wine_try_cflags_saved=$CFLAGS
11748 CFLAGS="$CFLAGS -Wwrite-strings"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h.  */
11751 int main(int argc, char **argv) { return 0; }
11752 _ACEOF
11753 if ac_fn_c_try_link "$LINENO"; then :
11754   ac_cv_cflags__Wwrite_strings=yes
11755 else
11756   ac_cv_cflags__Wwrite_strings=no
11757 fi
11758 rm -f core conftest.err conftest.$ac_objext \
11759     conftest$ac_exeext conftest.$ac_ext
11760 CFLAGS=$ac_wine_try_cflags_saved
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11763 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11764 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11765   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11766 fi
11767
11768     saved_CFLAGS="$CFLAGS"
11769   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11771 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11772 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11773   $as_echo_n "(cached) " >&6
11774 else
11775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h.  */
11777 #include <string.h>
11778 int
11779 main ()
11780 {
11781
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 if ac_fn_c_try_compile "$LINENO"; then :
11787   ac_cv_c_string_h_warnings=no
11788 else
11789   ac_cv_c_string_h_warnings=yes
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 fi
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11794 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11795   CFLAGS="$saved_CFLAGS"
11796   if test "$ac_cv_c_string_h_warnings" = "no"
11797   then
11798     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11799   fi
11800
11801     if test "${enable_maintainer_mode+set}" = set
11802   then
11803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11804 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11805 if test "${ac_cv_cflags__Werror+set}" = set; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808   ac_wine_try_cflags_saved=$CFLAGS
11809 CFLAGS="$CFLAGS -Werror"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h.  */
11812 int main(int argc, char **argv) { return 0; }
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815   ac_cv_cflags__Werror=yes
11816 else
11817   ac_cv_cflags__Werror=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext \
11820     conftest$ac_exeext conftest.$ac_ext
11821 CFLAGS=$ac_wine_try_cflags_saved
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11824 $as_echo "$ac_cv_cflags__Werror" >&6; }
11825 if test $ac_cv_cflags__Werror = yes; then :
11826   EXTRACFLAGS="$EXTRACFLAGS -Werror"
11827 fi
11828   fi
11829
11830     saved_CFLAGS="$CFLAGS"
11831   CFLAGS="$CFLAGS -Werror"
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11833 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11834 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11840 int
11841 main ()
11842 {
11843
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849   ac_cv_have_ms_hook_prologue="yes"
11850 else
11851   ac_cv_have_ms_hook_prologue="no"
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11856 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11857   CFLAGS="$saved_CFLAGS"
11858   if test "$ac_cv_have_ms_hook_prologue" = "yes"
11859   then
11860
11861 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11862
11863   else
11864       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11865
11866   fi
11867 fi
11868
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11871 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11872 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h.  */
11877 extern int ac_test;
11878 int
11879 main ()
11880 {
11881 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_c_try_link "$LINENO"; then :
11887   ac_cv_c_extern_prefix="yes"
11888 else
11889   ac_cv_c_extern_prefix="no"
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892     conftest$ac_exeext conftest.$ac_ext
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11895 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11896
11897 case $host_cpu in
11898   *i[3456789]86*)
11899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11900 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11901 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h.  */
11906 #ifndef _MSC_VER
11907 #define __stdcall __attribute__((__stdcall__))
11908 #endif
11909 int __stdcall ac_test(int i) { return i; }
11910 int
11911 main ()
11912 {
11913 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_c_stdcall_suffix="yes"
11920 else
11921   ac_cv_c_stdcall_suffix="no"
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11927 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11928   *) ac_cv_c_stdcall_suffix="no" ;;
11929 esac
11930
11931
11932 if test "$ac_cv_c_extern_prefix" = "yes"
11933 then
11934     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11935
11936     asm_name_prefix="_"
11937 else
11938     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11939
11940     asm_name_prefix=""
11941 fi
11942
11943
11944 if test "$ac_cv_c_stdcall_suffix" = "yes"
11945 then
11946     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11947
11948 else
11949     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11950
11951 fi
11952
11953
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11955 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11956 if test "${ac_cv_asm_func_def+set}" = set; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h.  */
11961
11962 int
11963 main ()
11964 {
11965 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 if ac_fn_c_try_link "$LINENO"; then :
11971   ac_cv_asm_func_def=".def"
11972 else
11973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h.  */
11975
11976 int
11977 main ()
11978 {
11979 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_link "$LINENO"; then :
11985   ac_cv_asm_func_def=".type @function"
11986 else
11987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h.  */
11989
11990 int
11991 main ()
11992 {
11993 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999   ac_cv_asm_func_def=".type 2"
12000 else
12001   ac_cv_asm_func_def="unknown"
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004     conftest$ac_exeext conftest.$ac_ext
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007     conftest$ac_exeext conftest.$ac_ext
12008 fi
12009 rm -f core conftest.err conftest.$ac_objext \
12010     conftest$ac_exeext conftest.$ac_ext
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12013 $as_echo "$ac_cv_asm_func_def" >&6; }
12014
12015
12016 case "$ac_cv_asm_func_def" in
12017   ".def")
12018      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12019
12020      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12021   ".type @function")
12022      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12023
12024      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12025   ".type 2")
12026      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12027
12028      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12029   *)
12030      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12031
12032      asm_func_header="" ;;
12033 esac
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12036 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12037 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h.  */
12042 asm(".text\n\t.long 0");
12043 int
12044 main ()
12045 {
12046
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_compile "$LINENO"; then :
12052   ac_cv_c_asm_outside_funcs="yes"
12053 else
12054   ac_cv_c_asm_outside_funcs="no"
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12059 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12062 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12063 if test "${ac_cv_c_dot_previous+set}" = set; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h.  */
12068
12069 int
12070 main ()
12071 {
12072 asm(".text\nac_test:\t.long 0\n\t.previous");
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"; then :
12078   ac_cv_c_dot_previous="yes"
12079 else
12080   ac_cv_c_dot_previous="no"
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext \
12083     conftest$ac_exeext conftest.$ac_ext
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12086 $as_echo "$ac_cv_c_dot_previous" >&6; }
12087
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12089 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12090 if test "${ac_cv_c_cfi_support+set}" = set; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h.  */
12095 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12096 int
12097 main ()
12098 {
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_compile "$LINENO"; then :
12105   ac_cv_c_cfi_support="yes"
12106 else
12107   ac_cv_c_cfi_support="no"
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12112 $as_echo "$ac_cv_c_cfi_support" >&6; }
12113
12114 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12115 asm_func_trailer=""
12116 if test "$ac_cv_c_dot_previous" = "yes"
12117 then
12118    asm_func_trailer="\\n\\t.previous"
12119 fi
12120 if test "$ac_cv_c_cfi_support" = "yes"
12121 then
12122    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12123    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12124
12125 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12126
12127 else
12128    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12129
12130 fi
12131
12132 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12133
12134
12135 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12136 then
12137     cat >>confdefs.h <<_ACEOF
12138 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12139 _ACEOF
12140
12141 else
12142     cat >>confdefs.h <<_ACEOF
12143 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12144 _ACEOF
12145
12146 fi
12147
12148 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12149
12150
12151 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12152
12153
12154
12155 LDPATH=""
12156
12157 case $build_os in
12158   cygwin*|mingw32*)
12159     TOOLSEXT=".exe"
12160
12161     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12162     ;;
12163   darwin*|macosx*)
12164     ;;
12165   *)
12166     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12167     ;;
12168 esac
12169
12170 case $host_os in
12171   mingw32*)
12172     CRTLIBS="-lmsvcrt"
12173
12174     SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12175
12176     ;;
12177 esac
12178
12179 MAIN_BINARY="wine"
12180
12181 test -z "$with_wine64" || MAIN_BINARY="wine32"
12182
12183 case $host_cpu in
12184   *i[3456789]86*)
12185     case $host_os in
12186       linux*)
12187         EXTRA_BINARIES="wine-preloader"
12188  ;;
12189     esac
12190     ;;
12191 esac
12192
12193
12194 ac_save_CFLAGS="$CFLAGS"
12195 CFLAGS="$CFLAGS $BUILTINFLAG"
12196 for ac_func in \
12197         _pclose \
12198         _popen \
12199         _snprintf \
12200         _spawnvp \
12201         _strdup \
12202         _stricmp \
12203         _strnicmp \
12204         _strtoi64 \
12205         _strtoui64 \
12206         _vsnprintf \
12207         asctime_r \
12208         chsize \
12209         dlopen \
12210         epoll_create \
12211         ffs \
12212         finite \
12213         fnmatch \
12214         fork \
12215         fpclass \
12216         fstatfs \
12217         fstatvfs \
12218         ftruncate \
12219         futimes \
12220         futimesat \
12221         getdirentries \
12222         getopt_long \
12223         getpagesize \
12224         getpwuid \
12225         gettid \
12226         gettimeofday \
12227         getuid \
12228         kqueue \
12229         lstat \
12230         memmove \
12231         mmap \
12232         pclose \
12233         pipe2 \
12234         poll \
12235         popen \
12236         port_create \
12237         prctl \
12238         pread \
12239         pwrite \
12240         readdir \
12241         readlink \
12242         sched_setaffinity \
12243         sched_yield \
12244         select \
12245         setproctitle \
12246         setrlimit \
12247         settimeofday \
12248         sigaltstack \
12249         sigprocmask \
12250         snprintf \
12251         spawnvp \
12252         statfs \
12253         statvfs \
12254         strcasecmp \
12255         strdup \
12256         strerror \
12257         strncasecmp \
12258         strtold \
12259         strtoll \
12260         strtoull \
12261         symlink \
12262         tcgetattr \
12263         thr_kill2 \
12264         timegm \
12265         usleep \
12266         vsnprintf \
12267         wait4 \
12268         waitpid \
12269
12270 do :
12271   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12273 eval as_val=\$$as_ac_var
12274    if test "x$as_val" = x""yes; then :
12275   cat >>confdefs.h <<_ACEOF
12276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 fi
12280 done
12281
12282 CFLAGS="$ac_save_CFLAGS"
12283
12284 if test "$ac_cv_func_dlopen" = no
12285 then
12286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12287 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-ldl  $LIBS"
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h.  */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297    Use char because int might match the return type of a GCC
12298    builtin and then its argument prototype would still apply.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dlopen ();
12303 int
12304 main ()
12305 {
12306 return dlopen ();
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312   ac_cv_lib_dl_dlopen=yes
12313 else
12314   ac_cv_lib_dl_dlopen=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317     conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12321 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12322 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12323   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12324  LIBDL="-ldl"
12325
12326 fi
12327
12328 fi
12329 ac_wine_check_funcs_save_LIBS="$LIBS"
12330 LIBS="$LIBS $LIBDL"
12331 for ac_func in dladdr
12332 do :
12333   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12334 if test "x$ac_cv_func_dladdr" = x""yes; then :
12335   cat >>confdefs.h <<_ACEOF
12336 #define HAVE_DLADDR 1
12337 _ACEOF
12338
12339 fi
12340 done
12341
12342 LIBS="$ac_wine_check_funcs_save_LIBS"
12343
12344 if test "$ac_cv_func_poll" = no
12345 then
12346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12347 $as_echo_n "checking for poll in -lpoll... " >&6; }
12348 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12349   $as_echo_n "(cached) " >&6
12350 else
12351   ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lpoll  $LIBS"
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h.  */
12355
12356 /* Override any GCC internal prototype to avoid an error.
12357    Use char because int might match the return type of a GCC
12358    builtin and then its argument prototype would still apply.  */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 char poll ();
12363 int
12364 main ()
12365 {
12366 return poll ();
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372   ac_cv_lib_poll_poll=yes
12373 else
12374   ac_cv_lib_poll_poll=no
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext \
12377     conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12381 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12382 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12383   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12384  LIBPOLL="-lpoll"
12385
12386 fi
12387
12388 fi
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12391 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12392 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395   ac_func_search_save_LIBS=$LIBS
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h.  */
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400    Use char because int might match the return type of a GCC
12401    builtin and then its argument prototype would still apply.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char gethostbyname ();
12406 int
12407 main ()
12408 {
12409 return gethostbyname ();
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 for ac_lib in '' nsl; do
12415   if test -z "$ac_lib"; then
12416     ac_res="none required"
12417   else
12418     ac_res=-l$ac_lib
12419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12420   fi
12421   if ac_fn_c_try_link "$LINENO"; then :
12422   ac_cv_search_gethostbyname=$ac_res
12423 fi
12424 rm -f core conftest.err conftest.$ac_objext \
12425     conftest$ac_exeext
12426   if test "${ac_cv_search_gethostbyname+set}" = set; then :
12427   break
12428 fi
12429 done
12430 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12431
12432 else
12433   ac_cv_search_gethostbyname=no
12434 fi
12435 rm conftest.$ac_ext
12436 LIBS=$ac_func_search_save_LIBS
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12439 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12440 ac_res=$ac_cv_search_gethostbyname
12441 if test "$ac_res" != no; then :
12442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12443
12444 fi
12445
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12448 $as_echo_n "checking for library containing connect... " >&6; }
12449 if test "${ac_cv_search_connect+set}" = set; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   ac_func_search_save_LIBS=$LIBS
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h.  */
12455
12456 /* Override any GCC internal prototype to avoid an error.
12457    Use char because int might match the return type of a GCC
12458    builtin and then its argument prototype would still apply.  */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 char connect ();
12463 int
12464 main ()
12465 {
12466 return connect ();
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 for ac_lib in '' socket; do
12472   if test -z "$ac_lib"; then
12473     ac_res="none required"
12474   else
12475     ac_res=-l$ac_lib
12476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12477   fi
12478   if ac_fn_c_try_link "$LINENO"; then :
12479   ac_cv_search_connect=$ac_res
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482     conftest$ac_exeext
12483   if test "${ac_cv_search_connect+set}" = set; then :
12484   break
12485 fi
12486 done
12487 if test "${ac_cv_search_connect+set}" = set; then :
12488
12489 else
12490   ac_cv_search_connect=no
12491 fi
12492 rm conftest.$ac_ext
12493 LIBS=$ac_func_search_save_LIBS
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12496 $as_echo "$ac_cv_search_connect" >&6; }
12497 ac_res=$ac_cv_search_connect
12498 if test "$ac_res" != no; then :
12499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12500
12501 fi
12502
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12505 $as_echo_n "checking for library containing inet_aton... " >&6; }
12506 if test "${ac_cv_search_inet_aton+set}" = set; then :
12507   $as_echo_n "(cached) " >&6
12508 else
12509   ac_func_search_save_LIBS=$LIBS
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char inet_aton ();
12520 int
12521 main ()
12522 {
12523 return inet_aton ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 for ac_lib in '' resolv; do
12529   if test -z "$ac_lib"; then
12530     ac_res="none required"
12531   else
12532     ac_res=-l$ac_lib
12533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12534   fi
12535   if ac_fn_c_try_link "$LINENO"; then :
12536   ac_cv_search_inet_aton=$ac_res
12537 fi
12538 rm -f core conftest.err conftest.$ac_objext \
12539     conftest$ac_exeext
12540   if test "${ac_cv_search_inet_aton+set}" = set; then :
12541   break
12542 fi
12543 done
12544 if test "${ac_cv_search_inet_aton+set}" = set; then :
12545
12546 else
12547   ac_cv_search_inet_aton=no
12548 fi
12549 rm conftest.$ac_ext
12550 LIBS=$ac_func_search_save_LIBS
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12553 $as_echo "$ac_cv_search_inet_aton" >&6; }
12554 ac_res=$ac_cv_search_inet_aton
12555 if test "$ac_res" != no; then :
12556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12557
12558 fi
12559
12560
12561 for ac_func in \
12562         getaddrinfo \
12563         getnameinfo \
12564         getnetbyname \
12565         getprotobyname \
12566         getprotobynumber \
12567         getservbyport \
12568         inet_network \
12569         inet_ntop \
12570         inet_pton \
12571         sendmsg \
12572         socketpair \
12573
12574 do :
12575   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12577 eval as_val=\$$as_ac_var
12578    if test "x$as_val" = x""yes; then :
12579   cat >>confdefs.h <<_ACEOF
12580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12581 _ACEOF
12582
12583 fi
12584 done
12585
12586
12587 LDAPLIBS=""
12588
12589 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12590 then
12591     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12592 "
12593 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12595 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12596 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h.  */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605    Use char because int might match the return type of a GCC
12606    builtin and then its argument prototype would still apply.  */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char ldap_initialize ();
12611 int
12612 main ()
12613 {
12614 return ldap_initialize ();
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620   ac_cv_lib_ldap_r_ldap_initialize=yes
12621 else
12622   ac_cv_lib_ldap_r_ldap_initialize=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext \
12625     conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12629 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12630 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12632 $as_echo_n "checking for ber_init in -llber... " >&6; }
12633 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-llber $LIBPTHREAD $LIBS"
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h.  */
12640
12641 /* Override any GCC internal prototype to avoid an error.
12642    Use char because int might match the return type of a GCC
12643    builtin and then its argument prototype would still apply.  */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char ber_init ();
12648 int
12649 main ()
12650 {
12651 return ber_init ();
12652   ;
12653   return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_link "$LINENO"; then :
12657   ac_cv_lib_lber_ber_init=yes
12658 else
12659   ac_cv_lib_lber_ber_init=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext \
12662     conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12666 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12667 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12668
12669 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12670
12671                  LDAPLIBS="-lldap_r -llber"
12672 fi
12673
12674 fi
12675
12676 fi
12677
12678     ac_wine_check_funcs_save_LIBS="$LIBS"
12679 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12680 for ac_func in \
12681         ldap_count_references \
12682         ldap_first_reference \
12683         ldap_next_reference \
12684         ldap_parse_reference \
12685         ldap_parse_sort_control \
12686         ldap_parse_sortresponse_control \
12687         ldap_parse_vlv_control \
12688         ldap_parse_vlvresponse_control
12689 do :
12690   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12692 eval as_val=\$$as_ac_var
12693    if test "x$as_val" = x""yes; then :
12694   cat >>confdefs.h <<_ACEOF
12695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12696 _ACEOF
12697
12698 fi
12699 done
12700
12701 LIBS="$ac_wine_check_funcs_save_LIBS"
12702 fi
12703 if test "x$LDAPLIBS" = "x"; then :
12704   case "x$with_ldap" in
12705   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12706   xno) ;;
12707   *)   as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12708 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12709 esac
12710 fi
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12713 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12714 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h.  */
12719 #include <sys/stat.h>
12720 int
12721 main ()
12722 {
12723 mkdir("foo");
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729   wine_cv_one_arg_mkdir=yes
12730 else
12731   wine_cv_one_arg_mkdir=no
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12736 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12737 if test "$wine_cv_one_arg_mkdir" = "yes"
12738 then
12739
12740 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12741
12742 fi
12743
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12746 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12747 if test "${ac_cv_c_const+set}" = set; then :
12748   $as_echo_n "(cached) " >&6
12749 else
12750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752
12753 int
12754 main ()
12755 {
12756 /* FIXME: Include the comments suggested by Paul. */
12757 #ifndef __cplusplus
12758   /* Ultrix mips cc rejects this.  */
12759   typedef int charset[2];
12760   const charset cs;
12761   /* SunOS 4.1.1 cc rejects this.  */
12762   char const *const *pcpcc;
12763   char **ppc;
12764   /* NEC SVR4.0.2 mips cc rejects this.  */
12765   struct point {int x, y;};
12766   static struct point const zero = {0,0};
12767   /* AIX XL C 1.02.0.0 rejects this.
12768      It does not let you subtract one const X* pointer from another in
12769      an arm of an if-expression whose if-part is not a constant
12770      expression */
12771   const char *g = "string";
12772   pcpcc = &g + (g ? g-g : 0);
12773   /* HPUX 7.0 cc rejects these. */
12774   ++pcpcc;
12775   ppc = (char**) pcpcc;
12776   pcpcc = (char const *const *) ppc;
12777   { /* SCO 3.2v4 cc rejects this.  */
12778     char *t;
12779     char const *s = 0 ? (char *) 0 : (char const *) 0;
12780
12781     *t++ = 0;
12782     if (s) return 0;
12783   }
12784   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12785     int x[] = {25, 17};
12786     const int *foo = &x[0];
12787     ++foo;
12788   }
12789   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12790     typedef const int *iptr;
12791     iptr p = 0;
12792     ++p;
12793   }
12794   { /* AIX XL C 1.02.0.0 rejects this saying
12795        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12796     struct s { int j; const int *ap[3]; };
12797     struct s *b; b->j = 5;
12798   }
12799   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12800     const int foo = 10;
12801     if (!foo) return 0;
12802   }
12803   return !cs[0] && !zero.x;
12804 #endif
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811   ac_cv_c_const=yes
12812 else
12813   ac_cv_c_const=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12818 $as_echo "$ac_cv_c_const" >&6; }
12819 if test $ac_cv_c_const = no; then
12820
12821 $as_echo "#define const /**/" >>confdefs.h
12822
12823 fi
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12826 $as_echo_n "checking for inline... " >&6; }
12827 if test "${ac_cv_c_inline+set}" = set; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   ac_cv_c_inline=no
12831 for ac_kw in inline __inline__ __inline; do
12832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834 #ifndef __cplusplus
12835 typedef int foo_t;
12836 static $ac_kw foo_t static_foo () {return 0; }
12837 $ac_kw foo_t foo () {return 0; }
12838 #endif
12839
12840 _ACEOF
12841 if ac_fn_c_try_compile "$LINENO"; then :
12842   ac_cv_c_inline=$ac_kw
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845   test "$ac_cv_c_inline" != no && break
12846 done
12847
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12850 $as_echo "$ac_cv_c_inline" >&6; }
12851
12852 case $ac_cv_c_inline in
12853   inline | yes) ;;
12854   *)
12855     case $ac_cv_c_inline in
12856       no) ac_val=;;
12857       *) ac_val=$ac_cv_c_inline;;
12858     esac
12859     cat >>confdefs.h <<_ACEOF
12860 #ifndef __cplusplus
12861 #define inline $ac_val
12862 #endif
12863 _ACEOF
12864     ;;
12865 esac
12866
12867 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12868 if test "x$ac_cv_type_mode_t" = x""yes; then :
12869
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_MODE_T 1
12872 _ACEOF
12873
12874
12875 fi
12876 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12877 if test "x$ac_cv_type_off_t" = x""yes; then :
12878
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_OFF_T 1
12881 _ACEOF
12882
12883
12884 fi
12885 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12886 if test "x$ac_cv_type_pid_t" = x""yes; then :
12887
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_PID_T 1
12890 _ACEOF
12891
12892
12893 fi
12894 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12895 if test "x$ac_cv_type_size_t" = x""yes; then :
12896
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_SIZE_T 1
12899 _ACEOF
12900
12901
12902 fi
12903 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12904 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12905
12906 cat >>confdefs.h <<_ACEOF
12907 #define HAVE_SSIZE_T 1
12908 _ACEOF
12909
12910
12911 fi
12912 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12913 if test "x$ac_cv_type_long_long" = x""yes; then :
12914
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_LONG_LONG 1
12917 _ACEOF
12918
12919
12920 fi
12921 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12922 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_FSBLKCNT_T 1
12926 _ACEOF
12927
12928
12929 fi
12930 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12931 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12932
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_FSFILCNT_T 1
12935 _ACEOF
12936
12937
12938 fi
12939
12940 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12941 #include <signal.h>
12942 "
12943 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12944
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_SIGSET_T 1
12947 _ACEOF
12948
12949
12950 fi
12951
12952 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12953 "
12954 if test "x$ac_cv_type_request_sense" = x""yes; then :
12955
12956 cat >>confdefs.h <<_ACEOF
12957 #define HAVE_REQUEST_SENSE 1
12958 _ACEOF
12959
12960
12961 fi
12962
12963
12964 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12965 #ifdef HAVE_SYS_SOCKET_H
12966 #include <sys/socket.h>
12967 #endif
12968 #ifdef HAVE_SYS_SOCKETVAR_H
12969 #include <sys/socketvar.h>
12970 #endif
12971 #ifdef HAVE_NET_ROUTE_H
12972 #include <net/route.h>
12973 #endif
12974 #ifdef HAVE_NETINET_IN_H
12975 #include <netinet/in.h>
12976 #endif
12977 #ifdef HAVE_NETINET_IN_SYSTM_H
12978 #include <netinet/in_systm.h>
12979 #endif
12980 #ifdef HAVE_NETINET_IP_H
12981 #include <netinet/ip.h>
12982 #endif
12983 #ifdef HAVE_NETINET_IN_PCB_H
12984 #include <netinet/in_pcb.h>
12985 #endif
12986 "
12987 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_STRUCT_XINPGEN 1
12991 _ACEOF
12992
12993
12994 fi
12995
12996
12997 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12998 #include <linux/input.h>
12999 #endif
13000 "
13001 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13002
13003 cat >>confdefs.h <<_ACEOF
13004 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13005 _ACEOF
13006
13007
13008 fi
13009
13010
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13012 $as_echo_n "checking for sigaddset... " >&6; }
13013 if test "${wine_cv_have_sigaddset+set}" = set; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h.  */
13018 #include <signal.h>
13019 int
13020 main ()
13021 {
13022 sigset_t set; sigaddset(&set,SIGTERM);
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 if ac_fn_c_try_link "$LINENO"; then :
13028   wine_cv_have_sigaddset=yes
13029 else
13030   wine_cv_have_sigaddset=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext \
13033     conftest$ac_exeext conftest.$ac_ext
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13036 $as_echo "$wine_cv_have_sigaddset" >&6; }
13037 if test "$wine_cv_have_sigaddset" = "yes"
13038 then
13039
13040 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13041
13042 fi
13043
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13046 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13047 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h.  */
13052 #include <netdb.h>
13053 int
13054 main ()
13055 {
13056
13057     char *name=0;
13058     struct hostent he;
13059     struct hostent *result;
13060     char *buf=0;
13061     int bufsize=0;
13062     int res,errnr;
13063     char *addr=0;
13064     int addrlen=0;
13065     int addrtype=0;
13066     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13067     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13068
13069   ;
13070   return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_link "$LINENO"; then :
13074   wine_cv_linux_gethostbyname_r_6=yes
13075 else
13076   wine_cv_linux_gethostbyname_r_6=no
13077
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext \
13080     conftest$ac_exeext conftest.$ac_ext
13081
13082 fi
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13084 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13085    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13086    then
13087
13088 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13089
13090    fi
13091
13092 if test "$ac_cv_header_linux_joystick_h" = "yes"
13093 then
13094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13095 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13096 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101
13102         #include <sys/ioctl.h>
13103         #include <sys/types.h>
13104         #include <linux/joystick.h>
13105
13106         struct js_event blub;
13107         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13108         #error "no 2.2 header"
13109         #endif
13110
13111 int
13112 main ()
13113 {
13114 /*empty*/
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120   wine_cv_linux_joystick_22_api=yes
13121 else
13122   wine_cv_linux_joystick_22_api=no
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13128 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13129    if test "$wine_cv_linux_joystick_22_api" = "yes"
13130    then
13131
13132 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13133
13134    fi
13135 fi
13136
13137
13138 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13139 #ifdef HAVE_SYS_PARAM_H
13140 # include <sys/param.h>
13141 #endif
13142 #ifdef HAVE_SYS_MOUNT_H
13143 # include <sys/mount.h>
13144 #endif
13145 #ifdef HAVE_SYS_VFS_H
13146 # include <sys/vfs.h>
13147 #endif
13148 #ifdef HAVE_SYS_STATFS_H
13149 # include <sys/statfs.h>
13150 #endif
13151 "
13152 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13153
13154 cat >>confdefs.h <<_ACEOF
13155 #define HAVE_STRUCT_STATFS_F_BFREE 1
13156 _ACEOF
13157
13158
13159 fi
13160 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13161 #ifdef HAVE_SYS_PARAM_H
13162 # include <sys/param.h>
13163 #endif
13164 #ifdef HAVE_SYS_MOUNT_H
13165 # include <sys/mount.h>
13166 #endif
13167 #ifdef HAVE_SYS_VFS_H
13168 # include <sys/vfs.h>
13169 #endif
13170 #ifdef HAVE_SYS_STATFS_H
13171 # include <sys/statfs.h>
13172 #endif
13173 "
13174 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13175
13176 cat >>confdefs.h <<_ACEOF
13177 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13178 _ACEOF
13179
13180
13181 fi
13182 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13183 #ifdef HAVE_SYS_PARAM_H
13184 # include <sys/param.h>
13185 #endif
13186 #ifdef HAVE_SYS_MOUNT_H
13187 # include <sys/mount.h>
13188 #endif
13189 #ifdef HAVE_SYS_VFS_H
13190 # include <sys/vfs.h>
13191 #endif
13192 #ifdef HAVE_SYS_STATFS_H
13193 # include <sys/statfs.h>
13194 #endif
13195 "
13196 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13197
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13200 _ACEOF
13201
13202
13203 fi
13204 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13205 #ifdef HAVE_SYS_PARAM_H
13206 # include <sys/param.h>
13207 #endif
13208 #ifdef HAVE_SYS_MOUNT_H
13209 # include <sys/mount.h>
13210 #endif
13211 #ifdef HAVE_SYS_VFS_H
13212 # include <sys/vfs.h>
13213 #endif
13214 #ifdef HAVE_SYS_STATFS_H
13215 # include <sys/statfs.h>
13216 #endif
13217 "
13218 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13219
13220 cat >>confdefs.h <<_ACEOF
13221 #define HAVE_STRUCT_STATFS_F_FFREE 1
13222 _ACEOF
13223
13224
13225 fi
13226 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13227 #ifdef HAVE_SYS_PARAM_H
13228 # include <sys/param.h>
13229 #endif
13230 #ifdef HAVE_SYS_MOUNT_H
13231 # include <sys/mount.h>
13232 #endif
13233 #ifdef HAVE_SYS_VFS_H
13234 # include <sys/vfs.h>
13235 #endif
13236 #ifdef HAVE_SYS_STATFS_H
13237 # include <sys/statfs.h>
13238 #endif
13239 "
13240 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13241
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13244 _ACEOF
13245
13246
13247 fi
13248 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13249 #ifdef HAVE_SYS_PARAM_H
13250 # include <sys/param.h>
13251 #endif
13252 #ifdef HAVE_SYS_MOUNT_H
13253 # include <sys/mount.h>
13254 #endif
13255 #ifdef HAVE_SYS_VFS_H
13256 # include <sys/vfs.h>
13257 #endif
13258 #ifdef HAVE_SYS_STATFS_H
13259 # include <sys/statfs.h>
13260 #endif
13261 "
13262 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13266 _ACEOF
13267
13268
13269 fi
13270
13271
13272 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13273 #include <sys/statvfs.h>
13274 #endif
13275 "
13276 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13277
13278 cat >>confdefs.h <<_ACEOF
13279 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13280 _ACEOF
13281
13282
13283 fi
13284
13285
13286 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13287 #ifdef HAVE_SYS_SOCKET_H
13288 # include <sys/socket.h>
13289 #endif
13290 #ifdef HAVE_SYS_UN_H
13291 # include <sys/un.h>
13292 #endif
13293 "
13294 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13295
13296 cat >>confdefs.h <<_ACEOF
13297 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13298 _ACEOF
13299
13300
13301 fi
13302 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13303 #ifdef HAVE_SYS_SOCKET_H
13304 # include <sys/socket.h>
13305 #endif
13306 #ifdef HAVE_SYS_UN_H
13307 # include <sys/un.h>
13308 #endif
13309 "
13310 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13311
13312 cat >>confdefs.h <<_ACEOF
13313 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13314 _ACEOF
13315
13316
13317 fi
13318 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13319 #ifdef HAVE_SYS_SOCKET_H
13320 # include <sys/socket.h>
13321 #endif
13322 #ifdef HAVE_SYS_UN_H
13323 # include <sys/un.h>
13324 #endif
13325 "
13326 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13327
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13330 _ACEOF
13331
13332
13333 fi
13334
13335
13336 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13337 #ifdef HAVE_SCSI_SG_H
13338 #include <scsi/sg.h>
13339 #endif
13340 "
13341 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_SCSIREQ_T_CMD 1
13345 _ACEOF
13346
13347
13348 fi
13349 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>
13350 #ifdef HAVE_SCSI_SG_H
13351 #include <scsi/sg.h>
13352 #endif
13353 "
13354 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13358 _ACEOF
13359
13360
13361 fi
13362
13363
13364 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13365 "
13366 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13367
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_SIGINFO_T_SI_FD 1
13370 _ACEOF
13371
13372
13373 fi
13374
13375
13376 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13377 #ifdef HAVE_SYS_MTIO_H
13378 #include <sys/mtio.h>
13379 #endif
13380 "
13381 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13382
13383 cat >>confdefs.h <<_ACEOF
13384 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13385 _ACEOF
13386
13387
13388 fi
13389 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13390 #ifdef HAVE_SYS_MTIO_H
13391 #include <sys/mtio.h>
13392 #endif
13393 "
13394 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13398 _ACEOF
13399
13400
13401 fi
13402 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13403 #ifdef HAVE_SYS_MTIO_H
13404 #include <sys/mtio.h>
13405 #endif
13406 "
13407 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13411 _ACEOF
13412
13413
13414 fi
13415
13416
13417 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13418 #include <getopt.h>
13419 #endif
13420 "
13421 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13422
13423 cat >>confdefs.h <<_ACEOF
13424 #define HAVE_STRUCT_OPTION_NAME 1
13425 _ACEOF
13426
13427
13428 fi
13429
13430
13431 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13432 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13433
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13436 _ACEOF
13437
13438
13439 fi
13440 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13441 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13442
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_STRUCT_STAT_ST_MTIM 1
13445 _ACEOF
13446
13447
13448 fi
13449 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13450 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13451
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_STRUCT_STAT_ST_CTIM 1
13454 _ACEOF
13455
13456
13457 fi
13458 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13459 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_STRUCT_STAT_ST_ATIM 1
13463 _ACEOF
13464
13465
13466 fi
13467
13468
13469 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
13470 #include <sys/types.h>
13471 #endif
13472 #ifdef HAVE_NETINET_IN_H
13473 #include <netinet/in.h>
13474 #endif
13475 "
13476 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13477
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13480 _ACEOF
13481
13482
13483 fi
13484
13485
13486 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13487 #include <sys/types.h>
13488 #endif
13489 #ifdef HAVE_NETINET_IN_H
13490 # include <netinet/in.h>
13491 #endif
13492 #ifdef HAVE_ARPA_NAMESER_H
13493 # include <arpa/nameser.h>
13494 #endif
13495 "
13496 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13497
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_NS_MSG__MSG_PTR 1
13500 _ACEOF
13501
13502
13503 fi
13504
13505
13506 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13507 #include <sys/types.h>
13508 #endif
13509 #ifdef HAVE_ALIAS_H
13510 #include <alias.h>
13511 #endif
13512 #ifdef HAVE_SYS_SOCKET_H
13513 #include <sys/socket.h>
13514 #endif
13515 #ifdef HAVE_SYS_SOCKETVAR_H
13516 #include <sys/socketvar.h>
13517 #endif
13518 #ifdef HAVE_SYS_TIMEOUT_H
13519 #include <sys/timeout.h>
13520 #endif
13521 #ifdef HAVE_NETINET_IN_H
13522 #include <netinet/in.h>
13523 #endif
13524 #ifdef HAVE_NETINET_IN_SYSTM_H
13525 #include <netinet/in_systm.h>
13526 #endif
13527 #ifdef HAVE_NETINET_IP_H
13528 #include <netinet/ip.h>
13529 #endif
13530 #ifdef HAVE_NETINET_IP_VAR_H
13531 #include <netinet/ip_var.h>
13532 #endif
13533 #ifdef HAVE_NETINET_IP_ICMP_H
13534 #include <netinet/ip_icmp.h>
13535 #endif
13536 #ifdef HAVE_NETINET_ICMP_VAR
13537 #include <netinet/icmp_var.h>
13538 #endif
13539 "
13540 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13544 _ACEOF
13545
13546
13547 fi
13548
13549
13550 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13551 #include <sys/types.h>
13552 #endif
13553 #ifdef HAVE_NET_IF_H
13554 # include <net/if.h>
13555 #endif
13556 "
13557 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13561 _ACEOF
13562
13563
13564 fi
13565
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13568 $as_echo_n "checking for timezone variable... " >&6; }
13569 if test "${ac_cv_have_timezone+set}" = set; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h.  */
13574 #include <time.h>
13575 int
13576 main ()
13577 {
13578 timezone = 1
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584   ac_cv_have_timezone="yes"
13585 else
13586   ac_cv_have_timezone="no"
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext \
13589     conftest$ac_exeext conftest.$ac_ext
13590 fi
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13592 $as_echo "$ac_cv_have_timezone" >&6; }
13593 if test "$ac_cv_have_timezone" = "yes"
13594 then
13595
13596 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13597
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13600 $as_echo_n "checking for daylight variable... " >&6; }
13601 if test "${ac_cv_have_daylight+set}" = set; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h.  */
13606 #include <time.h>
13607 int
13608 main ()
13609 {
13610 daylight = 1
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616   ac_cv_have_daylight="yes"
13617 else
13618   ac_cv_have_daylight="no"
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext \
13621     conftest$ac_exeext conftest.$ac_ext
13622 fi
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13624 $as_echo "$ac_cv_have_daylight" >&6; }
13625 if test "$ac_cv_have_daylight" = "yes"
13626 then
13627
13628 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13629
13630 fi
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13633 $as_echo_n "checking for isinf... " >&6; }
13634 if test "${ac_cv_have_isinf+set}" = set; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 #include <math.h>
13640 int
13641 main ()
13642 {
13643 float f = 0.0; int i=isinf(f)
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_link "$LINENO"; then :
13649   ac_cv_have_isinf="yes"
13650 else
13651   ac_cv_have_isinf="no"
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext \
13654     conftest$ac_exeext conftest.$ac_ext
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13657 $as_echo "$ac_cv_have_isinf" >&6; }
13658 if test "$ac_cv_have_isinf" = "yes"
13659 then
13660
13661 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13662
13663 fi
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13666 $as_echo_n "checking for isnan... " >&6; }
13667 if test "${ac_cv_have_isnan+set}" = set; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h.  */
13672 #include <math.h>
13673 int
13674 main ()
13675 {
13676 float f = 0.0; int i=isnan(f)
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682   ac_cv_have_isnan="yes"
13683 else
13684   ac_cv_have_isnan="no"
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext \
13687     conftest$ac_exeext conftest.$ac_ext
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13690 $as_echo "$ac_cv_have_isnan" >&6; }
13691 if test "$ac_cv_have_isnan" = "yes"
13692 then
13693
13694 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13695
13696 fi
13697
13698
13699 case $host_cpu in
13700   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13701 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13702 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13703   $as_echo_n "(cached) " >&6
13704 else
13705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h.  */
13707 #ifndef __i386__
13708 yes
13709 #endif
13710 _ACEOF
13711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13712   $EGREP "yes" >/dev/null 2>&1; then :
13713   ac_cv_cpp_def___i386__=yes
13714 else
13715   ac_cv_cpp_def___i386__=no
13716 fi
13717 rm -f conftest*
13718
13719 fi
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13721 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13722 if test $ac_cv_cpp_def___i386__ = yes; then :
13723   CFLAGS="$CFLAGS -D__i386__"
13724   LINTFLAGS="$LINTFLAGS -D__i386__"
13725 fi ;;
13726   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13727 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13728 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733 #ifndef __x86_64__
13734 yes
13735 #endif
13736 _ACEOF
13737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13738   $EGREP "yes" >/dev/null 2>&1; then :
13739   ac_cv_cpp_def___x86_64__=yes
13740 else
13741   ac_cv_cpp_def___x86_64__=no
13742 fi
13743 rm -f conftest*
13744
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13747 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13748 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13749   CFLAGS="$CFLAGS -D__x86_64__"
13750   LINTFLAGS="$LINTFLAGS -D__x86_64__"
13751 fi ;;
13752   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13753 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13754 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759 #ifndef __ALPHA__
13760 yes
13761 #endif
13762 _ACEOF
13763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13764   $EGREP "yes" >/dev/null 2>&1; then :
13765   ac_cv_cpp_def___ALPHA__=yes
13766 else
13767   ac_cv_cpp_def___ALPHA__=no
13768 fi
13769 rm -f conftest*
13770
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13773 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13774 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13775   CFLAGS="$CFLAGS -D__ALPHA__"
13776   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13777 fi ;;
13778   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13779 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13780 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13781   $as_echo_n "(cached) " >&6
13782 else
13783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 #ifndef __sparc__
13786 yes
13787 #endif
13788 _ACEOF
13789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790   $EGREP "yes" >/dev/null 2>&1; then :
13791   ac_cv_cpp_def___sparc__=yes
13792 else
13793   ac_cv_cpp_def___sparc__=no
13794 fi
13795 rm -f conftest*
13796
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13799 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13800 if test $ac_cv_cpp_def___sparc__ = yes; then :
13801   CFLAGS="$CFLAGS -D__sparc__"
13802   LINTFLAGS="$LINTFLAGS -D__sparc__"
13803 fi ;;
13804   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13805 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13806 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h.  */
13811 #ifndef __powerpc__
13812 yes
13813 #endif
13814 _ACEOF
13815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816   $EGREP "yes" >/dev/null 2>&1; then :
13817   ac_cv_cpp_def___powerpc__=yes
13818 else
13819   ac_cv_cpp_def___powerpc__=no
13820 fi
13821 rm -f conftest*
13822
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13825 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13826 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13827   CFLAGS="$CFLAGS -D__powerpc__"
13828   LINTFLAGS="$LINTFLAGS -D__powerpc__"
13829 fi ;;
13830 esac
13831
13832 case $host_vendor in
13833   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13834 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13835 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13836   $as_echo_n "(cached) " >&6
13837 else
13838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h.  */
13840 #ifndef __sun__
13841 yes
13842 #endif
13843 _ACEOF
13844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13845   $EGREP "yes" >/dev/null 2>&1; then :
13846   ac_cv_cpp_def___sun__=yes
13847 else
13848   ac_cv_cpp_def___sun__=no
13849 fi
13850 rm -f conftest*
13851
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13854 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13855 if test $ac_cv_cpp_def___sun__ = yes; then :
13856   CFLAGS="$CFLAGS -D__sun__"
13857   LINTFLAGS="$LINTFLAGS -D__sun__"
13858 fi ;;
13859 esac
13860
13861
13862
13863
13864 ac_config_commands="$ac_config_commands include/stamp-h"
13865
13866
13867 ALL_MAKEFILE_DEPENDS="
13868 # Rules automatically generated by configure
13869
13870 .INIT: Makefile
13871 .BEGIN: Makefile
13872 .MAKEFILEDEPS:
13873 Makefile: Makefile.in Make.rules config.status
13874         @./config.status Make.tmp Makefile"
13875
13876 ALL_WINETEST_DEPENDS="# Test binaries"
13877
13878 ALL_TEST_BINARIES=""
13879
13880
13881 wine_fn_append_file ()
13882 {
13883     as_fn_append $1 " \\$as_nl  $2"
13884 }
13885
13886 wine_fn_append_rule ()
13887 {
13888     as_fn_append $1 "$as_nl$2"
13889 }
13890
13891 wine_fn_all_dir_rules ()
13892 {
13893     wine_fn_append_file ALL_DIRS $1
13894     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13895 "__clean__ .PHONY: $1/__clean__
13896 $1/__clean__: $1/Makefile
13897         @cd $1 && \$(MAKE) clean
13898         \$(RM) $1/Makefile
13899 $1/Makefile: $1/Makefile.in config.status $2
13900         @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
13901 depend .PHONY: $1/__depend__
13902 $1/__depend__: \$(MAKEDEP) dummy
13903         @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
13904 }
13905
13906 wine_fn_config_makefile ()
13907 {
13908     ac_dir=$1
13909     ac_enable=$2
13910     wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
13911
13912     eval as_val=\$$ac_enable
13913    if test "x$as_val" = x""no; then :
13914
13915 else
13916   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13917 "all .PHONY: $ac_dir
13918 $ac_dir: $ac_dir/Makefile dummy
13919         @cd $ac_dir && \$(MAKE)
13920 install:: $ac_dir
13921         @cd $ac_dir && \$(MAKE) install
13922 install-lib:: $ac_dir
13923         @cd $ac_dir && \$(MAKE) install-lib
13924 install-dev:: $ac_dir
13925         @cd $ac_dir && \$(MAKE) install-dev
13926 uninstall:: $ac_dir/Makefile
13927         @cd $ac_dir && \$(MAKE) uninstall"
13928 fi
13929 }
13930
13931 wine_fn_config_lib ()
13932 {
13933     ac_name=$1
13934     ac_dir=dlls/$ac_name
13935     wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
13936     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13937 "all __builddeps__: $ac_dir
13938 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
13939 $ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
13940 $ac_dir: dummy
13941         @cd $ac_dir && \$(MAKE)
13942 $ac_dir/lib$ac_name.cross.a: dummy
13943         @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13944 install install-dev:: $ac_dir
13945         @cd $ac_dir && \$(MAKE) install
13946 uninstall:: $ac_dir/Makefile
13947         @cd $ac_dir && \$(MAKE) uninstall"
13948 }
13949
13950 wine_fn_config_dll ()
13951 {
13952     ac_dir=$1
13953     ac_enable=$2
13954     ac_implib=$3
13955     ac_implibsrc=$4
13956     ac_file="dlls/$ac_dir/lib$ac_implib"
13957     ac_deps="tools/widl tools/winebuild tools/winegcc include"
13958
13959     wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
13960
13961     eval as_val=\$$ac_enable
13962    if test "x$as_val" = x""no; then :
13963                 test "$ac_enable" != enable_win16 || return 0
13964 else
13965   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13966 "all .PHONY: dlls/$ac_dir
13967 dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
13968         @cd dlls/$ac_dir && \$(MAKE)
13969 install:: dlls/$ac_dir/Makefile __builddeps__
13970         @cd dlls/$ac_dir && \$(MAKE) install
13971 install-lib:: dlls/$ac_dir/Makefile __builddeps__
13972         @cd dlls/$ac_dir && \$(MAKE) install-lib
13973 uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
13974         @cd dlls/$ac_dir && \$(MAKE) \$@"
13975 fi
13976
13977     if test -n "$ac_implibsrc"
13978     then
13979         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13980 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
13981 __buildcrossdeps__: $ac_file.cross.a
13982 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13983 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13984         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13985 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13986         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13987 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13988         @cd dlls/$ac_dir && \$(MAKE) install-dev"
13989     elif test -n "$ac_implib"
13990     then
13991         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13992 "__builddeps__: $ac_file.$IMPLIBEXT
13993 __buildcrossdeps__: $ac_file.cross.a
13994 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
13995         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13996 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13997         @cd dlls/$ac_dir && \$(MAKE) install-dev"
13998
13999         if test "$ac_dir" != "$ac_implib"
14000         then
14001             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14002 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14003 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
14004 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14005         \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
14006 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14007         \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
14008 clean::
14009         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14010         fi
14011     fi
14012 }
14013
14014 wine_fn_config_program ()
14015 {
14016     ac_dir=$1
14017     ac_enable=$2
14018     ac_install=$3
14019     wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
14020
14021     eval as_val=\$$ac_enable
14022    if test "x$as_val" = x""no; then :
14023
14024 else
14025   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14026 "all .PHONY: programs/$ac_dir
14027 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14028         @cd programs/$ac_dir && \$(MAKE)"
14029
14030     test -n "$ac_install" || return
14031     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14032 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14033         @cd programs/$ac_dir && \$(MAKE) install
14034 uninstall:: programs/$ac_dir/Makefile
14035         @cd programs/$ac_dir && \$(MAKE) uninstall"
14036     if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14037     then
14038         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14039 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14040         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
14041 uninstall::
14042         \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
14043     fi
14044 fi
14045 }
14046
14047 wine_fn_config_test ()
14048 {
14049     ac_dir=$1
14050     ac_name=$2
14051     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14052     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14053 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14054         cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14055 $ac_name.rc:
14056         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14057 $ac_name.res: $ac_name.rc $ac_name.exe"
14058     wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
14059
14060     if test "x$enable_tests" = x""no; then :
14061
14062 else
14063   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14064 "all programs/winetest .PHONY: $ac_dir
14065 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14066         @cd $ac_dir && \$(MAKE)
14067 crosstest .PHONY: $ac_dir/__crosstest__
14068 $ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
14069         @cd $ac_dir && \$(MAKE) crosstest
14070 test .PHONY: $ac_dir/__test__
14071 $ac_dir/__test__: dummy
14072         @cd $ac_dir && \$(MAKE) test
14073 testclean::
14074         \$(RM) $ac_dir/*.ok"
14075 fi
14076 }
14077
14078 wine_fn_config_tool ()
14079 {
14080     ac_dir=$1
14081     ac_deps="Make.rules"
14082     if test "$ac_dir" != tools
14083     then
14084                 ac_deps="$ac_deps \$(MAKEDEP)"
14085     fi
14086     wine_fn_all_dir_rules $ac_dir "$ac_deps"
14087
14088     if test "x$enable_tools" = x""no; then :
14089
14090 else
14091   case $ac_dir in
14092             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14093 "install:: $ac_dir
14094         @cd $ac_dir && \$(MAKE) install
14095 install-lib:: $ac_dir
14096         @cd $ac_dir && \$(MAKE) install-lib
14097 install-dev:: $ac_dir
14098         @cd $ac_dir && \$(MAKE) install-dev" ;;
14099       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14100 "install install-dev:: $ac_dir
14101         @cd $ac_dir && \$(MAKE) install" ;;
14102       esac
14103       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14104 "uninstall:: $ac_dir/Makefile
14105         @cd $ac_dir && \$(MAKE) uninstall
14106 all __tooldeps__ .PHONY: $ac_dir
14107 $ac_dir: $ac_dir/Makefile libs/port dummy
14108         @cd $ac_dir && \$(MAKE)"
14109 fi
14110 }
14111
14112 wine_fn_config_makerules ()
14113 {
14114     ac_rules=$1
14115     ac_deps=$2
14116     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14117 "$ac_rules: $ac_rules.in $ac_deps config.status
14118         @./config.status $ac_rules
14119 distclean::
14120         \$(RM) $ac_rules"
14121 }
14122
14123 wine_fn_config_symlink ()
14124 {
14125     ac_link=$1
14126     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14127 "$ac_link:
14128         @./config.status $ac_link
14129 distclean::
14130         \$(RM) $ac_link"
14131 }
14132 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14133 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14134 if test "x$enable_fonts" != xno; then
14135 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14136 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14137 fi
14138 if test "x$enable_fonts" != xno; then
14139 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14140 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14141 fi
14142 if test "x$enable_fonts" != xno; then
14143 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14144 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14145 fi
14146 if test "x$enable_fonts" != xno; then
14147 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14148 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14149 fi
14150 ac_config_links="$ac_config_links wine:tools/winewrapper"
14151 wine_fn_config_symlink wine
14152
14153 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14154
14155 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14156
14157 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14158
14159 ac_config_commands="$ac_config_commands dlls/user32/resources"
14160
14161 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14162
14163 ac_config_commands="$ac_config_commands include/wine"
14164
14165
14166 wine_fn_config_makerules Make.rules
14167 MAKE_RULES=Make.rules
14168 ac_config_files="$ac_config_files Make.rules"
14169
14170 wine_fn_config_makerules Maketest.rules Make.rules
14171 MAKE_TEST_RULES=Maketest.rules
14172 ac_config_files="$ac_config_files Maketest.rules"
14173
14174 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14175 MAKE_DLL_RULES=dlls/Makedll.rules
14176 ac_config_files="$ac_config_files dlls/Makedll.rules"
14177
14178 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14179 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14180 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14181
14182 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14183 MAKE_PROG_RULES=programs/Makeprog.rules
14184 ac_config_files="$ac_config_files programs/Makeprog.rules"
14185
14186
14187 wine_fn_config_dll acledit enable_acledit
14188 wine_fn_config_dll aclui enable_aclui aclui
14189 wine_fn_config_dll activeds enable_activeds activeds
14190 wine_fn_config_dll actxprxy enable_actxprxy
14191 wine_fn_config_lib adsiid
14192 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14193 wine_fn_config_test dlls/advapi32/tests advapi32_test
14194 wine_fn_config_dll advpack enable_advpack advpack
14195 wine_fn_config_test dlls/advpack/tests advpack_test
14196 wine_fn_config_dll amstream enable_amstream
14197 wine_fn_config_test dlls/amstream/tests amstream_test
14198 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14199 wine_fn_config_dll atl enable_atl atl
14200 wine_fn_config_dll authz enable_authz
14201 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14202 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14203 wine_fn_config_test dlls/avifil32/tests avifil32_test
14204 wine_fn_config_dll avifile.dll16 enable_win16
14205 wine_fn_config_dll avrt enable_avrt avrt
14206 wine_fn_config_dll bcrypt enable_bcrypt
14207 wine_fn_config_dll browseui enable_browseui
14208 wine_fn_config_test dlls/browseui/tests browseui_test
14209 wine_fn_config_dll cabinet enable_cabinet cabinet
14210 wine_fn_config_test dlls/cabinet/tests cabinet_test
14211 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14212 wine_fn_config_dll cards enable_cards cards
14213 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14214 wine_fn_config_dll clusapi enable_clusapi clusapi
14215 wine_fn_config_dll comcat enable_comcat
14216 wine_fn_config_test dlls/comcat/tests comcat_test
14217 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14218 wine_fn_config_test dlls/comctl32/tests comctl32_test
14219 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14220 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14221 wine_fn_config_dll comm.drv16 enable_win16
14222 wine_fn_config_dll commdlg.dll16 enable_win16
14223 wine_fn_config_dll compobj.dll16 enable_win16
14224 wine_fn_config_dll compstui enable_compstui compstui
14225 wine_fn_config_dll credui enable_credui credui
14226 wine_fn_config_test dlls/credui/tests credui_test
14227 wine_fn_config_dll crtdll enable_crtdll crtdll
14228 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14229 wine_fn_config_test dlls/crypt32/tests crypt32_test
14230 wine_fn_config_dll cryptdlg enable_cryptdlg
14231 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14232 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14233 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14234 wine_fn_config_dll cryptui enable_cryptui cryptui
14235 wine_fn_config_test dlls/cryptui/tests cryptui_test
14236 wine_fn_config_dll ctapi32 enable_ctapi32
14237 wine_fn_config_dll ctl3d.dll16 enable_win16
14238 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14239 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14240 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14241 wine_fn_config_test dlls/d3d10/tests d3d10_test
14242 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14243 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14244 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14245 wine_fn_config_test dlls/d3d8/tests d3d8_test
14246 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14247 wine_fn_config_test dlls/d3d9/tests d3d9_test
14248 wine_fn_config_dll d3dim enable_d3dim d3dim
14249 wine_fn_config_dll d3drm enable_d3drm d3drm
14250 wine_fn_config_test dlls/d3drm/tests d3drm_test
14251 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14252 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14253 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14254 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14255 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14256 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14257 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14258 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14259 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14260 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14261 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14262 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14263 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14264 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14265 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14266 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14267 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14268 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14269 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14270 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14271 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14272 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14273 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14274 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14275 wine_fn_config_dll ddeml.dll16 enable_win16
14276 wine_fn_config_dll ddraw enable_ddraw ddraw
14277 wine_fn_config_test dlls/ddraw/tests ddraw_test
14278 wine_fn_config_dll ddrawex enable_ddrawex
14279 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14280 wine_fn_config_dll devenum enable_devenum
14281 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14282 wine_fn_config_test dlls/dinput/tests dinput_test
14283 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14284 wine_fn_config_dll dispdib.dll16 enable_win16
14285 wine_fn_config_dll dispex enable_dispex
14286 wine_fn_config_test dlls/dispex/tests dispex_test
14287 wine_fn_config_dll display.drv16 enable_win16
14288 wine_fn_config_dll dmband enable_dmband
14289 wine_fn_config_dll dmcompos enable_dmcompos
14290 wine_fn_config_dll dmime enable_dmime
14291 wine_fn_config_dll dmloader enable_dmloader
14292 wine_fn_config_test dlls/dmloader/tests dmloader_test
14293 wine_fn_config_dll dmscript enable_dmscript
14294 wine_fn_config_dll dmstyle enable_dmstyle
14295 wine_fn_config_dll dmsynth enable_dmsynth
14296 wine_fn_config_dll dmusic enable_dmusic
14297 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14298 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14299 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14300 wine_fn_config_dll dplay enable_dplay dplay
14301 wine_fn_config_dll dplayx enable_dplayx dplayx
14302 wine_fn_config_test dlls/dplayx/tests dplayx_test
14303 wine_fn_config_dll dpnaddr enable_dpnaddr
14304 wine_fn_config_dll dpnet enable_dpnet dpnet
14305 wine_fn_config_dll dpnhpast enable_dpnhpast
14306 wine_fn_config_dll dpnlobby enable_dpnlobby
14307 wine_fn_config_dll dpwsockx enable_dpwsockx
14308 wine_fn_config_dll drmclien enable_drmclien
14309 wine_fn_config_dll dsound enable_dsound dsound
14310 wine_fn_config_test dlls/dsound/tests dsound_test
14311 wine_fn_config_dll dssenh enable_dssenh
14312 wine_fn_config_dll dswave enable_dswave
14313 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14314 wine_fn_config_dll dxdiagn enable_dxdiagn
14315 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14316 wine_fn_config_lib dxerr8
14317 wine_fn_config_lib dxerr9
14318 wine_fn_config_dll dxgi enable_dxgi dxgi
14319 wine_fn_config_test dlls/dxgi/tests dxgi_test
14320 wine_fn_config_lib dxguid
14321 wine_fn_config_dll faultrep enable_faultrep
14322 wine_fn_config_dll fltlib enable_fltlib
14323 wine_fn_config_dll fusion enable_fusion
14324 wine_fn_config_test dlls/fusion/tests fusion_test
14325 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14326 wine_fn_config_dll gdi.exe16 enable_win16
14327 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14328 wine_fn_config_test dlls/gdi32/tests gdi32_test
14329 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14330 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14331 wine_fn_config_dll glu32 enable_glu32 glu32
14332 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14333 wine_fn_config_dll gpkcsp enable_gpkcsp
14334 wine_fn_config_dll hal enable_hal
14335 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14336 wine_fn_config_dll hid enable_hid hid
14337 wine_fn_config_dll hlink enable_hlink hlink
14338 wine_fn_config_test dlls/hlink/tests hlink_test
14339 wine_fn_config_dll hnetcfg enable_hnetcfg
14340 wine_fn_config_dll httpapi enable_httpapi
14341 wine_fn_config_dll iccvid enable_iccvid
14342 wine_fn_config_dll icmp enable_icmp
14343 wine_fn_config_dll ifsmgr.vxd enable_win16
14344 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14345 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14346 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14347 wine_fn_config_dll imm.dll16 enable_win16
14348 wine_fn_config_dll imm32 enable_imm32 imm32
14349 wine_fn_config_test dlls/imm32/tests imm32_test
14350 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14351 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14352 wine_fn_config_dll inetmib1 enable_inetmib1
14353 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14354 wine_fn_config_dll infosoft enable_infosoft
14355 wine_fn_config_test dlls/infosoft/tests infosoft_test
14356 wine_fn_config_dll initpki enable_initpki
14357 wine_fn_config_dll inkobj enable_inkobj
14358 wine_fn_config_dll inseng enable_inseng
14359 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14360 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14361 wine_fn_config_dll itircl enable_itircl
14362 wine_fn_config_dll itss enable_itss
14363 wine_fn_config_test dlls/itss/tests itss_test
14364 wine_fn_config_dll jscript enable_jscript
14365 wine_fn_config_test dlls/jscript/tests jscript_test
14366 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14367 wine_fn_config_test dlls/kernel32/tests kernel32_test
14368 wine_fn_config_dll keyboard.drv16 enable_win16
14369 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14370 wine_fn_config_dll loadperf enable_loadperf loadperf
14371 wine_fn_config_dll localspl enable_localspl
14372 wine_fn_config_test dlls/localspl/tests localspl_test
14373 wine_fn_config_dll localui enable_localui
14374 wine_fn_config_test dlls/localui/tests localui_test
14375 wine_fn_config_dll lz32 enable_lz32 lz32
14376 wine_fn_config_test dlls/lz32/tests lz32_test
14377 wine_fn_config_dll lzexpand.dll16 enable_win16
14378 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14379 wine_fn_config_test dlls/mapi32/tests mapi32_test
14380 wine_fn_config_dll mapistub enable_mapistub
14381 wine_fn_config_dll mciavi32 enable_mciavi32
14382 wine_fn_config_dll mcicda enable_mcicda
14383 wine_fn_config_dll mciqtz32 enable_mciqtz32
14384 wine_fn_config_dll mciseq enable_mciseq
14385 wine_fn_config_dll mciwave enable_mciwave
14386 wine_fn_config_dll midimap enable_midimap
14387 wine_fn_config_dll mlang enable_mlang mlang
14388 wine_fn_config_test dlls/mlang/tests mlang_test
14389 wine_fn_config_dll mmdevapi enable_mmdevapi
14390 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14391 wine_fn_config_dll mmdevldr.vxd enable_win16
14392 wine_fn_config_dll mmsystem.dll16 enable_win16
14393 wine_fn_config_dll monodebg.vxd enable_win16
14394 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14395 wine_fn_config_dll mouse.drv16 enable_win16
14396 wine_fn_config_dll mpr enable_mpr mpr
14397 wine_fn_config_dll mprapi enable_mprapi mprapi
14398 wine_fn_config_dll msacm.dll16 enable_win16
14399 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14400 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14401 wine_fn_config_test dlls/msacm32/tests msacm32_test
14402 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14403 wine_fn_config_dll mscat32 enable_mscat32
14404 wine_fn_config_dll mscms enable_mscms mscms
14405 wine_fn_config_test dlls/mscms/tests mscms_test
14406 wine_fn_config_dll mscoree enable_mscoree
14407 wine_fn_config_dll msctf enable_msctf
14408 wine_fn_config_test dlls/msctf/tests msctf_test
14409 wine_fn_config_dll msdaps enable_msdaps
14410 wine_fn_config_dll msdmo enable_msdmo msdmo
14411 wine_fn_config_dll msftedit enable_msftedit
14412 wine_fn_config_dll msg711.acm enable_msg711_acm
14413 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14414 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14415 wine_fn_config_dll mshtml enable_mshtml mshtml
14416 wine_fn_config_test dlls/mshtml/tests mshtml_test
14417 wine_fn_config_dll msi enable_msi msi
14418 wine_fn_config_test dlls/msi/tests msi_test
14419 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14420 wine_fn_config_dll msimtf enable_msimtf
14421 wine_fn_config_dll msisip enable_msisip
14422 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14423 wine_fn_config_dll msnet32 enable_msnet32
14424 wine_fn_config_dll msrle32 enable_msrle32
14425 wine_fn_config_dll mssign32 enable_mssign32
14426 wine_fn_config_dll mssip32 enable_mssip32
14427 wine_fn_config_dll mstask enable_mstask
14428 wine_fn_config_test dlls/mstask/tests mstask_test
14429 wine_fn_config_dll msvcirt enable_msvcirt
14430 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14431 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14432 wine_fn_config_dll msvcr80 enable_msvcr80
14433 wine_fn_config_dll msvcr90 enable_msvcr90
14434 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14435 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14436 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14437 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14438 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14439 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14440 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14441 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14442 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14443 wine_fn_config_dll msvidc32 enable_msvidc32
14444 wine_fn_config_dll msvideo.dll16 enable_win16
14445 wine_fn_config_dll mswsock enable_mswsock mswsock
14446 wine_fn_config_dll msxml3 enable_msxml3
14447 wine_fn_config_test dlls/msxml3/tests msxml3_test
14448 wine_fn_config_dll msxml4 enable_msxml4
14449 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14450 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14451 wine_fn_config_test dlls/netapi32/tests netapi32_test
14452 wine_fn_config_dll newdev enable_newdev newdev
14453 wine_fn_config_dll ntdll enable_ntdll ntdll
14454 wine_fn_config_test dlls/ntdll/tests ntdll_test
14455 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14456 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14457 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14458 wine_fn_config_dll ntprint enable_ntprint
14459 wine_fn_config_test dlls/ntprint/tests ntprint_test
14460 wine_fn_config_dll objsel enable_objsel
14461 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14462 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14463 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14464 wine_fn_config_dll ole2.dll16 enable_win16
14465 wine_fn_config_dll ole2conv.dll16 enable_win16
14466 wine_fn_config_dll ole2disp.dll16 enable_win16
14467 wine_fn_config_dll ole2nls.dll16 enable_win16
14468 wine_fn_config_dll ole2prox.dll16 enable_win16
14469 wine_fn_config_dll ole2thk.dll16 enable_win16
14470 wine_fn_config_dll ole32 enable_ole32 ole32
14471 wine_fn_config_test dlls/ole32/tests ole32_test
14472 wine_fn_config_dll oleacc enable_oleacc oleacc
14473 wine_fn_config_test dlls/oleacc/tests oleacc_test
14474 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14475 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14476 wine_fn_config_dll olecli.dll16 enable_win16
14477 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14478 wine_fn_config_dll oledb32 enable_oledb32
14479 wine_fn_config_test dlls/oledb32/tests oledb32_test
14480 wine_fn_config_dll oledlg enable_oledlg oledlg
14481 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14482 wine_fn_config_dll olesvr.dll16 enable_win16
14483 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14484 wine_fn_config_dll olethk32 enable_olethk32
14485 wine_fn_config_dll openal32 enable_openal32
14486 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14487 wine_fn_config_test dlls/opengl32/tests opengl32_test
14488 wine_fn_config_dll pdh enable_pdh pdh
14489 wine_fn_config_test dlls/pdh/tests pdh_test
14490 wine_fn_config_dll pidgen enable_pidgen
14491 wine_fn_config_dll powrprof enable_powrprof powrprof
14492 wine_fn_config_dll printui enable_printui
14493 wine_fn_config_dll propsys enable_propsys
14494 wine_fn_config_dll psapi enable_psapi psapi
14495 wine_fn_config_test dlls/psapi/tests psapi_test
14496 wine_fn_config_dll pstorec enable_pstorec
14497 wine_fn_config_dll qcap enable_qcap
14498 wine_fn_config_dll qedit enable_qedit
14499 wine_fn_config_test dlls/qedit/tests qedit_test
14500 wine_fn_config_dll qmgr enable_qmgr
14501 wine_fn_config_test dlls/qmgr/tests qmgr_test
14502 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14503 wine_fn_config_dll quartz enable_quartz quartz
14504 wine_fn_config_test dlls/quartz/tests quartz_test
14505 wine_fn_config_dll query enable_query
14506 wine_fn_config_dll rasapi16.dll16 enable_win16
14507 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14508 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14509 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14510 wine_fn_config_dll resutils enable_resutils resutils
14511 wine_fn_config_dll riched20 enable_riched20 riched20
14512 wine_fn_config_test dlls/riched20/tests riched20_test
14513 wine_fn_config_dll riched32 enable_riched32
14514 wine_fn_config_test dlls/riched32/tests riched32_test
14515 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14516 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14517 wine_fn_config_dll rsabase enable_rsabase
14518 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14519 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14520 wine_fn_config_dll rtutils enable_rtutils rtutils
14521 wine_fn_config_dll sane.ds enable_sane_ds
14522 wine_fn_config_dll sccbase enable_sccbase
14523 wine_fn_config_dll schannel enable_schannel
14524 wine_fn_config_test dlls/schannel/tests schannel_test
14525 wine_fn_config_dll secur32 enable_secur32 secur32
14526 wine_fn_config_test dlls/secur32/tests secur32_test
14527 wine_fn_config_dll security enable_security
14528 wine_fn_config_dll sensapi enable_sensapi sensapi
14529 wine_fn_config_dll serialui enable_serialui serialui
14530 wine_fn_config_test dlls/serialui/tests serialui_test
14531 wine_fn_config_dll setupapi enable_setupapi setupapi
14532 wine_fn_config_test dlls/setupapi/tests setupapi_test
14533 wine_fn_config_dll setupx.dll16 enable_win16
14534 wine_fn_config_dll sfc enable_sfc sfc
14535 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14536 wine_fn_config_dll shdoclc enable_shdoclc
14537 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14538 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14539 wine_fn_config_dll shell.dll16 enable_win16
14540 wine_fn_config_dll shell32 enable_shell32 shell32
14541 wine_fn_config_test dlls/shell32/tests shell32_test
14542 wine_fn_config_dll shfolder enable_shfolder shfolder
14543 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14544 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14545 wine_fn_config_dll slbcsp enable_slbcsp
14546 wine_fn_config_dll slc enable_slc slc
14547 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14548 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14549 wine_fn_config_dll softpub enable_softpub
14550 wine_fn_config_dll sound.drv16 enable_win16
14551 wine_fn_config_dll spoolss enable_spoolss spoolss
14552 wine_fn_config_test dlls/spoolss/tests spoolss_test
14553 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14554 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14555 wine_fn_config_dll sti enable_sti sti
14556 wine_fn_config_test dlls/sti/tests sti_test
14557 wine_fn_config_dll storage.dll16 enable_win16
14558 wine_fn_config_dll stress.dll16 enable_win16
14559 wine_fn_config_lib strmiids
14560 wine_fn_config_dll svrapi enable_svrapi
14561 wine_fn_config_dll sxs enable_sxs
14562 wine_fn_config_dll system.drv16 enable_win16
14563 wine_fn_config_dll t2embed enable_t2embed
14564 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14565 wine_fn_config_dll toolhelp.dll16 enable_win16
14566 wine_fn_config_dll traffic enable_traffic
14567 wine_fn_config_dll twain.dll16 enable_win16
14568 wine_fn_config_dll twain_32 enable_twain_32
14569 wine_fn_config_test dlls/twain_32/tests twain_32_test
14570 wine_fn_config_dll typelib.dll16 enable_win16
14571 wine_fn_config_dll unicows enable_unicows unicows
14572 wine_fn_config_dll updspapi enable_updspapi
14573 wine_fn_config_dll url enable_url url
14574 wine_fn_config_dll urlmon enable_urlmon urlmon
14575 wine_fn_config_test dlls/urlmon/tests urlmon_test
14576 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14577 wine_fn_config_dll user.exe16 enable_win16
14578 wine_fn_config_dll user32 enable_user32 user32
14579 wine_fn_config_test dlls/user32/tests user32_test
14580 wine_fn_config_dll userenv enable_userenv userenv
14581 wine_fn_config_test dlls/userenv/tests userenv_test
14582 wine_fn_config_dll usp10 enable_usp10 usp10
14583 wine_fn_config_test dlls/usp10/tests usp10_test
14584 wine_fn_config_lib uuid
14585 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14586 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14587 wine_fn_config_dll vdhcp.vxd enable_win16
14588 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14589 wine_fn_config_dll ver.dll16 enable_win16
14590 wine_fn_config_dll version enable_version version
14591 wine_fn_config_test dlls/version/tests version_test
14592 wine_fn_config_dll vmm.vxd enable_win16
14593 wine_fn_config_dll vnbt.vxd enable_win16
14594 wine_fn_config_dll vnetbios.vxd enable_win16
14595 wine_fn_config_dll vtdapi.vxd enable_win16
14596 wine_fn_config_dll vwin32.vxd enable_win16
14597 wine_fn_config_dll w32skrnl enable_win16
14598 wine_fn_config_dll w32sys.dll16 enable_win16
14599 wine_fn_config_dll wbemprox enable_wbemprox
14600 wine_fn_config_dll wiaservc enable_wiaservc
14601 wine_fn_config_dll win32s16.dll16 enable_win16
14602 wine_fn_config_dll win87em.dll16 enable_win16
14603 wine_fn_config_dll winaspi.dll16 enable_win16
14604 wine_fn_config_dll windebug.dll16 enable_win16
14605 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14606 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14607 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14608 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14609 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14610 wine_fn_config_lib winecrt0
14611 wine_fn_config_dll wined3d enable_wined3d wined3d
14612 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14613 wine_fn_config_dll winejack.drv enable_winejack_drv
14614 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14615 wine_fn_config_dll winemapi enable_winemapi
14616 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14617 wine_fn_config_dll winenas.drv enable_winenas_drv
14618 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14619 wine_fn_config_dll wineps.drv enable_wineps_drv
14620 wine_fn_config_dll wineps16.drv16 enable_win16
14621 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14622 wine_fn_config_dll winex11.drv enable_winex11_drv
14623 wine_fn_config_dll wing.dll16 enable_win16
14624 wine_fn_config_dll wing32 enable_wing32
14625 wine_fn_config_dll winhttp enable_winhttp winhttp
14626 wine_fn_config_test dlls/winhttp/tests winhttp_test
14627 wine_fn_config_dll wininet enable_wininet wininet
14628 wine_fn_config_test dlls/wininet/tests wininet_test
14629 wine_fn_config_dll winmm enable_winmm winmm
14630 wine_fn_config_test dlls/winmm/tests winmm_test
14631 wine_fn_config_dll winnls.dll16 enable_win16
14632 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14633 wine_fn_config_dll winscard enable_winscard winscard
14634 wine_fn_config_dll winsock.dll16 enable_win16
14635 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14636 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14637 wine_fn_config_dll wintab.dll16 enable_win16
14638 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14639 wine_fn_config_test dlls/wintab32/tests wintab32_test
14640 wine_fn_config_dll wintrust enable_wintrust wintrust
14641 wine_fn_config_test dlls/wintrust/tests wintrust_test
14642 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14643 wine_fn_config_test dlls/wldap32/tests wldap32_test
14644 wine_fn_config_dll wmi enable_wmi
14645 wine_fn_config_dll wmiutils enable_wmiutils
14646 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14647 wine_fn_config_dll wow32 enable_win16 wow32
14648 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14649 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14650 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14651 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14652 wine_fn_config_dll wuapi enable_wuapi
14653 wine_fn_config_dll wuaueng enable_wuaueng
14654 wine_fn_config_dll xinput1_1 enable_xinput1_1
14655 wine_fn_config_dll xinput1_2 enable_xinput1_2
14656 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14657 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14658 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14659 wine_fn_config_dll xmllite enable_xmllite
14660 wine_fn_config_test dlls/xmllite/tests xmllite_test
14661 wine_fn_config_makefile documentation enable_documentation
14662 wine_fn_config_makefile fonts enable_fonts
14663 wine_fn_config_makefile include enable_include
14664 wine_fn_config_makefile libs/port enable_libs_port
14665 wine_fn_config_makefile libs/wine enable_libs_wine
14666 wine_fn_config_makefile libs/wpp enable_libs_wpp
14667 wine_fn_config_makefile loader enable_loader
14668 wine_fn_config_program attrib enable_attrib install
14669 wine_fn_config_program cacls enable_cacls install
14670 wine_fn_config_program clock enable_clock install
14671 wine_fn_config_program cmd enable_cmd install
14672 wine_fn_config_test programs/cmd/tests cmd.exe_test
14673 wine_fn_config_program cmdlgtst enable_cmdlgtst
14674 wine_fn_config_program control enable_control install
14675 wine_fn_config_program dxdiag enable_dxdiag install
14676 wine_fn_config_program eject enable_eject install
14677 wine_fn_config_program expand enable_expand install
14678 wine_fn_config_program explorer enable_explorer install
14679 wine_fn_config_program extrac32 enable_extrac32 install
14680 wine_fn_config_program hh enable_hh install
14681 wine_fn_config_program icinfo enable_icinfo install
14682 wine_fn_config_program iexplore enable_iexplore install
14683 wine_fn_config_program lodctr enable_lodctr install
14684 wine_fn_config_program mshta enable_mshta install
14685 wine_fn_config_program msiexec enable_msiexec installbin
14686 wine_fn_config_program net enable_net install
14687 wine_fn_config_program ngen enable_ngen install
14688 wine_fn_config_program notepad enable_notepad installbin
14689 wine_fn_config_program oleview enable_oleview install
14690 wine_fn_config_program ping enable_ping install
14691 wine_fn_config_program progman enable_progman install
14692 wine_fn_config_program reg enable_reg install
14693 wine_fn_config_program regedit enable_regedit installbin
14694 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14695 wine_fn_config_program rpcss enable_rpcss install
14696 wine_fn_config_program rundll32 enable_rundll32 install
14697 wine_fn_config_program secedit enable_secedit install
14698 wine_fn_config_program services enable_services install
14699 wine_fn_config_program spoolsv enable_spoolsv install
14700 wine_fn_config_program start enable_start install
14701 wine_fn_config_program svchost enable_svchost install
14702 wine_fn_config_program taskmgr enable_taskmgr install
14703 wine_fn_config_program termsv enable_termsv install
14704 wine_fn_config_program uninstaller enable_uninstaller install
14705 wine_fn_config_program unlodctr enable_unlodctr install
14706 wine_fn_config_program view enable_view
14707 wine_fn_config_program wineboot enable_wineboot installbin
14708 wine_fn_config_program winebrowser enable_winebrowser install
14709 wine_fn_config_program winecfg enable_winecfg installbin
14710 wine_fn_config_program wineconsole enable_wineconsole installbin
14711 wine_fn_config_program winedbg enable_winedbg installbin
14712 wine_fn_config_program winedevice enable_winedevice install
14713 wine_fn_config_program winefile enable_winefile installbin
14714 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14715 wine_fn_config_program winemine enable_winemine installbin
14716 wine_fn_config_program winepath enable_winepath installbin
14717 wine_fn_config_program winetest enable_winetest
14718 wine_fn_config_program winevdm enable_win16 install
14719 wine_fn_config_program winhelp.exe16 enable_win16 install
14720 wine_fn_config_program winhlp32 enable_winhlp32 install
14721 wine_fn_config_program winoldap.mod16 enable_win16 install
14722 wine_fn_config_program winver enable_winver install
14723 wine_fn_config_program wordpad enable_wordpad install
14724 wine_fn_config_program write enable_write install
14725 wine_fn_config_program xcopy enable_xcopy install
14726 wine_fn_config_makefile server enable_server
14727 wine_fn_config_tool tools
14728 wine_fn_config_tool tools/widl
14729 wine_fn_config_tool tools/winebuild
14730 wine_fn_config_tool tools/winedump
14731 wine_fn_config_tool tools/winegcc
14732 wine_fn_config_tool tools/wmc
14733 wine_fn_config_tool tools/wrc
14734
14735 ac_config_commands="$ac_config_commands Makefile"
14736
14737
14738 ac_config_files="$ac_config_files Make.tmp:Makefile.in"
14739
14740
14741
14742 if test -n "$with_wine64"
14743 then
14744 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine32
14745 fonts server:
14746         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
14747 $with_wine64/loader/wine32:
14748         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine32 \$@
14749 clean::
14750         \$(RM) fonts server $with_wine64/loader/wine32"
14751 fi
14752
14753 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14754         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14755
14756 cat >confcache <<\_ACEOF
14757 # This file is a shell script that caches the results of configure
14758 # tests run on this system so they can be shared between configure
14759 # scripts and configure runs, see configure's option --config-cache.
14760 # It is not useful on other systems.  If it contains results you don't
14761 # want to keep, you may remove or edit it.
14762 #
14763 # config.status only pays attention to the cache file if you give it
14764 # the --recheck option to rerun configure.
14765 #
14766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14768 # following values.
14769
14770 _ACEOF
14771
14772 # The following way of writing the cache mishandles newlines in values,
14773 # but we know of no workaround that is simple, portable, and efficient.
14774 # So, we kill variables containing newlines.
14775 # Ultrix sh set writes to stderr and can't be redirected directly,
14776 # and sets the high bit in the cache file unless we assign to the vars.
14777 (
14778   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14779     eval ac_val=\$$ac_var
14780     case $ac_val in #(
14781     *${as_nl}*)
14782       case $ac_var in #(
14783       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14785       esac
14786       case $ac_var in #(
14787       _ | IFS | as_nl) ;; #(
14788       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14789       *) { eval $ac_var=; unset $ac_var;} ;;
14790       esac ;;
14791     esac
14792   done
14793
14794   (set) 2>&1 |
14795     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14796     *${as_nl}ac_space=\ *)
14797       # `set' does not quote correctly, so add quotes: double-quote
14798       # substitution turns \\\\ into \\, and sed turns \\ into \.
14799       sed -n \
14800         "s/'/'\\\\''/g;
14801           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14802       ;; #(
14803     *)
14804       # `set' quotes correctly as required by POSIX, so do not add quotes.
14805       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14806       ;;
14807     esac |
14808     sort
14809 ) |
14810   sed '
14811      /^ac_cv_env_/b end
14812      t clear
14813      :clear
14814      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14815      t end
14816      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14817      :end' >>confcache
14818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14819   if test -w "$cache_file"; then
14820     test "x$cache_file" != "x/dev/null" &&
14821       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14822 $as_echo "$as_me: updating cache $cache_file" >&6;}
14823     cat confcache >$cache_file
14824   else
14825     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14827   fi
14828 fi
14829 rm -f confcache
14830
14831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14832 # Let make expand exec_prefix.
14833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14834
14835 DEFS=-DHAVE_CONFIG_H
14836
14837 ac_libobjs=
14838 ac_ltlibobjs=
14839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14840   # 1. Remove the extension, and $U if already installed.
14841   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14842   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14843   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14844   #    will be set to the directory where LIBOBJS objects are built.
14845   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14846   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14847 done
14848 LIBOBJS=$ac_libobjs
14849
14850 LTLIBOBJS=$ac_ltlibobjs
14851
14852
14853
14854 : ${CONFIG_STATUS=./config.status}
14855 ac_write_fail=0
14856 ac_clean_files_save=$ac_clean_files
14857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14860 as_write_fail=0
14861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14862 #! $SHELL
14863 # Generated by $as_me.
14864 # Run this file to recreate the current configuration.
14865 # Compiler output produced by configure, useful for debugging
14866 # configure, is in config.log if it exists.
14867
14868 debug=false
14869 ac_cs_recheck=false
14870 ac_cs_silent=false
14871
14872 SHELL=\${CONFIG_SHELL-$SHELL}
14873 export SHELL
14874 _ASEOF
14875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14876 ## -------------------- ##
14877 ## M4sh Initialization. ##
14878 ## -------------------- ##
14879
14880 # Be more Bourne compatible
14881 DUALCASE=1; export DUALCASE # for MKS sh
14882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14883   emulate sh
14884   NULLCMD=:
14885   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14886   # is contrary to our usage.  Disable this feature.
14887   alias -g '${1+"$@"}'='"$@"'
14888   setopt NO_GLOB_SUBST
14889 else
14890   case `(set -o) 2>/dev/null` in #(
14891   *posix*) :
14892     set -o posix ;; #(
14893   *) :
14894      ;;
14895 esac
14896 fi
14897
14898
14899 as_nl='
14900 '
14901 export as_nl
14902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14903 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14906 # Prefer a ksh shell builtin over an external printf program on Solaris,
14907 # but without wasting forks for bash or zsh.
14908 if test -z "$BASH_VERSION$ZSH_VERSION" \
14909     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14910   as_echo='print -r --'
14911   as_echo_n='print -rn --'
14912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14913   as_echo='printf %s\n'
14914   as_echo_n='printf %s'
14915 else
14916   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14917     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14918     as_echo_n='/usr/ucb/echo -n'
14919   else
14920     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14921     as_echo_n_body='eval
14922       arg=$1;
14923       case $arg in #(
14924       *"$as_nl"*)
14925         expr "X$arg" : "X\\(.*\\)$as_nl";
14926         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14927       esac;
14928       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14929     '
14930     export as_echo_n_body
14931     as_echo_n='sh -c $as_echo_n_body as_echo'
14932   fi
14933   export as_echo_body
14934   as_echo='sh -c $as_echo_body as_echo'
14935 fi
14936
14937 # The user is always right.
14938 if test "${PATH_SEPARATOR+set}" != set; then
14939   PATH_SEPARATOR=:
14940   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14941     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14942       PATH_SEPARATOR=';'
14943   }
14944 fi
14945
14946
14947 # IFS
14948 # We need space, tab and new line, in precisely that order.  Quoting is
14949 # there to prevent editors from complaining about space-tab.
14950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14951 # splitting by setting IFS to empty value.)
14952 IFS=" ""        $as_nl"
14953
14954 # Find who we are.  Look in the path if we contain no directory separator.
14955 case $0 in #((
14956   *[\\/]* ) as_myself=$0 ;;
14957   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 for as_dir in $PATH
14959 do
14960   IFS=$as_save_IFS
14961   test -z "$as_dir" && as_dir=.
14962     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14963   done
14964 IFS=$as_save_IFS
14965
14966      ;;
14967 esac
14968 # We did not find ourselves, most probably we were run as `sh COMMAND'
14969 # in which case we are not to be found in the path.
14970 if test "x$as_myself" = x; then
14971   as_myself=$0
14972 fi
14973 if test ! -f "$as_myself"; then
14974   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14975   exit 1
14976 fi
14977
14978 # Unset variables that we do not need and which cause bugs (e.g. in
14979 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14980 # suppresses any "Segmentation fault" message there.  '((' could
14981 # trigger a bug in pdksh 5.2.14.
14982 for as_var in BASH_ENV ENV MAIL MAILPATH
14983 do eval test x\${$as_var+set} = xset \
14984   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14985 done
14986 PS1='$ '
14987 PS2='> '
14988 PS4='+ '
14989
14990 # NLS nuisances.
14991 LC_ALL=C
14992 export LC_ALL
14993 LANGUAGE=C
14994 export LANGUAGE
14995
14996 # CDPATH.
14997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14998
14999
15000 # as_fn_error ERROR [LINENO LOG_FD]
15001 # ---------------------------------
15002 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15003 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15004 # script with status $?, using 1 if that was 0.
15005 as_fn_error ()
15006 {
15007   as_status=$?; test $as_status -eq 0 && as_status=1
15008   if test "$3"; then
15009     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15010     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15011   fi
15012   $as_echo "$as_me: error: $1" >&2
15013   as_fn_exit $as_status
15014 } # as_fn_error
15015
15016
15017 # as_fn_set_status STATUS
15018 # -----------------------
15019 # Set $? to STATUS, without forking.
15020 as_fn_set_status ()
15021 {
15022   return $1
15023 } # as_fn_set_status
15024
15025 # as_fn_exit STATUS
15026 # -----------------
15027 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15028 as_fn_exit ()
15029 {
15030   set +e
15031   as_fn_set_status $1
15032   exit $1
15033 } # as_fn_exit
15034
15035 # as_fn_unset VAR
15036 # ---------------
15037 # Portably unset VAR.
15038 as_fn_unset ()
15039 {
15040   { eval $1=; unset $1;}
15041 }
15042 as_unset=as_fn_unset
15043 # as_fn_append VAR VALUE
15044 # ----------------------
15045 # Append the text in VALUE to the end of the definition contained in VAR. Take
15046 # advantage of any shell optimizations that allow amortized linear growth over
15047 # repeated appends, instead of the typical quadratic growth present in naive
15048 # implementations.
15049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15050   eval 'as_fn_append ()
15051   {
15052     eval $1+=\$2
15053   }'
15054 else
15055   as_fn_append ()
15056   {
15057     eval $1=\$$1\$2
15058   }
15059 fi # as_fn_append
15060
15061 # as_fn_arith ARG...
15062 # ------------------
15063 # Perform arithmetic evaluation on the ARGs, and store the result in the
15064 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15065 # must be portable across $(()) and expr.
15066 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15067   eval 'as_fn_arith ()
15068   {
15069     as_val=$(( $* ))
15070   }'
15071 else
15072   as_fn_arith ()
15073   {
15074     as_val=`expr "$@" || test $? -eq 1`
15075   }
15076 fi # as_fn_arith
15077
15078
15079 if expr a : '\(a\)' >/dev/null 2>&1 &&
15080    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15081   as_expr=expr
15082 else
15083   as_expr=false
15084 fi
15085
15086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15087   as_basename=basename
15088 else
15089   as_basename=false
15090 fi
15091
15092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15093   as_dirname=dirname
15094 else
15095   as_dirname=false
15096 fi
15097
15098 as_me=`$as_basename -- "$0" ||
15099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15100          X"$0" : 'X\(//\)$' \| \
15101          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15102 $as_echo X/"$0" |
15103     sed '/^.*\/\([^/][^/]*\)\/*$/{
15104             s//\1/
15105             q
15106           }
15107           /^X\/\(\/\/\)$/{
15108             s//\1/
15109             q
15110           }
15111           /^X\/\(\/\).*/{
15112             s//\1/
15113             q
15114           }
15115           s/.*/./; q'`
15116
15117 # Avoid depending upon Character Ranges.
15118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15121 as_cr_digits='0123456789'
15122 as_cr_alnum=$as_cr_Letters$as_cr_digits
15123
15124 ECHO_C= ECHO_N= ECHO_T=
15125 case `echo -n x` in #(((((
15126 -n*)
15127   case `echo 'xy\c'` in
15128   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15129   xy)  ECHO_C='\c';;
15130   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15131        ECHO_T=' ';;
15132   esac;;
15133 *)
15134   ECHO_N='-n';;
15135 esac
15136
15137 rm -f conf$$ conf$$.exe conf$$.file
15138 if test -d conf$$.dir; then
15139   rm -f conf$$.dir/conf$$.file
15140 else
15141   rm -f conf$$.dir
15142   mkdir conf$$.dir 2>/dev/null
15143 fi
15144 if (echo >conf$$.file) 2>/dev/null; then
15145   if ln -s conf$$.file conf$$ 2>/dev/null; then
15146     as_ln_s='ln -s'
15147     # ... but there are two gotchas:
15148     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15149     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15150     # In both cases, we have to default to `cp -p'.
15151     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15152       as_ln_s='cp -p'
15153   elif ln conf$$.file conf$$ 2>/dev/null; then
15154     as_ln_s=ln
15155   else
15156     as_ln_s='cp -p'
15157   fi
15158 else
15159   as_ln_s='cp -p'
15160 fi
15161 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15162 rmdir conf$$.dir 2>/dev/null
15163
15164
15165 # as_fn_mkdir_p
15166 # -------------
15167 # Create "$as_dir" as a directory, including parents if necessary.
15168 as_fn_mkdir_p ()
15169 {
15170
15171   case $as_dir in #(
15172   -*) as_dir=./$as_dir;;
15173   esac
15174   test -d "$as_dir" || eval $as_mkdir_p || {
15175     as_dirs=
15176     while :; do
15177       case $as_dir in #(
15178       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15179       *) as_qdir=$as_dir;;
15180       esac
15181       as_dirs="'$as_qdir' $as_dirs"
15182       as_dir=`$as_dirname -- "$as_dir" ||
15183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15184          X"$as_dir" : 'X\(//\)[^/]' \| \
15185          X"$as_dir" : 'X\(//\)$' \| \
15186          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15187 $as_echo X"$as_dir" |
15188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15189             s//\1/
15190             q
15191           }
15192           /^X\(\/\/\)[^/].*/{
15193             s//\1/
15194             q
15195           }
15196           /^X\(\/\/\)$/{
15197             s//\1/
15198             q
15199           }
15200           /^X\(\/\).*/{
15201             s//\1/
15202             q
15203           }
15204           s/.*/./; q'`
15205       test -d "$as_dir" && break
15206     done
15207     test -z "$as_dirs" || eval "mkdir $as_dirs"
15208   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15209
15210
15211 } # as_fn_mkdir_p
15212 if mkdir -p . 2>/dev/null; then
15213   as_mkdir_p='mkdir -p "$as_dir"'
15214 else
15215   test -d ./-p && rmdir ./-p
15216   as_mkdir_p=false
15217 fi
15218
15219 if test -x / >/dev/null 2>&1; then
15220   as_test_x='test -x'
15221 else
15222   if ls -dL / >/dev/null 2>&1; then
15223     as_ls_L_option=L
15224   else
15225     as_ls_L_option=
15226   fi
15227   as_test_x='
15228     eval sh -c '\''
15229       if test -d "$1"; then
15230         test -d "$1/.";
15231       else
15232         case $1 in #(
15233         -*)set "./$1";;
15234         esac;
15235         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15236         ???[sx]*):;;*)false;;esac;fi
15237     '\'' sh
15238   '
15239 fi
15240 as_executable_p=$as_test_x
15241
15242 # Sed expression to map a string onto a valid CPP name.
15243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15244
15245 # Sed expression to map a string onto a valid variable name.
15246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15247
15248
15249 exec 6>&1
15250 ## ----------------------------------- ##
15251 ## Main body of $CONFIG_STATUS script. ##
15252 ## ----------------------------------- ##
15253 _ASEOF
15254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15255
15256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15257 # Save the log message, to keep $0 and so on meaningful, and to
15258 # report actual input values of CONFIG_FILES etc. instead of their
15259 # values after options handling.
15260 ac_log="
15261 This file was extended by Wine $as_me 1.1.42, which was
15262 generated by GNU Autoconf 2.65.  Invocation command line was
15263
15264   CONFIG_FILES    = $CONFIG_FILES
15265   CONFIG_HEADERS  = $CONFIG_HEADERS
15266   CONFIG_LINKS    = $CONFIG_LINKS
15267   CONFIG_COMMANDS = $CONFIG_COMMANDS
15268   $ $0 $@
15269
15270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15271 "
15272
15273 _ACEOF
15274
15275 case $ac_config_files in *"
15276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15277 esac
15278
15279 case $ac_config_headers in *"
15280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15281 esac
15282
15283
15284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285 # Files that config.status was made for.
15286 config_files="$ac_config_files"
15287 config_headers="$ac_config_headers"
15288 config_links="$ac_config_links"
15289 config_commands="$ac_config_commands"
15290
15291 _ACEOF
15292
15293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15294 ac_cs_usage="\
15295 \`$as_me' instantiates files and other configuration actions
15296 from templates according to the current configuration.  Unless the files
15297 and actions are specified as TAGs, all are instantiated by default.
15298
15299 Usage: $0 [OPTION]... [TAG]...
15300
15301   -h, --help       print this help, then exit
15302   -V, --version    print version number and configuration settings, then exit
15303       --config     print configuration, then exit
15304   -q, --quiet, --silent
15305                    do not print progress messages
15306   -d, --debug      don't remove temporary files
15307       --recheck    update $as_me by reconfiguring in the same conditions
15308       --file=FILE[:TEMPLATE]
15309                    instantiate the configuration file FILE
15310       --header=FILE[:TEMPLATE]
15311                    instantiate the configuration header FILE
15312
15313 Configuration files:
15314 $config_files
15315
15316 Configuration headers:
15317 $config_headers
15318
15319 Configuration links:
15320 $config_links
15321
15322 Configuration commands:
15323 $config_commands
15324
15325 Report bugs to <wine-devel@winehq.org>.
15326 Wine home page: <http://www.winehq.org>."
15327
15328 _ACEOF
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15331 ac_cs_version="\\
15332 Wine config.status 1.1.42
15333 configured by $0, generated by GNU Autoconf 2.65,
15334   with options \\"\$ac_cs_config\\"
15335
15336 Copyright (C) 2009 Free Software Foundation, Inc.
15337 This config.status script is free software; the Free Software Foundation
15338 gives unlimited permission to copy, distribute and modify it."
15339
15340 ac_pwd='$ac_pwd'
15341 srcdir='$srcdir'
15342 INSTALL='$INSTALL'
15343 test -n "\$AWK" || AWK=awk
15344 _ACEOF
15345
15346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15347 # The default lists apply if the user does not specify any file.
15348 ac_need_defaults=:
15349 while test $# != 0
15350 do
15351   case $1 in
15352   --*=*)
15353     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15354     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15355     ac_shift=:
15356     ;;
15357   *)
15358     ac_option=$1
15359     ac_optarg=$2
15360     ac_shift=shift
15361     ;;
15362   esac
15363
15364   case $ac_option in
15365   # Handling of the options.
15366   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15367     ac_cs_recheck=: ;;
15368   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15369     $as_echo "$ac_cs_version"; exit ;;
15370   --config | --confi | --conf | --con | --co | --c )
15371     $as_echo "$ac_cs_config"; exit ;;
15372   --debug | --debu | --deb | --de | --d | -d )
15373     debug=: ;;
15374   --file | --fil | --fi | --f )
15375     $ac_shift
15376     case $ac_optarg in
15377     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15378     esac
15379     as_fn_append CONFIG_FILES " '$ac_optarg'"
15380     ac_need_defaults=false;;
15381   --header | --heade | --head | --hea )
15382     $ac_shift
15383     case $ac_optarg in
15384     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15385     esac
15386     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15387     ac_need_defaults=false;;
15388   --he | --h)
15389     # Conflict between --help and --header
15390     as_fn_error "ambiguous option: \`$1'
15391 Try \`$0 --help' for more information.";;
15392   --help | --hel | -h )
15393     $as_echo "$ac_cs_usage"; exit ;;
15394   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15395   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15396     ac_cs_silent=: ;;
15397
15398   # This is an error.
15399   -*) as_fn_error "unrecognized option: \`$1'
15400 Try \`$0 --help' for more information." ;;
15401
15402   *) as_fn_append ac_config_targets " $1"
15403      ac_need_defaults=false ;;
15404
15405   esac
15406   shift
15407 done
15408
15409 ac_configure_extra_args=
15410
15411 if $ac_cs_silent; then
15412   exec 6>/dev/null
15413   ac_configure_extra_args="$ac_configure_extra_args --silent"
15414 fi
15415
15416 _ACEOF
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418 if \$ac_cs_recheck; then
15419   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15420   shift
15421   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15422   CONFIG_SHELL='$SHELL'
15423   export CONFIG_SHELL
15424   exec "\$@"
15425 fi
15426
15427 _ACEOF
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 exec 5>>config.log
15430 {
15431   echo
15432   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15433 ## Running $as_me. ##
15434 _ASBOX
15435   $as_echo "$ac_log"
15436 } >&5
15437
15438 _ACEOF
15439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15440 #
15441 # INIT-COMMANDS
15442 #
15443 wine_fn_output_makefile ()
15444 {
15445     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15446 $ALL_MAKEFILE_DEPENDS
15447 _WINE_EOF
15448     as_fn_error "could not create Makefile" "$LINENO" 5
15449 }
15450
15451 _ACEOF
15452
15453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15454
15455 # Handling of arguments.
15456 for ac_config_target in $ac_config_targets
15457 do
15458   case $ac_config_target in
15459     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15460     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15461     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15462     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15463     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15464     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15465     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15466     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15467     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15468     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15469     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15470     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15471     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15472     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15473     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15474     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15475     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15476     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15477     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15478     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15479     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
15480
15481   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15482   esac
15483 done
15484
15485
15486 # If the user did not use the arguments to specify the items to instantiate,
15487 # then the envvar interface is used.  Set only those that are not.
15488 # We use the long form for the default assignment because of an extremely
15489 # bizarre bug on SunOS 4.1.3.
15490 if $ac_need_defaults; then
15491   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15492   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15493   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15494   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15495 fi
15496
15497 # Have a temporary directory for convenience.  Make it in the build tree
15498 # simply because there is no reason against having it here, and in addition,
15499 # creating and moving files from /tmp can sometimes cause problems.
15500 # Hook for its removal unless debugging.
15501 # Note that there is a small window in which the directory will not be cleaned:
15502 # after its creation but before its name has been assigned to `$tmp'.
15503 $debug ||
15504 {
15505   tmp=
15506   trap 'exit_status=$?
15507   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15508 ' 0
15509   trap 'as_fn_exit 1' 1 2 13 15
15510 }
15511 # Create a (secure) tmp directory for tmp files.
15512
15513 {
15514   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15515   test -n "$tmp" && test -d "$tmp"
15516 }  ||
15517 {
15518   tmp=./conf$$-$RANDOM
15519   (umask 077 && mkdir "$tmp")
15520 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15521
15522 # Set up the scripts for CONFIG_FILES section.
15523 # No need to generate them if there are no CONFIG_FILES.
15524 # This happens for instance with `./config.status config.h'.
15525 if test -n "$CONFIG_FILES"; then
15526
15527 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15528   ac_cs_awk_getline=:
15529   ac_cs_awk_pipe_init=
15530   ac_cs_awk_read_file='
15531       while ((getline aline < (F[key])) > 0)
15532         print(aline)
15533       close(F[key])'
15534   ac_cs_awk_pipe_fini=
15535 else
15536   ac_cs_awk_getline=false
15537   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15538   ac_cs_awk_read_file='
15539       print "|#_!!_#|"
15540       print "cat " F[key] " &&"
15541       '$ac_cs_awk_pipe_init
15542   # The final `:' finishes the AND list.
15543   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15544 fi
15545 ac_cr=`echo X | tr X '\015'`
15546 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15547 # But we know of no other shell where ac_cr would be empty at this
15548 # point, so we can use a bashism as a fallback.
15549 if test "x$ac_cr" = x; then
15550   eval ac_cr=\$\'\\r\'
15551 fi
15552 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15553 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15554   ac_cs_awk_cr='\r'
15555 else
15556   ac_cs_awk_cr=$ac_cr
15557 fi
15558
15559 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15560 _ACEOF
15561
15562 # Create commands to substitute file output variables.
15563 {
15564   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15565   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15566   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15567   echo "_ACAWK" &&
15568   echo "_ACEOF"
15569 } >conf$$files.sh &&
15570 . ./conf$$files.sh ||
15571   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572 rm -f conf$$files.sh
15573
15574 {
15575   echo "cat >conf$$subs.awk <<_ACEOF" &&
15576   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15577   echo "_ACEOF"
15578 } >conf$$subs.sh ||
15579   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15581 ac_delim='%!_!# '
15582 for ac_last_try in false false false false false :; do
15583   . ./conf$$subs.sh ||
15584     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15585
15586   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15587   if test $ac_delim_n = $ac_delim_num; then
15588     break
15589   elif $ac_last_try; then
15590     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15591   else
15592     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15593   fi
15594 done
15595 rm -f conf$$subs.sh
15596
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15599 _ACEOF
15600 sed -n '
15601 h
15602 s/^/S["/; s/!.*/"]=/
15603 p
15604 g
15605 s/^[^!]*!//
15606 :repl
15607 t repl
15608 s/'"$ac_delim"'$//
15609 t delim
15610 :nl
15611 h
15612 s/\(.\{148\}\)..*/\1/
15613 t more1
15614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15615 p
15616 n
15617 b repl
15618 :more1
15619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620 p
15621 g
15622 s/.\{148\}//
15623 t nl
15624 :delim
15625 h
15626 s/\(.\{148\}\)..*/\1/
15627 t more2
15628 s/["\\]/\\&/g; s/^/"/; s/$/"/
15629 p
15630 b
15631 :more2
15632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15633 p
15634 g
15635 s/.\{148\}//
15636 t delim
15637 ' <conf$$subs.awk | sed '
15638 /^[^""]/{
15639   N
15640   s/\n//
15641 }
15642 ' >>$CONFIG_STATUS || ac_write_fail=1
15643 rm -f conf$$subs.awk
15644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 _ACAWK
15646 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15647   for (key in S) S_is_set[key] = 1
15648   FS = "\a"
15649   \$ac_cs_awk_pipe_init
15650 }
15651 {
15652   line = $ 0
15653   nfields = split(line, field, "@")
15654   substed = 0
15655   len = length(field[1])
15656   for (i = 2; i < nfields; i++) {
15657     key = field[i]
15658     keylen = length(key)
15659     if (S_is_set[key]) {
15660       value = S[key]
15661       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15662       len += length(value) + length(field[++i])
15663       substed = 1
15664     } else
15665       len += 1 + keylen
15666   }
15667   if (nfields == 3 && !substed) {
15668     key = field[2]
15669     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15670       \$ac_cs_awk_read_file
15671       next
15672     }
15673   }
15674   print line
15675 }
15676 \$ac_cs_awk_pipe_fini
15677 _ACAWK
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15681   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15682 else
15683   cat
15684 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15685   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15686 _ACEOF
15687
15688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15690 # trailing colons and then remove the whole line if VPATH becomes empty
15691 # (actually we leave an empty line to preserve line numbers).
15692 if test "x$srcdir" = x.; then
15693   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15694 s/:*\$(srcdir):*/:/
15695 s/:*\${srcdir}:*/:/
15696 s/:*@srcdir@:*/:/
15697 s/^\([^=]*=[     ]*\):*/\1/
15698 s/:*$//
15699 s/^[^=]*=[       ]*$//
15700 }'
15701 fi
15702
15703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15704 fi # test -n "$CONFIG_FILES"
15705
15706 # Set up the scripts for CONFIG_HEADERS section.
15707 # No need to generate them if there are no CONFIG_HEADERS.
15708 # This happens for instance with `./config.status Makefile'.
15709 if test -n "$CONFIG_HEADERS"; then
15710 cat >"$tmp/defines.awk" <<\_ACAWK ||
15711 BEGIN {
15712 _ACEOF
15713
15714 # Transform confdefs.h into an awk script `defines.awk', embedded as
15715 # here-document in config.status, that substitutes the proper values into
15716 # config.h.in to produce config.h.
15717
15718 # Create a delimiter string that does not exist in confdefs.h, to ease
15719 # handling of long lines.
15720 ac_delim='%!_!# '
15721 for ac_last_try in false false :; do
15722   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15723   if test -z "$ac_t"; then
15724     break
15725   elif $ac_last_try; then
15726     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15727   else
15728     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15729   fi
15730 done
15731
15732 # For the awk script, D is an array of macro values keyed by name,
15733 # likewise P contains macro parameters if any.  Preserve backslash
15734 # newline sequences.
15735
15736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15737 sed -n '
15738 s/.\{148\}/&'"$ac_delim"'/g
15739 t rset
15740 :rset
15741 s/^[     ]*#[    ]*define[       ][      ]*/ /
15742 t def
15743 d
15744 :def
15745 s/\\$//
15746 t bsnl
15747 s/["\\]/\\&/g
15748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15749 D["\1"]=" \3"/p
15750 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15751 d
15752 :bsnl
15753 s/["\\]/\\&/g
15754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15755 D["\1"]=" \3\\\\\\n"\\/p
15756 t cont
15757 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15758 t cont
15759 d
15760 :cont
15761 n
15762 s/.\{148\}/&'"$ac_delim"'/g
15763 t clear
15764 :clear
15765 s/\\$//
15766 t bsnlc
15767 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15768 d
15769 :bsnlc
15770 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15771 b cont
15772 ' <confdefs.h | sed '
15773 s/'"$ac_delim"'/"\\\
15774 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15775
15776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15777   for (key in D) D_is_set[key] = 1
15778   FS = "\a"
15779 }
15780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15781   line = \$ 0
15782   split(line, arg, " ")
15783   if (arg[1] == "#") {
15784     defundef = arg[2]
15785     mac1 = arg[3]
15786   } else {
15787     defundef = substr(arg[1], 2)
15788     mac1 = arg[2]
15789   }
15790   split(mac1, mac2, "(") #)
15791   macro = mac2[1]
15792   prefix = substr(line, 1, index(line, defundef) - 1)
15793   if (D_is_set[macro]) {
15794     # Preserve the white space surrounding the "#".
15795     print prefix "define", macro P[macro] D[macro]
15796     next
15797   } else {
15798     # Replace #undef with comments.  This is necessary, for example,
15799     # in the case of _POSIX_SOURCE, which is predefined and required
15800     # on some systems where configure will not decide to define it.
15801     if (defundef == "undef") {
15802       print "/*", prefix defundef, macro, "*/"
15803       next
15804     }
15805   }
15806 }
15807 { print }
15808 _ACAWK
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15812 fi # test -n "$CONFIG_HEADERS"
15813
15814
15815 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15816 shift
15817 for ac_tag
15818 do
15819   case $ac_tag in
15820   :[FHLC]) ac_mode=$ac_tag; continue;;
15821   esac
15822   case $ac_mode$ac_tag in
15823   :[FHL]*:*);;
15824   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15825   :[FH]-) ac_tag=-:-;;
15826   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15827   esac
15828   ac_save_IFS=$IFS
15829   IFS=:
15830   set x $ac_tag
15831   IFS=$ac_save_IFS
15832   shift
15833   ac_file=$1
15834   shift
15835
15836   case $ac_mode in
15837   :L) ac_source=$1;;
15838   :[FH])
15839     ac_file_inputs=
15840     for ac_f
15841     do
15842       case $ac_f in
15843       -) ac_f="$tmp/stdin";;
15844       *) # Look for the file first in the build tree, then in the source tree
15845          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15846          # because $ac_f cannot contain `:'.
15847          test -f "$ac_f" ||
15848            case $ac_f in
15849            [\\/$]*) false;;
15850            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15851            esac ||
15852            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15853       esac
15854       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15855       as_fn_append ac_file_inputs " '$ac_f'"
15856     done
15857
15858     # Let's still pretend it is `configure' which instantiates (i.e., don't
15859     # use $as_me), people would be surprised to read:
15860     #    /* config.h.  Generated by config.status.  */
15861     configure_input='Generated from '`
15862           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15863         `' by configure.'
15864     if test x"$ac_file" != x-; then
15865       configure_input="$ac_file.  $configure_input"
15866       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15867 $as_echo "$as_me: creating $ac_file" >&6;}
15868     fi
15869     # Neutralize special characters interpreted by sed in replacement strings.
15870     case $configure_input in #(
15871     *\&* | *\|* | *\\* )
15872        ac_sed_conf_input=`$as_echo "$configure_input" |
15873        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15874     *) ac_sed_conf_input=$configure_input;;
15875     esac
15876
15877     case $ac_tag in
15878     *:-:* | *:-) cat >"$tmp/stdin" \
15879       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15880     esac
15881     ;;
15882   esac
15883
15884   ac_dir=`$as_dirname -- "$ac_file" ||
15885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15886          X"$ac_file" : 'X\(//\)[^/]' \| \
15887          X"$ac_file" : 'X\(//\)$' \| \
15888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15889 $as_echo X"$ac_file" |
15890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15891             s//\1/
15892             q
15893           }
15894           /^X\(\/\/\)[^/].*/{
15895             s//\1/
15896             q
15897           }
15898           /^X\(\/\/\)$/{
15899             s//\1/
15900             q
15901           }
15902           /^X\(\/\).*/{
15903             s//\1/
15904             q
15905           }
15906           s/.*/./; q'`
15907   as_dir="$ac_dir"; as_fn_mkdir_p
15908   ac_builddir=.
15909
15910 case "$ac_dir" in
15911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15912 *)
15913   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15914   # A ".." for each directory in $ac_dir_suffix.
15915   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15916   case $ac_top_builddir_sub in
15917   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15918   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15919   esac ;;
15920 esac
15921 ac_abs_top_builddir=$ac_pwd
15922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15923 # for backward compatibility:
15924 ac_top_builddir=$ac_top_build_prefix
15925
15926 case $srcdir in
15927   .)  # We are building in place.
15928     ac_srcdir=.
15929     ac_top_srcdir=$ac_top_builddir_sub
15930     ac_abs_top_srcdir=$ac_pwd ;;
15931   [\\/]* | ?:[\\/]* )  # Absolute name.
15932     ac_srcdir=$srcdir$ac_dir_suffix;
15933     ac_top_srcdir=$srcdir
15934     ac_abs_top_srcdir=$srcdir ;;
15935   *) # Relative name.
15936     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15937     ac_top_srcdir=$ac_top_build_prefix$srcdir
15938     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15939 esac
15940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15941
15942
15943   case $ac_mode in
15944   :F)
15945   #
15946   # CONFIG_FILE
15947   #
15948
15949   case $INSTALL in
15950   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15951   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15952   esac
15953 _ACEOF
15954
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 # If the template does not know about datarootdir, expand it.
15957 # FIXME: This hack should be removed a few years after 2.60.
15958 ac_datarootdir_hack=; ac_datarootdir_seen=
15959 ac_sed_dataroot='
15960 /datarootdir/ {
15961   p
15962   q
15963 }
15964 /@datadir@/p
15965 /@docdir@/p
15966 /@infodir@/p
15967 /@localedir@/p
15968 /@mandir@/p'
15969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15970 *datarootdir*) ac_datarootdir_seen=yes;;
15971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15972   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976   ac_datarootdir_hack='
15977   s&@datadir@&$datadir&g
15978   s&@docdir@&$docdir&g
15979   s&@infodir@&$infodir&g
15980   s&@localedir@&$localedir&g
15981   s&@mandir@&$mandir&g
15982   s&\\\${datarootdir}&$datarootdir&g' ;;
15983 esac
15984 _ACEOF
15985
15986 # Neutralize VPATH when `$srcdir' = `.'.
15987 # Shell code in configure.ac might set extrasub.
15988 # FIXME: do we really want to maintain this feature?
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 ac_sed_extra="$ac_vpsub
15991 $extrasub
15992 _ACEOF
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 :t
15995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15996 s|@configure_input@|$ac_sed_conf_input|;t t
15997 s&@top_builddir@&$ac_top_builddir_sub&;t t
15998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15999 s&@srcdir@&$ac_srcdir&;t t
16000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16001 s&@top_srcdir@&$ac_top_srcdir&;t t
16002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16003 s&@builddir@&$ac_builddir&;t t
16004 s&@abs_builddir@&$ac_abs_builddir&;t t
16005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16006 s&@INSTALL@&$ac_INSTALL&;t t
16007 $ac_datarootdir_hack
16008 "
16009 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16010 if $ac_cs_awk_getline; then
16011   $AWK -f "$tmp/subs.awk"
16012 else
16013   $AWK -f "$tmp/subs.awk" | $SHELL
16014 fi >$tmp/out \
16015   || as_fn_error "could not create $ac_file" "$LINENO" 5
16016
16017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16018   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16019   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16021 which seems to be undefined.  Please make sure it is defined." >&5
16022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16023 which seems to be undefined.  Please make sure it is defined." >&2;}
16024
16025   rm -f "$tmp/stdin"
16026   case $ac_file in
16027   -) cat "$tmp/out" && rm -f "$tmp/out";;
16028   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16029   esac \
16030   || as_fn_error "could not create $ac_file" "$LINENO" 5
16031  ;;
16032   :H)
16033   #
16034   # CONFIG_HEADER
16035   #
16036   if test x"$ac_file" != x-; then
16037     {
16038       $as_echo "/* $configure_input  */" \
16039       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16040     } >"$tmp/config.h" \
16041       || as_fn_error "could not create $ac_file" "$LINENO" 5
16042     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16043       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16045     else
16046       rm -f "$ac_file"
16047       mv "$tmp/config.h" "$ac_file" \
16048         || as_fn_error "could not create $ac_file" "$LINENO" 5
16049     fi
16050   else
16051     $as_echo "/* $configure_input  */" \
16052       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16053       || as_fn_error "could not create -" "$LINENO" 5
16054   fi
16055  ;;
16056   :L)
16057   #
16058   # CONFIG_LINK
16059   #
16060
16061   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16062     :
16063   else
16064     # Prefer the file from the source tree if names are identical.
16065     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16066       ac_source=$srcdir/$ac_source
16067     fi
16068
16069     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16070 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16071
16072     if test ! -r "$ac_source"; then
16073       as_fn_error "$ac_source: file not found" "$LINENO" 5
16074     fi
16075     rm -f "$ac_file"
16076
16077     # Try a relative symlink, then a hard link, then a copy.
16078     case $srcdir in
16079     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16080         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16081     esac
16082     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16083       ln "$ac_source" "$ac_file" 2>/dev/null ||
16084       cp -p "$ac_source" "$ac_file" ||
16085       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16086   fi
16087  ;;
16088   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16089 $as_echo "$as_me: executing $ac_file commands" >&6;}
16090  ;;
16091   esac
16092
16093
16094   case $ac_file$ac_mode in
16095     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16096     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16097 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16098     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16099 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16100     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16101 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16102     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16103 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16104     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16105 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16106     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16107 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16108     "Makefile":C) wine_fn_output_makefile Makefile ;;
16109
16110   esac
16111 done # for ac_tag
16112
16113
16114 as_fn_exit 0
16115 _ACEOF
16116 ac_clean_files=$ac_clean_files_save
16117
16118 test $ac_write_fail = 0 ||
16119   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16120
16121
16122 # configure is writing to config.log, and then calls config.status.
16123 # config.status does its own redirection, appending to config.log.
16124 # Unfortunately, on DOS this fails, as config.log is still kept open
16125 # by configure, so config.status won't be able to write to it; its
16126 # output is simply discarded.  So we exec the FD to /dev/null,
16127 # effectively closing config.log, so it can be properly (re)opened and
16128 # appended to by config.status.  When coming back to configure, we
16129 # need to make the FD available again.
16130 if test "$no_create" != yes; then
16131   ac_cs_success=:
16132   ac_config_status_args=
16133   test "$silent" = yes &&
16134     ac_config_status_args="$ac_config_status_args --quiet"
16135   exec 5>/dev/null
16136   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16137   exec 5>>config.log
16138   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16139   # would make configure fail if this is the last instruction.
16140   $ac_cs_success || as_fn_exit $?
16141 fi
16142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16145 fi
16146
16147
16148 if test "$no_create" = "yes"
16149 then
16150   exit 0
16151 fi
16152
16153 ac_save_IFS="$IFS"
16154 if test "x$wine_notices != "x; then
16155     echo >&6
16156     IFS="|"
16157     for msg in $wine_notices; do
16158         IFS="$ac_save_IFS"
16159         if test -n "$msg"; then
16160             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16161 $as_echo "$as_me: $msg" >&6;}
16162         fi
16163     done
16164 fi
16165 IFS="|"
16166 for msg in $wine_warnings; do
16167     IFS="$ac_save_IFS"
16168     if test -n "$msg"; then
16169         echo >&2
16170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16171 $as_echo "$as_me: WARNING: $msg" >&2;}
16172     fi
16173 done
16174 IFS="$ac_save_IFS"
16175
16176 echo "
16177 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16178 " >&6
16179