makefiles: Output all the tool install rules explicitly for each module.
[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.41.
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.41'
556 PACKAGE_STRING='Wine 1.1.41'
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_PROGRAM_BIN_INSTALL_DIRS
600 ALL_TEST_BINARIES
601 ALL_DLL_DIRS
602 ALL_TOP_DIRS
603 ALL_DIRS
604 ALL_SYMLINKS
605 ALL_MAKERULES
606 ALL_WINETEST_DEPENDS
607 ALL_MAKEFILE_DEPENDS
608 LDAPLIBS
609 LIBPOLL
610 LIBDL
611 EXTRA_BINARIES
612 MAIN_BINARY
613 SOCKETLIBS
614 CRTLIBS
615 TOOLSEXT
616 LDPATH
617 BUILTINFLAG
618 EXTRACFLAGS
619 LIBKSTAT
620 LIBMPG123
621 PNGINCL
622 FONTCONFIGINCL
623 CUPSINCL
624 AUDIOIOLIBS
625 ALSALIBS
626 ESDLIBS
627 ESDINCL
628 ESDCONFIG
629 ZLIB
630 FREETYPEINCL
631 FREETYPELIBS
632 ft_devel
633 LCMSLIBS
634 RESOLVLIBS
635 GPHOTO2INCL
636 GPHOTO2LIBS
637 gphoto2port_devel
638 gphoto2_devel
639 SANEINCL
640 sane_devel
641 GNUTLSINCL
642 HALINCL
643 XSLTINCL
644 XML2INCL
645 XML2LIBS
646 NASLIBS
647 X_EXTRA_LIBS
648 X_LIBS
649 X_PRE_LIBS
650 X_CFLAGS
651 XMKMF
652 LIBPTHREAD
653 CROSSTARGET
654 CROSSTEST
655 CROSSCC
656 CARBONLIB
657 LIBOPENAL
658 COREAUDIO
659 DISKARBITRATIONLIB
660 LDEXECFLAGS
661 IOKITLIB
662 COREFOUNDATIONLIB
663 SECURITYLIB
664 DLLWRAP
665 DLLTOOL
666 LDD
667 LDRPATH_LOCAL
668 LDRPATH_INSTALL
669 IMPLIBEXT
670 LIBEXT
671 LDDLLFLAGS
672 LDSHARED
673 DLLFLAGS
674 DLLEXT
675 CPP
676 OPENGL_LIBS
677 XLIB
678 PRELINK
679 ICOTOOL
680 RSVG
681 PKG_CONFIG
682 FONTFORGE
683 LINTFLAGS
684 LINT
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 LDCONFIG
689 EGREP
690 GREP
691 LN_S
692 STRIP
693 RANLIB
694 ARFLAGS
695 ac_ct_AR
696 AR
697 BISON
698 FLEX
699 TOOLSDIR
700 WOW64_DISABLE
701 TARGETFLAGS
702 CPPBIN
703 ac_ct_CXX
704 CXXFLAGS
705 CXX
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 SET_MAKE
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 MAINTAINER_MODE
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files='MAKE_RULES
762 MAKE_TEST_RULES
763 MAKE_DLL_RULES
764 MAKE_IMPLIB_RULES
765 MAKE_PROG_RULES'
766 ac_user_opts='
767 enable_option_checking
768 enable_win16
769 enable_win64
770 enable_tests
771 enable_maintainer_mode
772 with_alsa
773 with_audioio
774 with_capi
775 with_cms
776 with_coreaudio
777 with_cups
778 with_curses
779 with_esd
780 with_fontconfig
781 with_freetype
782 with_gphoto
783 with_glu
784 with_gnutls
785 with_gsm
786 with_hal
787 with_jack
788 with_jpeg
789 with_ldap
790 with_mpg123
791 with_nas
792 with_openal
793 with_opengl
794 with_openssl
795 with_oss
796 with_png
797 with_pthread
798 with_sane
799 with_tiff
800 with_v4l
801 with_xcomposite
802 with_xcursor
803 with_xinerama
804 with_xinput
805 with_xml
806 with_xrandr
807 with_xrender
808 with_xshape
809 with_xshm
810 with_xslt
811 with_xxf86vm
812 with_wine_tools
813 with_wine64
814 enable_largefile
815 with_x
816 '
817       ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP
829 XMKMF'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949
950   -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954
955   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959
960   -enable-* | --enable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975
976   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978   | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982   | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984
985   -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988
989   -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995
996   -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998   -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000
1001   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004   | --ht=*)
1005     htmldir=$ac_optarg ;;
1006
1007   -includedir | --includedir | --includedi | --included | --include \
1008   | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011   | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013
1014   -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018
1019   -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023
1024   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025   | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028   | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030
1031   -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035
1036   -localstatedir | --localstatedir | --localstatedi | --localstated \
1037   | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042
1043   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047
1048   -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051
1052   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053   | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055
1056   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059
1060   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062   | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068
1069   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073
1074   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075   | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080
1081   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082   | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087
1088   -program-transform-name | --program-transform-name \
1089   | --program-transform-nam | --program-transform-na \
1090   | --program-transform-n | --program-transform- \
1091   | --program-transform | --program-transfor \
1092   | --program-transfo | --program-transf \
1093   | --program-trans | --program-tran \
1094   | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096   -program-transform-name=* | --program-transform-name=* \
1097   | --program-transform-nam=* | --program-transform-na=* \
1098   | --program-transform-n=* | --program-transform-=* \
1099   | --program-transform=* | --program-transfor=* \
1100   | --program-transfo=* | --program-transf=* \
1101   | --program-trans=* | --program-tran=* \
1102   | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104
1105   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109
1110   -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114
1115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116   | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118
1119   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122   | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124
1125   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127   | --sharedst | --shareds | --shared | --share | --shar \
1128   | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133   | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135
1136   -site | --site | --sit)
1137     ac_prev=site ;;
1138   -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140
1141   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145
1146   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147   | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152
1153   -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157
1158   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160
1161   -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163
1164   -with-* | --with-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1216     ;;
1217
1218   *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221     case $ac_envvar in #(
1222       '' | [0-9]* | *[!_$as_cr_alnum]* )
1223       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224     esac
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   as_fn_error "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245   case $enable_option_checking in
1246     no) ;;
1247     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249   esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                 datadir sysconfdir sharedstatedir localstatedir includedir \
1255                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                 libdir localedir mandir
1257 do
1258   eval ac_val=\$$ac_var
1259   # Remove trailing slashes.
1260   case $ac_val in
1261     */ )
1262       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263       eval $ac_var=\$ac_val;;
1264   esac
1265   # Be sure to have absolute directory names.
1266   case $ac_val in
1267     [\\/$]* | ?:[\\/]* )  continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269   esac
1270   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285     If a cross compiler is detected then cross compile mode will be used." >&2
1286   elif test "x$build_alias" != "x$host_alias"; then
1287     cross_compiling=yes
1288   fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300   as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302   as_fn_error "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307   ac_srcdir_defaulted=yes
1308   # Try the directory containing this script, then the parent directory.
1309   ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311          X"$as_myself" : 'X\(//\)[^/]' \| \
1312          X"$as_myself" : 'X\(//\)$' \| \
1313          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\/\)[^/].*/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\).*/{
1328             s//\1/
1329             q
1330           }
1331           s/.*/./; q'`
1332   srcdir=$ac_confdir
1333   if test ! -r "$srcdir/$ac_unique_file"; then
1334     srcdir=..
1335   fi
1336 else
1337   ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346         pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349   srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_env_${ac_var}_value=\$${ac_var}
1360   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368   # Omit some internal or obsolete options to make the list less imposing.
1369   # This message is too long to be a string in the A/UX 3.1 sh.
1370   cat <<_ACEOF
1371 \`configure' configures Wine 1.1.41 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE.  See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381   -h, --help              display this help and exit
1382       --help=short        display options specific to this package
1383       --help=recursive    display the short help of all the included packages
1384   -V, --version           display version information and exit
1385   -q, --quiet, --silent   do not print \`checking...' messages
1386       --cache-file=FILE   cache test results in FILE [disabled]
1387   -C, --config-cache      alias for \`--cache-file=config.cache'
1388   -n, --no-create         do not create output files
1389       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392   --prefix=PREFIX         install architecture-independent files in PREFIX
1393                           [$ac_default_prefix]
1394   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1395                           [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405   --bindir=DIR            user executables [EPREFIX/bin]
1406   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1407   --libexecdir=DIR        program executables [EPREFIX/libexec]
1408   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1409   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1410   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1411   --libdir=DIR            object code libraries [EPREFIX/lib]
1412   --includedir=DIR        C header files [PREFIX/include]
1413   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416   --infodir=DIR           info documentation [DATAROOTDIR/info]
1417   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418   --mandir=DIR            man documentation [DATAROOTDIR/man]
1419   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1420   --htmldir=DIR           html documentation [DOCDIR]
1421   --dvidir=DIR            dvi documentation [DOCDIR]
1422   --pdfdir=DIR            pdf documentation [DOCDIR]
1423   --psdir=DIR             ps documentation [DOCDIR]
1424 _ACEOF
1425
1426   cat <<\_ACEOF
1427
1428 X features:
1429   --x-includes=DIR    X include files are in DIR
1430   --x-libraries=DIR   X library files are in DIR
1431
1432 System types:
1433   --build=BUILD     configure for building on BUILD [guessed]
1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439   case $ac_init_help in
1440      short | recursive ) echo "Configuration of Wine 1.1.41:";;
1441    esac
1442   cat <<\_ACEOF
1443
1444 Optional Features:
1445   --disable-option-checking  ignore unrecognized --enable/--with options
1446   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1447   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1448   --disable-win16         do not include Win16 support
1449   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1450                           binaries)
1451   --disable-tests         do not build the regression tests
1452   --enable-maintainer-mode
1453                           enable maintainer-specific build rules
1454   --disable-largefile     omit support for large files
1455
1456 Optional Packages:
1457   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459   --without-alsa          do not use the Alsa sound support
1460   --without-audioio       do not use the AudioIO sound support
1461   --without-capi          do not use CAPI (ISDN support)
1462   --without-cms           do not use CMS (color management support)
1463   --without-coreaudio     do not use the CoreAudio sound support
1464   --without-cups          do not use CUPS
1465   --without-curses        do not use (n)curses
1466   --without-esd           do not use the EsounD sound support
1467   --without-fontconfig    do not use fontconfig
1468   --without-freetype      do not use the FreeType library
1469   --without-gphoto        do not use gphoto (Digital Camera support)
1470   --without-glu           do not use the GLU library
1471   --without-gnutls        do not use GnuTLS (schannel support)
1472   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1473   --without-hal           do not use HAL (dynamic device support)
1474   --without-jack          do not use the Jack sound support
1475   --without-jpeg          do not use JPEG
1476   --without-ldap          do not use LDAP
1477   --without-mpg123        do not use the mpg123 library
1478   --without-nas           do not use the NAS sound support
1479   --without-openal        do not use OpenAL
1480   --without-opengl        do not use OpenGL
1481   --without-openssl       do not use OpenSSL
1482   --without-oss           do not use the OSS sound support
1483   --without-png           do not use PNG
1484   --without-pthread       do not use the pthread library
1485   --without-sane          do not use SANE (scanner support)
1486   --without-tiff          do not use TIFF
1487   --without-v4l           do not use v4l1 (v4l support)
1488   --without-xcomposite    do not use the Xcomposite extension
1489   --without-xcursor       do not use the Xcursor extension
1490   --without-xinerama      do not use Xinerama (multi-monitor support)
1491   --without-xinput        do not use the Xinput extension
1492   --without-xml           do not use XML
1493   --without-xrandr        do not use Xrandr (resolution changes)
1494   --without-xrender       do not use the Xrender extension
1495   --without-xshape        do not use the Xshape extension
1496   --without-xshm          do not use XShm (shared memory extension)
1497   --without-xslt          do not use XSLT
1498   --without-xxf86vm       do not use XFree video mode extension
1499   --with-wine-tools=DIR   use Wine tools from directory DIR
1500   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1501   --with-x                use the X Window System
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CXX         C++ compiler command
1512   CXXFLAGS    C++ compiler flags
1513   CPP         C preprocessor
1514   XMKMF       Path to xmkmf, Makefile generator for X Window System
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <wine-devel@winehq.org>.
1520 Wine home page: <http://www.winehq.org>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" ||
1529       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530       continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 Wine configure 1.1.41
1584 generated by GNU Autoconf 2.65
1585
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590   exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   rm -f conftest.$ac_objext
1604   if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607   *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611   (eval "$ac_compile") 2>conftest.err
1612   ac_status=$?
1613   if test -s conftest.err; then
1614     grep -v '^ *+' conftest.err >conftest.er1
1615     cat conftest.er1 >&5
1616     mv -f conftest.er1 conftest.err
1617   fi
1618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619   test $ac_status = 0; } && {
1620          test -z "$ac_c_werror_flag" ||
1621          test ! -s conftest.err
1622        } && test -s conftest.$ac_objext; then :
1623   ac_retval=0
1624 else
1625   $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628         ac_retval=1
1629 fi
1630   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631   as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext
1642   if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_compile") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_cxx_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest.$ac_objext; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666         ac_retval=1
1667 fi
1668   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_cxx_try_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   rm -f conftest.$ac_objext conftest$ac_exeext
1680   if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_link") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && {
1696          test -z "$ac_c_werror_flag" ||
1697          test ! -s conftest.err
1698        } && test -s conftest$ac_exeext && {
1699          test "$cross_compiling" = yes ||
1700          $as_test_x conftest$ac_exeext
1701        }; then :
1702   ac_retval=0
1703 else
1704   $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707         ac_retval=1
1708 fi
1709   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711   # interfere with the next link command; also delete a directory that is
1712   # left behind by Apple's compiler.  We do this before executing the actions.
1713   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_link
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733   ac_status=$?
1734   if test -s conftest.err; then
1735     grep -v '^ *+' conftest.err >conftest.er1
1736     cat conftest.er1 >&5
1737     mv -f conftest.er1 conftest.err
1738   fi
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } >/dev/null && {
1741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742          test ! -s conftest.err
1743        }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749     ac_retval=1
1750 fi
1751   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752   as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768   $as_echo_n "(cached) " >&6
1769 fi
1770 eval ac_res=\$$3
1771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774   # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783   ac_header_compiler=yes
1784 else
1785   ac_header_compiler=no
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1790
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799   ac_header_preproc=yes
1800 else
1801   ac_header_preproc=no
1802 fi
1803 rm -f conftest.err conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1806
1807 # So?  What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809   yes:no: )
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814     ;;
1815   no:yes:* )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( cat <<\_ASBOX
1827 ## ------------------------------------ ##
1828 ## Report this to wine-devel@winehq.org ##
1829 ## ------------------------------------ ##
1830 _ASBOX
1831      ) | sed "s/^/$as_me: WARNING:     /" >&2
1832     ;;
1833 esac
1834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837   $as_echo_n "(cached) " >&6
1838 else
1839   eval "$3=\$ac_header_compiler"
1840 fi
1841 eval ac_res=\$$3
1842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 fi
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
1847 } # ac_fn_c_check_header_mongrel
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_link") 2>&5
1864   ac_status=$?
1865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867   { { case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_try") 2>&5
1874   ac_status=$?
1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876   test $ac_status = 0; }; }; then :
1877   ac_retval=0
1878 else
1879   $as_echo "$as_me: program exited with status $ac_status" >&5
1880        $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883        ac_retval=$ac_status
1884 fi
1885   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_run
1890
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901   $as_echo_n "(cached) " >&6
1902 else
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909   eval "$3=yes"
1910 else
1911   eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_header_compile
1921
1922 # ac_fn_c_check_func LINENO FUNC VAR
1923 # ----------------------------------
1924 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1925 ac_fn_c_check_func ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931   $as_echo_n "(cached) " >&6
1932 else
1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1937 #define $2 innocuous_$2
1938
1939 /* System header to define __stub macros and hopefully few prototypes,
1940     which can conflict with char $2 (); below.
1941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942     <limits.h> exists even on freestanding compilers.  */
1943
1944 #ifdef __STDC__
1945 # include <limits.h>
1946 #else
1947 # include <assert.h>
1948 #endif
1949
1950 #undef $2
1951
1952 /* Override any GCC internal prototype to avoid an error.
1953    Use char because int might match the return type of a GCC
1954    builtin and then its argument prototype would still apply.  */
1955 #ifdef __cplusplus
1956 extern "C"
1957 #endif
1958 char $2 ();
1959 /* The GNU C library defines this for functions which it implements
1960     to always fail with ENOSYS.  Some functions are actually named
1961     something starting with __ and the normal name is an alias.  */
1962 #if defined __stub_$2 || defined __stub___$2
1963 choke me
1964 #endif
1965
1966 int
1967 main ()
1968 {
1969 return $2 ();
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_link "$LINENO"; then :
1975   eval "$3=yes"
1976 else
1977   eval "$3=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext \
1980     conftest$ac_exeext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_c_check_func
1988
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   eval "$4=yes"
2016 else
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   eval "$4=yes"
2032 else
2033   eval "$4=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$4
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_member
2045
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   eval "$3=no"
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof ($2))
2066          return 0;
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 if (sizeof (($2)))
2079             return 0;
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085
2086 else
2087   eval "$3=yes"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097
2098 } # ac_fn_c_check_type
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by Wine $as_me 1.1.41, which was
2104 generated by GNU Autoconf 2.65.  Invocation command line was
2105
2106   $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2124
2125 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2126 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2129 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2130 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2131 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140     $as_echo "PATH: $as_dir"
2141   done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167   for ac_arg
2168   do
2169     case $ac_arg in
2170     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172     | -silent | --silent | --silen | --sile | --sil)
2173       continue ;;
2174     *\'*)
2175       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176     esac
2177     case $ac_pass in
2178     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179     2)
2180       as_fn_append ac_configure_args1 " '$ac_arg'"
2181       if test $ac_must_keep_next = true; then
2182         ac_must_keep_next=false # Got value, back to normal.
2183       else
2184         case $ac_arg in
2185           *=* | --config-cache | -C | -disable-* | --disable-* \
2186           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188           | -with-* | --with-* | -without-* | --without-* | --x)
2189             case "$ac_configure_args0 " in
2190               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191             esac
2192             ;;
2193           -* ) ac_must_keep_next=true ;;
2194         esac
2195       fi
2196       as_fn_append ac_configure_args " '$ac_arg'"
2197       ;;
2198     esac
2199   done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log.  We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210   # Save into config.log some information that might help in debugging.
2211   {
2212     echo
2213
2214     cat <<\_ASBOX
2215 ## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##
2218 _ASBOX
2219     echo
2220     # The following way of writing the cache mishandles newlines in values,
2221 (
2222   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223     eval ac_val=\$$ac_var
2224     case $ac_val in #(
2225     *${as_nl}*)
2226       case $ac_var in #(
2227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229       esac
2230       case $ac_var in #(
2231       _ | IFS | as_nl) ;; #(
2232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233       *) { eval $ac_var=; unset $ac_var;} ;;
2234       esac ;;
2235     esac
2236   done
2237   (set) 2>&1 |
2238     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239     *${as_nl}ac_space=\ *)
2240       sed -n \
2241         "s/'\''/'\''\\\\'\'''\''/g;
2242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243       ;; #(
2244     *)
2245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246       ;;
2247     esac |
2248     sort
2249 )
2250     echo
2251
2252     cat <<\_ASBOX
2253 ## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##
2256 _ASBOX
2257     echo
2258     for ac_var in $ac_subst_vars
2259     do
2260       eval ac_val=\$$ac_var
2261       case $ac_val in
2262       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263       esac
2264       $as_echo "$ac_var='\''$ac_val'\''"
2265     done | sort
2266     echo
2267
2268     if test -n "$ac_subst_files"; then
2269       cat <<\_ASBOX
2270 ## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##
2273 _ASBOX
2274       echo
2275       for ac_var in $ac_subst_files
2276       do
2277         eval ac_val=\$$ac_var
2278         case $ac_val in
2279         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280         esac
2281         $as_echo "$ac_var='\''$ac_val'\''"
2282       done | sort
2283       echo
2284     fi
2285
2286     if test -s confdefs.h; then
2287       cat <<\_ASBOX
2288 ## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##
2291 _ASBOX
2292       echo
2293       cat confdefs.h
2294       echo
2295     fi
2296     test "$ac_signal" != 0 &&
2297       $as_echo "$as_me: caught signal $ac_signal"
2298     $as_echo "$as_me: exit $exit_status"
2299   } >&5
2300   rm -f core *.core core.conftest.* &&
2301     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302     exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 $as_echo "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2339
2340
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346   ac_site_file1=$CONFIG_SITE
2347 elif test "x$prefix" != xNONE; then
2348   ac_site_file1=$prefix/share/config.site
2349   ac_site_file2=$prefix/etc/config.site
2350 else
2351   ac_site_file1=$ac_default_prefix/share/config.site
2352   ac_site_file2=$ac_default_prefix/etc/config.site
2353 fi
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 do
2356   test "x$ac_site_file" = xNONE && continue
2357   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360     sed 's/^/| /' "$ac_site_file" >&5
2361     . "$ac_site_file"
2362   fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366   # Some versions of bash will fail to source /dev/null (special files
2367   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2368   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371     case $cache_file in
2372       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373       *)                      . "./$cache_file";;
2374     esac
2375   fi
2376 else
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379   >$cache_file
2380 fi
2381
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387   eval ac_new_set=\$ac_env_${ac_var}_set
2388   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389   eval ac_new_val=\$ac_env_${ac_var}_value
2390   case $ac_old_set,$ac_new_set in
2391     set,)
2392       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394       ac_cache_corrupted=: ;;
2395     ,set)
2396       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,);;
2400     *)
2401       if test "x$ac_old_val" != "x$ac_new_val"; then
2402         # differences in whitespace do not lead to failure.
2403         ac_old_val_w=`echo x $ac_old_val`
2404         ac_new_val_w=`echo x $ac_new_val`
2405         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408           ac_cache_corrupted=:
2409         else
2410           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412           eval $ac_var=\$ac_old_val
2413         fi
2414         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2415 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2416         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2418       fi;;
2419   esac
2420   # Pass precious variables to config.status.
2421   if test "$ac_new_set" = set; then
2422     case $ac_new_val in
2423     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     *) ac_arg=$ac_var=$ac_new_val ;;
2425     esac
2426     case " $ac_configure_args " in
2427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2428       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429     esac
2430   fi
2431 done
2432 if $ac_cache_corrupted; then
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 fi
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449
2450
2451 ac_config_headers="$ac_config_headers include/config.h"
2452
2453 ac_aux_dir=
2454 for ac_dir in tools "$srcdir"/tools; do
2455   for ac_t in install-sh install.sh shtool; do
2456     if test -f "$ac_dir/$ac_t"; then
2457       ac_aux_dir=$ac_dir
2458       ac_install_sh="$ac_aux_dir/$ac_t -c"
2459       break 2
2460     fi
2461   done
2462 done
2463 if test -z "$ac_aux_dir"; then
2464   as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2465 fi
2466
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2474
2475
2476
2477
2478
2479 # Check whether --enable-win16 was given.
2480 if test "${enable_win16+set}" = set; then :
2481   enableval=$enable_win16;
2482 fi
2483
2484 # Check whether --enable-win64 was given.
2485 if test "${enable_win64+set}" = set; then :
2486   enableval=$enable_win64;
2487 fi
2488
2489 # Check whether --enable-tests was given.
2490 if test "${enable_tests+set}" = set; then :
2491   enableval=$enable_tests;
2492 fi
2493
2494 # Check whether --enable-maintainer-mode was given.
2495 if test "${enable_maintainer_mode+set}" = set; then :
2496   enableval=$enable_maintainer_mode;
2497 else
2498   MAINTAINER_MODE=\#
2499
2500 fi
2501
2502
2503
2504 # Check whether --with-alsa was given.
2505 if test "${with_alsa+set}" = set; then :
2506   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2507 fi
2508
2509
2510 # Check whether --with-audioio was given.
2511 if test "${with_audioio+set}" = set; then :
2512   withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2513 fi
2514
2515
2516 # Check whether --with-capi was given.
2517 if test "${with_capi+set}" = set; then :
2518   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2519 fi
2520
2521
2522 # Check whether --with-cms was given.
2523 if test "${with_cms+set}" = set; then :
2524   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2525 fi
2526
2527
2528 # Check whether --with-coreaudio was given.
2529 if test "${with_coreaudio+set}" = set; then :
2530   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2531 fi
2532
2533
2534 # Check whether --with-cups was given.
2535 if test "${with_cups+set}" = set; then :
2536   withval=$with_cups;
2537 fi
2538
2539
2540 # Check whether --with-curses was given.
2541 if test "${with_curses+set}" = set; then :
2542   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2543 fi
2544
2545
2546 # Check whether --with-esd was given.
2547 if test "${with_esd+set}" = set; then :
2548   withval=$with_esd;
2549 fi
2550
2551
2552 # Check whether --with-fontconfig was given.
2553 if test "${with_fontconfig+set}" = set; then :
2554   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2555 fi
2556
2557
2558 # Check whether --with-freetype was given.
2559 if test "${with_freetype+set}" = set; then :
2560   withval=$with_freetype;
2561 fi
2562
2563
2564 # Check whether --with-gphoto was given.
2565 if test "${with_gphoto+set}" = set; then :
2566   withval=$with_gphoto;
2567 fi
2568
2569
2570 # Check whether --with-glu was given.
2571 if test "${with_glu+set}" = set; then :
2572   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2573 fi
2574
2575
2576 # Check whether --with-gnutls was given.
2577 if test "${with_gnutls+set}" = set; then :
2578   withval=$with_gnutls;
2579 fi
2580
2581
2582 # Check whether --with-gsm was given.
2583 if test "${with_gsm+set}" = set; then :
2584   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2585 fi
2586
2587
2588 # Check whether --with-hal was given.
2589 if test "${with_hal+set}" = set; then :
2590   withval=$with_hal;
2591 fi
2592
2593
2594 # Check whether --with-jack was given.
2595 if test "${with_jack+set}" = set; then :
2596   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2597 fi
2598
2599
2600 # Check whether --with-jpeg was given.
2601 if test "${with_jpeg+set}" = set; then :
2602   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2603 fi
2604
2605
2606 # Check whether --with-ldap was given.
2607 if test "${with_ldap+set}" = set; then :
2608   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2609 fi
2610
2611
2612 # Check whether --with-mpg123 was given.
2613 if test "${with_mpg123+set}" = set; then :
2614   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2615 fi
2616
2617
2618 # Check whether --with-nas was given.
2619 if test "${with_nas+set}" = set; then :
2620   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2621 fi
2622
2623
2624 # Check whether --with-openal was given.
2625 if test "${with_openal+set}" = set; then :
2626   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2627 fi
2628
2629
2630 # Check whether --with-opengl was given.
2631 if test "${with_opengl+set}" = set; then :
2632   withval=$with_opengl;
2633 fi
2634
2635
2636 # Check whether --with-openssl was given.
2637 if test "${with_openssl+set}" = set; then :
2638   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2639 fi
2640
2641
2642 # Check whether --with-oss was given.
2643 if test "${with_oss+set}" = set; then :
2644   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
2645 fi
2646
2647
2648 # Check whether --with-png was given.
2649 if test "${with_png+set}" = set; then :
2650   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2651 fi
2652
2653
2654 # Check whether --with-pthread was given.
2655 if test "${with_pthread+set}" = set; then :
2656   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2657 fi
2658
2659
2660 # Check whether --with-sane was given.
2661 if test "${with_sane+set}" = set; then :
2662   withval=$with_sane;
2663 fi
2664
2665
2666 # Check whether --with-tiff was given.
2667 if test "${with_tiff+set}" = set; then :
2668   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2669 fi
2670
2671
2672 # Check whether --with-v4l was given.
2673 if test "${with_v4l+set}" = set; then :
2674   withval=$with_v4l;
2675 fi
2676
2677
2678 # Check whether --with-xcomposite was given.
2679 if test "${with_xcomposite+set}" = set; then :
2680   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2681 fi
2682
2683
2684 # Check whether --with-xcursor was given.
2685 if test "${with_xcursor+set}" = set; then :
2686   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2687 fi
2688
2689
2690 # Check whether --with-xinerama was given.
2691 if test "${with_xinerama+set}" = set; then :
2692   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2693 fi
2694
2695
2696 # Check whether --with-xinput was given.
2697 if test "${with_xinput+set}" = set; then :
2698   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2699 fi
2700
2701
2702 # Check whether --with-xml was given.
2703 if test "${with_xml+set}" = set; then :
2704   withval=$with_xml;
2705 fi
2706
2707
2708 # Check whether --with-xrandr was given.
2709 if test "${with_xrandr+set}" = set; then :
2710   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2711 fi
2712
2713
2714 # Check whether --with-xrender was given.
2715 if test "${with_xrender+set}" = set; then :
2716   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2717 fi
2718
2719
2720 # Check whether --with-xshape was given.
2721 if test "${with_xshape+set}" = set; then :
2722   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2723 fi
2724
2725
2726 # Check whether --with-xshm was given.
2727 if test "${with_xshm+set}" = set; then :
2728   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2729 fi
2730
2731
2732 # Check whether --with-xslt was given.
2733 if test "${with_xslt+set}" = set; then :
2734   withval=$with_xslt;
2735 fi
2736
2737
2738 # Check whether --with-xxf86vm was given.
2739 if test "${with_xxf86vm+set}" = set; then :
2740   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
2741 fi
2742
2743
2744
2745 # Check whether --with-wine-tools was given.
2746 if test "${with_wine_tools+set}" = set; then :
2747   withval=$with_wine_tools;
2748 fi
2749
2750
2751 # Check whether --with-wine64 was given.
2752 if test "${with_wine64+set}" = set; then :
2753   withval=$with_wine64;
2754 fi
2755
2756
2757 # Make sure we can run config.sub.
2758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2759   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2762 $as_echo_n "checking build system type... " >&6; }
2763 if test "${ac_cv_build+set}" = set; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   ac_build_alias=$build_alias
2767 test "x$ac_build_alias" = x &&
2768   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2769 test "x$ac_build_alias" = x &&
2770   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2772   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 $as_echo "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2778 *-*-*) ;;
2779 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2780 esac
2781 build=$ac_cv_build
2782 ac_save_IFS=$IFS; IFS='-'
2783 set x $ac_cv_build
2784 shift
2785 build_cpu=$1
2786 build_vendor=$2
2787 shift; shift
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2790 build_os=$*
2791 IFS=$ac_save_IFS
2792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 $as_echo_n "checking host system type... " >&6; }
2797 if test "${ac_cv_host+set}" = set; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test "x$host_alias" = x; then
2801   ac_cv_host=$ac_cv_build
2802 else
2803   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2805 fi
2806
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2809 $as_echo "$ac_cv_host" >&6; }
2810 case $ac_cv_host in
2811 *-*-*) ;;
2812 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2813 esac
2814 host=$ac_cv_host
2815 ac_save_IFS=$IFS; IFS='-'
2816 set x $ac_cv_host
2817 shift
2818 host_cpu=$1
2819 host_vendor=$2
2820 shift; shift
2821 # Remember, the first character of IFS is used to create $*,
2822 # except with old shells:
2823 host_os=$*
2824 IFS=$ac_save_IFS
2825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826
2827
2828
2829 case "$srcdir" in
2830  .) ;;
2831  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2832       as_fn_error "you are building out of the source tree, but the source tree contains object files.
2833 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2834     fi ;;
2835 esac
2836
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2839 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2840 set x ${MAKE-make}
2841 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2842 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   cat >conftest.make <<\_ACEOF
2846 SHELL = /bin/sh
2847 all:
2848         @echo '@@@%%%=$(MAKE)=@@@%%%'
2849 _ACEOF
2850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2851 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2852   *@@@%%%=?*=@@@%%%*)
2853     eval ac_cv_prog_make_${ac_make}_set=yes;;
2854   *)
2855     eval ac_cv_prog_make_${ac_make}_set=no;;
2856 esac
2857 rm -f conftest.make
2858 fi
2859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2861 $as_echo "yes" >&6; }
2862   SET_MAKE=
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866   SET_MAKE="MAKE=${MAKE-make}"
2867 fi
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 if test -n "$ac_tool_prefix"; then
2875   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890     for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_CC"; then
2914   ac_ct_CC=$CC
2915   # Extract the first word of "gcc", so it can be a program name with args.
2916 set dummy gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   if test -n "$ac_ct_CC"; then
2923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930     for ac_exec_ext in '' $ac_executable_extensions; do
2931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932     ac_cv_prog_ac_ct_CC="gcc"
2933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935   fi
2936 done
2937   done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943 if test -n "$ac_ct_CC"; then
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945 $as_echo "$ac_ct_CC" >&6; }
2946 else
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951   if test "x$ac_ct_CC" = x; then
2952     CC=""
2953   else
2954     case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960     CC=$ac_ct_CC
2961   fi
2962 else
2963   CC="$ac_cv_prog_CC"
2964 fi
2965
2966 if test -z "$CC"; then
2967           if test -n "$ac_tool_prefix"; then
2968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="${ac_tool_prefix}cc"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005   fi
3006 fi
3007 if test -z "$CC"; then
3008   # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   if test -n "$CC"; then
3016   ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018   ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024     for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027        ac_prog_rejected=yes
3028        continue
3029      fi
3030     ac_cv_prog_CC="cc"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 if test $ac_prog_rejected = yes; then
3039   # We found a bogon in the path, so make sure we never use it.
3040   set dummy $ac_cv_prog_CC
3041   shift
3042   if test $# != 0; then
3043     # We chose a different compiler from the bogus one.
3044     # However, it has the same basename, so the bogon will be chosen
3045     # first if we set CC to just the basename; use the full file name.
3046     shift
3047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048   fi
3049 fi
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$CC"; then
3064   if test -n "$ac_tool_prefix"; then
3065   for ac_prog in cl.exe
3066   do
3067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test -n "$CC"; then
3075   ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082     for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089   done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104     test -n "$CC" && break
3105   done
3106 fi
3107 if test -z "$CC"; then
3108   ac_ct_CC=$CC
3109   for ac_prog in cl.exe
3110 do
3111   # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_ac_ct_CC="$ac_prog"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148   test -n "$ac_ct_CC" && break
3149 done
3150
3151   if test "x$ac_ct_CC" = x; then
3152     CC=""
3153   else
3154     case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160     CC=$ac_ct_CC
3161   fi
3162 fi
3163
3164 fi
3165
3166
3167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error "no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." "$LINENO" 5; }
3171
3172 # Provide some information about the compiler.
3173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 set X $ac_compile
3175 ac_compiler=$2
3176 for ac_option in --version -v -V -qversion; do
3177   { { ac_try="$ac_compiler $ac_option >&5"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185   ac_status=$?
3186   if test -s conftest.err; then
3187     sed '10a\
3188 ... rest of stderr output deleted ...
3189          10q' conftest.err >conftest.er1
3190     cat conftest.er1 >&5
3191   fi
3192   rm -f conftest.er1 conftest.err
3193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194   test $ac_status = 0; }
3195 done
3196
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h.  */
3199
3200 int
3201 main ()
3202 {
3203
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3212 # of exeext.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3214 $as_echo_n "checking whether the C compiler works... " >&6; }
3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216
3217 # The possible output files:
3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219
3220 ac_rmfiles=
3221 for ac_file in $ac_files
3222 do
3223   case $ac_file in
3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226   esac
3227 done
3228 rm -f $ac_rmfiles
3229
3230 if { { ac_try="$ac_link_default"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237   (eval "$ac_link_default") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240   test $ac_status = 0; }; then :
3241   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3245 # Autoconf.
3246 for ac_file in $ac_files ''
3247 do
3248   test -f "$ac_file" || continue
3249   case $ac_file in
3250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251         ;;
3252     [ab].out )
3253         # We found the default executable, but exeext='' is most
3254         # certainly right.
3255         break;;
3256     *.* )
3257         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258         then :; else
3259            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260         fi
3261         # We set ac_cv_exeext here because the later test for it is not
3262         # safe: cross compilers may not add the suffix if given an `-o'
3263         # argument, so we may need to know it at that point already.
3264         # Even if this section looks crufty: it has the advantage of
3265         # actually working.
3266         break;;
3267     * )
3268         break;;
3269   esac
3270 done
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272
3273 else
3274   ac_file=''
3275 fi
3276 if test -z "$ac_file"; then :
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 { as_fn_set_status 77
3285 as_fn_error "C compiler cannot create executables
3286 See \`config.log' for more details." "$LINENO" 5; }; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3292 $as_echo_n "checking for C compiler default output file name... " >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 ac_exeext=$ac_cv_exeext
3296
3297 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3300 $as_echo_n "checking for suffix of executables... " >&6; }
3301 if { { ac_try="$ac_link"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_link") 2>&5
3309   ac_status=$?
3310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311   test $ac_status = 0; }; then :
3312   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3315 # `rm'.
3316 for ac_file in conftest.exe conftest conftest.*; do
3317   test -f "$ac_file" || continue
3318   case $ac_file in
3319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321           break;;
3322     * ) break;;
3323   esac
3324 done
3325 else
3326   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of executables: cannot compile and link
3329 See \`config.log' for more details." "$LINENO" 5; }
3330 fi
3331 rm -f conftest conftest$ac_cv_exeext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3333 $as_echo "$ac_cv_exeext" >&6; }
3334
3335 rm -f conftest.$ac_ext
3336 EXEEXT=$ac_cv_exeext
3337 ac_exeext=$EXEEXT
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340 #include <stdio.h>
3341 int
3342 main ()
3343 {
3344 FILE *f = fopen ("conftest.out", "w");
3345  return ferror (f) || fclose (f) != 0;
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 ac_clean_files="$ac_clean_files conftest.out"
3352 # Check that the compiler produces executables we can run.  If not, either
3353 # the compiler is broken, or we cross compile.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3355 $as_echo_n "checking whether we are cross compiling... " >&6; }
3356 if test "$cross_compiling" != yes; then
3357   { { ac_try="$ac_link"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364   (eval "$ac_link") 2>&5
3365   ac_status=$?
3366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367   test $ac_status = 0; }
3368   if { ac_try='./conftest$ac_cv_exeext'
3369   { { case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375   (eval "$ac_try") 2>&5
3376   ac_status=$?
3377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378   test $ac_status = 0; }; }; then
3379     cross_compiling=no
3380   else
3381     if test "$cross_compiling" = maybe; then
3382         cross_compiling=yes
3383     else
3384         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." "$LINENO" 5; }
3389     fi
3390   fi
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3393 $as_echo "$cross_compiling" >&6; }
3394
3395 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3396 ac_clean_files=$ac_clean_files_save
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3398 $as_echo_n "checking for suffix of object files... " >&6; }
3399 if test "${ac_cv_objext+set}" = set; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404
3405 int
3406 main ()
3407 {
3408
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.o conftest.obj
3414 if { { ac_try="$ac_compile"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_compile") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424   test $ac_status = 0; }; then :
3425   for ac_file in conftest.o conftest.obj conftest.*; do
3426   test -f "$ac_file" || continue;
3427   case $ac_file in
3428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3429     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3430        break;;
3431   esac
3432 done
3433 else
3434   $as_echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error "cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details." "$LINENO" 5; }
3441 fi
3442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3445 $as_echo "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3447 ac_objext=$OBJEXT
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459 #ifndef __GNUC__
3460        choke me
3461 #endif
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468   ac_compiler_gnu=yes
3469 else
3470   ac_compiler_gnu=no
3471 fi
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3474
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3477 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3478 if test $ac_compiler_gnu = yes; then
3479   GCC=yes
3480 else
3481   GCC=
3482 fi
3483 ac_test_CFLAGS=${CFLAGS+set}
3484 ac_save_CFLAGS=$CFLAGS
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3486 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3487 if test "${ac_cv_prog_cc_g+set}" = set; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   ac_save_c_werror_flag=$ac_c_werror_flag
3491    ac_c_werror_flag=yes
3492    ac_cv_prog_cc_g=no
3493    CFLAGS="-g"
3494    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h.  */
3496
3497 int
3498 main ()
3499 {
3500
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506   ac_cv_prog_cc_g=yes
3507 else
3508   CFLAGS=""
3509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h.  */
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521
3522 else
3523   ac_c_werror_flag=$ac_save_c_werror_flag
3524          CFLAGS="-g"
3525          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537   ac_cv_prog_cc_g=yes
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544    ac_c_werror_flag=$ac_save_c_werror_flag
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3547 $as_echo "$ac_cv_prog_cc_g" >&6; }
3548 if test "$ac_test_CFLAGS" = set; then
3549   CFLAGS=$ac_save_CFLAGS
3550 elif test $ac_cv_prog_cc_g = yes; then
3551   if test "$GCC" = yes; then
3552     CFLAGS="-g -O2"
3553   else
3554     CFLAGS="-g"
3555   fi
3556 else
3557   if test "$GCC" = yes; then
3558     CFLAGS="-O2"
3559   else
3560     CFLAGS=
3561   fi
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3564 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3565 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   ac_cv_prog_cc_c89=no
3569 ac_save_CC=$CC
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572 #include <stdarg.h>
3573 #include <stdio.h>
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3580      char **p;
3581      int i;
3582 {
3583   return p[i];
3584 }
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3586 {
3587   char *s;
3588   va_list v;
3589   va_start (v,p);
3590   s = g (p, va_arg (v,int));
3591   va_end (v);
3592   return s;
3593 }
3594
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3596    function prototypes and stuff, but not '\xHH' hex character constants.
3597    These don't provoke an error unfortunately, instead are silently treated
3598    as 'x'.  The following induces an error, until -std is added to get
3599    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3600    array size at least.  It's necessary to write '\x00'==0 to get something
3601    that's true only with -std.  */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3603
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605    inside strings and character constants.  */
3606 #define FOO(x) 'x'
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3608
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 int argc;
3614 char **argv;
3615 int
3616 main ()
3617 {
3618 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3625 do
3626   CC="$ac_save_CC $ac_arg"
3627   if ac_fn_c_try_compile "$LINENO"; then :
3628   ac_cv_prog_cc_c89=$ac_arg
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext
3631   test "x$ac_cv_prog_cc_c89" != "xno" && break
3632 done
3633 rm -f conftest.$ac_ext
3634 CC=$ac_save_CC
3635
3636 fi
3637 # AC_CACHE_VAL
3638 case "x$ac_cv_prog_cc_c89" in
3639   x)
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3641 $as_echo "none needed" >&6; } ;;
3642   xno)
3643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644 $as_echo "unsupported" >&6; } ;;
3645   *)
3646     CC="$CC $ac_cv_prog_cc_c89"
3647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3649 esac
3650 if test "x$ac_cv_prog_cc_c89" != xno; then :
3651
3652 fi
3653
3654 ac_ext=c
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659
3660 ac_ext=cpp
3661 ac_cpp='$CXXCPP $CPPFLAGS'
3662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3665 if test -z "$CXX"; then
3666   if test -n "$CCC"; then
3667     CXX=$CCC
3668   else
3669     if test -n "$ac_tool_prefix"; then
3670   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3671   do
3672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_CXX+set}" = set; then :
3677   $as_echo_n "(cached) " >&6
3678 else
3679   if test -n "$CXX"; then
3680   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_exec_ext in '' $ac_executable_extensions; do
3688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694   done
3695 IFS=$as_save_IFS
3696
3697 fi
3698 fi
3699 CXX=$ac_cv_prog_CXX
3700 if test -n "$CXX"; then
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3702 $as_echo "$CXX" >&6; }
3703 else
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 fi
3707
3708
3709     test -n "$CXX" && break
3710   done
3711 fi
3712 if test -z "$CXX"; then
3713   ac_ct_CXX=$CXX
3714   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715 do
3716   # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$ac_ct_CXX"; then
3724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_ac_ct_CXX="$ac_prog"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3744 if test -n "$ac_ct_CXX"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3746 $as_echo "$ac_ct_CXX" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753   test -n "$ac_ct_CXX" && break
3754 done
3755
3756   if test "x$ac_ct_CXX" = x; then
3757     CXX="g++"
3758   else
3759     case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3763 ac_tool_warned=yes ;;
3764 esac
3765     CXX=$ac_ct_CXX
3766   fi
3767 fi
3768
3769   fi
3770 fi
3771 # Provide some information about the compiler.
3772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3773 set X $ac_compile
3774 ac_compiler=$2
3775 for ac_option in --version -v -V -qversion; do
3776   { { ac_try="$ac_compiler $ac_option >&5"
3777 case "(($ac_try" in
3778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779   *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3784   ac_status=$?
3785   if test -s conftest.err; then
3786     sed '10a\
3787 ... rest of stderr output deleted ...
3788          10q' conftest.err >conftest.er1
3789     cat conftest.er1 >&5
3790   fi
3791   rm -f conftest.er1 conftest.err
3792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793   test $ac_status = 0; }
3794 done
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3798 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h.  */
3803
3804 int
3805 main ()
3806 {
3807 #ifndef __GNUC__
3808        choke me
3809 #endif
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_cxx_try_compile "$LINENO"; then :
3816   ac_compiler_gnu=yes
3817 else
3818   ac_compiler_gnu=no
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3822
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3826 if test $ac_compiler_gnu = yes; then
3827   GXX=yes
3828 else
3829   GXX=
3830 fi
3831 ac_test_CXXFLAGS=${CXXFLAGS+set}
3832 ac_save_CXXFLAGS=$CXXFLAGS
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3834 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3835 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3839    ac_cxx_werror_flag=yes
3840    ac_cv_prog_cxx_g=no
3841    CXXFLAGS="-g"
3842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h.  */
3844
3845 int
3846 main ()
3847 {
3848
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 if ac_fn_cxx_try_compile "$LINENO"; then :
3854   ac_cv_prog_cxx_g=yes
3855 else
3856   CXXFLAGS=""
3857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_cxx_try_compile "$LINENO"; then :
3869
3870 else
3871   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3872          CXXFLAGS="-g"
3873          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_cxx_try_compile "$LINENO"; then :
3885   ac_cv_prog_cxx_g=yes
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3896 if test "$ac_test_CXXFLAGS" = set; then
3897   CXXFLAGS=$ac_save_CXXFLAGS
3898 elif test $ac_cv_prog_cxx_g = yes; then
3899   if test "$GXX" = yes; then
3900     CXXFLAGS="-g -O2"
3901   else
3902     CXXFLAGS="-g"
3903   fi
3904 else
3905   if test "$GXX" = yes; then
3906     CXXFLAGS="-O2"
3907   else
3908     CXXFLAGS=
3909   fi
3910 fi
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917 if test -n "$ac_tool_prefix"; then
3918   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3919 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -n "$CPPBIN"; then
3926   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933     for ac_exec_ext in '' $ac_executable_extensions; do
3934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940   done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 CPPBIN=$ac_cv_prog_CPPBIN
3946 if test -n "$CPPBIN"; then
3947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3948 $as_echo "$CPPBIN" >&6; }
3949 else
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953
3954
3955 fi
3956 if test -z "$ac_cv_prog_CPPBIN"; then
3957   ac_ct_CPPBIN=$CPPBIN
3958   # Extract the first word of "cpp", so it can be a program name with args.
3959 set dummy cpp; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   if test -n "$ac_ct_CPPBIN"; then
3966   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973     for ac_exec_ext in '' $ac_executable_extensions; do
3974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975     ac_cv_prog_ac_ct_CPPBIN="cpp"
3976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977     break 2
3978   fi
3979 done
3980   done
3981 IFS=$as_save_IFS
3982
3983 fi
3984 fi
3985 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3986 if test -n "$ac_ct_CPPBIN"; then
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3988 $as_echo "$ac_ct_CPPBIN" >&6; }
3989 else
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994   if test "x$ac_ct_CPPBIN" = x; then
3995     CPPBIN="cpp"
3996   else
3997     case $cross_compiling:$ac_tool_warned in
3998 yes:)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4002 esac
4003     CPPBIN=$ac_ct_CPPBIN
4004   fi
4005 else
4006   CPPBIN="$ac_cv_prog_CPPBIN"
4007 fi
4008
4009
4010 cat >>confdefs.h <<_ACEOF
4011 #define EXEEXT "$ac_exeext"
4012 _ACEOF
4013
4014
4015 case $host in
4016   *-darwin*)
4017     if test "x$enable_win64" = "xyes"
4018     then
4019       CC="$CC -m64"
4020       CXX="$CXX -m64"
4021       LD="${LD:-ld} -arch x86_64"
4022       AS="${AS:-as} -arch x86_64"
4023       host_cpu="x86_64"
4024       notice_platform="64-bit "
4025       TARGETFLAGS="-m64"
4026
4027     else
4028       CC="$CC -m32"
4029       CXX="$CXX -m32"
4030       LD="${LD:-ld} -arch i386"
4031       AS="${AS:-as} -arch i386"
4032       host_cpu="i386"
4033       notice_platform="32-bit "
4034       TARGETFLAGS="-m32"
4035
4036       enable_win16=${enable_win16:-yes}
4037     fi
4038     ;;
4039   x86_64*)
4040     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4041     then
4042       CC="$CC -m32"
4043       CXX="$CXX -m32"
4044       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4045 $as_echo_n "checking whether $CC works... " >&6; }
4046
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_link "$LINENO"; then :
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064                       as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext \
4067     conftest$ac_exeext conftest.$ac_ext
4068       LD="${LD:-ld} -m elf_i386"
4069       AS="${AS:-as} --32"
4070       host_cpu="i386"
4071       notice_platform="32-bit "
4072       TARGETFLAGS="-m32"
4073
4074       enable_win16=${enable_win16:-yes}
4075     else
4076       if test "x${GCC}" = "xyes"
4077       then
4078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4079 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4080         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082 #include <stdarg.h>
4083 int
4084 main ()
4085 {
4086 void func(__builtin_ms_va_list *args);
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4093 $as_echo "yes" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097                            as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100       fi
4101       TARGETFLAGS="-m64"
4102
4103     fi
4104     ;;
4105   *-mingw32*|*-cygwin*)
4106     enable_win16=${enable_win16:-no}
4107     CFLAGS="$CFLAGS -D_WIN32"
4108     ;;
4109   i[3456789]86*)
4110     enable_win16=${enable_win16:-yes}
4111     ;;
4112 esac
4113
4114 enable_win16=${enable_win16:-no}
4115
4116 enable_winetest=${enable_winetest:-$enable_tests}
4117
4118 if test -n "$with_wine64"
4119 then
4120     if test "x$enable_win64" = "xyes"
4121     then
4122         as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4123 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4124     fi
4125     WOW64_DISABLE=\#
4126
4127     enable_fonts=${enable_fonts:-no}
4128     enable_include=${enable_include:-no}
4129     enable_server=${enable_server:-no}
4130     enable_tools=${enable_tools:-no}
4131     enable_wineboot=${enable_wineboot:-no}
4132     enable_winedbg=${enable_winedbg:-no}
4133     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4134 fi
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4137 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4138 if test "${wine_cv_toolsdir+set}" = set; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   wine_cv_toolsdir="$with_wine_tools"
4142    if test -z "$with_wine_tools"; then
4143      if test "$cross_compiling" = "yes"; then
4144        as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4145      elif test -n "$with_wine64"; then
4146        wine_cv_toolsdir="$with_wine64"
4147      fi
4148    fi
4149    if test -z "$wine_cv_toolsdir"; then
4150      wine_cv_toolsdir="\$(TOPOBJDIR)"
4151    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4152      case "$wine_cv_toolsdir" in
4153        /*) ;;
4154        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4155      esac
4156    else
4157      as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4158    fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4161 $as_echo "$wine_cv_toolsdir" >&6; }
4162 TOOLSDIR=$wine_cv_toolsdir
4163
4164 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4165 then
4166     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4167
4168 fi
4169
4170 for ac_prog in flex
4171 do
4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_FLEX+set}" = set; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -n "$FLEX"; then
4180   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189     ac_cv_prog_FLEX="$ac_prog"
4190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194   done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 FLEX=$ac_cv_prog_FLEX
4200 if test -n "$FLEX"; then
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4202 $as_echo "$FLEX" >&6; }
4203 else
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209   test -n "$FLEX" && break
4210 done
4211 test -n "$FLEX" || FLEX="none"
4212
4213 if test "$FLEX" = "none"
4214 then
4215   as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4218 $as_echo_n "checking whether flex is recent enough... " >&6; }
4219 cat >conftest.l <<EOF
4220 %top{
4221 #include "prediluvian.h"
4222 }
4223 %%
4224 EOF
4225 if $FLEX -t conftest.l >/dev/null 2>&1
4226 then
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232   as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4233 fi
4234
4235 for ac_prog in bison
4236 do
4237   # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if test "${ac_cv_prog_BISON+set}" = set; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   if test -n "$BISON"; then
4245   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252     for ac_exec_ext in '' $ac_executable_extensions; do
4253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254     ac_cv_prog_BISON="$ac_prog"
4255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259   done
4260 IFS=$as_save_IFS
4261
4262 fi
4263 fi
4264 BISON=$ac_cv_prog_BISON
4265 if test -n "$BISON"; then
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4267 $as_echo "$BISON" >&6; }
4268 else
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271 fi
4272
4273
4274   test -n "$BISON" && break
4275 done
4276 test -n "$BISON" || BISON="none"
4277
4278 if test "$BISON" = "none"
4279 then
4280   as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4281 fi
4282
4283 if test -n "$ac_tool_prefix"; then
4284   for ac_prog in ar gar
4285   do
4286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_AR+set}" = set; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   if test -n "$AR"; then
4294   ac_cv_prog_AR="$AR" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308   done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 AR=$ac_cv_prog_AR
4314 if test -n "$AR"; then
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4316 $as_echo "$AR" >&6; }
4317 else
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323     test -n "$AR" && break
4324   done
4325 fi
4326 if test -z "$AR"; then
4327   ac_ct_AR=$AR
4328   for ac_prog in ar gar
4329 do
4330   # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if test -n "$ac_ct_AR"; then
4338   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345     for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_prog_ac_ct_AR="$ac_prog"
4348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352   done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360 $as_echo "$ac_ct_AR" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367   test -n "$ac_ct_AR" && break
4368 done
4369
4370   if test "x$ac_ct_AR" = x; then
4371     AR="ar"
4372   else
4373     case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379     AR=$ac_ct_AR
4380   fi
4381 fi
4382
4383 ARFLAGS=rc
4384
4385 if test -n "$ac_tool_prefix"; then
4386   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   if test -n "$RANLIB"; then
4394   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401     for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408   done
4409 IFS=$as_save_IFS
4410
4411 fi
4412 fi
4413 RANLIB=$ac_cv_prog_RANLIB
4414 if test -n "$RANLIB"; then
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4416 $as_echo "$RANLIB" >&6; }
4417 else
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4420 fi
4421
4422
4423 fi
4424 if test -z "$ac_cv_prog_RANLIB"; then
4425   ac_ct_RANLIB=$RANLIB
4426   # Extract the first word of "ranlib", so it can be a program name with args.
4427 set dummy ranlib; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -n "$ac_ct_RANLIB"; then
4434   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     for ac_exec_ext in '' $ac_executable_extensions; do
4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443     ac_cv_prog_ac_ct_RANLIB="ranlib"
4444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448   done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4454 if test -n "$ac_ct_RANLIB"; then
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4456 $as_echo "$ac_ct_RANLIB" >&6; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462   if test "x$ac_ct_RANLIB" = x; then
4463     RANLIB=":"
4464   else
4465     case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471     RANLIB=$ac_ct_RANLIB
4472   fi
4473 else
4474   RANLIB="$ac_cv_prog_RANLIB"
4475 fi
4476
4477 if test -n "$ac_tool_prefix"; then
4478   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}strip; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if test "${ac_cv_prog_STRIP+set}" = set; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   if test -n "$STRIP"; then
4486   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493     for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500   done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 STRIP=$ac_cv_prog_STRIP
4506 if test -n "$STRIP"; then
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4508 $as_echo "$STRIP" >&6; }
4509 else
4510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4512 fi
4513
4514
4515 fi
4516 if test -z "$ac_cv_prog_STRIP"; then
4517   ac_ct_STRIP=$STRIP
4518   # Extract the first word of "strip", so it can be a program name with args.
4519 set dummy strip; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if test -n "$ac_ct_STRIP"; then
4526   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533     for ac_exec_ext in '' $ac_executable_extensions; do
4534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535     ac_cv_prog_ac_ct_STRIP="strip"
4536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540   done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4546 if test -n "$ac_ct_STRIP"; then
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4548 $as_echo "$ac_ct_STRIP" >&6; }
4549 else
4550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554   if test "x$ac_ct_STRIP" = x; then
4555     STRIP="strip"
4556   else
4557     case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563     STRIP=$ac_ct_STRIP
4564   fi
4565 else
4566   STRIP="$ac_cv_prog_STRIP"
4567 fi
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4570 $as_echo_n "checking whether ln -s works... " >&6; }
4571 LN_S=$as_ln_s
4572 if test "$LN_S" = "ln -s"; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574 $as_echo "yes" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4577 $as_echo "no, using $LN_S" >&6; }
4578 fi
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4582 if test "${ac_cv_path_GREP+set}" = set; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -z "$GREP"; then
4586   ac_path_GREP_found=false
4587   # Loop through the user's path and test for each of PROGNAME-LIST
4588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593     for ac_prog in grep ggrep; do
4594     for ac_exec_ext in '' $ac_executable_extensions; do
4595       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4596       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4597 # Check for GNU ac_path_GREP and select it if it is found.
4598   # Check for GNU $ac_path_GREP
4599 case `"$ac_path_GREP" --version 2>&1` in
4600 *GNU*)
4601   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4602 *)
4603   ac_count=0
4604   $as_echo_n 0123456789 >"conftest.in"
4605   while :
4606   do
4607     cat "conftest.in" "conftest.in" >"conftest.tmp"
4608     mv "conftest.tmp" "conftest.in"
4609     cp "conftest.in" "conftest.nl"
4610     $as_echo 'GREP' >> "conftest.nl"
4611     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4613     as_fn_arith $ac_count + 1 && ac_count=$as_val
4614     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4615       # Best one so far, save it but keep looking for a better one
4616       ac_cv_path_GREP="$ac_path_GREP"
4617       ac_path_GREP_max=$ac_count
4618     fi
4619     # 10*(2^10) chars as input seems more than enough
4620     test $ac_count -gt 10 && break
4621   done
4622   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623 esac
4624
4625       $ac_path_GREP_found && break 3
4626     done
4627   done
4628   done
4629 IFS=$as_save_IFS
4630   if test -z "$ac_cv_path_GREP"; then
4631     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632   fi
4633 else
4634   ac_cv_path_GREP=$GREP
4635 fi
4636
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4639 $as_echo "$ac_cv_path_GREP" >&6; }
4640  GREP="$ac_cv_path_GREP"
4641
4642
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4644 $as_echo_n "checking for egrep... " >&6; }
4645 if test "${ac_cv_path_EGREP+set}" = set; then :
4646   $as_echo_n "(cached) " >&6
4647 else
4648   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4649    then ac_cv_path_EGREP="$GREP -E"
4650    else
4651      if test -z "$EGREP"; then
4652   ac_path_EGREP_found=false
4653   # Loop through the user's path and test for each of PROGNAME-LIST
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_prog in egrep; do
4660     for ac_exec_ext in '' $ac_executable_extensions; do
4661       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4662       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4663 # Check for GNU ac_path_EGREP and select it if it is found.
4664   # Check for GNU $ac_path_EGREP
4665 case `"$ac_path_EGREP" --version 2>&1` in
4666 *GNU*)
4667   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4668 *)
4669   ac_count=0
4670   $as_echo_n 0123456789 >"conftest.in"
4671   while :
4672   do
4673     cat "conftest.in" "conftest.in" >"conftest.tmp"
4674     mv "conftest.tmp" "conftest.in"
4675     cp "conftest.in" "conftest.nl"
4676     $as_echo 'EGREP' >> "conftest.nl"
4677     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679     as_fn_arith $ac_count + 1 && ac_count=$as_val
4680     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4681       # Best one so far, save it but keep looking for a better one
4682       ac_cv_path_EGREP="$ac_path_EGREP"
4683       ac_path_EGREP_max=$ac_count
4684     fi
4685     # 10*(2^10) chars as input seems more than enough
4686     test $ac_count -gt 10 && break
4687   done
4688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691       $ac_path_EGREP_found && break 3
4692     done
4693   done
4694   done
4695 IFS=$as_save_IFS
4696   if test -z "$ac_cv_path_EGREP"; then
4697     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698   fi
4699 else
4700   ac_cv_path_EGREP=$EGREP
4701 fi
4702
4703    fi
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4706 $as_echo "$ac_cv_path_EGREP" >&6; }
4707  EGREP="$ac_cv_path_EGREP"
4708
4709
4710 # Extract the first word of "ldconfig", so it can be a program name with args.
4711 set dummy ldconfig; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   case $LDCONFIG in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in /sbin /usr/sbin $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727     for ac_exec_ext in '' $ac_executable_extensions; do
4728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734   done
4735 IFS=$as_save_IFS
4736
4737   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4738   ;;
4739 esac
4740 fi
4741 LDCONFIG=$ac_cv_path_LDCONFIG
4742 if test -n "$LDCONFIG"; then
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4744 $as_echo "$LDCONFIG" >&6; }
4745 else
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 # Find a good install program.  We prefer a C program (faster),
4752 # so one script is as good as another.  But avoid the broken or
4753 # incompatible versions:
4754 # SysV /etc/install, /usr/sbin/install
4755 # SunOS /usr/etc/install
4756 # IRIX /sbin/install
4757 # AIX /bin/install
4758 # AmigaOS /C/install, which installs bootblocks on floppy discs
4759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4762 # OS/2's system install, which has a completely different semantic
4763 # ./install, which can be erroneously created by make from ./install.sh.
4764 # Reject install programs that cannot install multiple files.
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4766 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4767 if test -z "$INSTALL"; then
4768 if test "${ac_cv_path_install+set}" = set; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774   IFS=$as_save_IFS
4775   test -z "$as_dir" && as_dir=.
4776     # Account for people who put trailing slashes in PATH elements.
4777 case $as_dir/ in #((
4778   ./ | .// | /[cC]/* | \
4779   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4780   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4781   /usr/ucb/* ) ;;
4782   *)
4783     # OSF1 and SCO ODT 3.0 have their own names for install.
4784     # Don't use installbsd from OSF since it installs stuff as root
4785     # by default.
4786     for ac_prog in ginstall scoinst install; do
4787       for ac_exec_ext in '' $ac_executable_extensions; do
4788         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4789           if test $ac_prog = install &&
4790             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791             # AIX install.  It has an incompatible calling convention.
4792             :
4793           elif test $ac_prog = install &&
4794             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795             # program-specific install script used by HP pwplus--don't use.
4796             :
4797           else
4798             rm -rf conftest.one conftest.two conftest.dir
4799             echo one > conftest.one
4800             echo two > conftest.two
4801             mkdir conftest.dir
4802             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4803               test -s conftest.one && test -s conftest.two &&
4804               test -s conftest.dir/conftest.one &&
4805               test -s conftest.dir/conftest.two
4806             then
4807               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4808               break 3
4809             fi
4810           fi
4811         fi
4812       done
4813     done
4814     ;;
4815 esac
4816
4817   done
4818 IFS=$as_save_IFS
4819
4820 rm -rf conftest.one conftest.two conftest.dir
4821
4822 fi
4823   if test "${ac_cv_path_install+set}" = set; then
4824     INSTALL=$ac_cv_path_install
4825   else
4826     # As a last resort, use the slow shell script.  Don't cache a
4827     # value for INSTALL within a source directory, because that will
4828     # break other packages using the cache if that directory is
4829     # removed, or if the value is a relative name.
4830     INSTALL=$ac_install_sh
4831   fi
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4834 $as_echo "$INSTALL" >&6; }
4835
4836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837 # It thinks the first close brace ends the variable substitution.
4838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4839
4840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4841
4842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844 case "$INSTALL" in
4845   [\\/$]* | ?:[\\/]* ) ;;
4846   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4847 esac
4848
4849 for ac_prog in lclint lint
4850 do
4851   # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_LINT+set}" = set; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$LINT"; then
4859   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_LINT="$ac_prog"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 LINT=$ac_cv_prog_LINT
4879 if test -n "$LINT"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4881 $as_echo "$LINT" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888   test -n "$LINT" && break
4889 done
4890
4891 if test "$LINT" = "lint"
4892 then
4893   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4894   fi
4895
4896
4897
4898 for ac_prog in fontforge
4899 do
4900   # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   if test -n "$FONTFORGE"; then
4908   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_FONTFORGE="$ac_prog"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 FONTFORGE=$ac_cv_prog_FONTFORGE
4928 if test -n "$FONTFORGE"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4930 $as_echo "$FONTFORGE" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936
4937   test -n "$FONTFORGE" && break
4938 done
4939 test -n "$FONTFORGE" || FONTFORGE="false"
4940
4941 for ac_prog in pkg-config
4942 do
4943   # Extract the first word of "$ac_prog", so it can be a program name with args.
4944 set dummy $ac_prog; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   if test -n "$PKG_CONFIG"; then
4951   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_prog_PKG_CONFIG="$ac_prog"
4961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965   done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4971 if test -n "$PKG_CONFIG"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4973 $as_echo "$PKG_CONFIG" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980   test -n "$PKG_CONFIG" && break
4981 done
4982 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4983
4984 for ac_prog in rsvg
4985 do
4986   # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if test "${ac_cv_prog_RSVG+set}" = set; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   if test -n "$RSVG"; then
4994   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_prog_RSVG="$ac_prog"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 RSVG=$ac_cv_prog_RSVG
5014 if test -n "$RSVG"; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5016 $as_echo "$RSVG" >&6; }
5017 else
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023   test -n "$RSVG" && break
5024 done
5025 test -n "$RSVG" || RSVG="false"
5026
5027 for ac_prog in icotool
5028 do
5029   # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if test -n "$ICOTOOL"; then
5037   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_ICOTOOL="$ac_prog"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ICOTOOL=$ac_cv_prog_ICOTOOL
5057 if test -n "$ICOTOOL"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5059 $as_echo "$ICOTOOL" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066   test -n "$ICOTOOL" && break
5067 done
5068 test -n "$ICOTOOL" || ICOTOOL="false"
5069
5070
5071 if test "${enable_maintainer_mode+set}" = set
5072 then
5073   if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5074   if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5075   if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5076 fi
5077
5078 case $host_cpu in
5079   *i[3456789]86*)
5080     # Extract the first word of "prelink", so it can be a program name with args.
5081 set dummy prelink; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_path_PRELINK+set}" = set; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   case $PRELINK in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in /sbin /usr/sbin $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5108   ;;
5109 esac
5110 fi
5111 PRELINK=$ac_cv_path_PRELINK
5112 if test -n "$PRELINK"; then
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5114 $as_echo "$PRELINK" >&6; }
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121     ;;
5122 esac
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5126 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5127 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   ac_check_lib_save_LIBS=$LIBS
5131 LIBS="-li386  $LIBS"
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h.  */
5134
5135 /* Override any GCC internal prototype to avoid an error.
5136    Use char because int might match the return type of a GCC
5137    builtin and then its argument prototype would still apply.  */
5138 #ifdef __cplusplus
5139 extern "C"
5140 #endif
5141 char i386_set_ldt ();
5142 int
5143 main ()
5144 {
5145 return i386_set_ldt ();
5146   ;
5147   return 0;
5148 }
5149 _ACEOF
5150 if ac_fn_c_try_link "$LINENO"; then :
5151   ac_cv_lib_i386_i386_set_ldt=yes
5152 else
5153   ac_cv_lib_i386_i386_set_ldt=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext \
5156     conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5160 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5161 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5162   cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBI386 1
5164 _ACEOF
5165
5166   LIBS="-li386 $LIBS"
5167
5168 fi
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5171 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5172 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   ac_check_lib_save_LIBS=$LIBS
5176 LIBS="-lossaudio  $LIBS"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h.  */
5179
5180 /* Override any GCC internal prototype to avoid an error.
5181    Use char because int might match the return type of a GCC
5182    builtin and then its argument prototype would still apply.  */
5183 #ifdef __cplusplus
5184 extern "C"
5185 #endif
5186 char _oss_ioctl ();
5187 int
5188 main ()
5189 {
5190 return _oss_ioctl ();
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 if ac_fn_c_try_link "$LINENO"; then :
5196   ac_cv_lib_ossaudio__oss_ioctl=yes
5197 else
5198   ac_cv_lib_ossaudio__oss_ioctl=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext \
5201     conftest$ac_exeext conftest.$ac_ext
5202 LIBS=$ac_check_lib_save_LIBS
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5205 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5206 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5207   cat >>confdefs.h <<_ACEOF
5208 #define HAVE_LIBOSSAUDIO 1
5209 _ACEOF
5210
5211   LIBS="-lossaudio $LIBS"
5212
5213 fi
5214
5215
5216 XLIB=""
5217
5218 OPENGL_LIBS=""
5219
5220
5221
5222 # Check whether --enable-largefile was given.
5223 if test "${enable_largefile+set}" = set; then :
5224   enableval=$enable_largefile;
5225 fi
5226
5227 if test "$enable_largefile" != no; then
5228
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5230 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5231 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   ac_cv_sys_largefile_CC=no
5235      if test "$GCC" != yes; then
5236        ac_save_CC=$CC
5237        while :; do
5238          # IRIX 6.2 and later do not support large files by default,
5239          # so use the C compiler's -n32 option if that helps.
5240          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h.  */
5242 #include <sys/types.h>
5243  /* Check that off_t can represent 2**63 - 1 correctly.
5244     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5245     since some C++ compilers masquerading as C compilers
5246     incorrectly reject 9223372036854775807.  */
5247 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5248   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5249                        && LARGE_OFF_T % 2147483647 == 1)
5250                       ? 1 : -1];
5251 int
5252 main ()
5253 {
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259          if ac_fn_c_try_compile "$LINENO"; then :
5260   break
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext
5263          CC="$CC -n32"
5264          if ac_fn_c_try_compile "$LINENO"; then :
5265   ac_cv_sys_largefile_CC=' -n32'; break
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext
5268          break
5269        done
5270        CC=$ac_save_CC
5271        rm -f conftest.$ac_ext
5272     fi
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5275 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5276   if test "$ac_cv_sys_largefile_CC" != no; then
5277     CC=$CC$ac_cv_sys_largefile_CC
5278   fi
5279
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5281 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   while :; do
5286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h.  */
5288 #include <sys/types.h>
5289  /* Check that off_t can represent 2**63 - 1 correctly.
5290     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291     since some C++ compilers masquerading as C compilers
5292     incorrectly reject 9223372036854775807.  */
5293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295                        && LARGE_OFF_T % 2147483647 == 1)
5296                       ? 1 : -1];
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306   ac_cv_sys_file_offset_bits=no; break
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311 #define _FILE_OFFSET_BITS 64
5312 #include <sys/types.h>
5313  /* Check that off_t can represent 2**63 - 1 correctly.
5314     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5315     since some C++ compilers masquerading as C compilers
5316     incorrectly reject 9223372036854775807.  */
5317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5318   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5319                        && LARGE_OFF_T % 2147483647 == 1)
5320                       ? 1 : -1];
5321 int
5322 main ()
5323 {
5324
5325   ;
5326   return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330   ac_cv_sys_file_offset_bits=64; break
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333   ac_cv_sys_file_offset_bits=unknown
5334   break
5335 done
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5338 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5339 case $ac_cv_sys_file_offset_bits in #(
5340   no | unknown) ;;
5341   *)
5342 cat >>confdefs.h <<_ACEOF
5343 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5344 _ACEOF
5345 ;;
5346 esac
5347 rm -rf conftest*
5348   if test $ac_cv_sys_file_offset_bits = unknown; then
5349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5350 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5351 if test "${ac_cv_sys_large_files+set}" = set; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   while :; do
5355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357 #include <sys/types.h>
5358  /* Check that off_t can represent 2**63 - 1 correctly.
5359     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5360     since some C++ compilers masquerading as C compilers
5361     incorrectly reject 9223372036854775807.  */
5362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5363   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5364                        && LARGE_OFF_T % 2147483647 == 1)
5365                       ? 1 : -1];
5366 int
5367 main ()
5368 {
5369
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375   ac_cv_sys_large_files=no; break
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h.  */
5380 #define _LARGE_FILES 1
5381 #include <sys/types.h>
5382  /* Check that off_t can represent 2**63 - 1 correctly.
5383     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5384     since some C++ compilers masquerading as C compilers
5385     incorrectly reject 9223372036854775807.  */
5386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5387   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5388                        && LARGE_OFF_T % 2147483647 == 1)
5389                       ? 1 : -1];
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399   ac_cv_sys_large_files=1; break
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402   ac_cv_sys_large_files=unknown
5403   break
5404 done
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5407 $as_echo "$ac_cv_sys_large_files" >&6; }
5408 case $ac_cv_sys_large_files in #(
5409   no | unknown) ;;
5410   *)
5411 cat >>confdefs.h <<_ACEOF
5412 #define _LARGE_FILES $ac_cv_sys_large_files
5413 _ACEOF
5414 ;;
5415 esac
5416 rm -rf conftest*
5417   fi
5418 fi
5419
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5430   CPP=
5431 fi
5432 if test -z "$CPP"; then
5433   if test "${ac_cv_prog_CPP+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436       # Double quotes because CPP needs to be expanded
5437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438     do
5439       ac_preproc_ok=false
5440 for ac_c_preproc_warn_flag in '' yes
5441 do
5442   # Use a header file that comes with gcc, so configuring glibc
5443   # with a fresh cross-compiler works.
5444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445   # <limits.h> exists even on freestanding compilers.
5446   # On the NeXT, cc -E runs the code through the compiler's parser,
5447   # not just through cpp. "Syntax error" is here to catch this case.
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455                      Syntax error
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458
5459 else
5460   # Broken: fails on valid input.
5461 continue
5462 fi
5463 rm -f conftest.err conftest.$ac_ext
5464
5465   # OK, works on sane cases.  Now check whether nonexistent headers
5466   # can be detected and how.
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h.  */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472   # Broken: success on invalid input.
5473 continue
5474 else
5475   # Passes both tests.
5476 ac_preproc_ok=:
5477 break
5478 fi
5479 rm -f conftest.err conftest.$ac_ext
5480
5481 done
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5485   break
5486 fi
5487
5488     done
5489     ac_cv_prog_CPP=$CPP
5490
5491 fi
5492   CPP=$ac_cv_prog_CPP
5493 else
5494   ac_cv_prog_CPP=$CPP
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5500 do
5501   # Use a header file that comes with gcc, so configuring glibc
5502   # with a fresh cross-compiler works.
5503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504   # <limits.h> exists even on freestanding compilers.
5505   # On the NeXT, cc -E runs the code through the compiler's parser,
5506   # not just through cpp. "Syntax error" is here to catch this case.
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514                      Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5517
5518 else
5519   # Broken: fails on valid input.
5520 continue
5521 fi
5522 rm -f conftest.err conftest.$ac_ext
5523
5524   # OK, works on sane cases.  Now check whether nonexistent headers
5525   # can be detected and how.
5526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h.  */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531   # Broken: success on invalid input.
5532 continue
5533 else
5534   # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5544
5545 else
5546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5550 fi
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5560 $as_echo_n "checking for ANSI C header files... " >&6; }
5561 if test "${ac_cv_header_stdc+set}" = set; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566 #include <stdlib.h>
5567 #include <stdarg.h>
5568 #include <string.h>
5569 #include <float.h>
5570
5571 int
5572 main ()
5573 {
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580   ac_cv_header_stdc=yes
5581 else
5582   ac_cv_header_stdc=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585
5586 if test $ac_cv_header_stdc = yes; then
5587   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 #include <string.h>
5591
5592 _ACEOF
5593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594   $EGREP "memchr" >/dev/null 2>&1; then :
5595
5596 else
5597   ac_cv_header_stdc=no
5598 fi
5599 rm -f conftest*
5600
5601 fi
5602
5603 if test $ac_cv_header_stdc = yes; then
5604   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607 #include <stdlib.h>
5608
5609 _ACEOF
5610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5611   $EGREP "free" >/dev/null 2>&1; then :
5612
5613 else
5614   ac_cv_header_stdc=no
5615 fi
5616 rm -f conftest*
5617
5618 fi
5619
5620 if test $ac_cv_header_stdc = yes; then
5621   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5622   if test "$cross_compiling" = yes; then :
5623   :
5624 else
5625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627 #include <ctype.h>
5628 #include <stdlib.h>
5629 #if ((' ' & 0x0FF) == 0x020)
5630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5632 #else
5633 # define ISLOWER(c) \
5634                    (('a' <= (c) && (c) <= 'i') \
5635                      || ('j' <= (c) && (c) <= 'r') \
5636                      || ('s' <= (c) && (c) <= 'z'))
5637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5638 #endif
5639
5640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5641 int
5642 main ()
5643 {
5644   int i;
5645   for (i = 0; i < 256; i++)
5646     if (XOR (islower (i), ISLOWER (i))
5647         || toupper (i) != TOUPPER (i))
5648       return 2;
5649   return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_run "$LINENO"; then :
5653
5654 else
5655   ac_cv_header_stdc=no
5656 fi
5657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5658   conftest.$ac_objext conftest.beam conftest.$ac_ext
5659 fi
5660
5661 fi
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5664 $as_echo "$ac_cv_header_stdc" >&6; }
5665 if test $ac_cv_header_stdc = yes; then
5666
5667 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5668
5669 fi
5670
5671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5672 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5673                   inttypes.h stdint.h unistd.h
5674 do :
5675   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5677 "
5678 eval as_val=\$$as_ac_Header
5679    if test "x$as_val" = x""yes; then :
5680   cat >>confdefs.h <<_ACEOF
5681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 _ACEOF
5683
5684 fi
5685
5686 done
5687
5688
5689 for ac_header in \
5690         AL/al.h \
5691         AudioToolbox/AudioConverter.h \
5692         AudioToolbox/AudioFile.h \
5693         AudioToolbox/AudioFileStream.h \
5694         AudioUnit/AudioUnit.h \
5695         Carbon/Carbon.h \
5696         CoreAudio/CoreAudio.h \
5697         DiskArbitration/DiskArbitration.h \
5698         IOKit/IOKitLib.h \
5699         IOKit/hid/IOHIDLib.h \
5700         OpenAL/al.h \
5701         alias.h \
5702         alsa/asoundlib.h \
5703         arpa/inet.h \
5704         arpa/nameser.h \
5705         asm/types.h \
5706         capi20.h \
5707         curses.h \
5708         direct.h \
5709         dirent.h \
5710         dlfcn.h \
5711         elf.h \
5712         float.h \
5713         fnmatch.h \
5714         fontconfig/fontconfig.h \
5715         getopt.h \
5716         grp.h \
5717         gsm.h \
5718         gsm/gsm.h \
5719         ieeefp.h \
5720         inet/mib2.h \
5721         io.h \
5722         jack/jack.h \
5723         jpeglib.h \
5724         kstat.h \
5725         lber.h \
5726         lcms.h \
5727         lcms/lcms.h \
5728         ldap.h \
5729         libaudioio.h \
5730         link.h \
5731         linux/cdrom.h \
5732         linux/compiler.h \
5733         linux/hdreg.h \
5734         linux/input.h \
5735         linux/ioctl.h \
5736         linux/joystick.h \
5737         linux/major.h \
5738         linux/param.h \
5739         linux/serial.h \
5740         linux/types.h \
5741         linux/ucdrom.h \
5742         mach-o/nlist.h \
5743         mach/mach.h \
5744         mach/machine.h \
5745         machine/cpu.h \
5746         machine/limits.h \
5747         machine/soundcard.h \
5748         mntent.h \
5749         mpg123.h \
5750         ncurses.h \
5751         netdb.h \
5752         netinet/in.h \
5753         netinet/in_systm.h \
5754         netinet/tcp.h \
5755         netinet/tcp_fsm.h \
5756         openssl/err.h \
5757         openssl/ssl.h \
5758         png.h \
5759         poll.h \
5760         port.h \
5761         process.h \
5762         pthread.h \
5763         pwd.h \
5764         regex.h \
5765         sched.h \
5766         scsi/scsi.h \
5767         scsi/scsi_ioctl.h \
5768         scsi/sg.h \
5769         soundcard.h \
5770         stdbool.h \
5771         stdint.h \
5772         strings.h \
5773         stropts.h \
5774         sys/asoundlib.h \
5775         sys/cdio.h \
5776         sys/elf32.h \
5777         sys/epoll.h \
5778         sys/errno.h \
5779         sys/event.h \
5780         sys/exec_elf.h \
5781         sys/filio.h \
5782         sys/inotify.h \
5783         sys/ioctl.h \
5784         sys/ipc.h \
5785         sys/limits.h \
5786         sys/link.h \
5787         sys/mman.h \
5788         sys/modem.h \
5789         sys/msg.h \
5790         sys/mtio.h \
5791         sys/param.h \
5792         sys/poll.h \
5793         sys/prctl.h \
5794         sys/protosw.h \
5795         sys/ptrace.h \
5796         sys/resource.h \
5797         sys/scsiio.h \
5798         sys/shm.h \
5799         sys/signal.h \
5800         sys/socket.h \
5801         sys/socketvar.h \
5802         sys/sockio.h \
5803         sys/soundcard.h \
5804         sys/statvfs.h \
5805         sys/strtio.h \
5806         sys/syscall.h \
5807         sys/tihdr.h \
5808         sys/time.h \
5809         sys/timeout.h \
5810         sys/times.h \
5811         sys/uio.h \
5812         sys/un.h \
5813         sys/utsname.h \
5814         sys/vm86.h \
5815         sys/wait.h \
5816         syscall.h \
5817         termios.h \
5818         tiffio.h \
5819         unistd.h \
5820         utime.h \
5821         valgrind/memcheck.h \
5822         valgrind/valgrind.h \
5823         zlib.h
5824
5825 do :
5826   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5827 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5828 eval as_val=\$$as_ac_Header
5829    if test "x$as_val" = x""yes; then :
5830   cat >>confdefs.h <<_ACEOF
5831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5832 _ACEOF
5833
5834 fi
5835
5836 done
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5839 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5840 if test "${ac_cv_header_stat_broken+set}" = set; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845 #include <sys/types.h>
5846 #include <sys/stat.h>
5847
5848 #if defined S_ISBLK && defined S_IFDIR
5849 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5850 #endif
5851
5852 #if defined S_ISBLK && defined S_IFCHR
5853 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5854 #endif
5855
5856 #if defined S_ISLNK && defined S_IFREG
5857 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5858 #endif
5859
5860 #if defined S_ISSOCK && defined S_IFREG
5861 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5862 #endif
5863
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866   ac_cv_header_stat_broken=no
5867 else
5868   ac_cv_header_stat_broken=yes
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5873 $as_echo "$ac_cv_header_stat_broken" >&6; }
5874 if test $ac_cv_header_stat_broken = yes; then
5875
5876 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5877
5878 fi
5879
5880
5881
5882 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5883 do :
5884   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5886      #ifdef HAVE_SYS_PARAM_H
5887      # include <sys/param.h>
5888      #endif
5889 "
5890 eval as_val=\$$as_ac_Header
5891    if test "x$as_val" = x""yes; then :
5892   cat >>confdefs.h <<_ACEOF
5893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 _ACEOF
5895
5896 fi
5897
5898 done
5899
5900
5901 for ac_header in \
5902         netinet/ip.h \
5903         net/if.h \
5904         net/if_arp.h \
5905         net/if_dl.h \
5906         net/if_types.h \
5907         net/route.h \
5908         netinet/if_ether.h \
5909         netinet/if_inarp.h \
5910         netinet/in_pcb.h \
5911         netinet/ip_icmp.h \
5912         netinet/ip_var.h \
5913         netinet/udp.h \
5914         netipx/ipx.h \
5915
5916 do :
5917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5919      #ifdef HAVE_SYS_SOCKET_H
5920      # include <sys/socket.h>
5921      #endif
5922      #ifdef HAVE_SYS_SOCKETVAR_H
5923      # include <sys/socketvar.h>
5924      #endif
5925      #ifdef HAVE_NET_ROUTE_H
5926      # include <net/route.h>
5927      #endif
5928      #ifdef HAVE_NETINET_IN_H
5929      # include <netinet/in.h>
5930      #endif
5931      #ifdef HAVE_NETINET_IN_SYSTM_H
5932      # include <netinet/in_systm.h>
5933      #endif
5934      #ifdef HAVE_NET_IF_H
5935      # include <net/if.h>
5936      #endif
5937      #ifdef HAVE_NETINET_IP_H
5938      # include <netinet/ip.h>
5939      #endif
5940 "
5941 eval as_val=\$$as_ac_Header
5942    if test "x$as_val" = x""yes; then :
5943   cat >>confdefs.h <<_ACEOF
5944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5945 _ACEOF
5946
5947 fi
5948
5949 done
5950
5951
5952 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5953 do :
5954   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5955 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5956      #ifdef HAVE_ALIAS_H
5957      # include <alias.h>
5958      #endif
5959      #ifdef HAVE_SYS_SOCKET_H
5960      # include <sys/socket.h>
5961      #endif
5962      #ifdef HAVE_SYS_SOCKETVAR_H
5963      # include <sys/socketvar.h>
5964      #endif
5965      #ifdef HAVE_SYS_TIMEOUT_H
5966      # include <sys/timeout.h>
5967      #endif
5968      #ifdef HAVE_NETINET_IN_H
5969      # include <netinet/in.h>
5970      #endif
5971      #ifdef HAVE_NETINET_IN_SYSTM_H
5972      # include <netinet/in_systm.h>
5973      #endif
5974      #ifdef HAVE_NETINET_IP_H
5975      # include <netinet/ip.h>
5976      #endif
5977      #ifdef HAVE_NETINET_IP_VAR_H
5978      # include <netinet/ip_var.h>
5979      #endif
5980      #ifdef HAVE_NETINET_IP_ICMP_H
5981      # include <netinet/ip_icmp.h>
5982      #endif
5983      #ifdef HAVE_NETINET_UDP_H
5984      # include <netinet/udp.h>
5985      #endif
5986      #ifdef HAVE_NETINET_TCP_H
5987      # include <netinet/tcp.h>
5988      #endif
5989      #ifdef HAVE_NETINET_TCP_TIMER_H
5990      #include <netinet/tcp_timer.h>
5991      #endif
5992 "
5993 eval as_val=\$$as_ac_Header
5994    if test "x$as_val" = x""yes; then :
5995   cat >>confdefs.h <<_ACEOF
5996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 _ACEOF
5998
5999 fi
6000
6001 done
6002
6003
6004 for ac_header in linux/ipx.h linux/irda.h
6005 do :
6006   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6008      #ifdef HAVE_ASM_TYPES_H
6009      # include <asm/types.h>
6010      #endif
6011      #ifdef HAVE_SYS_SOCKET_H
6012      # include <sys/socket.h>
6013      #endif
6014      #ifdef HAVE_LINUX_TYPES_H
6015      # include <linux/types.h>
6016      #endif
6017 "
6018 eval as_val=\$$as_ac_Header
6019    if test "x$as_val" = x""yes; then :
6020   cat >>confdefs.h <<_ACEOF
6021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 _ACEOF
6023
6024 fi
6025
6026 done
6027
6028
6029 for ac_header in mach-o/dyld_images.h
6030 do :
6031   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6032      # include <stdbool.h>
6033      #endif
6034      #ifdef HAVE_STDINT_H
6035      # include <stdint.h>
6036      #endif
6037 "
6038 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6039   cat >>confdefs.h <<_ACEOF
6040 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6041 _ACEOF
6042
6043 fi
6044
6045 done
6046
6047
6048 for ac_header in resolv.h
6049 do :
6050   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6051      #ifdef HAVE_SYS_SOCKET_H
6052      # include <sys/socket.h>
6053      #endif
6054      #ifdef HAVE_NETINET_IN_H
6055      # include <netinet/in.h>
6056      #endif
6057      #ifdef HAVE_ARPA_NAMESER_H
6058      # include <arpa/nameser.h>
6059      #endif
6060 "
6061 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6062   cat >>confdefs.h <<_ACEOF
6063 #define HAVE_RESOLV_H 1
6064 _ACEOF
6065
6066 fi
6067
6068 done
6069
6070
6071 for ac_header in ifaddrs.h
6072 do :
6073   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6074 "
6075 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6076   cat >>confdefs.h <<_ACEOF
6077 #define HAVE_IFADDRS_H 1
6078 _ACEOF
6079
6080 fi
6081
6082 done
6083
6084
6085 for ac_header in ucontext.h
6086 do :
6087   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6088 "
6089 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6090   cat >>confdefs.h <<_ACEOF
6091 #define HAVE_UCONTEXT_H 1
6092 _ACEOF
6093
6094 fi
6095
6096 done
6097
6098
6099 for ac_header in sys/thr.h
6100 do :
6101   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6102 #ifdef HAVE_UCONTEXT_H
6103 #include <ucontext.h>
6104 #endif
6105 "
6106 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6107   cat >>confdefs.h <<_ACEOF
6108 #define HAVE_SYS_THR_H 1
6109 _ACEOF
6110
6111 fi
6112
6113 done
6114
6115
6116 for ac_header in pthread_np.h
6117 do :
6118   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6119 #include <pthread.h>
6120 #endif
6121 "
6122 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6123   cat >>confdefs.h <<_ACEOF
6124 #define HAVE_PTHREAD_NP_H 1
6125 _ACEOF
6126
6127 fi
6128
6129 done
6130
6131
6132 for ac_header in linux/videodev.h
6133 do :
6134   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6135 #include <sys/time.h>
6136 #endif
6137 #include <sys/types.h>
6138 #ifdef HAVE_ASM_TYPES_H
6139 #include <asm/types.h>
6140 #endif
6141 "
6142 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define HAVE_LINUX_VIDEODEV_H 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in linux/capi.h
6153 do :
6154   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6155 "
6156 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6157   cat >>confdefs.h <<_ACEOF
6158 #define HAVE_LINUX_CAPI_H 1
6159 _ACEOF
6160
6161 fi
6162
6163 done
6164
6165
6166
6167 DLLEXT=""
6168
6169 DLLFLAGS="-D_REENTRANT"
6170
6171 LDSHARED=""
6172
6173 LDDLLFLAGS=""
6174
6175 LIBEXT="so"
6176
6177 IMPLIBEXT="def"
6178
6179 LDRPATH_INSTALL=""
6180
6181 LDRPATH_LOCAL=""
6182
6183 STATIC_IMPLIBEXT="def.a"
6184 # Extract the first word of "ldd", so it can be a program name with args.
6185 set dummy ldd; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_path_LDD+set}" = set; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   case $LDD in
6192   [\\/]* | ?:[\\/]*)
6193   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6194   ;;
6195   *)
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 as_dummy="/sbin:/usr/sbin:$PATH"
6198 for as_dir in $as_dummy
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6213   ;;
6214 esac
6215 fi
6216 LDD=$ac_cv_path_LDD
6217 if test -n "$LDD"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6219 $as_echo "$LDD" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225
6226
6227 case $host_os in
6228   cygwin*|mingw32*)
6229     if test -n "$ac_tool_prefix"; then
6230   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$DLLTOOL"; then
6238   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 DLLTOOL=$ac_cv_prog_DLLTOOL
6258 if test -n "$DLLTOOL"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6260 $as_echo "$DLLTOOL" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_DLLTOOL"; then
6269   ac_ct_DLLTOOL=$DLLTOOL
6270   # Extract the first word of "dlltool", so it can be a program name with args.
6271 set dummy dlltool; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -n "$ac_ct_DLLTOOL"; then
6278   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6298 if test -n "$ac_ct_DLLTOOL"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6300 $as_echo "$ac_ct_DLLTOOL" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306   if test "x$ac_ct_DLLTOOL" = x; then
6307     DLLTOOL="false"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315     DLLTOOL=$ac_ct_DLLTOOL
6316   fi
6317 else
6318   DLLTOOL="$ac_cv_prog_DLLTOOL"
6319 fi
6320
6321     if test -n "$ac_tool_prefix"; then
6322   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$DLLWRAP"; then
6330   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344   done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 DLLWRAP=$ac_cv_prog_DLLWRAP
6350 if test -n "$DLLWRAP"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6352 $as_echo "$DLLWRAP" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_DLLWRAP"; then
6361   ac_ct_DLLWRAP=$DLLWRAP
6362   # Extract the first word of "dllwrap", so it can be a program name with args.
6363 set dummy dllwrap; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$ac_ct_DLLWRAP"; then
6370   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6390 if test -n "$ac_ct_DLLWRAP"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6392 $as_echo "$ac_ct_DLLWRAP" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398   if test "x$ac_ct_DLLWRAP" = x; then
6399     DLLWRAP="false"
6400   else
6401     case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407     DLLWRAP=$ac_ct_DLLWRAP
6408   fi
6409 else
6410   DLLWRAP="$ac_cv_prog_DLLWRAP"
6411 fi
6412
6413     if test "$DLLWRAP" = "false"; then
6414       LIBEXT="a"
6415     else
6416             LIBEXT="dll"
6417     fi
6418     IMPLIBEXT="a"
6419     STATIC_IMPLIBEXT="a"
6420         enable_iphlpapi=${enable_iphlpapi:-no}
6421     enable_kernel32=${enable_kernel32:-no}
6422     enable_msvcrt=${enable_msvcrt:-no}
6423     enable_ntdll=${enable_ntdll:-no}
6424     enable_ws2_32=${enable_ws2_32:-no}
6425     enable_loader=${enable_loader:-no}
6426     enable_server=${enable_server:-no}
6427         with_x=${with_x:-no}
6428     with_pthread=${with_pthread:-no}
6429     ;;
6430   darwin*|macosx*)
6431     DLLEXT=".so"
6432     LIBEXT="dylib"
6433     DLLFLAGS="$DLLFLAGS -fPIC"
6434     LDDLLFLAGS="-bundle -multiply_defined suppress"
6435     LIBWINE_LDFLAGS="-multiply_defined suppress"
6436     LDSHARED="\$(CC) -dynamiclib"
6437     STRIP="$STRIP -x"
6438     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6439         SECURITYLIB="-framework Security -framework CoreFoundation"
6440
6441     COREFOUNDATIONLIB="-framework CoreFoundation"
6442
6443     IOKITLIB="-framework IOKit -framework CoreFoundation"
6444
6445     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6446
6447     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6448     then
6449                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6450
6451     fi
6452     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6453     then
6454                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6455
6456         ac_save_LIBS="$LIBS"
6457         if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6458         then
6459             LIBS="$LIBS $COREAUDIO"
6460             for ac_func in AudioFileStreamOpen
6461 do :
6462   ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6463 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6464   cat >>confdefs.h <<_ACEOF
6465 #define HAVE_AUDIOFILESTREAMOPEN 1
6466 _ACEOF
6467
6468 fi
6469 done
6470
6471             LIBS="$ac_save_LIBS"
6472         fi
6473         test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6474     fi
6475     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6476     then
6477         LIBOPENAL="-framework OpenAL"
6478
6479         ac_cv_lib_openal_alGetSource3i=yes
6480     fi
6481     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6482     then
6483         ac_save_LIBS="$LIBS"
6484         LIBS="$LIBS $IOKITLIB"
6485         for ac_func in IOHIDManagerCreate
6486 do :
6487   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6488 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6489   cat >>confdefs.h <<_ACEOF
6490 #define HAVE_IOHIDMANAGERCREATE 1
6491 _ACEOF
6492
6493 fi
6494 done
6495
6496         LIBS="$ac_save_LIBS"
6497     fi
6498     case $host_cpu in
6499       *powerpc*)
6500         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6501     esac
6502         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6503     then
6504         CARBONLIB="-framework Carbon"
6505
6506         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6507     fi
6508         if test "x$enable_win16" = "xyes"
6509     then
6510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6511 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6512         if test "$cross_compiling" = yes; then :
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6514 $as_echo "cross-compiling, assuming yes" >&6; }
6515 else
6516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h.  */
6518 asm(".text\n"
6519                                             "bad:\tnop;nop\n"
6520                                             "good:\tnop;nop\n\t"
6521                                             ".globl _testfunc\n"
6522                                             "_testfunc:\tcallw good");
6523                                         extern void testfunc();
6524 int
6525 main ()
6526 {
6527 unsigned short *p = (unsigned short *)testfunc;
6528                                         return p[0] != 0xe866 || p[1] != 0xfffa
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_run "$LINENO"; then :
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535 $as_echo "yes" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539                                        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
6540 fi
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6542   conftest.$ac_objext conftest.beam conftest.$ac_ext
6543 fi
6544
6545     fi
6546     ;;
6547   *)
6548     DLLFLAGS="$DLLFLAGS -fPIC"
6549     DLLEXT=".so"
6550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6551 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6552 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6553   $as_echo_n "(cached) " >&6
6554 else
6555   ac_wine_try_cflags_saved=$CFLAGS
6556 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h.  */
6559 void myfunc() {}
6560 _ACEOF
6561 if ac_fn_c_try_link "$LINENO"; then :
6562   ac_cv_c_dll_gnuelf="yes"
6563 else
6564   ac_cv_c_dll_gnuelf="no"
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext \
6567     conftest$ac_exeext conftest.$ac_ext
6568 CFLAGS=$ac_wine_try_cflags_saved
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6571 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6572     if test "$ac_cv_c_dll_gnuelf" = "yes"
6573     then
6574       LDSHARED="\$(CC) -shared"
6575       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6577 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6578 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   ac_wine_try_cflags_saved=$CFLAGS
6582 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h.  */
6585 int main(int argc, char **argv) { return 0; }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"; then :
6588   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6589 else
6590   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext \
6593     conftest$ac_exeext conftest.$ac_ext
6594 CFLAGS=$ac_wine_try_cflags_saved
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6597 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6598 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6599   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6602 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6603 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   ac_wine_try_cflags_saved=$CFLAGS
6607 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h.  */
6610 int main(int argc, char **argv) { return 0; }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6614 else
6615   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618     conftest$ac_exeext conftest.$ac_ext
6619 CFLAGS=$ac_wine_try_cflags_saved
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6622 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6623 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6624   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6625 fi
6626 fi
6627
6628       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6629 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6630 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   ac_wine_try_cflags_saved=$CFLAGS
6634 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h.  */
6637 int main(int argc, char **argv) { return 0; }
6638 _ACEOF
6639 if ac_fn_c_try_link "$LINENO"; then :
6640   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6641 else
6642   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645     conftest$ac_exeext conftest.$ac_ext
6646 CFLAGS=$ac_wine_try_cflags_saved
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6649 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6650 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6651   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6652 fi
6653
6654       { $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
6655 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6656 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   ac_wine_try_cflags_saved=$CFLAGS
6660 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663 int main(int argc, char **argv) { return 0; }
6664 _ACEOF
6665 if ac_fn_c_try_link "$LINENO"; then :
6666   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6667 else
6668   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext \
6671     conftest$ac_exeext conftest.$ac_ext
6672 CFLAGS=$ac_wine_try_cflags_saved
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6675 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6676 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6677   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6678 fi
6679
6680       echo '{ global: *; };' >conftest.map
6681       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6682 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6683 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   ac_wine_try_cflags_saved=$CFLAGS
6687 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h.  */
6690 int main(int argc, char **argv) { return 0; }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6694 else
6695   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext \
6698     conftest$ac_exeext conftest.$ac_ext
6699 CFLAGS=$ac_wine_try_cflags_saved
6700 fi
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6702 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6703 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6704   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6705 fi
6706       rm -f conftest.map
6707
6708       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6709 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6710 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   ac_wine_try_cflags_saved=$CFLAGS
6714 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717 int main(int argc, char **argv) { return 0; }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6721 else
6722   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725     conftest$ac_exeext conftest.$ac_ext
6726 CFLAGS=$ac_wine_try_cflags_saved
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6729 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6730 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6731   LDEXECFLAGS="-Wl,--export-dynamic"
6732
6733 fi
6734
6735       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6737 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   ac_wine_try_cflags_saved=$CFLAGS
6742 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h.  */
6745 int main(int argc, char **argv) { return 0; }
6746 _ACEOF
6747 if ac_fn_c_try_link "$LINENO"; then :
6748   eval "$as_ac_var=yes"
6749 else
6750   eval "$as_ac_var=no"
6751 fi
6752 rm -f core conftest.err conftest.$ac_objext \
6753     conftest$ac_exeext conftest.$ac_ext
6754 CFLAGS=$ac_wine_try_cflags_saved
6755 fi
6756 eval ac_res=\$$as_ac_var
6757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6758 $as_echo "$ac_res" >&6; }
6759 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6760   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6761                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6762 else
6763   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6765 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   ac_wine_try_cflags_saved=$CFLAGS
6770 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h.  */
6773 int main(int argc, char **argv) { return 0; }
6774 _ACEOF
6775 if ac_fn_c_try_link "$LINENO"; then :
6776   eval "$as_ac_var=yes"
6777 else
6778   eval "$as_ac_var=no"
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext \
6781     conftest$ac_exeext conftest.$ac_ext
6782 CFLAGS=$ac_wine_try_cflags_saved
6783 fi
6784 eval ac_res=\$$as_ac_var
6785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6786 $as_echo "$ac_res" >&6; }
6787 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6788   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6789                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6790 fi
6791 fi
6792
6793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6794 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6795 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   ac_wine_try_cflags_saved=$CFLAGS
6799 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h.  */
6802 int main(int argc, char **argv) { return 0; }
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"; then :
6805   ac_cv_cflags__Wl___enable_new_dtags=yes
6806 else
6807   ac_cv_cflags__Wl___enable_new_dtags=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext \
6810     conftest$ac_exeext conftest.$ac_ext
6811 CFLAGS=$ac_wine_try_cflags_saved
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6814 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6815 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6816   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6817 fi
6818
6819       case $host_cpu in
6820         *i[3456789]86* | x86_64)
6821           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6822 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6823 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   ac_wine_try_cflags_saved=$CFLAGS
6827 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h.  */
6830 int main(int argc, char **argv) { return 0; }
6831 _ACEOF
6832 if ac_fn_c_try_link "$LINENO"; then :
6833   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6834 else
6835   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext \
6838     conftest$ac_exeext conftest.$ac_ext
6839 CFLAGS=$ac_wine_try_cflags_saved
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6842 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6843 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6844   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6845 fi
6846           ;;
6847       esac
6848
6849     else
6850       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6851 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6852 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   ac_wine_try_cflags_saved=$CFLAGS
6856 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h.  */
6859 void myfunc() {}
6860 _ACEOF
6861 if ac_fn_c_try_link "$LINENO"; then :
6862   ac_cv_c_dll_unixware="yes"
6863 else
6864   ac_cv_c_dll_unixware="no"
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext \
6867     conftest$ac_exeext conftest.$ac_ext
6868 CFLAGS=$ac_wine_try_cflags_saved
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6871 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6872       if test "$ac_cv_c_dll_unixware" = "yes"
6873       then
6874         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6875         LDDLLFLAGS="-Wl,-G,-B,symbolic"
6876
6877       else
6878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6879 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6880 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   ac_wine_try_cflags_saved=$CFLAGS
6884 CFLAGS="$CFLAGS -shared"
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h.  */
6887 void myfunc() {}
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"; then :
6890   ac_cv_c_dll_hpux="yes"
6891 else
6892   ac_cv_c_dll_hpux="no"
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext \
6895     conftest$ac_exeext conftest.$ac_ext
6896 CFLAGS=$ac_wine_try_cflags_saved
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6899 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6900         if test "$ac_cv_c_dll_hpux" = "yes"
6901         then
6902           LIBEXT="sl"
6903           DLLEXT=".sl"
6904           LDDLLFLAGS="-shared -fPIC"
6905           LDSHARED="\$(CC) -shared"
6906         fi
6907       fi
6908     fi
6909     ;;
6910 esac
6911
6912 enable_winequartz_drv=${enable_winequartz_drv:-no}
6913
6914 if test "$LIBEXT" = "a"; then
6915   as_fn_error "could not find a way to build shared libraries.
6916 It is currently not possible to build Wine without shared library
6917 (.so) support to allow transparent switch between .so and .dll files.
6918 If you are using Linux, you will need a newer binutils.
6919 " "$LINENO" 5
6920 fi
6921
6922 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6923 then
6924     case "$host_cpu" in
6925   i[3456789]86*)
6926     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 " ;;
6927   x86_64)
6928     ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6929   *)
6930     ac_prefix_list="" ;;
6931 esac
6932 for ac_prog in $ac_prefix_list
6933 do
6934   # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   if test -n "$CROSSCC"; then
6942   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949     for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_prog_CROSSCC="$ac_prog"
6952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956   done
6957 IFS=$as_save_IFS
6958
6959 fi
6960 fi
6961 CROSSCC=$ac_cv_prog_CROSSCC
6962 if test -n "$CROSSCC"; then
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6964 $as_echo "$CROSSCC" >&6; }
6965 else
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6968 fi
6969
6970
6971   test -n "$CROSSCC" && break
6972 done
6973 test -n "$CROSSCC" || CROSSCC="false"
6974
6975     if test "$CROSSCC" != "false"
6976     then
6977         CROSSTEST="\$(CROSSTEST)"
6978
6979         set x $CROSSCC
6980         shift
6981         target=""
6982         while test $# -ge 1
6983         do
6984             case "$1" in
6985               *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6986             esac
6987             shift
6988         done
6989         if test -n "$target"
6990         then
6991             CROSSTARGET="$target"
6992
6993         fi
6994     fi
6995 fi
6996
6997
6998 if test "$ac_cv_header_pthread_h" = "yes"
6999 then
7000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7001 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7002 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   ac_check_lib_save_LIBS=$LIBS
7006 LIBS="-lpthread  $LIBS"
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h.  */
7009
7010 /* Override any GCC internal prototype to avoid an error.
7011    Use char because int might match the return type of a GCC
7012    builtin and then its argument prototype would still apply.  */
7013 #ifdef __cplusplus
7014 extern "C"
7015 #endif
7016 char pthread_create ();
7017 int
7018 main ()
7019 {
7020 return pthread_create ();
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 if ac_fn_c_try_link "$LINENO"; then :
7026   ac_cv_lib_pthread_pthread_create=yes
7027 else
7028   ac_cv_lib_pthread_pthread_create=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext \
7031     conftest$ac_exeext conftest.$ac_ext
7032 LIBS=$ac_check_lib_save_LIBS
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7035 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7036 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7037   LIBPTHREAD="-lpthread"
7038
7039 fi
7040
7041 fi
7042 if test "x$LIBPTHREAD" = "x"; then :
7043   case "x$with_pthread" in
7044   xno) ;;
7045   *)   as_fn_error "pthread ${notice_platform}development files not found.
7046 Wine cannot support threads without libpthread.
7047 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7048 esac
7049 fi
7050
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7053 $as_echo_n "checking for X... " >&6; }
7054
7055
7056 # Check whether --with-x was given.
7057 if test "${with_x+set}" = set; then :
7058   withval=$with_x;
7059 fi
7060
7061 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7062 if test "x$with_x" = xno; then
7063   # The user explicitly disabled X.
7064   have_x=disabled
7065 else
7066   case $x_includes,$x_libraries in #(
7067     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7068     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   # One or both of the vars are not set, and there is no cached value.
7072 ac_x_includes=no ac_x_libraries=no
7073 rm -f -r conftest.dir
7074 if mkdir conftest.dir; then
7075   cd conftest.dir
7076   cat >Imakefile <<'_ACEOF'
7077 incroot:
7078         @echo incroot='${INCROOT}'
7079 usrlibdir:
7080         @echo usrlibdir='${USRLIBDIR}'
7081 libdir:
7082         @echo libdir='${LIBDIR}'
7083 _ACEOF
7084   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7085     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7086     for ac_var in incroot usrlibdir libdir; do
7087       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7088     done
7089     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090     for ac_extension in a so sl dylib la dll; do
7091       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7092          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7093         ac_im_usrlibdir=$ac_im_libdir; break
7094       fi
7095     done
7096     # Screen out bogus values from the imake configuration.  They are
7097     # bogus both because they are the default anyway, and because
7098     # using them would break gcc on systems where it needs fixed includes.
7099     case $ac_im_incroot in
7100         /usr/include) ac_x_includes= ;;
7101         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7102     esac
7103     case $ac_im_usrlibdir in
7104         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7105         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7106     esac
7107   fi
7108   cd ..
7109   rm -f -r conftest.dir
7110 fi
7111
7112 # Standard set of common directories for X headers.
7113 # Check X11 before X11Rn because it is often a symlink to the current release.
7114 ac_x_header_dirs='
7115 /usr/X11/include
7116 /usr/X11R7/include
7117 /usr/X11R6/include
7118 /usr/X11R5/include
7119 /usr/X11R4/include
7120
7121 /usr/include/X11
7122 /usr/include/X11R7
7123 /usr/include/X11R6
7124 /usr/include/X11R5
7125 /usr/include/X11R4
7126
7127 /usr/local/X11/include
7128 /usr/local/X11R7/include
7129 /usr/local/X11R6/include
7130 /usr/local/X11R5/include
7131 /usr/local/X11R4/include
7132
7133 /usr/local/include/X11
7134 /usr/local/include/X11R7
7135 /usr/local/include/X11R6
7136 /usr/local/include/X11R5
7137 /usr/local/include/X11R4
7138
7139 /usr/X386/include
7140 /usr/x386/include
7141 /usr/XFree86/include/X11
7142
7143 /usr/include
7144 /usr/local/include
7145 /usr/unsupported/include
7146 /usr/athena/include
7147 /usr/local/x11r5/include
7148 /usr/lpp/Xamples/include
7149
7150 /usr/openwin/include
7151 /usr/openwin/share/include'
7152
7153 if test "$ac_x_includes" = no; then
7154   # Guess where to find include files, by looking for Xlib.h.
7155   # First, try using that file with no special directory specified.
7156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h.  */
7158 #include <X11/Xlib.h>
7159 _ACEOF
7160 if ac_fn_c_try_cpp "$LINENO"; then :
7161   # We can compile using X headers with no special include directory.
7162 ac_x_includes=
7163 else
7164   for ac_dir in $ac_x_header_dirs; do
7165   if test -r "$ac_dir/X11/Xlib.h"; then
7166     ac_x_includes=$ac_dir
7167     break
7168   fi
7169 done
7170 fi
7171 rm -f conftest.err conftest.$ac_ext
7172 fi # $ac_x_includes = no
7173
7174 if test "$ac_x_libraries" = no; then
7175   # Check for the libraries.
7176   # See if we find them without any special options.
7177   # Don't add to $LIBS permanently.
7178   ac_save_LIBS=$LIBS
7179   LIBS="-lX11 $LIBS"
7180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h.  */
7182 #include <X11/Xlib.h>
7183 int
7184 main ()
7185 {
7186 XrmInitialize ()
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192   LIBS=$ac_save_LIBS
7193 # We can link X programs with no special library path.
7194 ac_x_libraries=
7195 else
7196   LIBS=$ac_save_LIBS
7197 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7198 do
7199   # Don't even attempt the hair of trying to link an X program!
7200   for ac_extension in a so sl dylib la dll; do
7201     if test -r "$ac_dir/libX11.$ac_extension"; then
7202       ac_x_libraries=$ac_dir
7203       break 2
7204     fi
7205   done
7206 done
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext \
7209     conftest$ac_exeext conftest.$ac_ext
7210 fi # $ac_x_libraries = no
7211
7212 case $ac_x_includes,$ac_x_libraries in #(
7213   no,* | *,no | *\'*)
7214     # Didn't find X, or a directory has "'" in its name.
7215     ac_cv_have_x="have_x=no";; #(
7216   *)
7217     # Record where we found X for the cache.
7218     ac_cv_have_x="have_x=yes\
7219         ac_x_includes='$ac_x_includes'\
7220         ac_x_libraries='$ac_x_libraries'"
7221 esac
7222 fi
7223 ;; #(
7224     *) have_x=yes;;
7225   esac
7226   eval "$ac_cv_have_x"
7227 fi # $with_x != no
7228
7229 if test "$have_x" != yes; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7231 $as_echo "$have_x" >&6; }
7232   no_x=yes
7233 else
7234   # If each of the values was on the command line, it overrides each guess.
7235   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7236   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7237   # Update the cache value to reflect the command line values.
7238   ac_cv_have_x="have_x=yes\
7239         ac_x_includes='$x_includes'\
7240         ac_x_libraries='$x_libraries'"
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7242 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7243 fi
7244
7245 if test "$no_x" = yes; then
7246   # Not all programs may use this symbol, but it does not hurt to define it.
7247
7248 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7249
7250   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7251 else
7252   if test -n "$x_includes"; then
7253     X_CFLAGS="$X_CFLAGS -I$x_includes"
7254   fi
7255
7256   # It would also be nice to do this for all -L options, not just this one.
7257   if test -n "$x_libraries"; then
7258     X_LIBS="$X_LIBS -L$x_libraries"
7259     # For Solaris; some versions of Sun CC require a space after -R and
7260     # others require no space.  Words are not sufficient . . . .
7261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7262 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7263     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7264     ac_xsave_c_werror_flag=$ac_c_werror_flag
7265     ac_c_werror_flag=yes
7266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h.  */
7268
7269 int
7270 main ()
7271 {
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_link "$LINENO"; then :
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280        X_LIBS="$X_LIBS -R$x_libraries"
7281 else
7282   LIBS="$ac_xsave_LIBS -R $x_libraries"
7283        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7297           X_LIBS="$X_LIBS -R $x_libraries"
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7300 $as_echo "neither works" >&6; }
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext \
7303     conftest$ac_exeext conftest.$ac_ext
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext \
7306     conftest$ac_exeext conftest.$ac_ext
7307     ac_c_werror_flag=$ac_xsave_c_werror_flag
7308     LIBS=$ac_xsave_LIBS
7309   fi
7310
7311   # Check for system-dependent libraries X programs must link with.
7312   # Do this before checking for the system-independent R6 libraries
7313   # (-lICE), since we may need -lsocket or whatever for X linking.
7314
7315   if test "$ISC" = yes; then
7316     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7317   else
7318     # Martyn Johnson says this is needed for Ultrix, if the X
7319     # libraries were built with DECnet support.  And Karl Berry says
7320     # the Alpha needs dnet_stub (dnet does not exist).
7321     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h.  */
7324
7325 /* Override any GCC internal prototype to avoid an error.
7326    Use char because int might match the return type of a GCC
7327    builtin and then its argument prototype would still apply.  */
7328 #ifdef __cplusplus
7329 extern "C"
7330 #endif
7331 char XOpenDisplay ();
7332 int
7333 main ()
7334 {
7335 return XOpenDisplay ();
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"; then :
7341
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7344 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7345 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   ac_check_lib_save_LIBS=$LIBS
7349 LIBS="-ldnet  $LIBS"
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h.  */
7352
7353 /* Override any GCC internal prototype to avoid an error.
7354    Use char because int might match the return type of a GCC
7355    builtin and then its argument prototype would still apply.  */
7356 #ifdef __cplusplus
7357 extern "C"
7358 #endif
7359 char dnet_ntoa ();
7360 int
7361 main ()
7362 {
7363 return dnet_ntoa ();
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_link "$LINENO"; then :
7369   ac_cv_lib_dnet_dnet_ntoa=yes
7370 else
7371   ac_cv_lib_dnet_dnet_ntoa=no
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext \
7374     conftest$ac_exeext conftest.$ac_ext
7375 LIBS=$ac_check_lib_save_LIBS
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7378 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7379 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7380   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7381 fi
7382
7383     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7385 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7386 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   ac_check_lib_save_LIBS=$LIBS
7390 LIBS="-ldnet_stub  $LIBS"
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h.  */
7393
7394 /* Override any GCC internal prototype to avoid an error.
7395    Use char because int might match the return type of a GCC
7396    builtin and then its argument prototype would still apply.  */
7397 #ifdef __cplusplus
7398 extern "C"
7399 #endif
7400 char dnet_ntoa ();
7401 int
7402 main ()
7403 {
7404 return dnet_ntoa ();
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_link "$LINENO"; then :
7410   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7411 else
7412   ac_cv_lib_dnet_stub_dnet_ntoa=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext \
7415     conftest$ac_exeext conftest.$ac_ext
7416 LIBS=$ac_check_lib_save_LIBS
7417 fi
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7419 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7420 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7421   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7422 fi
7423
7424     fi
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427     conftest$ac_exeext conftest.$ac_ext
7428     LIBS="$ac_xsave_LIBS"
7429
7430     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7431     # to get the SysV transport functions.
7432     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7433     # needs -lnsl.
7434     # The nsl library prevents programs from opening the X display
7435     # on Irix 5.2, according to T.E. Dickey.
7436     # The functions gethostbyname, getservbyname, and inet_addr are
7437     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7438     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7439 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7440
7441 fi
7442
7443     if test $ac_cv_func_gethostbyname = no; then
7444       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7445 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7446 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   ac_check_lib_save_LIBS=$LIBS
7450 LIBS="-lnsl  $LIBS"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h.  */
7453
7454 /* Override any GCC internal prototype to avoid an error.
7455    Use char because int might match the return type of a GCC
7456    builtin and then its argument prototype would still apply.  */
7457 #ifdef __cplusplus
7458 extern "C"
7459 #endif
7460 char gethostbyname ();
7461 int
7462 main ()
7463 {
7464 return gethostbyname ();
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_link "$LINENO"; then :
7470   ac_cv_lib_nsl_gethostbyname=yes
7471 else
7472   ac_cv_lib_nsl_gethostbyname=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext \
7475     conftest$ac_exeext conftest.$ac_ext
7476 LIBS=$ac_check_lib_save_LIBS
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7479 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7480 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7481   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7482 fi
7483
7484       if test $ac_cv_lib_nsl_gethostbyname = no; then
7485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7486 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7487 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-lbsd  $LIBS"
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494
7495 /* Override any GCC internal prototype to avoid an error.
7496    Use char because int might match the return type of a GCC
7497    builtin and then its argument prototype would still apply.  */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 char gethostbyname ();
7502 int
7503 main ()
7504 {
7505 return gethostbyname ();
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"; then :
7511   ac_cv_lib_bsd_gethostbyname=yes
7512 else
7513   ac_cv_lib_bsd_gethostbyname=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext \
7516     conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7520 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7521 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7522   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7523 fi
7524
7525       fi
7526     fi
7527
7528     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7529     # socket/setsockopt and other routines are undefined under SCO ODT
7530     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7531     # on later versions), says Simon Leinen: it contains gethostby*
7532     # variants that don't use the name server (or something).  -lsocket
7533     # must be given before -lnsl if both are needed.  We assume that
7534     # if connect needs -lnsl, so does gethostbyname.
7535     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7536 if test "x$ac_cv_func_connect" = x""yes; then :
7537
7538 fi
7539
7540     if test $ac_cv_func_connect = no; then
7541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7542 $as_echo_n "checking for connect in -lsocket... " >&6; }
7543 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   ac_check_lib_save_LIBS=$LIBS
7547 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h.  */
7550
7551 /* Override any GCC internal prototype to avoid an error.
7552    Use char because int might match the return type of a GCC
7553    builtin and then its argument prototype would still apply.  */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char connect ();
7558 int
7559 main ()
7560 {
7561 return connect ();
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567   ac_cv_lib_socket_connect=yes
7568 else
7569   ac_cv_lib_socket_connect=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572     conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7576 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7577 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7578   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7579 fi
7580
7581     fi
7582
7583     # Guillermo Gomez says -lposix is necessary on A/UX.
7584     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7585 if test "x$ac_cv_func_remove" = x""yes; then :
7586
7587 fi
7588
7589     if test $ac_cv_func_remove = no; then
7590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7591 $as_echo_n "checking for remove in -lposix... " >&6; }
7592 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   ac_check_lib_save_LIBS=$LIBS
7596 LIBS="-lposix  $LIBS"
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h.  */
7599
7600 /* Override any GCC internal prototype to avoid an error.
7601    Use char because int might match the return type of a GCC
7602    builtin and then its argument prototype would still apply.  */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 char remove ();
7607 int
7608 main ()
7609 {
7610 return remove ();
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616   ac_cv_lib_posix_remove=yes
7617 else
7618   ac_cv_lib_posix_remove=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext \
7621     conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7625 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7626 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7627   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7628 fi
7629
7630     fi
7631
7632     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7633     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7634 if test "x$ac_cv_func_shmat" = x""yes; then :
7635
7636 fi
7637
7638     if test $ac_cv_func_shmat = no; then
7639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7640 $as_echo_n "checking for shmat in -lipc... " >&6; }
7641 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lipc  $LIBS"
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h.  */
7648
7649 /* Override any GCC internal prototype to avoid an error.
7650    Use char because int might match the return type of a GCC
7651    builtin and then its argument prototype would still apply.  */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char shmat ();
7656 int
7657 main ()
7658 {
7659 return shmat ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665   ac_cv_lib_ipc_shmat=yes
7666 else
7667   ac_cv_lib_ipc_shmat=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670     conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7674 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7675 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7677 fi
7678
7679     fi
7680   fi
7681
7682   # Check for libraries that X11R6 Xt/Xaw programs need.
7683   ac_save_LDFLAGS=$LDFLAGS
7684   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7685   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7686   # check for ICE first), but we must link in the order -lSM -lICE or
7687   # we get undefined symbols.  So assume we have SM if we have ICE.
7688   # These have to be linked with before -lX11, unlike the other
7689   # libraries we check for below, so use a different variable.
7690   # John Interrante, Karl Berry
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7692 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7693 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   ac_check_lib_save_LIBS=$LIBS
7697 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700
7701 /* Override any GCC internal prototype to avoid an error.
7702    Use char because int might match the return type of a GCC
7703    builtin and then its argument prototype would still apply.  */
7704 #ifdef __cplusplus
7705 extern "C"
7706 #endif
7707 char IceConnectionNumber ();
7708 int
7709 main ()
7710 {
7711 return IceConnectionNumber ();
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"; then :
7717   ac_cv_lib_ICE_IceConnectionNumber=yes
7718 else
7719   ac_cv_lib_ICE_IceConnectionNumber=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext \
7722     conftest$ac_exeext conftest.$ac_ext
7723 LIBS=$ac_check_lib_save_LIBS
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7726 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7727 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7728   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7729 fi
7730
7731   LDFLAGS=$ac_save_LDFLAGS
7732
7733 fi
7734
7735
7736 if test "$have_x" = "yes"
7737 then
7738     XLIB="-lX11"
7739     ac_save_CPPFLAGS="$CPPFLAGS"
7740     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7741
7742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7743 $as_echo_n "checking for -lX11... " >&6; }
7744 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747   ac_check_soname_save_LIBS=$LIBS
7748 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751
7752 /* Override any GCC internal prototype to avoid an error.
7753    Use char because int might match the return type of a GCC
7754    builtin and then its argument prototype would still apply.  */
7755 #ifdef __cplusplus
7756 extern "C"
7757 #endif
7758 char XCreateWindow ();
7759 int
7760 main ()
7761 {
7762 return XCreateWindow ();
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768   case "$LIBEXT" in
7769     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7770     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'` ;;
7771     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7772   esac
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775     conftest$ac_exeext conftest.$ac_ext
7776   LIBS=$ac_check_soname_save_LIBS
7777 fi
7778 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7780 $as_echo "not found" >&6; }
7781
7782 else
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7784 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7788 _ACEOF
7789
7790
7791 fi
7792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7793 $as_echo_n "checking for -lXext... " >&6; }
7794 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   ac_check_soname_save_LIBS=$LIBS
7798 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h.  */
7801
7802 /* Override any GCC internal prototype to avoid an error.
7803    Use char because int might match the return type of a GCC
7804    builtin and then its argument prototype would still apply.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char XextCreateExtension ();
7809 int
7810 main ()
7811 {
7812 return XextCreateExtension ();
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818   case "$LIBEXT" in
7819     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7820     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'` ;;
7821     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7822   esac
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext \
7825     conftest$ac_exeext conftest.$ac_ext
7826   LIBS=$ac_check_soname_save_LIBS
7827 fi
7828 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7830 $as_echo "not found" >&6; }
7831
7832 else
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7834 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7835
7836 cat >>confdefs.h <<_ACEOF
7837 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7838 _ACEOF
7839
7840        XLIB="-lXext $XLIB"
7841 fi
7842
7843         for ac_header in X11/Xlib.h \
7844                       X11/XKBlib.h \
7845                       X11/Xutil.h \
7846                       X11/Xcursor/Xcursor.h \
7847                       X11/extensions/shape.h \
7848                       X11/extensions/XInput.h \
7849                       X11/extensions/XShm.h \
7850                       X11/extensions/Xcomposite.h \
7851                       X11/extensions/Xinerama.h \
7852                       X11/extensions/Xrandr.h \
7853                       X11/extensions/Xrender.h \
7854                       X11/extensions/xf86vmode.h \
7855                       X11/extensions/xf86vmproto.h
7856 do :
7857   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7859 # include <X11/Xlib.h>
7860 #endif
7861 #ifdef HAVE_X11_XUTIL_H
7862 # include <X11/Xutil.h>
7863 #endif
7864 "
7865 eval as_val=\$$as_ac_Header
7866    if test "x$as_val" = x""yes; then :
7867   cat >>confdefs.h <<_ACEOF
7868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 _ACEOF
7870
7871 fi
7872
7873 done
7874
7875
7876                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7877         then
7878               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7879 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7880 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887
7888 /* Override any GCC internal prototype to avoid an error.
7889    Use char because int might match the return type of a GCC
7890    builtin and then its argument prototype would still apply.  */
7891 #ifdef __cplusplus
7892 extern "C"
7893 #endif
7894 char XkbQueryExtension ();
7895 int
7896 main ()
7897 {
7898 return XkbQueryExtension ();
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"; then :
7904   ac_cv_lib_X11_XkbQueryExtension=yes
7905 else
7906   ac_cv_lib_X11_XkbQueryExtension=no
7907 fi
7908 rm -f core conftest.err conftest.$ac_objext \
7909     conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7913 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7914 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7915
7916 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7917
7918 fi
7919
7920         fi
7921
7922                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7923         then
7924             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7925 $as_echo_n "checking for -lXcursor... " >&6; }
7926 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7927   $as_echo_n "(cached) " >&6
7928 else
7929   ac_check_soname_save_LIBS=$LIBS
7930 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933
7934 /* Override any GCC internal prototype to avoid an error.
7935    Use char because int might match the return type of a GCC
7936    builtin and then its argument prototype would still apply.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 char XcursorImageLoadCursor ();
7941 int
7942 main ()
7943 {
7944 return XcursorImageLoadCursor ();
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950   case "$LIBEXT" in
7951     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7952     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'` ;;
7953     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
7954   esac
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext \
7957     conftest$ac_exeext conftest.$ac_ext
7958   LIBS=$ac_check_soname_save_LIBS
7959 fi
7960 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7962 $as_echo "not found" >&6; }
7963
7964 else
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7966 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7970 _ACEOF
7971
7972
7973 fi
7974         fi
7975         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7976   case "x$with_xcursor" in
7977   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7978   xno) ;;
7979   *)   as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7980 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7981 esac
7982 fi
7983
7984                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7985         then
7986             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7987 $as_echo_n "checking for -lXi... " >&6; }
7988 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   ac_check_soname_save_LIBS=$LIBS
7992 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h.  */
7995
7996 /* Override any GCC internal prototype to avoid an error.
7997    Use char because int might match the return type of a GCC
7998    builtin and then its argument prototype would still apply.  */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 char XOpenDevice ();
8003 int
8004 main ()
8005 {
8006 return XOpenDevice ();
8007   ;
8008   return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"; then :
8012   case "$LIBEXT" in
8013     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8014     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'` ;;
8015     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8016   esac
8017 fi
8018 rm -f core conftest.err conftest.$ac_objext \
8019     conftest$ac_exeext conftest.$ac_ext
8020   LIBS=$ac_check_soname_save_LIBS
8021 fi
8022 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8024 $as_echo "not found" >&6; }
8025
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8028 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8029
8030 cat >>confdefs.h <<_ACEOF
8031 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8032 _ACEOF
8033
8034
8035 fi
8036         fi
8037         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8038   case "x$with_xinput" in
8039   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8040   xno) ;;
8041   *)   as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8042 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8043 esac
8044 fi
8045
8046                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8047         then
8048               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8049 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8050 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8051   $as_echo_n "(cached) " >&6
8052 else
8053   ac_check_lib_save_LIBS=$LIBS
8054 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h.  */
8057
8058 /* Override any GCC internal prototype to avoid an error.
8059    Use char because int might match the return type of a GCC
8060    builtin and then its argument prototype would still apply.  */
8061 #ifdef __cplusplus
8062 extern "C"
8063 #endif
8064 char XShmQueryExtension ();
8065 int
8066 main ()
8067 {
8068 return XShmQueryExtension ();
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_link "$LINENO"; then :
8074   ac_cv_lib_Xext_XShmQueryExtension=yes
8075 else
8076   ac_cv_lib_Xext_XShmQueryExtension=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext \
8079     conftest$ac_exeext conftest.$ac_ext
8080 LIBS=$ac_check_lib_save_LIBS
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8083 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8084 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8085
8086 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8087
8088 fi
8089
8090         fi
8091         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8092   case "x$with_xshm" in
8093   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8094   xno) ;;
8095   *)   as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8096 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8097 esac
8098 fi
8099
8100                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8101         then
8102               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8103 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8104 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h.  */
8111
8112 /* Override any GCC internal prototype to avoid an error.
8113    Use char because int might match the return type of a GCC
8114    builtin and then its argument prototype would still apply.  */
8115 #ifdef __cplusplus
8116 extern "C"
8117 #endif
8118 char XShapeQueryExtension ();
8119 int
8120 main ()
8121 {
8122 return XShapeQueryExtension ();
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128   ac_cv_lib_Xext_XShapeQueryExtension=yes
8129 else
8130   ac_cv_lib_Xext_XShapeQueryExtension=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext \
8133     conftest$ac_exeext conftest.$ac_ext
8134 LIBS=$ac_check_lib_save_LIBS
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8137 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8138 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8139
8140 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8141
8142 fi
8143
8144         fi
8145         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8146   case "x$with_xshape" in
8147   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8148   xno) ;;
8149   *)   as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8150 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8151 esac
8152 fi
8153
8154                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8155         then
8156             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8157 $as_echo_n "checking for -lXxf86vm... " >&6; }
8158 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   ac_check_soname_save_LIBS=$LIBS
8162 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h.  */
8165
8166 /* Override any GCC internal prototype to avoid an error.
8167    Use char because int might match the return type of a GCC
8168    builtin and then its argument prototype would still apply.  */
8169 #ifdef __cplusplus
8170 extern "C"
8171 #endif
8172 char XF86VidModeQueryExtension ();
8173 int
8174 main ()
8175 {
8176 return XF86VidModeQueryExtension ();
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182   case "$LIBEXT" in
8183     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8184     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'` ;;
8185     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8186   esac
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext \
8189     conftest$ac_exeext conftest.$ac_ext
8190   LIBS=$ac_check_soname_save_LIBS
8191 fi
8192 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8194 $as_echo "not found" >&6; }
8195
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8198 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8199
8200 cat >>confdefs.h <<_ACEOF
8201 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8202 _ACEOF
8203
8204
8205 fi
8206         fi
8207         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8208   case "x$with_xxf86vm" in
8209   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8210   xno) ;;
8211   *)   as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8212 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8213 esac
8214 fi
8215
8216                 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"
8217         then
8218             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8219 $as_echo_n "checking for -lXrender... " >&6; }
8220 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   ac_check_soname_save_LIBS=$LIBS
8224 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h.  */
8227
8228 /* Override any GCC internal prototype to avoid an error.
8229    Use char because int might match the return type of a GCC
8230    builtin and then its argument prototype would still apply.  */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 char XRenderQueryExtension ();
8235 int
8236 main ()
8237 {
8238 return XRenderQueryExtension ();
8239   ;
8240   return 0;
8241 }
8242 _ACEOF
8243 if ac_fn_c_try_link "$LINENO"; then :
8244   case "$LIBEXT" in
8245     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8246     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'` ;;
8247     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8248   esac
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext \
8251     conftest$ac_exeext conftest.$ac_ext
8252   LIBS=$ac_check_soname_save_LIBS
8253 fi
8254 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8256 $as_echo "not found" >&6; }
8257
8258 else
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8260 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8264 _ACEOF
8265
8266        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8267 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8268 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   ac_check_lib_save_LIBS=$LIBS
8272 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8275
8276 /* Override any GCC internal prototype to avoid an error.
8277    Use char because int might match the return type of a GCC
8278    builtin and then its argument prototype would still apply.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 char XRenderSetPictureTransform ();
8283 int
8284 main ()
8285 {
8286 return XRenderSetPictureTransform ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8293 else
8294   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297     conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8301 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8302 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8303
8304 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8305
8306 fi
8307
8308 fi
8309
8310         fi
8311         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8312   case "x$with_xrender" in
8313   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8314   xno) ;;
8315   *)   as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8316 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8317 esac
8318 fi
8319
8320                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8321         then
8322                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h.  */
8324 #include <X11/Xlib.h>
8325 #include <X11/extensions/Xrandr.h>
8326 int
8327 main ()
8328 {
8329 static typeof(XRRSetScreenConfigAndRate) * func;
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8336 $as_echo_n "checking for -lXrandr... " >&6; }
8337 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   ac_check_soname_save_LIBS=$LIBS
8341 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h.  */
8344
8345 /* Override any GCC internal prototype to avoid an error.
8346    Use char because int might match the return type of a GCC
8347    builtin and then its argument prototype would still apply.  */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 char XRRQueryExtension ();
8352 int
8353 main ()
8354 {
8355 return XRRQueryExtension ();
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361   case "$LIBEXT" in
8362     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8363     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'` ;;
8364     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8365   esac
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext \
8368     conftest$ac_exeext conftest.$ac_ext
8369   LIBS=$ac_check_soname_save_LIBS
8370 fi
8371 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8373 $as_echo "not found" >&6; }
8374
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8377 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8381 _ACEOF
8382
8383
8384 fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387         fi
8388         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8389   case "x$with_xrandr" in
8390   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8391   xno) ;;
8392   *)   as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8393 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8394 esac
8395 fi
8396
8397                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8398         then
8399                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h.  */
8401 #include <X11/Xlib.h>
8402 #include <X11/extensions/Xinerama.h>
8403 int
8404 main ()
8405 {
8406 static typeof(XineramaQueryScreens) * func;
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8413 $as_echo_n "checking for -lXinerama... " >&6; }
8414 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   ac_check_soname_save_LIBS=$LIBS
8418 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421
8422 /* Override any GCC internal prototype to avoid an error.
8423    Use char because int might match the return type of a GCC
8424    builtin and then its argument prototype would still apply.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char XineramaQueryScreens ();
8429 int
8430 main ()
8431 {
8432 return XineramaQueryScreens ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438   case "$LIBEXT" in
8439     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8440     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'` ;;
8441     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8442   esac
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext \
8445     conftest$ac_exeext conftest.$ac_ext
8446   LIBS=$ac_check_soname_save_LIBS
8447 fi
8448 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8450 $as_echo "not found" >&6; }
8451
8452 else
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8454 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8458 _ACEOF
8459
8460
8461 fi
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464         fi
8465         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8466   case "x$with_xinerama" in
8467   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8468   xno) ;;
8469   *)   as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8470 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8471 esac
8472 fi
8473
8474                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8475         then
8476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8477 $as_echo_n "checking for -lXcomposite... " >&6; }
8478 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   ac_check_soname_save_LIBS=$LIBS
8482 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485
8486 /* Override any GCC internal prototype to avoid an error.
8487    Use char because int might match the return type of a GCC
8488    builtin and then its argument prototype would still apply.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 char XCompositeRedirectWindow ();
8493 int
8494 main ()
8495 {
8496 return XCompositeRedirectWindow ();
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502   case "$LIBEXT" in
8503     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8504     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'` ;;
8505     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8506   esac
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510   LIBS=$ac_check_soname_save_LIBS
8511 fi
8512 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8514 $as_echo "not found" >&6; }
8515
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8518 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8522 _ACEOF
8523
8524
8525 fi
8526         fi
8527         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8528   case "x$with_xcomposite" in
8529   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8530   xno) ;;
8531   *)   as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8532 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8533 esac
8534 fi
8535
8536                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8537 #include <X11/Xlib.h>
8538 #endif
8539 "
8540 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8541
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_XICCALLBACK_CALLBACK 1
8544 _ACEOF
8545
8546
8547 fi
8548
8549
8550
8551         opengl_msg=""
8552     if test "x$with_opengl" != "xno"
8553     then
8554         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8555 do :
8556   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8558 # include <GL/glx.h>
8559 #endif
8560 "
8561 eval as_val=\$$as_ac_Header
8562    if test "x$as_val" = x""yes; then :
8563   cat >>confdefs.h <<_ACEOF
8564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565 _ACEOF
8566
8567 fi
8568
8569 done
8570
8571         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8572         then
8573                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8574 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8575 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8576   $as_echo_n "(cached) " >&6
8577 else
8578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h.  */
8580 #include <GL/gl.h>
8581 int
8582 main ()
8583 {
8584 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590   wine_cv_opengl_header_version_OK="yes"
8591 else
8592   wine_cv_opengl_header_version_OK="no"
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8597 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8598
8599             if test "$wine_cv_opengl_header_version_OK" = "yes"
8600             then
8601                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8602 $as_echo_n "checking for -lGL... " >&6; }
8603 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8604   $as_echo_n "(cached) " >&6
8605 else
8606   ac_check_soname_save_LIBS=$LIBS
8607 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h.  */
8610
8611 /* Override any GCC internal prototype to avoid an error.
8612    Use char because int might match the return type of a GCC
8613    builtin and then its argument prototype would still apply.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 char glXCreateContext ();
8618 int
8619 main ()
8620 {
8621 return glXCreateContext ();
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 if ac_fn_c_try_link "$LINENO"; then :
8627   case "$LIBEXT" in
8628     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8629     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'` ;;
8630     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8631   esac
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext \
8634     conftest$ac_exeext conftest.$ac_ext
8635   LIBS=$ac_check_soname_save_LIBS
8636 fi
8637 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8639 $as_echo "not found" >&6; }
8640        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8641 $as_echo_n "checking for -lGL... " >&6; }
8642 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   ac_check_soname_save_LIBS=$LIBS
8646 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"
8647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h.  */
8649
8650 /* Override any GCC internal prototype to avoid an error.
8651    Use char because int might match the return type of a GCC
8652    builtin and then its argument prototype would still apply.  */
8653 #ifdef __cplusplus
8654 extern "C"
8655 #endif
8656 char glXCreateContext ();
8657 int
8658 main ()
8659 {
8660 return glXCreateContext ();
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_link "$LINENO"; then :
8666   case "$LIBEXT" in
8667     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8668     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'` ;;
8669     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8670   esac
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext \
8673     conftest$ac_exeext conftest.$ac_ext
8674   LIBS=$ac_check_soname_save_LIBS
8675 fi
8676 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8678 $as_echo "not found" >&6; }
8679        if test -f /usr/X11R6/lib/libGL.a
8680                                     then
8681                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8682 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8683                                     else
8684                                         opengl_msg="No OpenGL library found on this system."
8685                                     fi
8686 else
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8688 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8689
8690 cat >>confdefs.h <<_ACEOF
8691 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8692 _ACEOF
8693
8694        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"
8695
8696 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8697
8698 fi
8699 else
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8701 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8702
8703 cat >>confdefs.h <<_ACEOF
8704 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8705 _ACEOF
8706
8707        OPENGL_LIBS="-lGL"
8708
8709 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8710
8711 fi
8712                  if test "$ac_cv_header_GL_glu_h" = "yes"
8713                  then
8714                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8715 $as_echo_n "checking for -lGLU... " >&6; }
8716 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   ac_check_soname_save_LIBS=$LIBS
8720 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h.  */
8723
8724 /* Override any GCC internal prototype to avoid an error.
8725    Use char because int might match the return type of a GCC
8726    builtin and then its argument prototype would still apply.  */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 char gluLookAt ();
8731 int
8732 main ()
8733 {
8734 return gluLookAt ();
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 if ac_fn_c_try_link "$LINENO"; then :
8740   case "$LIBEXT" in
8741     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8742     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'` ;;
8743     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8744   esac
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747     conftest$ac_exeext conftest.$ac_ext
8748   LIBS=$ac_check_soname_save_LIBS
8749 fi
8750 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8752 $as_echo "not found" >&6; }
8753
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8756 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8757
8758 cat >>confdefs.h <<_ACEOF
8759 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8760 _ACEOF
8761
8762
8763 fi
8764                  fi
8765                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8766   case "x$with_glu" in
8767   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8768   xno) ;;
8769   *)   as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8770 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8771 esac
8772 fi
8773              else
8774                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8775              fi
8776          else
8777              opengl_msg="OpenGL development headers not found."
8778          fi
8779          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8780          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8781     else
8782          enable_opengl32=${enable_opengl32:-no}
8783          enable_glu32=${enable_glu32:-no}
8784     fi
8785     if test -n "$opengl_msg"; then :
8786   case "x$with_opengl" in
8787   x)   as_fn_append wine_warnings "|$opengl_msg
8788 OpenGL and Direct3D won't be supported." ;;
8789   xno) ;;
8790   *)   as_fn_error "$opengl_msg
8791 OpenGL and Direct3D won't be supported.
8792 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8793 esac
8794 fi
8795
8796         NASLIBS=""
8797
8798     for ac_header in audio/audiolib.h
8799 do :
8800   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8801 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8802   cat >>confdefs.h <<_ACEOF
8803 #define HAVE_AUDIO_AUDIOLIB_H 1
8804 _ACEOF
8805  for ac_header in audio/soundlib.h
8806 do :
8807   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8808 "
8809 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8810   cat >>confdefs.h <<_ACEOF
8811 #define HAVE_AUDIO_SOUNDLIB_H 1
8812 _ACEOF
8813
8814 fi
8815
8816 done
8817
8818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8819 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8820 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   ac_check_lib_save_LIBS=$LIBS
8824 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827
8828 /* Override any GCC internal prototype to avoid an error.
8829    Use char because int might match the return type of a GCC
8830    builtin and then its argument prototype would still apply.  */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 char AuCreateFlow ();
8835 int
8836 main ()
8837 {
8838 return AuCreateFlow ();
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"; then :
8844   ac_cv_lib_audio_AuCreateFlow=yes
8845 else
8846   ac_cv_lib_audio_AuCreateFlow=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext \
8849     conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8853 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8854 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8855
8856 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8857
8858                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8859 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8860 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8861   $as_echo_n "(cached) " >&6
8862 else
8863   ac_check_lib_save_LIBS=$LIBS
8864 LIBS="-lXau $X_LIBS $LIBS"
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h.  */
8867
8868 /* Override any GCC internal prototype to avoid an error.
8869    Use char because int might match the return type of a GCC
8870    builtin and then its argument prototype would still apply.  */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 char XauGetBestAuthByAddr ();
8875 int
8876 main ()
8877 {
8878 return XauGetBestAuthByAddr ();
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8885 else
8886   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889     conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8893 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8894 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8895   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8896 else
8897   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8898 fi
8899
8900
8901 fi
8902
8903 fi
8904
8905 done
8906
8907
8908     CPPFLAGS="$ac_save_CPPFLAGS"
8909 else
8910     XLIB=""
8911     X_CFLAGS=""
8912     X_LIBS=""
8913     enable_winex11_drv=${enable_winex11_drv:-no}
8914     enable_opengl32=${enable_opengl32:-no}
8915     enable_glu32=${enable_glu32:-no}
8916 fi
8917 if test "x$XLIB" = "x"; then :
8918   case "x$with_x" in
8919   xno) ;;
8920   *)   as_fn_error "X ${notice_platform}development files not found. Wine will be built
8921 without X support, which probably isn't what you want. You will need to install
8922 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8923 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8924 esac
8925 fi
8926
8927
8928 XML2LIBS=""
8929
8930 XML2INCL=""
8931
8932 XSLTINCL=""
8933
8934 if test "x$with_xml" != "xno"
8935 then
8936     ac_save_CPPFLAGS="$CPPFLAGS"
8937     if test "$PKG_CONFIG" != "false"
8938     then
8939         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8940         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8941     else
8942         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8943         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
8944     fi
8945     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8946     for ac_header in libxml/parser.h
8947 do :
8948   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8949 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8950   cat >>confdefs.h <<_ACEOF
8951 #define HAVE_LIBXML_PARSER_H 1
8952 _ACEOF
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8954 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8955 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   ac_check_lib_save_LIBS=$LIBS
8959 LIBS="-lxml2 $ac_xml_libs $LIBS"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 /* Override any GCC internal prototype to avoid an error.
8964    Use char because int might match the return type of a GCC
8965    builtin and then its argument prototype would still apply.  */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char xmlParseMemory ();
8970 int
8971 main ()
8972 {
8973 return xmlParseMemory ();
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979   ac_cv_lib_xml2_xmlParseMemory=yes
8980 else
8981   ac_cv_lib_xml2_xmlParseMemory=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext \
8984     conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8988 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8989 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8990
8991 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8992
8993                  XML2LIBS="$ac_xml_libs"
8994                  XML2INCL="$ac_xml_cflags"
8995 fi
8996
8997              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
8998 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
8999 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-lxml2 $ac_xml_libs $LIBS"
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h.  */
9006
9007 /* Override any GCC internal prototype to avoid an error.
9008    Use char because int might match the return type of a GCC
9009    builtin and then its argument prototype would still apply.  */
9010 #ifdef __cplusplus
9011 extern "C"
9012 #endif
9013 char xmlReadMemory ();
9014 int
9015 main ()
9016 {
9017 return xmlReadMemory ();
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_link "$LINENO"; then :
9023   ac_cv_lib_xml2_xmlReadMemory=yes
9024 else
9025   ac_cv_lib_xml2_xmlReadMemory=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext \
9028     conftest$ac_exeext conftest.$ac_ext
9029 LIBS=$ac_check_lib_save_LIBS
9030 fi
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9032 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9033 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9034
9035 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9036
9037 fi
9038
9039              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9040 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9041 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9042   $as_echo_n "(cached) " >&6
9043 else
9044   ac_check_lib_save_LIBS=$LIBS
9045 LIBS="-lxml2 $ac_xml_libs $LIBS"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h.  */
9048
9049 /* Override any GCC internal prototype to avoid an error.
9050    Use char because int might match the return type of a GCC
9051    builtin and then its argument prototype would still apply.  */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char xmlNewDocPI ();
9056 int
9057 main ()
9058 {
9059 return xmlNewDocPI ();
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065   ac_cv_lib_xml2_xmlNewDocPI=yes
9066 else
9067   ac_cv_lib_xml2_xmlNewDocPI=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9074 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9075 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9076
9077 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9078
9079 fi
9080
9081
9082 fi
9083
9084 done
9085
9086     CPPFLAGS="$ac_save_CPPFLAGS"
9087 fi
9088 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9089   case "x$with_xml" in
9090   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9091   xno) ;;
9092   *)   as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9093 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9094 esac
9095 fi
9096
9097 if test "x$with_xslt" != "xno"
9098 then
9099     if test "$PKG_CONFIG" != "false"
9100     then
9101         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9102         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9103     else
9104         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9105         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9106     fi
9107     ac_save_CPPFLAGS="$CPPFLAGS"
9108     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9109     for ac_header in libxslt/pattern.h libxslt/transform.h
9110 do :
9111   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9113 # include <libxslt/pattern.h>
9114 #endif
9115 "
9116 eval as_val=\$$as_ac_Header
9117    if test "x$as_val" = x""yes; then :
9118   cat >>confdefs.h <<_ACEOF
9119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120 _ACEOF
9121
9122 fi
9123
9124 done
9125
9126     CPPFLAGS="$ac_save_CPPFLAGS"
9127     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9128     then
9129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9130 $as_echo_n "checking for -lxslt... " >&6; }
9131 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   ac_check_soname_save_LIBS=$LIBS
9135 LIBS="-lxslt $ac_xslt_libs $LIBS"
9136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h.  */
9138
9139 /* Override any GCC internal prototype to avoid an error.
9140    Use char because int might match the return type of a GCC
9141    builtin and then its argument prototype would still apply.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char xsltCompilePattern ();
9146 int
9147 main ()
9148 {
9149 return xsltCompilePattern ();
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"; then :
9155   case "$LIBEXT" in
9156     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9157     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'` ;;
9158     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9159   esac
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext \
9162     conftest$ac_exeext conftest.$ac_ext
9163   LIBS=$ac_check_soname_save_LIBS
9164 fi
9165 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9167 $as_echo "not found" >&6; }
9168
9169 else
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9171 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9175 _ACEOF
9176
9177        XSLTINCL="$ac_xslt_cflags"
9178 fi
9179     fi
9180 fi
9181 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9182   case "x$with_xslt" in
9183   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9184   xno) ;;
9185   *)   as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9186 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9187 esac
9188 fi
9189
9190 HALINCL=""
9191
9192 if test "x$with_hal" != "xno"
9193 then
9194     ac_save_CPPFLAGS="$CPPFLAGS"
9195     if test "$PKG_CONFIG" != "false"
9196     then
9197         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9198         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9199         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9200     fi
9201     for ac_header in dbus/dbus.h hal/libhal.h
9202 do :
9203   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9205 eval as_val=\$$as_ac_Header
9206    if test "x$as_val" = x""yes; then :
9207   cat >>confdefs.h <<_ACEOF
9208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 _ACEOF
9210
9211 fi
9212
9213 done
9214
9215     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9216     then
9217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9218 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9219 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   ac_check_lib_save_LIBS=$LIBS
9223 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h.  */
9226
9227 /* Override any GCC internal prototype to avoid an error.
9228    Use char because int might match the return type of a GCC
9229    builtin and then its argument prototype would still apply.  */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char dbus_connection_close ();
9234 int
9235 main ()
9236 {
9237 return dbus_connection_close ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243   ac_cv_lib_dbus_1_dbus_connection_close=yes
9244 else
9245   ac_cv_lib_dbus_1_dbus_connection_close=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext \
9248     conftest$ac_exeext conftest.$ac_ext
9249 LIBS=$ac_check_lib_save_LIBS
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9252 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9253 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9255 $as_echo_n "checking for -lhal... " >&6; }
9256 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   ac_check_soname_save_LIBS=$LIBS
9260 LIBS="-lhal $ac_hal_libs $LIBS"
9261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h.  */
9263
9264 /* Override any GCC internal prototype to avoid an error.
9265    Use char because int might match the return type of a GCC
9266    builtin and then its argument prototype would still apply.  */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char libhal_ctx_new ();
9271 int
9272 main ()
9273 {
9274 return libhal_ctx_new ();
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280   case "$LIBEXT" in
9281     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9282     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'` ;;
9283     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9284   esac
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext \
9287     conftest$ac_exeext conftest.$ac_ext
9288   LIBS=$ac_check_soname_save_LIBS
9289 fi
9290 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9292 $as_echo "not found" >&6; }
9293
9294 else
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9296 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9297
9298 cat >>confdefs.h <<_ACEOF
9299 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9300 _ACEOF
9301
9302        HALINCL="$ac_hal_cflags"
9303 fi
9304 fi
9305
9306     fi
9307     CPPFLAGS="$ac_save_CPPFLAGS"
9308 fi
9309 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9310   case "x$with_hal" in
9311   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9312   xno) ;;
9313   *)   as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9314 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9315 esac
9316 fi
9317
9318 if test "x$with_gnutls" != "xno"
9319 then
9320     ac_save_CPPFLAGS="$CPPFLAGS"
9321     if test "$PKG_CONFIG" != "false"
9322     then
9323         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9324         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9325         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9326     fi
9327     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9328 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331 #include <gnutls/gnutls.h>
9332 int
9333 main ()
9334 {
9335 typeof(gnutls_mac_get_key_size) *pfunc;
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"; then :
9341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9342 $as_echo_n "checking for -lgnutls... " >&6; }
9343 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9344   $as_echo_n "(cached) " >&6
9345 else
9346   ac_check_soname_save_LIBS=$LIBS
9347 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h.  */
9350
9351 /* Override any GCC internal prototype to avoid an error.
9352    Use char because int might match the return type of a GCC
9353    builtin and then its argument prototype would still apply.  */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 char gnutls_global_init ();
9358 int
9359 main ()
9360 {
9361 return gnutls_global_init ();
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367   case "$LIBEXT" in
9368     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9369     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'` ;;
9370     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9371   esac
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374     conftest$ac_exeext conftest.$ac_ext
9375   LIBS=$ac_check_soname_save_LIBS
9376 fi
9377 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9379 $as_echo "not found" >&6; }
9380
9381 else
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9383 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9384
9385 cat >>confdefs.h <<_ACEOF
9386 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9387 _ACEOF
9388
9389        GNUTLSINCL="$ac_gnutls_cflags"
9390
9391 fi
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395
9396
9397     CPPFLAGS="$ac_save_CPPFLAGS"
9398 fi
9399 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9400   case "x$with_gnutls" in
9401   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9402   xno) ;;
9403   *)   as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9404 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9405 esac
9406 fi
9407
9408 CURSESLIBS=""
9409 if test "$ac_cv_header_ncurses_h" = "yes"
9410 then
9411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9412 $as_echo_n "checking for -lncurses... " >&6; }
9413 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   ac_check_soname_save_LIBS=$LIBS
9417 LIBS="-lncurses  $LIBS"
9418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h.  */
9420
9421 /* Override any GCC internal prototype to avoid an error.
9422    Use char because int might match the return type of a GCC
9423    builtin and then its argument prototype would still apply.  */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char waddch ();
9428 int
9429 main ()
9430 {
9431 return waddch ();
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_link "$LINENO"; then :
9437   case "$LIBEXT" in
9438     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9439     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'` ;;
9440     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9441   esac
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444     conftest$ac_exeext conftest.$ac_ext
9445   LIBS=$ac_check_soname_save_LIBS
9446 fi
9447 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9449 $as_echo "not found" >&6; }
9450
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9453 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9457 _ACEOF
9458
9459        CURSESLIBS="-lncurses"
9460 fi
9461 elif test "$ac_cv_header_curses_h" = "yes"
9462 then
9463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9464 $as_echo_n "checking for -lcurses... " >&6; }
9465 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   ac_check_soname_save_LIBS=$LIBS
9469 LIBS="-lcurses  $LIBS"
9470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char waddch ();
9480 int
9481 main ()
9482 {
9483 return waddch ();
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489   case "$LIBEXT" in
9490     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9491     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'` ;;
9492     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9493   esac
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496     conftest$ac_exeext conftest.$ac_ext
9497   LIBS=$ac_check_soname_save_LIBS
9498 fi
9499 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9501 $as_echo "not found" >&6; }
9502
9503 else
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9505 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9506
9507 cat >>confdefs.h <<_ACEOF
9508 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9509 _ACEOF
9510
9511        CURSESLIBS="-lcurses"
9512 fi
9513 fi
9514 ac_save_LIBS="$LIBS"
9515 LIBS="$LIBS $CURSESLIBS"
9516 for ac_func in mousemask
9517 do :
9518   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9519 if test "x$ac_cv_func_mousemask" = x""yes; then :
9520   cat >>confdefs.h <<_ACEOF
9521 #define HAVE_MOUSEMASK 1
9522 _ACEOF
9523
9524 fi
9525 done
9526
9527 LIBS="$ac_save_LIBS"
9528 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9529   case "x$with_curses" in
9530   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9531   xno) ;;
9532   *)   as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9533 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9534 esac
9535 fi
9536
9537 if test "x$with_sane" != "xno"
9538 then
9539     ac_save_CPPFLAGS="$CPPFLAGS"
9540     # Extract the first word of "sane-config", so it can be a program name with args.
9541 set dummy sane-config; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9545   $as_echo_n "(cached) " >&6
9546 else
9547   if test -n "$sane_devel"; then
9548   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553   IFS=$as_save_IFS
9554   test -z "$as_dir" && as_dir=.
9555     for ac_exec_ext in '' $ac_executable_extensions; do
9556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557     ac_cv_prog_sane_devel="sane-config"
9558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559     break 2
9560   fi
9561 done
9562   done
9563 IFS=$as_save_IFS
9564
9565   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9566 fi
9567 fi
9568 sane_devel=$ac_cv_prog_sane_devel
9569 if test -n "$sane_devel"; then
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9571 $as_echo "$sane_devel" >&6; }
9572 else
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 fi
9576
9577
9578     if test "$sane_devel" != "no"
9579     then
9580         ac_sane_incl="`$sane_devel --cflags`"
9581         ac_sane_libs="`$sane_devel --ldflags`"
9582         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9583     fi
9584     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9585 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9587 $as_echo_n "checking for -lsane... " >&6; }
9588 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9589   $as_echo_n "(cached) " >&6
9590 else
9591   ac_check_soname_save_LIBS=$LIBS
9592 LIBS="-lsane $ac_sane_libs $LIBS"
9593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597    Use char because int might match the return type of a GCC
9598    builtin and then its argument prototype would still apply.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char sane_init ();
9603 int
9604 main ()
9605 {
9606 return sane_init ();
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612   case "$LIBEXT" in
9613     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9614     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'` ;;
9615     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9616   esac
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620   LIBS=$ac_check_soname_save_LIBS
9621 fi
9622 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9624 $as_echo "not found" >&6; }
9625
9626 else
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9628 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9629
9630 cat >>confdefs.h <<_ACEOF
9631 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9632 _ACEOF
9633
9634        SANEINCL="$ac_sane_incl"
9635
9636 fi
9637 fi
9638
9639
9640     CPPFLAGS="$ac_save_CPPFLAGS"
9641 fi
9642 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9643   case "x$with_sane" in
9644   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9645   xno) ;;
9646   *)   as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9647 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9648 esac
9649 fi
9650
9651 if test "x$with_v4l" != "xno"
9652 then
9653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9654 $as_echo_n "checking for -lv4l1... " >&6; }
9655 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   ac_check_soname_save_LIBS=$LIBS
9659 LIBS="-lv4l1  $LIBS"
9660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h.  */
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664    Use char because int might match the return type of a GCC
9665    builtin and then its argument prototype would still apply.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char v4l1_open ();
9670 int
9671 main ()
9672 {
9673 return v4l1_open ();
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_link "$LINENO"; then :
9679   case "$LIBEXT" in
9680     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9681     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'` ;;
9682     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9683   esac
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext \
9686     conftest$ac_exeext conftest.$ac_ext
9687   LIBS=$ac_check_soname_save_LIBS
9688 fi
9689 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9691 $as_echo "not found" >&6; }
9692
9693 else
9694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9695 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9696
9697 cat >>confdefs.h <<_ACEOF
9698 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9699 _ACEOF
9700
9701
9702 fi
9703 fi
9704 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9705   case "x$with_v4l" in
9706   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9707   xno) ;;
9708   *)   as_fn_error "libv4l ${notice_platform}development files not found.
9709 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9710 esac
9711 fi
9712
9713 if test "x$with_gphoto" != "xno"
9714 then
9715     ac_save_CPPFLAGS="$CPPFLAGS"
9716     # Extract the first word of "gphoto2-config", so it can be a program name with args.
9717 set dummy gphoto2-config; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   if test -n "$gphoto2_devel"; then
9724   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9725 else
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9728 do
9729   IFS=$as_save_IFS
9730   test -z "$as_dir" && as_dir=.
9731     for ac_exec_ext in '' $ac_executable_extensions; do
9732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733     ac_cv_prog_gphoto2_devel="gphoto2-config"
9734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735     break 2
9736   fi
9737 done
9738   done
9739 IFS=$as_save_IFS
9740
9741   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9742 fi
9743 fi
9744 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9745 if test -n "$gphoto2_devel"; then
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9747 $as_echo "$gphoto2_devel" >&6; }
9748 else
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9751 fi
9752
9753
9754     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9755 set dummy gphoto2-port-config; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9759   $as_echo_n "(cached) " >&6
9760 else
9761   if test -n "$gphoto2port_devel"; then
9762   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9763 else
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767   IFS=$as_save_IFS
9768   test -z "$as_dir" && as_dir=.
9769     for ac_exec_ext in '' $ac_executable_extensions; do
9770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773     break 2
9774   fi
9775 done
9776   done
9777 IFS=$as_save_IFS
9778
9779   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9780 fi
9781 fi
9782 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9783 if test -n "$gphoto2port_devel"; then
9784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9785 $as_echo "$gphoto2port_devel" >&6; }
9786 else
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9789 fi
9790
9791
9792     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9793     then
9794         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9795         ac_gphoto2_libs=""
9796         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9797         do
9798             case "$i" in
9799             -L/usr/lib|-L/usr/lib64) ;;
9800             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9801             esac
9802         done
9803         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9804     fi
9805     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9806     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9807 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9809 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9810 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9811   $as_echo_n "(cached) " >&6
9812 else
9813   ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h.  */
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819    Use char because int might match the return type of a GCC
9820    builtin and then its argument prototype would still apply.  */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char gp_camera_new ();
9825 int
9826 main ()
9827 {
9828 return gp_camera_new ();
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"; then :
9834   ac_cv_lib_gphoto2_gp_camera_new=yes
9835 else
9836   ac_cv_lib_gphoto2_gp_camera_new=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext \
9839     conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9843 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9844 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9845
9846 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9847
9848                                    GPHOTO2LIBS="$ac_gphoto2_libs"
9849
9850                                    GPHOTO2INCL="$ac_gphoto2_incl"
9851
9852 fi
9853
9854 fi
9855
9856
9857     CPPFLAGS="$ac_save_CPPFLAGS"
9858 fi
9859 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9860   case "x$with_gphoto" in
9861   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9862   xno) ;;
9863   *)   as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9864 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9865 esac
9866 fi
9867
9868
9869 RESOLVLIBS=""
9870
9871 if test "$ac_cv_header_resolv_h" = "yes"
9872 then
9873     ac_save_LIBS="$LIBS"
9874     LIBS="$LIBS -lresolv"
9875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h.  */
9877 #ifdef HAVE_NETINET_IN_H
9878 #include <netinet/in.h>
9879 #endif
9880 #include <resolv.h>
9881 int
9882 main ()
9883 {
9884 res_init();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 if ac_fn_c_try_link "$LINENO"; then :
9890
9891 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9892
9893          RESOLVLIBS="-lresolv"
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext \
9896     conftest$ac_exeext conftest.$ac_ext
9897     LIBS="$ac_save_LIBS"
9898 fi
9899
9900 LCMSLIBS=""
9901
9902 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9903 then
9904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9905 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9906 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-llcms  $LIBS"
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h.  */
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915    Use char because int might match the return type of a GCC
9916    builtin and then its argument prototype would still apply.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char cmsOpenProfileFromFile ();
9921 int
9922 main ()
9923 {
9924 return cmsOpenProfileFromFile ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9930   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9931 else
9932   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext \
9935     conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9939 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9940 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9941
9942 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9943
9944          LCMSLIBS="-llcms"
9945 fi
9946
9947 fi
9948 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9949   case "x$with_cms" in
9950   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9951   xno) ;;
9952   *)   as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9953 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9954 esac
9955 fi
9956
9957 if test "x$with_freetype" != "xno"
9958 then
9959     for ac_prog in freetype-config freetype2-config
9960 do
9961   # Extract the first word of "$ac_prog", so it can be a program name with args.
9962 set dummy $ac_prog; ac_word=$2
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   if test -n "$ft_devel"; then
9969   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9970 else
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976     for ac_exec_ext in '' $ac_executable_extensions; do
9977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978     ac_cv_prog_ft_devel="$ac_prog"
9979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983   done
9984 IFS=$as_save_IFS
9985
9986 fi
9987 fi
9988 ft_devel=$ac_cv_prog_ft_devel
9989 if test -n "$ft_devel"; then
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9991 $as_echo "$ft_devel" >&6; }
9992 else
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9995 fi
9996
9997
9998   test -n "$ft_devel" && break
9999 done
10000 test -n "$ft_devel" || ft_devel="no"
10001
10002     if test "$ft_devel" != "no"
10003     then
10004         ac_freetype_incl=`$ft_devel --cflags`
10005         ac_freetype_libs=`$ft_devel --libs`
10006     fi
10007     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10009 $as_echo_n "checking for -lfreetype... " >&6; }
10010 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   ac_check_soname_save_LIBS=$LIBS
10014 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h.  */
10017
10018 /* Override any GCC internal prototype to avoid an error.
10019    Use char because int might match the return type of a GCC
10020    builtin and then its argument prototype would still apply.  */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char FT_Init_FreeType ();
10025 int
10026 main ()
10027 {
10028 return FT_Init_FreeType ();
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"; then :
10034   case "$LIBEXT" in
10035     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10036     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'` ;;
10037     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10038   esac
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext \
10041     conftest$ac_exeext conftest.$ac_ext
10042   LIBS=$ac_check_soname_save_LIBS
10043 fi
10044 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10046 $as_echo "not found" >&6; }
10047        ft_lib=no
10048 else
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10050 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10051
10052 cat >>confdefs.h <<_ACEOF
10053 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10054 _ACEOF
10055
10056        ft_lib=yes
10057 fi
10058     if test "$ft_lib" = "yes"
10059     then
10060         ac_save_CPPFLAGS="$CPPFLAGS"
10061         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10062         for ac_header in ft2build.h \
10063                          freetype/freetype.h \
10064                          freetype/ftglyph.h \
10065                          freetype/fttypes.h \
10066                          freetype/tttables.h \
10067                          freetype/ftsnames.h \
10068                          freetype/ttnameid.h \
10069                          freetype/ftoutln.h \
10070                          freetype/ftwinfnt.h \
10071                          freetype/ftmodapi.h \
10072                          freetype/ftlcdfil.h \
10073                          freetype/internal/sfnt.h
10074 do :
10075   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10077                           # include <ft2build.h>
10078                           #endif
10079 "
10080 eval as_val=\$$as_ac_Header
10081    if test "x$as_val" = x""yes; then :
10082   cat >>confdefs.h <<_ACEOF
10083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10084 _ACEOF
10085
10086 fi
10087
10088 done
10089
10090         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h.  */
10092 #include <ft2build.h>
10093                     #include <freetype/fttrigon.h>
10094 _ACEOF
10095 if ac_fn_c_try_cpp "$LINENO"; then :
10096
10097 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10098
10099                     wine_cv_fttrigon=yes
10100 else
10101   wine_cv_fttrigon=no
10102 fi
10103 rm -f conftest.err conftest.$ac_ext
10104         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10105 "
10106 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10107
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_FT_TRUETYPEENGINETYPE 1
10110 _ACEOF
10111
10112
10113 fi
10114
10115         ac_save_CFLAGS="$CFLAGS"
10116         CFLAGS="$CFLAGS $ac_freetype_libs"
10117         for ac_func in FT_Load_Sfnt_Table
10118 do :
10119   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10120 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10121   cat >>confdefs.h <<_ACEOF
10122 #define HAVE_FT_LOAD_SFNT_TABLE 1
10123 _ACEOF
10124
10125 fi
10126 done
10127
10128         CFLAGS="$ac_save_CFLAGS"
10129         CPPFLAGS="$ac_save_CPPFLAGS"
10130                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10131         then
10132
10133 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10134
10135             FREETYPELIBS="$ac_freetype_libs"
10136
10137             FREETYPEINCL="$ac_freetype_incl"
10138
10139         fi
10140     fi
10141 fi
10142 if test "x$FREETYPELIBS" = "x"; then :
10143   case "x$with_freetype" in
10144   xno) ;;
10145   *)   as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10146 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10147 esac
10148 fi
10149 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10150
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10152 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10153 if test "${ac_cv_c_ppdev+set}" = set; then :
10154   $as_echo_n "(cached) " >&6
10155 else
10156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158 #ifdef HAVE_SYS_IOCTL_H
10159 # include <sys/ioctl.h>
10160 #endif
10161 #include <linux/ppdev.h>
10162 int
10163 main ()
10164 {
10165 ioctl (1,PPCLAIM,0)
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_compile "$LINENO"; then :
10171   ac_cv_c_ppdev="yes"
10172 else
10173   ac_cv_c_ppdev="no"
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10178 $as_echo "$ac_cv_c_ppdev" >&6; }
10179 if test "$ac_cv_c_ppdev" = "yes"
10180 then
10181
10182 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10183
10184 fi
10185
10186 ac_wine_check_funcs_save_LIBS="$LIBS"
10187 LIBS="$LIBS $LIBPTHREAD"
10188 for ac_func in \
10189         pthread_attr_get_np \
10190         pthread_getattr_np \
10191         pthread_get_stackaddr_np \
10192         pthread_get_stacksize_np
10193 do :
10194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10196 eval as_val=\$$as_ac_var
10197    if test "x$as_val" = x""yes; then :
10198   cat >>confdefs.h <<_ACEOF
10199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 _ACEOF
10201
10202 fi
10203 done
10204
10205 LIBS="$ac_wine_check_funcs_save_LIBS"
10206
10207 if test "$ac_cv_header_zlib_h" = "yes"
10208 then
10209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10210 $as_echo_n "checking for inflate in -lz... " >&6; }
10211 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10212   $as_echo_n "(cached) " >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-lz  $LIBS"
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h.  */
10218
10219 /* Override any GCC internal prototype to avoid an error.
10220    Use char because int might match the return type of a GCC
10221    builtin and then its argument prototype would still apply.  */
10222 #ifdef __cplusplus
10223 extern "C"
10224 #endif
10225 char inflate ();
10226 int
10227 main ()
10228 {
10229 return inflate ();
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235   ac_cv_lib_z_inflate=yes
10236 else
10237   ac_cv_lib_z_inflate=no
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext \
10240     conftest$ac_exeext conftest.$ac_ext
10241 LIBS=$ac_check_lib_save_LIBS
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10244 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10245 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10246
10247 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10248
10249                             ZLIB="-lz"
10250
10251 fi
10252
10253 fi
10254
10255 if test "x$with_esd" != xno
10256 then
10257     save_CFLAGS="$CFLAGS"
10258     # Extract the first word of "esd-config", so it can be a program name with args.
10259 set dummy esd-config; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10263   $as_echo_n "(cached) " >&6
10264 else
10265   case $ESDCONFIG in
10266   [\\/]* | ?:[\\/]*)
10267   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10268   ;;
10269   *)
10270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10272 do
10273   IFS=$as_save_IFS
10274   test -z "$as_dir" && as_dir=.
10275     for ac_exec_ext in '' $ac_executable_extensions; do
10276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10277     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279     break 2
10280   fi
10281 done
10282   done
10283 IFS=$as_save_IFS
10284
10285   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10286   ;;
10287 esac
10288 fi
10289 ESDCONFIG=$ac_cv_path_ESDCONFIG
10290 if test -n "$ESDCONFIG"; then
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10292 $as_echo "$ESDCONFIG" >&6; }
10293 else
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10296 fi
10297
10298
10299     if test "x$ESDCONFIG" != "xno"
10300     then
10301         ac_esd_incl=""
10302         for i in `$ESDCONFIG --cflags`
10303         do
10304             case "$i" in
10305                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10306             esac
10307         done
10308         ac_esd_libs=`$ESDCONFIG --libs`
10309         CFLAGS="$CFLAGS $ac_esd_incl"
10310     fi
10311     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10312     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10313 if test "x$ac_cv_header_esd_h" = x""yes; then :
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10315 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10316 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319   ac_check_lib_save_LIBS=$LIBS
10320 LIBS="-lesd $ac_esd_libs $LIBS"
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h.  */
10323
10324 /* Override any GCC internal prototype to avoid an error.
10325    Use char because int might match the return type of a GCC
10326    builtin and then its argument prototype would still apply.  */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char esd_open_sound ();
10331 int
10332 main ()
10333 {
10334 return esd_open_sound ();
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340   ac_cv_lib_esd_esd_open_sound=yes
10341 else
10342   ac_cv_lib_esd_esd_open_sound=no
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext \
10345     conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10347 fi
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10349 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10350 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10351   ESDINCL="$ac_esd_incl"
10352
10353              ESDLIBS="$ac_esd_libs"
10354
10355
10356 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10357
10358 fi
10359
10360 fi
10361
10362
10363     CFLAGS="$save_CFLAGS"
10364 fi
10365
10366 ALSALIBS=""
10367
10368 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10369 then
10370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10371 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10372 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10373   $as_echo_n "(cached) " >&6
10374 else
10375   ac_check_lib_save_LIBS=$LIBS
10376 LIBS="-lasound  $LIBS"
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h.  */
10379
10380 /* Override any GCC internal prototype to avoid an error.
10381    Use char because int might match the return type of a GCC
10382    builtin and then its argument prototype would still apply.  */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 char snd_pcm_hw_params_get_access ();
10387 int
10388 main ()
10389 {
10390 return snd_pcm_hw_params_get_access ();
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10397 else
10398   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext \
10401     conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10405 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10406 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h.  */
10409 #ifdef HAVE_ALSA_ASOUNDLIB_H
10410 #include <alsa/asoundlib.h>
10411 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10412 #include <sys/asoundlib.h>
10413 #endif
10414 int
10415 main ()
10416 {
10417 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_compile "$LINENO"; then :
10423
10424 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10425
10426                          ALSALIBS="-lasound"
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 fi
10430
10431 fi
10432
10433 AUDIOIOLIBS=""
10434
10435 if test "$ac_cv_header_libaudioio_h" = "yes"
10436 then
10437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10438 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10439 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-laudioio  $LIBS"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h.  */
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448    Use char because int might match the return type of a GCC
10449    builtin and then its argument prototype would still apply.  */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char AudioIOGetVersion ();
10454 int
10455 main ()
10456 {
10457 return AudioIOGetVersion ();
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463   ac_cv_lib_audioio_AudioIOGetVersion=yes
10464 else
10465   ac_cv_lib_audioio_AudioIOGetVersion=no
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468     conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS
10470 fi
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10472 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10473 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10474   AUDIOIOLIBS="-laudioio"
10475
10476 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10477
10478 fi
10479
10480 fi
10481
10482
10483 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10484 then
10485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10486 $as_echo_n "checking for -lcapi20... " >&6; }
10487 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   ac_check_soname_save_LIBS=$LIBS
10491 LIBS="-lcapi20  $LIBS"
10492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h.  */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char capi20_register ();
10502 int
10503 main ()
10504 {
10505 return capi20_register ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511   case "$LIBEXT" in
10512     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10513     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'` ;;
10514     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10515   esac
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext \
10518     conftest$ac_exeext conftest.$ac_ext
10519   LIBS=$ac_check_soname_save_LIBS
10520 fi
10521 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10523 $as_echo "not found" >&6; }
10524
10525 else
10526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10527 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10531 _ACEOF
10532
10533
10534 fi
10535 fi
10536 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10537   case "x$with_capi" in
10538   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10539   xno) ;;
10540   *)   as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10541 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10542 esac
10543 fi
10544
10545 CUPSINCL=""
10546
10547 if test "x$with_cups" != "xno"
10548 then
10549     ac_save_CPPFLAGS="$CPPFLAGS"
10550     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10551     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10552     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10553     for ac_header in cups/cups.h
10554 do :
10555   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10556 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10557   cat >>confdefs.h <<_ACEOF
10558 #define HAVE_CUPS_CUPS_H 1
10559 _ACEOF
10560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10561 $as_echo_n "checking for -lcups... " >&6; }
10562 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   ac_check_soname_save_LIBS=$LIBS
10566 LIBS="-lcups $ac_cups_libs $LIBS"
10567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h.  */
10569
10570 /* Override any GCC internal prototype to avoid an error.
10571    Use char because int might match the return type of a GCC
10572    builtin and then its argument prototype would still apply.  */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 char cupsGetDefault ();
10577 int
10578 main ()
10579 {
10580 return cupsGetDefault ();
10581   ;
10582   return 0;
10583 }
10584 _ACEOF
10585 if ac_fn_c_try_link "$LINENO"; then :
10586   case "$LIBEXT" in
10587     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10588     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'` ;;
10589     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10590   esac
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext \
10593     conftest$ac_exeext conftest.$ac_ext
10594   LIBS=$ac_check_soname_save_LIBS
10595 fi
10596 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10598 $as_echo "not found" >&6; }
10599
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10602 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10603
10604 cat >>confdefs.h <<_ACEOF
10605 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10606 _ACEOF
10607
10608        CUPSINCL="$ac_cups_cflags"
10609 fi
10610 fi
10611
10612 done
10613
10614     CPPFLAGS="$ac_save_CPPFLAGS"
10615 fi
10616 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10617   case "x$with_cups" in
10618   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10619   xno) ;;
10620   *)   as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10621 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10622 esac
10623 fi
10624
10625 if test "$ac_cv_header_jack_jack_h" = "yes"
10626 then
10627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10628 $as_echo_n "checking for -ljack... " >&6; }
10629 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   ac_check_soname_save_LIBS=$LIBS
10633 LIBS="-ljack  $LIBS"
10634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h.  */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638    Use char because int might match the return type of a GCC
10639    builtin and then its argument prototype would still apply.  */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char jack_client_new ();
10644 int
10645 main ()
10646 {
10647 return jack_client_new ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653   case "$LIBEXT" in
10654     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10655     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'` ;;
10656     *) 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'` ;;
10657   esac
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660     conftest$ac_exeext conftest.$ac_ext
10661   LIBS=$ac_check_soname_save_LIBS
10662 fi
10663 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10665 $as_echo "not found" >&6; }
10666
10667 else
10668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10669 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10670
10671 cat >>confdefs.h <<_ACEOF
10672 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10673 _ACEOF
10674
10675
10676 fi
10677 fi
10678
10679 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10680 then
10681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10682 $as_echo_n "checking for -lfontconfig... " >&6; }
10683 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10684   $as_echo_n "(cached) " >&6
10685 else
10686   ac_check_soname_save_LIBS=$LIBS
10687 LIBS="-lfontconfig  $LIBS"
10688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h.  */
10690
10691 /* Override any GCC internal prototype to avoid an error.
10692    Use char because int might match the return type of a GCC
10693    builtin and then its argument prototype would still apply.  */
10694 #ifdef __cplusplus
10695 extern "C"
10696 #endif
10697 char FcInit ();
10698 int
10699 main ()
10700 {
10701 return FcInit ();
10702   ;
10703   return 0;
10704 }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707   case "$LIBEXT" in
10708     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10709     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'` ;;
10710     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10711   esac
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext \
10714     conftest$ac_exeext conftest.$ac_ext
10715   LIBS=$ac_check_soname_save_LIBS
10716 fi
10717 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10719 $as_echo "not found" >&6; }
10720
10721 else
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10723 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10724
10725 cat >>confdefs.h <<_ACEOF
10726 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10727 _ACEOF
10728
10729
10730 fi
10731 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10732 then
10733         ac_save_CPPFLAGS="$CPPFLAGS"
10734     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10735     $as_unset ac_cv_header_fontconfig_fontconfig_h
10736     for ac_header in fontconfig/fontconfig.h
10737 do :
10738   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10739 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10740   cat >>confdefs.h <<_ACEOF
10741 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748     CPPFLAGS="$ac_save_CPPFLAGS"
10749     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10750     then
10751         FONTCONFIGINCL="$X_CFLAGS"
10752
10753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10754 $as_echo_n "checking for -lfontconfig... " >&6; }
10755 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   ac_check_soname_save_LIBS=$LIBS
10759 LIBS="-lfontconfig $X_LIBS $LIBS"
10760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764    Use char because int might match the return type of a GCC
10765    builtin and then its argument prototype would still apply.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char FcInit ();
10770 int
10771 main ()
10772 {
10773 return FcInit ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   case "$LIBEXT" in
10780     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10781     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'` ;;
10782     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10783   esac
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787   LIBS=$ac_check_soname_save_LIBS
10788 fi
10789 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10791 $as_echo "not found" >&6; }
10792
10793 else
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10795 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10796
10797 cat >>confdefs.h <<_ACEOF
10798 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10799 _ACEOF
10800
10801
10802 fi
10803     fi
10804 fi
10805 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10806   case "x$with_fontconfig" in
10807   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10808   xno) ;;
10809   *)   as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10810 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10811 esac
10812 fi
10813
10814 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10815 then
10816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10817 $as_echo_n "checking for -lssl... " >&6; }
10818 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   ac_check_soname_save_LIBS=$LIBS
10822 LIBS="-lssl  $LIBS"
10823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825
10826 /* Override any GCC internal prototype to avoid an error.
10827    Use char because int might match the return type of a GCC
10828    builtin and then its argument prototype would still apply.  */
10829 #ifdef __cplusplus
10830 extern "C"
10831 #endif
10832 char SSL_library_init ();
10833 int
10834 main ()
10835 {
10836 return SSL_library_init ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842   case "$LIBEXT" in
10843     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10844     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'` ;;
10845     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
10846   esac
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext \
10849     conftest$ac_exeext conftest.$ac_ext
10850   LIBS=$ac_check_soname_save_LIBS
10851 fi
10852 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10854 $as_echo "not found" >&6; }
10855
10856 else
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10858 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10859
10860 cat >>confdefs.h <<_ACEOF
10861 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10862 _ACEOF
10863
10864
10865 fi
10866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10867 $as_echo_n "checking for -lcrypto... " >&6; }
10868 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10869   $as_echo_n "(cached) " >&6
10870 else
10871   ac_check_soname_save_LIBS=$LIBS
10872 LIBS="-lcrypto  $LIBS"
10873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char BIO_new_socket ();
10883 int
10884 main ()
10885 {
10886 return BIO_new_socket ();
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892   case "$LIBEXT" in
10893     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10894     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'` ;;
10895     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10896   esac
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899     conftest$ac_exeext conftest.$ac_ext
10900   LIBS=$ac_check_soname_save_LIBS
10901 fi
10902 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10904 $as_echo "not found" >&6; }
10905
10906 else
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10908 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10909
10910 cat >>confdefs.h <<_ACEOF
10911 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10912 _ACEOF
10913
10914
10915 fi
10916 fi
10917 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10918   case "x$with_openssl" in
10919   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10920   xno) ;;
10921   *)   as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10922 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10923 esac
10924 fi
10925
10926 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10927 then
10928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10929 $as_echo_n "checking for -lgsm... " >&6; }
10930 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   ac_check_soname_save_LIBS=$LIBS
10934 LIBS="-lgsm  $LIBS"
10935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h.  */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939    Use char because int might match the return type of a GCC
10940    builtin and then its argument prototype would still apply.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char gsm_create ();
10945 int
10946 main ()
10947 {
10948 return gsm_create ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954   case "$LIBEXT" in
10955     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10956     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'` ;;
10957     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
10958   esac
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext \
10961     conftest$ac_exeext conftest.$ac_ext
10962   LIBS=$ac_check_soname_save_LIBS
10963 fi
10964 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10966 $as_echo "not found" >&6; }
10967
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10970 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10971
10972 cat >>confdefs.h <<_ACEOF
10973 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10974 _ACEOF
10975
10976
10977 fi
10978 fi
10979 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10980   case "x$with_gsm" in
10981   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10982   xno) ;;
10983   *)   as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10984 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10985 esac
10986 fi
10987
10988 if test "$ac_cv_header_jpeglib_h" = "yes"
10989 then
10990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10991 $as_echo_n "checking for -ljpeg... " >&6; }
10992 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   ac_check_soname_save_LIBS=$LIBS
10996 LIBS="-ljpeg  $LIBS"
10997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char jpeg_start_decompress ();
11007 int
11008 main ()
11009 {
11010 return jpeg_start_decompress ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016   case "$LIBEXT" in
11017     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11018     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'` ;;
11019     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11020   esac
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext \
11023     conftest$ac_exeext conftest.$ac_ext
11024   LIBS=$ac_check_soname_save_LIBS
11025 fi
11026 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11028 $as_echo "not found" >&6; }
11029
11030 else
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11032 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11033
11034 cat >>confdefs.h <<_ACEOF
11035 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11036 _ACEOF
11037
11038
11039 fi
11040 fi
11041 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11042   case "x$with_jpeg" in
11043   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11044   xno) ;;
11045   *)   as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11046 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11047 esac
11048 fi
11049
11050 if test "$ac_cv_header_png_h" = "yes"
11051 then
11052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11053 $as_echo_n "checking for -lpng... " >&6; }
11054 if test "${ac_cv_lib_soname_png+set}" = set; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   ac_check_soname_save_LIBS=$LIBS
11058 LIBS="-lpng -lm -lz $LIBS"
11059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h.  */
11061
11062 /* Override any GCC internal prototype to avoid an error.
11063    Use char because int might match the return type of a GCC
11064    builtin and then its argument prototype would still apply.  */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char png_create_read_struct ();
11069 int
11070 main ()
11071 {
11072 return png_create_read_struct ();
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 if ac_fn_c_try_link "$LINENO"; then :
11078   case "$LIBEXT" in
11079     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11080     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'` ;;
11081     *) 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'` ;;
11082   esac
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext \
11085     conftest$ac_exeext conftest.$ac_ext
11086   LIBS=$ac_check_soname_save_LIBS
11087 fi
11088 if test "x$ac_cv_lib_soname_png" = "x"; then :
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11090 $as_echo "not found" >&6; }
11091
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11094 $as_echo "$ac_cv_lib_soname_png" >&6; }
11095
11096 cat >>confdefs.h <<_ACEOF
11097 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11098 _ACEOF
11099
11100
11101 fi
11102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11103 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11104 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-lpng -lm -lz $LIBS"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h.  */
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113    Use char because int might match the return type of a GCC
11114    builtin and then its argument prototype would still apply.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char png_set_expand_gray_1_2_4_to_8 ();
11119 int
11120 main ()
11121 {
11122 return png_set_expand_gray_1_2_4_to_8 ();
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11129 else
11130   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133     conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11137 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11138 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11139
11140 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11141
11142
11143 fi
11144
11145 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11146 then
11147         ac_save_CPPFLAGS="$CPPFLAGS"
11148     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11149     $as_unset ac_cv_header_png_h
11150     for ac_header in png.h
11151 do :
11152   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11153 if test "x$ac_cv_header_png_h" = x""yes; then :
11154   cat >>confdefs.h <<_ACEOF
11155 #define HAVE_PNG_H 1
11156 _ACEOF
11157
11158 fi
11159
11160 done
11161
11162     CPPFLAGS="$ac_save_CPPFLAGS"
11163     if test "$ac_cv_header_png_h" = "yes"
11164     then
11165         PNGINCL="$X_CFLAGS"
11166
11167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11168 $as_echo_n "checking for -lpng... " >&6; }
11169 if test "${ac_cv_lib_soname_png+set}" = set; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   ac_check_soname_save_LIBS=$LIBS
11173 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h.  */
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178    Use char because int might match the return type of a GCC
11179    builtin and then its argument prototype would still apply.  */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char png_create_read_struct ();
11184 int
11185 main ()
11186 {
11187 return png_create_read_struct ();
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193   case "$LIBEXT" in
11194     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11195     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'` ;;
11196     *) 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'` ;;
11197   esac
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext conftest.$ac_ext
11201   LIBS=$ac_check_soname_save_LIBS
11202 fi
11203 if test "x$ac_cv_lib_soname_png" = "x"; then :
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11205 $as_echo "not found" >&6; }
11206
11207 else
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11209 $as_echo "$ac_cv_lib_soname_png" >&6; }
11210
11211 cat >>confdefs.h <<_ACEOF
11212 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11213 _ACEOF
11214
11215
11216 fi
11217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11218 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11219 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226
11227 /* Override any GCC internal prototype to avoid an error.
11228    Use char because int might match the return type of a GCC
11229    builtin and then its argument prototype would still apply.  */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char png_set_expand_gray_1_2_4_to_8 ();
11234 int
11235 main ()
11236 {
11237 return png_set_expand_gray_1_2_4_to_8 ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11244 else
11245   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248     conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11252 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11253 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11254   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11255
11256 fi
11257
11258     fi
11259 fi
11260 if test "x$ac_cv_lib_soname_png" = "x"; then :
11261   case "x$with_png" in
11262   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11263   xno) ;;
11264   *)   as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11265 This is an error since --with-png was requested." "$LINENO" 5 ;;
11266 esac
11267 fi
11268
11269 if test "$ac_cv_header_tiffio_h" = "yes"
11270 then
11271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11272 $as_echo_n "checking for -ltiff... " >&6; }
11273 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_soname_save_LIBS=$LIBS
11277 LIBS="-ltiff  $LIBS"
11278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char TIFFClientOpen ();
11288 int
11289 main ()
11290 {
11291 return TIFFClientOpen ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   case "$LIBEXT" in
11298     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11299     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'` ;;
11300     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11301   esac
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304     conftest$ac_exeext conftest.$ac_ext
11305   LIBS=$ac_check_soname_save_LIBS
11306 fi
11307 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11309 $as_echo "not found" >&6; }
11310
11311 else
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11313 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11314
11315 cat >>confdefs.h <<_ACEOF
11316 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11317 _ACEOF
11318
11319
11320 fi
11321 fi
11322 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11323   case "x$with_tiff" in
11324   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11325   xno) ;;
11326   *)   as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11327 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11328 esac
11329 fi
11330
11331 if test "$ac_cv_header_mpg123_h" = "yes"
11332 then
11333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11334 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11335 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-lmpg123  $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344    Use char because int might match the return type of a GCC
11345    builtin and then its argument prototype would still apply.  */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char mpg123_feed ();
11350 int
11351 main ()
11352 {
11353 return mpg123_feed ();
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359   ac_cv_lib_mpg123_mpg123_feed=yes
11360 else
11361   ac_cv_lib_mpg123_mpg123_feed=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364     conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11368 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11369 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11370   LIBMPG123="-lmpg123"
11371
11372 fi
11373
11374 fi
11375 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11376   case "x$with_mpg123" in
11377   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11378   xno) ;;
11379   *)   as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11380 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11381 esac
11382 fi
11383 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11384
11385 if test "$ac_cv_header_AL_al_h" = "yes"
11386 then
11387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetSource3i in -lopenal" >&5
11388 $as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
11389 if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-lopenal  $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h.  */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398    Use char because int might match the return type of a GCC
11399    builtin and then its argument prototype would still apply.  */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char alGetSource3i ();
11404 int
11405 main ()
11406 {
11407 return alGetSource3i ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413   ac_cv_lib_openal_alGetSource3i=yes
11414 else
11415   ac_cv_lib_openal_alGetSource3i=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418     conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetSource3i" >&5
11422 $as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
11423 if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then :
11424   LIBOPENAL="-lopenal"
11425
11426 fi
11427
11428 fi
11429 if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then :
11430   case "x$with_openal" in
11431   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11432   xno) ;;
11433   *)   as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11434 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11435 esac
11436 fi
11437 test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
11438
11439 if test "$ac_cv_header_kstat_h" = "yes"
11440 then
11441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11442 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11443 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lkstat  $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char kstat_open ();
11458 int
11459 main ()
11460 {
11461 return kstat_open ();
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467   ac_cv_lib_kstat_kstat_open=yes
11468 else
11469   ac_cv_lib_kstat_kstat_open=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472     conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11476 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11477 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11478
11479 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11480
11481                   LIBKSTAT="-lkstat"
11482
11483 fi
11484
11485 fi
11486
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11488 $as_echo_n "checking for -lodbc... " >&6; }
11489 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11490   $as_echo_n "(cached) " >&6
11491 else
11492   ac_check_soname_save_LIBS=$LIBS
11493 LIBS="-lodbc  $LIBS"
11494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h.  */
11496
11497 /* Override any GCC internal prototype to avoid an error.
11498    Use char because int might match the return type of a GCC
11499    builtin and then its argument prototype would still apply.  */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char SQLConnect ();
11504 int
11505 main ()
11506 {
11507 return SQLConnect ();
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"; then :
11513   case "$LIBEXT" in
11514     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11515     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'` ;;
11516     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11517   esac
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520     conftest$ac_exeext conftest.$ac_ext
11521   LIBS=$ac_check_soname_save_LIBS
11522 fi
11523 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11525 $as_echo "not found" >&6; }
11526        cat >>confdefs.h <<_ACEOF
11527 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11528 _ACEOF
11529
11530 else
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11532 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11533
11534 cat >>confdefs.h <<_ACEOF
11535 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11536 _ACEOF
11537
11538
11539 fi
11540
11541 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11542         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11543         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11544         "$ac_cv_header_soundcard_h" != "yes" -a \
11545         "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11546 then
11547     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11548 fi
11549
11550
11551 EXTRACFLAGS=""
11552
11553 if test "x${GCC}" = "xyes"
11554 then
11555   EXTRACFLAGS="-Wall -pipe"
11556
11557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11558 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11559 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   if test "$cross_compiling" = yes; then :
11563   ac_cv_c_gcc_strength_bug="yes"
11564 else
11565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h.  */
11567 int L[4] = {0,1,2,3};
11568 int
11569 main ()
11570 {
11571 static int Array[3];
11572   unsigned int B = 3;
11573   int i;
11574   for(i=0; i<B; i++) Array[i] = i - 3;
11575   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11576   L[i] = 4;
11577   return (Array[1] != -2 || L[2] != 3)
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_run "$LINENO"; then :
11583   ac_cv_c_gcc_strength_bug="no"
11584 else
11585   ac_cv_c_gcc_strength_bug="yes"
11586 fi
11587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11588   conftest.$ac_objext conftest.beam conftest.$ac_ext
11589 fi
11590
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11593 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11594   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11595   then
11596     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11597   fi
11598
11599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11600 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11601 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11602   $as_echo_n "(cached) " >&6
11603 else
11604   ac_wine_try_cflags_saved=$CFLAGS
11605 CFLAGS="$CFLAGS -fno-builtin"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h.  */
11608 int main(int argc, char **argv) { return 0; }
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611   ac_cv_cflags__fno_builtin=yes
11612 else
11613   ac_cv_cflags__fno_builtin=no
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext \
11616     conftest$ac_exeext conftest.$ac_ext
11617 CFLAGS=$ac_wine_try_cflags_saved
11618 fi
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11620 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11621 if test $ac_cv_cflags__fno_builtin = yes; then :
11622   BUILTINFLAG="-fno-builtin"
11623
11624 fi
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11626 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11627 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11628   $as_echo_n "(cached) " >&6
11629 else
11630   ac_wine_try_cflags_saved=$CFLAGS
11631 CFLAGS="$CFLAGS -fno-strict-aliasing"
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h.  */
11634 int main(int argc, char **argv) { return 0; }
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637   ac_cv_cflags__fno_strict_aliasing=yes
11638 else
11639   ac_cv_cflags__fno_strict_aliasing=no
11640 fi
11641 rm -f core conftest.err conftest.$ac_objext \
11642     conftest$ac_exeext conftest.$ac_ext
11643 CFLAGS=$ac_wine_try_cflags_saved
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11646 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11647 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11648   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11649 fi
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11651 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11652 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   ac_wine_try_cflags_saved=$CFLAGS
11656 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h.  */
11659 int main(int argc, char **argv) { return 0; }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662   ac_cv_cflags__Wdeclaration_after_statement=yes
11663 else
11664   ac_cv_cflags__Wdeclaration_after_statement=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667     conftest$ac_exeext conftest.$ac_ext
11668 CFLAGS=$ac_wine_try_cflags_saved
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11671 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11672 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11673   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11674 fi
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11676 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11677 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   ac_wine_try_cflags_saved=$CFLAGS
11681 CFLAGS="$CFLAGS -Wstrict-prototypes"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h.  */
11684 int main(int argc, char **argv) { return 0; }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687   ac_cv_cflags__Wstrict_prototypes=yes
11688 else
11689   ac_cv_cflags__Wstrict_prototypes=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 CFLAGS=$ac_wine_try_cflags_saved
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11696 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11697 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11698   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11699 fi
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11701 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11702 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   ac_wine_try_cflags_saved=$CFLAGS
11706 CFLAGS="$CFLAGS -Wtype-limits"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709 int main(int argc, char **argv) { return 0; }
11710 _ACEOF
11711 if ac_fn_c_try_link "$LINENO"; then :
11712   ac_cv_cflags__Wtype_limits=yes
11713 else
11714   ac_cv_cflags__Wtype_limits=no
11715 fi
11716 rm -f core conftest.err conftest.$ac_objext \
11717     conftest$ac_exeext conftest.$ac_ext
11718 CFLAGS=$ac_wine_try_cflags_saved
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11721 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11722 if test $ac_cv_cflags__Wtype_limits = yes; then :
11723   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11724 fi
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11726 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11727 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   ac_wine_try_cflags_saved=$CFLAGS
11731 CFLAGS="$CFLAGS -Wwrite-strings"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734 int main(int argc, char **argv) { return 0; }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737   ac_cv_cflags__Wwrite_strings=yes
11738 else
11739   ac_cv_cflags__Wwrite_strings=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742     conftest$ac_exeext conftest.$ac_ext
11743 CFLAGS=$ac_wine_try_cflags_saved
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11746 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11747 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11748   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11749 fi
11750
11751     saved_CFLAGS="$CFLAGS"
11752   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11754 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11755 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h.  */
11760 #include <string.h>
11761 int
11762 main ()
11763 {
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770   ac_cv_c_string_h_warnings=no
11771 else
11772   ac_cv_c_string_h_warnings=yes
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11777 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11778   CFLAGS="$saved_CFLAGS"
11779   if test "$ac_cv_c_string_h_warnings" = "no"
11780   then
11781     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11782   fi
11783
11784     if test "${enable_maintainer_mode+set}" = set
11785   then
11786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11787 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11788 if test "${ac_cv_cflags__Werror+set}" = set; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   ac_wine_try_cflags_saved=$CFLAGS
11792 CFLAGS="$CFLAGS -Werror"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h.  */
11795 int main(int argc, char **argv) { return 0; }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798   ac_cv_cflags__Werror=yes
11799 else
11800   ac_cv_cflags__Werror=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803     conftest$ac_exeext conftest.$ac_ext
11804 CFLAGS=$ac_wine_try_cflags_saved
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11807 $as_echo "$ac_cv_cflags__Werror" >&6; }
11808 if test $ac_cv_cflags__Werror = yes; then :
11809   EXTRACFLAGS="$EXTRACFLAGS -Werror"
11810 fi
11811   fi
11812
11813     saved_CFLAGS="$CFLAGS"
11814   CFLAGS="$CFLAGS -Werror"
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11816 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11817 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h.  */
11822 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11823 int
11824 main ()
11825 {
11826
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_compile "$LINENO"; then :
11832   ac_cv_have_ms_hook_prologue="yes"
11833 else
11834   ac_cv_have_ms_hook_prologue="no"
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11839 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11840   CFLAGS="$saved_CFLAGS"
11841   if test "$ac_cv_have_ms_hook_prologue" = "yes"
11842   then
11843
11844 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11845
11846   else
11847       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11848
11849   fi
11850 fi
11851
11852
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11854 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11855 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h.  */
11860 extern int ac_test;
11861 int
11862 main ()
11863 {
11864 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then :
11870   ac_cv_c_extern_prefix="yes"
11871 else
11872   ac_cv_c_extern_prefix="no"
11873 fi
11874 rm -f core conftest.err conftest.$ac_objext \
11875     conftest$ac_exeext conftest.$ac_ext
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11878 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11879
11880 case $host_cpu in
11881   *i[3456789]86*)
11882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11883 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11884 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11885   $as_echo_n "(cached) " >&6
11886 else
11887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h.  */
11889 #ifndef _MSC_VER
11890 #define __stdcall __attribute__((__stdcall__))
11891 #endif
11892 int __stdcall ac_test(int i) { return i; }
11893 int
11894 main ()
11895 {
11896 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902   ac_cv_c_stdcall_suffix="yes"
11903 else
11904   ac_cv_c_stdcall_suffix="no"
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext \
11907     conftest$ac_exeext conftest.$ac_ext
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11910 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11911   *) ac_cv_c_stdcall_suffix="no" ;;
11912 esac
11913
11914
11915 if test "$ac_cv_c_extern_prefix" = "yes"
11916 then
11917     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11918
11919     asm_name_prefix="_"
11920 else
11921     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11922
11923     asm_name_prefix=""
11924 fi
11925
11926
11927 if test "$ac_cv_c_stdcall_suffix" = "yes"
11928 then
11929     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11930
11931 else
11932     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11933
11934 fi
11935
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11938 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11939 if test "${ac_cv_asm_func_def+set}" = set; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945 int
11946 main ()
11947 {
11948 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_link "$LINENO"; then :
11954   ac_cv_asm_func_def=".def"
11955 else
11956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h.  */
11958
11959 int
11960 main ()
11961 {
11962 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968   ac_cv_asm_func_def=".type @function"
11969 else
11970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h.  */
11972
11973 int
11974 main ()
11975 {
11976 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982   ac_cv_asm_func_def=".type 2"
11983 else
11984   ac_cv_asm_func_def="unknown"
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987     conftest$ac_exeext conftest.$ac_ext
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext \
11990     conftest$ac_exeext conftest.$ac_ext
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext \
11993     conftest$ac_exeext conftest.$ac_ext
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
11996 $as_echo "$ac_cv_asm_func_def" >&6; }
11997
11998
11999 case "$ac_cv_asm_func_def" in
12000   ".def")
12001      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12002
12003      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12004   ".type @function")
12005      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12006
12007      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12008   ".type 2")
12009      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12010
12011      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12012   *)
12013      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12014
12015      asm_func_header="" ;;
12016 esac
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12019 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12020 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h.  */
12025 asm(".text\n\t.long 0");
12026 int
12027 main ()
12028 {
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035   ac_cv_c_asm_outside_funcs="yes"
12036 else
12037   ac_cv_c_asm_outside_funcs="no"
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12042 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12045 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12046 if test "${ac_cv_c_dot_previous+set}" = set; then :
12047   $as_echo_n "(cached) " >&6
12048 else
12049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051
12052 int
12053 main ()
12054 {
12055 asm(".text\nac_test:\t.long 0\n\t.previous");
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061   ac_cv_c_dot_previous="yes"
12062 else
12063   ac_cv_c_dot_previous="no"
12064 fi
12065 rm -f core conftest.err conftest.$ac_objext \
12066     conftest$ac_exeext conftest.$ac_ext
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12069 $as_echo "$ac_cv_c_dot_previous" >&6; }
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12072 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12073 if test "${ac_cv_c_cfi_support+set}" = set; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h.  */
12078 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12079 int
12080 main ()
12081 {
12082
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_compile "$LINENO"; then :
12088   ac_cv_c_cfi_support="yes"
12089 else
12090   ac_cv_c_cfi_support="no"
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12095 $as_echo "$ac_cv_c_cfi_support" >&6; }
12096
12097 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12098 asm_func_trailer=""
12099 if test "$ac_cv_c_dot_previous" = "yes"
12100 then
12101    asm_func_trailer="\\n\\t.previous"
12102 fi
12103 if test "$ac_cv_c_cfi_support" = "yes"
12104 then
12105    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12106    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12107
12108 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12109
12110 else
12111    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12112
12113 fi
12114
12115 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12116
12117
12118 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12119 then
12120     cat >>confdefs.h <<_ACEOF
12121 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12122 _ACEOF
12123
12124 else
12125     cat >>confdefs.h <<_ACEOF
12126 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12127 _ACEOF
12128
12129 fi
12130
12131 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12132
12133
12134 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12135
12136
12137
12138 LDPATH=""
12139
12140 case $build_os in
12141   cygwin*|mingw32*)
12142     TOOLSEXT=".exe"
12143
12144     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12145     ;;
12146   darwin*|macosx*)
12147     ;;
12148   *)
12149     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12150     ;;
12151 esac
12152
12153 case $host_os in
12154   mingw32*)
12155     CRTLIBS="-lmsvcrt"
12156
12157     SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12158
12159     ;;
12160 esac
12161
12162 MAIN_BINARY="wine"
12163
12164 test -z "$with_wine64" || MAIN_BINARY="wine32"
12165
12166 case $host_cpu in
12167   *i[3456789]86*)
12168     case $host_os in
12169       linux*)
12170         EXTRA_BINARIES="wine-preloader"
12171  ;;
12172     esac
12173     ;;
12174 esac
12175
12176
12177 ac_save_CFLAGS="$CFLAGS"
12178 CFLAGS="$CFLAGS $BUILTINFLAG"
12179 for ac_func in \
12180         _pclose \
12181         _popen \
12182         _snprintf \
12183         _spawnvp \
12184         _strdup \
12185         _stricmp \
12186         _strnicmp \
12187         _strtoi64 \
12188         _strtoui64 \
12189         _vsnprintf \
12190         asctime_r \
12191         chsize \
12192         dlopen \
12193         epoll_create \
12194         ffs \
12195         finite \
12196         fnmatch \
12197         fork \
12198         fpclass \
12199         fstatfs \
12200         fstatvfs \
12201         ftruncate \
12202         futimes \
12203         futimesat \
12204         getdirentries \
12205         getopt_long \
12206         getpagesize \
12207         getpwuid \
12208         gettid \
12209         gettimeofday \
12210         getuid \
12211         kqueue \
12212         lstat \
12213         memmove \
12214         mmap \
12215         pclose \
12216         pipe2 \
12217         poll \
12218         popen \
12219         port_create \
12220         prctl \
12221         pread \
12222         pwrite \
12223         readdir \
12224         readlink \
12225         sched_setaffinity \
12226         sched_yield \
12227         select \
12228         setproctitle \
12229         setrlimit \
12230         settimeofday \
12231         sigaltstack \
12232         sigprocmask \
12233         snprintf \
12234         spawnvp \
12235         statfs \
12236         statvfs \
12237         strcasecmp \
12238         strdup \
12239         strerror \
12240         strncasecmp \
12241         strtold \
12242         strtoll \
12243         strtoull \
12244         symlink \
12245         tcgetattr \
12246         thr_kill2 \
12247         timegm \
12248         usleep \
12249         vsnprintf \
12250         wait4 \
12251         waitpid \
12252
12253 do :
12254   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12256 eval as_val=\$$as_ac_var
12257    if test "x$as_val" = x""yes; then :
12258   cat >>confdefs.h <<_ACEOF
12259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12261
12262 fi
12263 done
12264
12265 CFLAGS="$ac_save_CFLAGS"
12266
12267 if test "$ac_cv_func_dlopen" = no
12268 then
12269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-ldl  $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278
12279 /* Override any GCC internal prototype to avoid an error.
12280    Use char because int might match the return type of a GCC
12281    builtin and then its argument prototype would still apply.  */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char dlopen ();
12286 int
12287 main ()
12288 {
12289 return dlopen ();
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295   ac_cv_lib_dl_dlopen=yes
12296 else
12297   ac_cv_lib_dl_dlopen=no
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext \
12300     conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12305 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12306   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12307  LIBDL="-ldl"
12308
12309 fi
12310
12311 fi
12312 ac_wine_check_funcs_save_LIBS="$LIBS"
12313 LIBS="$LIBS $LIBDL"
12314 for ac_func in dladdr
12315 do :
12316   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12317 if test "x$ac_cv_func_dladdr" = x""yes; then :
12318   cat >>confdefs.h <<_ACEOF
12319 #define HAVE_DLADDR 1
12320 _ACEOF
12321
12322 fi
12323 done
12324
12325 LIBS="$ac_wine_check_funcs_save_LIBS"
12326
12327 if test "$ac_cv_func_poll" = no
12328 then
12329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12330 $as_echo_n "checking for poll in -lpoll... " >&6; }
12331 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   ac_check_lib_save_LIBS=$LIBS
12335 LIBS="-lpoll  $LIBS"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338
12339 /* Override any GCC internal prototype to avoid an error.
12340    Use char because int might match the return type of a GCC
12341    builtin and then its argument prototype would still apply.  */
12342 #ifdef __cplusplus
12343 extern "C"
12344 #endif
12345 char poll ();
12346 int
12347 main ()
12348 {
12349 return poll ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_link "$LINENO"; then :
12355   ac_cv_lib_poll_poll=yes
12356 else
12357   ac_cv_lib_poll_poll=no
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext \
12360     conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12364 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12365 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12366   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12367  LIBPOLL="-lpoll"
12368
12369 fi
12370
12371 fi
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12374 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12375 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   ac_func_search_save_LIBS=$LIBS
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h.  */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383    Use char because int might match the return type of a GCC
12384    builtin and then its argument prototype would still apply.  */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char gethostbyname ();
12389 int
12390 main ()
12391 {
12392 return gethostbyname ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 for ac_lib in '' nsl; do
12398   if test -z "$ac_lib"; then
12399     ac_res="none required"
12400   else
12401     ac_res=-l$ac_lib
12402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12403   fi
12404   if ac_fn_c_try_link "$LINENO"; then :
12405   ac_cv_search_gethostbyname=$ac_res
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext \
12408     conftest$ac_exeext
12409   if test "${ac_cv_search_gethostbyname+set}" = set; then :
12410   break
12411 fi
12412 done
12413 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12414
12415 else
12416   ac_cv_search_gethostbyname=no
12417 fi
12418 rm conftest.$ac_ext
12419 LIBS=$ac_func_search_save_LIBS
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12422 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12423 ac_res=$ac_cv_search_gethostbyname
12424 if test "$ac_res" != no; then :
12425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12426
12427 fi
12428
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12431 $as_echo_n "checking for library containing connect... " >&6; }
12432 if test "${ac_cv_search_connect+set}" = set; then :
12433   $as_echo_n "(cached) " >&6
12434 else
12435   ac_func_search_save_LIBS=$LIBS
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h.  */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440    Use char because int might match the return type of a GCC
12441    builtin and then its argument prototype would still apply.  */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char connect ();
12446 int
12447 main ()
12448 {
12449 return connect ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 for ac_lib in '' socket; do
12455   if test -z "$ac_lib"; then
12456     ac_res="none required"
12457   else
12458     ac_res=-l$ac_lib
12459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12460   fi
12461   if ac_fn_c_try_link "$LINENO"; then :
12462   ac_cv_search_connect=$ac_res
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext \
12465     conftest$ac_exeext
12466   if test "${ac_cv_search_connect+set}" = set; then :
12467   break
12468 fi
12469 done
12470 if test "${ac_cv_search_connect+set}" = set; then :
12471
12472 else
12473   ac_cv_search_connect=no
12474 fi
12475 rm conftest.$ac_ext
12476 LIBS=$ac_func_search_save_LIBS
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12479 $as_echo "$ac_cv_search_connect" >&6; }
12480 ac_res=$ac_cv_search_connect
12481 if test "$ac_res" != no; then :
12482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12483
12484 fi
12485
12486
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12488 $as_echo_n "checking for library containing inet_aton... " >&6; }
12489 if test "${ac_cv_search_inet_aton+set}" = set; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   ac_func_search_save_LIBS=$LIBS
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h.  */
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497    Use char because int might match the return type of a GCC
12498    builtin and then its argument prototype would still apply.  */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char inet_aton ();
12503 int
12504 main ()
12505 {
12506 return inet_aton ();
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 for ac_lib in '' resolv; do
12512   if test -z "$ac_lib"; then
12513     ac_res="none required"
12514   else
12515     ac_res=-l$ac_lib
12516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12517   fi
12518   if ac_fn_c_try_link "$LINENO"; then :
12519   ac_cv_search_inet_aton=$ac_res
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext
12523   if test "${ac_cv_search_inet_aton+set}" = set; then :
12524   break
12525 fi
12526 done
12527 if test "${ac_cv_search_inet_aton+set}" = set; then :
12528
12529 else
12530   ac_cv_search_inet_aton=no
12531 fi
12532 rm conftest.$ac_ext
12533 LIBS=$ac_func_search_save_LIBS
12534 fi
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12536 $as_echo "$ac_cv_search_inet_aton" >&6; }
12537 ac_res=$ac_cv_search_inet_aton
12538 if test "$ac_res" != no; then :
12539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12540
12541 fi
12542
12543
12544 for ac_func in \
12545         getaddrinfo \
12546         getnameinfo \
12547         getnetbyname \
12548         getprotobyname \
12549         getprotobynumber \
12550         getservbyport \
12551         inet_network \
12552         inet_ntop \
12553         inet_pton \
12554         sendmsg \
12555         socketpair \
12556
12557 do :
12558   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12560 eval as_val=\$$as_ac_var
12561    if test "x$as_val" = x""yes; then :
12562   cat >>confdefs.h <<_ACEOF
12563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12564 _ACEOF
12565
12566 fi
12567 done
12568
12569
12570 LDAPLIBS=""
12571
12572 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12573 then
12574     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12575 "
12576 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12578 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12579 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588    Use char because int might match the return type of a GCC
12589    builtin and then its argument prototype would still apply.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char ldap_initialize ();
12594 int
12595 main ()
12596 {
12597 return ldap_initialize ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603   ac_cv_lib_ldap_r_ldap_initialize=yes
12604 else
12605   ac_cv_lib_ldap_r_ldap_initialize=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608     conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12612 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12613 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12615 $as_echo_n "checking for ber_init in -llber... " >&6; }
12616 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-llber $LIBPTHREAD $LIBS"
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h.  */
12623
12624 /* Override any GCC internal prototype to avoid an error.
12625    Use char because int might match the return type of a GCC
12626    builtin and then its argument prototype would still apply.  */
12627 #ifdef __cplusplus
12628 extern "C"
12629 #endif
12630 char ber_init ();
12631 int
12632 main ()
12633 {
12634 return ber_init ();
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 if ac_fn_c_try_link "$LINENO"; then :
12640   ac_cv_lib_lber_ber_init=yes
12641 else
12642   ac_cv_lib_lber_ber_init=no
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext \
12645     conftest$ac_exeext conftest.$ac_ext
12646 LIBS=$ac_check_lib_save_LIBS
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12649 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12650 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12651
12652 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12653
12654                  LDAPLIBS="-lldap_r -llber"
12655 fi
12656
12657 fi
12658
12659 fi
12660
12661     ac_wine_check_funcs_save_LIBS="$LIBS"
12662 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12663 for ac_func in \
12664         ldap_count_references \
12665         ldap_first_reference \
12666         ldap_next_reference \
12667         ldap_parse_reference \
12668         ldap_parse_sort_control \
12669         ldap_parse_sortresponse_control \
12670         ldap_parse_vlv_control \
12671         ldap_parse_vlvresponse_control
12672 do :
12673   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12675 eval as_val=\$$as_ac_var
12676    if test "x$as_val" = x""yes; then :
12677   cat >>confdefs.h <<_ACEOF
12678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679 _ACEOF
12680
12681 fi
12682 done
12683
12684 LIBS="$ac_wine_check_funcs_save_LIBS"
12685 fi
12686 if test "x$LDAPLIBS" = "x"; then :
12687   case "x$with_ldap" in
12688   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12689   xno) ;;
12690   *)   as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12691 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12692 esac
12693 fi
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12696 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12697 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702 #include <sys/stat.h>
12703 int
12704 main ()
12705 {
12706 mkdir("foo");
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 if ac_fn_c_try_compile "$LINENO"; then :
12712   wine_cv_one_arg_mkdir=yes
12713 else
12714   wine_cv_one_arg_mkdir=no
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12719 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12720 if test "$wine_cv_one_arg_mkdir" = "yes"
12721 then
12722
12723 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12724
12725 fi
12726
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12730 if test "${ac_cv_c_const+set}" = set; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735
12736 int
12737 main ()
12738 {
12739 /* FIXME: Include the comments suggested by Paul. */
12740 #ifndef __cplusplus
12741   /* Ultrix mips cc rejects this.  */
12742   typedef int charset[2];
12743   const charset cs;
12744   /* SunOS 4.1.1 cc rejects this.  */
12745   char const *const *pcpcc;
12746   char **ppc;
12747   /* NEC SVR4.0.2 mips cc rejects this.  */
12748   struct point {int x, y;};
12749   static struct point const zero = {0,0};
12750   /* AIX XL C 1.02.0.0 rejects this.
12751      It does not let you subtract one const X* pointer from another in
12752      an arm of an if-expression whose if-part is not a constant
12753      expression */
12754   const char *g = "string";
12755   pcpcc = &g + (g ? g-g : 0);
12756   /* HPUX 7.0 cc rejects these. */
12757   ++pcpcc;
12758   ppc = (char**) pcpcc;
12759   pcpcc = (char const *const *) ppc;
12760   { /* SCO 3.2v4 cc rejects this.  */
12761     char *t;
12762     char const *s = 0 ? (char *) 0 : (char const *) 0;
12763
12764     *t++ = 0;
12765     if (s) return 0;
12766   }
12767   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12768     int x[] = {25, 17};
12769     const int *foo = &x[0];
12770     ++foo;
12771   }
12772   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12773     typedef const int *iptr;
12774     iptr p = 0;
12775     ++p;
12776   }
12777   { /* AIX XL C 1.02.0.0 rejects this saying
12778        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12779     struct s { int j; const int *ap[3]; };
12780     struct s *b; b->j = 5;
12781   }
12782   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12783     const int foo = 10;
12784     if (!foo) return 0;
12785   }
12786   return !cs[0] && !zero.x;
12787 #endif
12788
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794   ac_cv_c_const=yes
12795 else
12796   ac_cv_c_const=no
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12801 $as_echo "$ac_cv_c_const" >&6; }
12802 if test $ac_cv_c_const = no; then
12803
12804 $as_echo "#define const /**/" >>confdefs.h
12805
12806 fi
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12809 $as_echo_n "checking for inline... " >&6; }
12810 if test "${ac_cv_c_inline+set}" = set; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   ac_cv_c_inline=no
12814 for ac_kw in inline __inline__ __inline; do
12815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h.  */
12817 #ifndef __cplusplus
12818 typedef int foo_t;
12819 static $ac_kw foo_t static_foo () {return 0; }
12820 $ac_kw foo_t foo () {return 0; }
12821 #endif
12822
12823 _ACEOF
12824 if ac_fn_c_try_compile "$LINENO"; then :
12825   ac_cv_c_inline=$ac_kw
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828   test "$ac_cv_c_inline" != no && break
12829 done
12830
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12833 $as_echo "$ac_cv_c_inline" >&6; }
12834
12835 case $ac_cv_c_inline in
12836   inline | yes) ;;
12837   *)
12838     case $ac_cv_c_inline in
12839       no) ac_val=;;
12840       *) ac_val=$ac_cv_c_inline;;
12841     esac
12842     cat >>confdefs.h <<_ACEOF
12843 #ifndef __cplusplus
12844 #define inline $ac_val
12845 #endif
12846 _ACEOF
12847     ;;
12848 esac
12849
12850 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12851 if test "x$ac_cv_type_mode_t" = x""yes; then :
12852
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_MODE_T 1
12855 _ACEOF
12856
12857
12858 fi
12859 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12860 if test "x$ac_cv_type_off_t" = x""yes; then :
12861
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_OFF_T 1
12864 _ACEOF
12865
12866
12867 fi
12868 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12869 if test "x$ac_cv_type_pid_t" = x""yes; then :
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define HAVE_PID_T 1
12873 _ACEOF
12874
12875
12876 fi
12877 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12878 if test "x$ac_cv_type_size_t" = x""yes; then :
12879
12880 cat >>confdefs.h <<_ACEOF
12881 #define HAVE_SIZE_T 1
12882 _ACEOF
12883
12884
12885 fi
12886 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12887 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12888
12889 cat >>confdefs.h <<_ACEOF
12890 #define HAVE_SSIZE_T 1
12891 _ACEOF
12892
12893
12894 fi
12895 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12896 if test "x$ac_cv_type_long_long" = x""yes; then :
12897
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_LONG_LONG 1
12900 _ACEOF
12901
12902
12903 fi
12904 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12905 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12906
12907 cat >>confdefs.h <<_ACEOF
12908 #define HAVE_FSBLKCNT_T 1
12909 _ACEOF
12910
12911
12912 fi
12913 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12914 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12915
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_FSFILCNT_T 1
12918 _ACEOF
12919
12920
12921 fi
12922
12923 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12924 #include <signal.h>
12925 "
12926 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12927
12928 cat >>confdefs.h <<_ACEOF
12929 #define HAVE_SIGSET_T 1
12930 _ACEOF
12931
12932
12933 fi
12934
12935 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12936 "
12937 if test "x$ac_cv_type_request_sense" = x""yes; then :
12938
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_REQUEST_SENSE 1
12941 _ACEOF
12942
12943
12944 fi
12945
12946
12947 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12948 #ifdef HAVE_SYS_SOCKET_H
12949 #include <sys/socket.h>
12950 #endif
12951 #ifdef HAVE_SYS_SOCKETVAR_H
12952 #include <sys/socketvar.h>
12953 #endif
12954 #ifdef HAVE_NET_ROUTE_H
12955 #include <net/route.h>
12956 #endif
12957 #ifdef HAVE_NETINET_IN_H
12958 #include <netinet/in.h>
12959 #endif
12960 #ifdef HAVE_NETINET_IN_SYSTM_H
12961 #include <netinet/in_systm.h>
12962 #endif
12963 #ifdef HAVE_NETINET_IP_H
12964 #include <netinet/ip.h>
12965 #endif
12966 #ifdef HAVE_NETINET_IN_PCB_H
12967 #include <netinet/in_pcb.h>
12968 #endif
12969 "
12970 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12971
12972 cat >>confdefs.h <<_ACEOF
12973 #define HAVE_STRUCT_XINPGEN 1
12974 _ACEOF
12975
12976
12977 fi
12978
12979
12980 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12981 #include <linux/input.h>
12982 #endif
12983 "
12984 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
12985
12986 cat >>confdefs.h <<_ACEOF
12987 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
12988 _ACEOF
12989
12990
12991 fi
12992
12993
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
12995 $as_echo_n "checking for sigaddset... " >&6; }
12996 if test "${wine_cv_have_sigaddset+set}" = set; then :
12997   $as_echo_n "(cached) " >&6
12998 else
12999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h.  */
13001 #include <signal.h>
13002 int
13003 main ()
13004 {
13005 sigset_t set; sigaddset(&set,SIGTERM);
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 if ac_fn_c_try_link "$LINENO"; then :
13011   wine_cv_have_sigaddset=yes
13012 else
13013   wine_cv_have_sigaddset=no
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext \
13016     conftest$ac_exeext conftest.$ac_ext
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13019 $as_echo "$wine_cv_have_sigaddset" >&6; }
13020 if test "$wine_cv_have_sigaddset" = "yes"
13021 then
13022
13023 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13024
13025 fi
13026
13027
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13029 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13030 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13031   $as_echo_n "(cached) " >&6
13032 else
13033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h.  */
13035 #include <netdb.h>
13036 int
13037 main ()
13038 {
13039
13040     char *name=0;
13041     struct hostent he;
13042     struct hostent *result;
13043     char *buf=0;
13044     int bufsize=0;
13045     int res,errnr;
13046     char *addr=0;
13047     int addrlen=0;
13048     int addrtype=0;
13049     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13050     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13051
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057   wine_cv_linux_gethostbyname_r_6=yes
13058 else
13059   wine_cv_linux_gethostbyname_r_6=no
13060
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13067 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13068    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13069    then
13070
13071 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13072
13073    fi
13074
13075 if test "$ac_cv_header_linux_joystick_h" = "yes"
13076 then
13077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13078 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13079 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13080   $as_echo_n "(cached) " >&6
13081 else
13082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h.  */
13084
13085         #include <sys/ioctl.h>
13086         #include <sys/types.h>
13087         #include <linux/joystick.h>
13088
13089         struct js_event blub;
13090         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13091         #error "no 2.2 header"
13092         #endif
13093
13094 int
13095 main ()
13096 {
13097 /*empty*/
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103   wine_cv_linux_joystick_22_api=yes
13104 else
13105   wine_cv_linux_joystick_22_api=no
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13111 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13112    if test "$wine_cv_linux_joystick_22_api" = "yes"
13113    then
13114
13115 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13116
13117    fi
13118 fi
13119
13120
13121 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13122 #ifdef HAVE_SYS_PARAM_H
13123 # include <sys/param.h>
13124 #endif
13125 #ifdef HAVE_SYS_MOUNT_H
13126 # include <sys/mount.h>
13127 #endif
13128 #ifdef HAVE_SYS_VFS_H
13129 # include <sys/vfs.h>
13130 #endif
13131 #ifdef HAVE_SYS_STATFS_H
13132 # include <sys/statfs.h>
13133 #endif
13134 "
13135 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13136
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_STRUCT_STATFS_F_BFREE 1
13139 _ACEOF
13140
13141
13142 fi
13143 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13144 #ifdef HAVE_SYS_PARAM_H
13145 # include <sys/param.h>
13146 #endif
13147 #ifdef HAVE_SYS_MOUNT_H
13148 # include <sys/mount.h>
13149 #endif
13150 #ifdef HAVE_SYS_VFS_H
13151 # include <sys/vfs.h>
13152 #endif
13153 #ifdef HAVE_SYS_STATFS_H
13154 # include <sys/statfs.h>
13155 #endif
13156 "
13157 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13161 _ACEOF
13162
13163
13164 fi
13165 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13166 #ifdef HAVE_SYS_PARAM_H
13167 # include <sys/param.h>
13168 #endif
13169 #ifdef HAVE_SYS_MOUNT_H
13170 # include <sys/mount.h>
13171 #endif
13172 #ifdef HAVE_SYS_VFS_H
13173 # include <sys/vfs.h>
13174 #endif
13175 #ifdef HAVE_SYS_STATFS_H
13176 # include <sys/statfs.h>
13177 #endif
13178 "
13179 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13180
13181 cat >>confdefs.h <<_ACEOF
13182 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13183 _ACEOF
13184
13185
13186 fi
13187 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13188 #ifdef HAVE_SYS_PARAM_H
13189 # include <sys/param.h>
13190 #endif
13191 #ifdef HAVE_SYS_MOUNT_H
13192 # include <sys/mount.h>
13193 #endif
13194 #ifdef HAVE_SYS_VFS_H
13195 # include <sys/vfs.h>
13196 #endif
13197 #ifdef HAVE_SYS_STATFS_H
13198 # include <sys/statfs.h>
13199 #endif
13200 "
13201 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13202
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_STRUCT_STATFS_F_FFREE 1
13205 _ACEOF
13206
13207
13208 fi
13209 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13210 #ifdef HAVE_SYS_PARAM_H
13211 # include <sys/param.h>
13212 #endif
13213 #ifdef HAVE_SYS_MOUNT_H
13214 # include <sys/mount.h>
13215 #endif
13216 #ifdef HAVE_SYS_VFS_H
13217 # include <sys/vfs.h>
13218 #endif
13219 #ifdef HAVE_SYS_STATFS_H
13220 # include <sys/statfs.h>
13221 #endif
13222 "
13223 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13227 _ACEOF
13228
13229
13230 fi
13231 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13232 #ifdef HAVE_SYS_PARAM_H
13233 # include <sys/param.h>
13234 #endif
13235 #ifdef HAVE_SYS_MOUNT_H
13236 # include <sys/mount.h>
13237 #endif
13238 #ifdef HAVE_SYS_VFS_H
13239 # include <sys/vfs.h>
13240 #endif
13241 #ifdef HAVE_SYS_STATFS_H
13242 # include <sys/statfs.h>
13243 #endif
13244 "
13245 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13246
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13249 _ACEOF
13250
13251
13252 fi
13253
13254
13255 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13256 #include <sys/statvfs.h>
13257 #endif
13258 "
13259 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13260
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13263 _ACEOF
13264
13265
13266 fi
13267
13268
13269 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13270 #ifdef HAVE_SYS_SOCKET_H
13271 # include <sys/socket.h>
13272 #endif
13273 #ifdef HAVE_SYS_UN_H
13274 # include <sys/un.h>
13275 #endif
13276 "
13277 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13278
13279 cat >>confdefs.h <<_ACEOF
13280 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13281 _ACEOF
13282
13283
13284 fi
13285 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13286 #ifdef HAVE_SYS_SOCKET_H
13287 # include <sys/socket.h>
13288 #endif
13289 #ifdef HAVE_SYS_UN_H
13290 # include <sys/un.h>
13291 #endif
13292 "
13293 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13297 _ACEOF
13298
13299
13300 fi
13301 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13302 #ifdef HAVE_SYS_SOCKET_H
13303 # include <sys/socket.h>
13304 #endif
13305 #ifdef HAVE_SYS_UN_H
13306 # include <sys/un.h>
13307 #endif
13308 "
13309 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13310
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13313 _ACEOF
13314
13315
13316 fi
13317
13318
13319 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13320 #ifdef HAVE_SCSI_SG_H
13321 #include <scsi/sg.h>
13322 #endif
13323 "
13324 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13325
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_SCSIREQ_T_CMD 1
13328 _ACEOF
13329
13330
13331 fi
13332 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>
13333 #ifdef HAVE_SCSI_SG_H
13334 #include <scsi/sg.h>
13335 #endif
13336 "
13337 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13338
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13341 _ACEOF
13342
13343
13344 fi
13345
13346
13347 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13348 "
13349 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13350
13351 cat >>confdefs.h <<_ACEOF
13352 #define HAVE_SIGINFO_T_SI_FD 1
13353 _ACEOF
13354
13355
13356 fi
13357
13358
13359 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13360 #ifdef HAVE_SYS_MTIO_H
13361 #include <sys/mtio.h>
13362 #endif
13363 "
13364 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13368 _ACEOF
13369
13370
13371 fi
13372 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13373 #ifdef HAVE_SYS_MTIO_H
13374 #include <sys/mtio.h>
13375 #endif
13376 "
13377 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13378
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13381 _ACEOF
13382
13383
13384 fi
13385 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13386 #ifdef HAVE_SYS_MTIO_H
13387 #include <sys/mtio.h>
13388 #endif
13389 "
13390 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13391
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13394 _ACEOF
13395
13396
13397 fi
13398
13399
13400 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13401 #include <getopt.h>
13402 #endif
13403 "
13404 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13405
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_STRUCT_OPTION_NAME 1
13408 _ACEOF
13409
13410
13411 fi
13412
13413
13414 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13415 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13416
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13419 _ACEOF
13420
13421
13422 fi
13423 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13424 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13425
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_STRUCT_STAT_ST_MTIM 1
13428 _ACEOF
13429
13430
13431 fi
13432 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13433 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13434
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_STRUCT_STAT_ST_CTIM 1
13437 _ACEOF
13438
13439
13440 fi
13441 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13442 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13443
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_STRUCT_STAT_ST_ATIM 1
13446 _ACEOF
13447
13448
13449 fi
13450
13451
13452 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
13453 #include <sys/types.h>
13454 #endif
13455 #ifdef HAVE_NETINET_IN_H
13456 #include <netinet/in.h>
13457 #endif
13458 "
13459 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13463 _ACEOF
13464
13465
13466 fi
13467
13468
13469 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#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 #ifdef HAVE_ARPA_NAMESER_H
13476 # include <arpa/nameser.h>
13477 #endif
13478 "
13479 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13480
13481 cat >>confdefs.h <<_ACEOF
13482 #define HAVE_NS_MSG__MSG_PTR 1
13483 _ACEOF
13484
13485
13486 fi
13487
13488
13489 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13490 #include <sys/types.h>
13491 #endif
13492 #ifdef HAVE_ALIAS_H
13493 #include <alias.h>
13494 #endif
13495 #ifdef HAVE_SYS_SOCKET_H
13496 #include <sys/socket.h>
13497 #endif
13498 #ifdef HAVE_SYS_SOCKETVAR_H
13499 #include <sys/socketvar.h>
13500 #endif
13501 #ifdef HAVE_SYS_TIMEOUT_H
13502 #include <sys/timeout.h>
13503 #endif
13504 #ifdef HAVE_NETINET_IN_H
13505 #include <netinet/in.h>
13506 #endif
13507 #ifdef HAVE_NETINET_IN_SYSTM_H
13508 #include <netinet/in_systm.h>
13509 #endif
13510 #ifdef HAVE_NETINET_IP_H
13511 #include <netinet/ip.h>
13512 #endif
13513 #ifdef HAVE_NETINET_IP_VAR_H
13514 #include <netinet/ip_var.h>
13515 #endif
13516 #ifdef HAVE_NETINET_IP_ICMP_H
13517 #include <netinet/ip_icmp.h>
13518 #endif
13519 #ifdef HAVE_NETINET_ICMP_VAR
13520 #include <netinet/icmp_var.h>
13521 #endif
13522 "
13523 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13524
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13527 _ACEOF
13528
13529
13530 fi
13531
13532
13533 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13534 #include <sys/types.h>
13535 #endif
13536 #ifdef HAVE_NET_IF_H
13537 # include <net/if.h>
13538 #endif
13539 "
13540 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13544 _ACEOF
13545
13546
13547 fi
13548
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13551 $as_echo_n "checking for timezone variable... " >&6; }
13552 if test "${ac_cv_have_timezone+set}" = set; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557 #include <time.h>
13558 int
13559 main ()
13560 {
13561 timezone = 1
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567   ac_cv_have_timezone="yes"
13568 else
13569   ac_cv_have_timezone="no"
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572     conftest$ac_exeext conftest.$ac_ext
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13575 $as_echo "$ac_cv_have_timezone" >&6; }
13576 if test "$ac_cv_have_timezone" = "yes"
13577 then
13578
13579 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13580
13581 fi
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13583 $as_echo_n "checking for daylight variable... " >&6; }
13584 if test "${ac_cv_have_daylight+set}" = set; then :
13585   $as_echo_n "(cached) " >&6
13586 else
13587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h.  */
13589 #include <time.h>
13590 int
13591 main ()
13592 {
13593 daylight = 1
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599   ac_cv_have_daylight="yes"
13600 else
13601   ac_cv_have_daylight="no"
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext \
13604     conftest$ac_exeext conftest.$ac_ext
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13607 $as_echo "$ac_cv_have_daylight" >&6; }
13608 if test "$ac_cv_have_daylight" = "yes"
13609 then
13610
13611 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13612
13613 fi
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13616 $as_echo_n "checking for isinf... " >&6; }
13617 if test "${ac_cv_have_isinf+set}" = set; then :
13618   $as_echo_n "(cached) " >&6
13619 else
13620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h.  */
13622 #include <math.h>
13623 int
13624 main ()
13625 {
13626 float f = 0.0; int i=isinf(f)
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632   ac_cv_have_isinf="yes"
13633 else
13634   ac_cv_have_isinf="no"
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637     conftest$ac_exeext conftest.$ac_ext
13638 fi
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13640 $as_echo "$ac_cv_have_isinf" >&6; }
13641 if test "$ac_cv_have_isinf" = "yes"
13642 then
13643
13644 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13645
13646 fi
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13649 $as_echo_n "checking for isnan... " >&6; }
13650 if test "${ac_cv_have_isnan+set}" = set; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h.  */
13655 #include <math.h>
13656 int
13657 main ()
13658 {
13659 float f = 0.0; int i=isnan(f)
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_link "$LINENO"; then :
13665   ac_cv_have_isnan="yes"
13666 else
13667   ac_cv_have_isnan="no"
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext \
13670     conftest$ac_exeext conftest.$ac_ext
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13673 $as_echo "$ac_cv_have_isnan" >&6; }
13674 if test "$ac_cv_have_isnan" = "yes"
13675 then
13676
13677 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13678
13679 fi
13680
13681
13682 case $host_cpu in
13683   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13684 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13685 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690 #ifndef __i386__
13691 yes
13692 #endif
13693 _ACEOF
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695   $EGREP "yes" >/dev/null 2>&1; then :
13696   ac_cv_cpp_def___i386__=yes
13697 else
13698   ac_cv_cpp_def___i386__=no
13699 fi
13700 rm -f conftest*
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13704 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13705 if test $ac_cv_cpp_def___i386__ = yes; then :
13706   CFLAGS="$CFLAGS -D__i386__"
13707   LINTFLAGS="$LINTFLAGS -D__i386__"
13708 fi ;;
13709   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13710 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13711 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716 #ifndef __x86_64__
13717 yes
13718 #endif
13719 _ACEOF
13720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13721   $EGREP "yes" >/dev/null 2>&1; then :
13722   ac_cv_cpp_def___x86_64__=yes
13723 else
13724   ac_cv_cpp_def___x86_64__=no
13725 fi
13726 rm -f conftest*
13727
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13730 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13731 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13732   CFLAGS="$CFLAGS -D__x86_64__"
13733   LINTFLAGS="$LINTFLAGS -D__x86_64__"
13734 fi ;;
13735   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13736 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13737 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13738   $as_echo_n "(cached) " >&6
13739 else
13740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h.  */
13742 #ifndef __ALPHA__
13743 yes
13744 #endif
13745 _ACEOF
13746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13747   $EGREP "yes" >/dev/null 2>&1; then :
13748   ac_cv_cpp_def___ALPHA__=yes
13749 else
13750   ac_cv_cpp_def___ALPHA__=no
13751 fi
13752 rm -f conftest*
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13756 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13757 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13758   CFLAGS="$CFLAGS -D__ALPHA__"
13759   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13760 fi ;;
13761   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13762 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13763 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768 #ifndef __sparc__
13769 yes
13770 #endif
13771 _ACEOF
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773   $EGREP "yes" >/dev/null 2>&1; then :
13774   ac_cv_cpp_def___sparc__=yes
13775 else
13776   ac_cv_cpp_def___sparc__=no
13777 fi
13778 rm -f conftest*
13779
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13782 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13783 if test $ac_cv_cpp_def___sparc__ = yes; then :
13784   CFLAGS="$CFLAGS -D__sparc__"
13785   LINTFLAGS="$LINTFLAGS -D__sparc__"
13786 fi ;;
13787   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13788 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13789 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13790   $as_echo_n "(cached) " >&6
13791 else
13792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h.  */
13794 #ifndef __powerpc__
13795 yes
13796 #endif
13797 _ACEOF
13798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13799   $EGREP "yes" >/dev/null 2>&1; then :
13800   ac_cv_cpp_def___powerpc__=yes
13801 else
13802   ac_cv_cpp_def___powerpc__=no
13803 fi
13804 rm -f conftest*
13805
13806 fi
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13808 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13809 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13810   CFLAGS="$CFLAGS -D__powerpc__"
13811   LINTFLAGS="$LINTFLAGS -D__powerpc__"
13812 fi ;;
13813 esac
13814
13815 case $host_vendor in
13816   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13817 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13818 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823 #ifndef __sun__
13824 yes
13825 #endif
13826 _ACEOF
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828   $EGREP "yes" >/dev/null 2>&1; then :
13829   ac_cv_cpp_def___sun__=yes
13830 else
13831   ac_cv_cpp_def___sun__=no
13832 fi
13833 rm -f conftest*
13834
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13837 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13838 if test $ac_cv_cpp_def___sun__ = yes; then :
13839   CFLAGS="$CFLAGS -D__sun__"
13840   LINTFLAGS="$LINTFLAGS -D__sun__"
13841 fi ;;
13842 esac
13843
13844
13845
13846
13847 ac_config_commands="$ac_config_commands include/stamp-h"
13848
13849
13850 ALL_MAKEFILE_DEPENDS="# Makefile dependencies
13851 Makefile: Makefile.in Make.rules config.status"
13852
13853 ALL_WINETEST_DEPENDS="# Test binaries"
13854
13855
13856 ALL_MAKERULES=""
13857
13858 ALL_SYMLINKS=""
13859
13860 ALL_DIRS=""
13861
13862 ALL_TOP_DIRS=""
13863
13864 ALL_DLL_DIRS=""
13865
13866 ALL_TEST_BINARIES=""
13867
13868 ALL_PROGRAM_BIN_INSTALL_DIRS=""
13869
13870
13871 wine_fn_append_file ()
13872 {
13873     as_fn_append $1 " \\$as_nl  $2"
13874 }
13875
13876 wine_fn_append_rule ()
13877 {
13878     as_fn_append $1 "$as_nl$2"
13879 }
13880
13881 wine_fn_config_makefile ()
13882 {
13883     ac_dir=$1
13884     ac_enable=$2
13885     wine_fn_append_file ALL_DIRS $ac_dir
13886     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13887 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13888 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Make.rules \$(MAKEDEP)
13889         @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13890     eval as_val=\$$ac_enable
13891    if test "x$as_val" = x""no; then :
13892
13893 else
13894   case $ac_dir in
13895                  */*) ;;
13896                  *) wine_fn_append_file ALL_TOP_DIRS $ac_dir ;;
13897                esac
13898 fi
13899 }
13900
13901 wine_fn_config_lib ()
13902 {
13903     ac_name=$1
13904     ac_dir=dlls/$ac_name
13905     wine_fn_append_file ALL_DIRS $ac_dir
13906     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13907 "all __builddeps__: $ac_dir
13908 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
13909 $ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
13910 $ac_dir/lib$ac_name.cross.a: dummy
13911         @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13912 $ac_dir/__clean__: $ac_dir/Makefile
13913 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP)
13914         @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend
13915 install install-dev:: $ac_dir
13916         @cd $ac_dir && \$(MAKE) install
13917 uninstall:: $ac_dir/Makefile
13918         @cd $ac_dir && \$(MAKE) uninstall"
13919 }
13920
13921 wine_fn_config_dll ()
13922 {
13923     ac_dir=$1
13924     ac_enable=$2
13925     ac_implib=$3
13926     ac_implibsrc=$4
13927     ac_file="dlls/$ac_dir/lib$ac_implib"
13928     ac_deps="tools/widl tools/winebuild tools/winegcc include"
13929
13930     wine_fn_append_file ALL_DIRS dlls/$ac_dir
13931     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13932 "dlls/$ac_dir/__clean__: dlls/$ac_dir/Makefile
13933 dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP)
13934         @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend"
13935
13936     eval as_val=\$$ac_enable
13937    if test "x$as_val" = x""no; then :
13938                 test "$ac_enable" != enable_win16 || return 0
13939 else
13940   wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir
13941                wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13942 "all: dlls/$ac_dir
13943 dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__
13944 install:: dlls/$ac_dir/Makefile __builddeps__
13945         @cd dlls/$ac_dir && \$(MAKE) install
13946 install-lib:: dlls/$ac_dir/Makefile __builddeps__
13947         @cd dlls/$ac_dir && \$(MAKE) install-lib
13948 uninstall:: dlls/$ac_dir/Makefile
13949         @cd dlls/$ac_dir && \$(MAKE) uninstall"
13950 fi
13951
13952     if test -n "$ac_implibsrc"
13953     then
13954         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13955 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
13956 __buildcrossdeps__: $ac_file.cross.a
13957 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13958 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13959         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13960 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13961         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13962 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13963         @cd dlls/$ac_dir && \$(MAKE) install-dev"
13964     elif test -n "$ac_implib"
13965     then
13966         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13967 "__builddeps__: $ac_file.$IMPLIBEXT
13968 __buildcrossdeps__: $ac_file.cross.a
13969 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
13970         @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13971 install-dev:: dlls/$ac_dir/Makefile __builddeps__
13972         @cd dlls/$ac_dir && \$(MAKE) install-dev"
13973
13974         if test "$ac_dir" != "$ac_implib"
13975         then
13976             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13977 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
13978 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
13979 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
13980         \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
13981 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
13982         \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
13983 clean::
13984         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
13985         fi
13986     fi
13987 }
13988
13989 wine_fn_config_program ()
13990 {
13991     ac_dir=$1
13992     ac_enable=$2
13993     ac_install=$3
13994     wine_fn_append_file ALL_DIRS programs/$ac_dir
13995     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13996 "programs/$ac_dir/__clean__: programs/$ac_dir/Makefile
13997 programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP)
13998         @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend"
13999
14000     eval as_val=\$$ac_enable
14001    if test "x$as_val" = x""no; then :
14002
14003 else
14004   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14005 "all: programs/$ac_dir
14006 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__"
14007     if test -n "$ac_install"
14008     then
14009         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14010 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14011         @cd programs/$ac_dir && \$(MAKE) install
14012 uninstall:: programs/$ac_dir/Makefile
14013         @cd programs/$ac_dir && \$(MAKE) uninstall"
14014         test "$ac_install" != installbin || wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir
14015     fi
14016 fi
14017 }
14018
14019 wine_fn_config_test ()
14020 {
14021     ac_dir=$1
14022     ac_name=$2
14023     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14024     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14025 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14026         cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14027 $ac_name.rc:
14028         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14029 $ac_name.res: $ac_name.rc $ac_name.exe"
14030     wine_fn_append_file ALL_DIRS $ac_dir
14031     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14032 "$ac_dir/__clean__: $ac_dir/Makefile
14033 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
14034         @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14035
14036     if test "x$enable_tests" = x""no; then :
14037
14038 else
14039   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14040 "all programs/winetest: $ac_dir
14041 $ac_dir: $ac_dir/Makefile __builddeps__
14042 crosstest:: $ac_dir/Makefile __buildcrossdeps__
14043         @cd $ac_dir && \$(MAKE) crosstest
14044 test::
14045         @cd $ac_dir && \$(MAKE) test
14046 testclean::
14047         \$(RM) $ac_dir/*.ok"
14048 fi
14049 }
14050
14051 wine_fn_config_tool ()
14052 {
14053     ac_dir=$1
14054     ac_deps="Make.rules"
14055     if test "$ac_dir" != tools
14056     then
14057                 ac_deps="$ac_deps \$(MAKEDEP)"
14058     fi
14059     wine_fn_append_file ALL_DIRS $ac_dir
14060     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14061 "$ac_dir/__clean__: $ac_dir/Makefile
14062 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps
14063         @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14064
14065     if test "x$enable_tools" = x""no; then :
14066
14067 else
14068   case $ac_dir in
14069             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14070 "install:: $ac_dir
14071         @cd $ac_dir && \$(MAKE) install
14072 install-lib:: $ac_dir
14073         @cd $ac_dir && \$(MAKE) install-lib
14074 install-dev:: $ac_dir
14075         @cd $ac_dir && \$(MAKE) install-dev" ;;
14076       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14077 "install install-dev:: $ac_dir
14078         @cd $ac_dir && \$(MAKE) install" ;;
14079       esac
14080       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14081 "uninstall:: $ac_dir/Makefile
14082         @cd $ac_dir && \$(MAKE) uninstall
14083 all __tooldeps__: $ac_dir
14084 $ac_dir: $ac_dir/Makefile libs/port"
14085 fi
14086 }
14087 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14088 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "dlls/wineps.drv/generic.ppd"
14089 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14090 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/marlett.ttf"
14091 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14092 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/symbol.ttf"
14093 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14094 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahoma.ttf"
14095 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14096 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahomabd.ttf"
14097 ac_config_links="$ac_config_links wine:tools/winewrapper"
14098 wine_fn_append_file ALL_SYMLINKS "wine"
14099
14100 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14101
14102 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14103
14104 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14105
14106 ac_config_commands="$ac_config_commands dlls/user32/resources"
14107
14108 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14109
14110 ac_config_commands="$ac_config_commands include/wine"
14111
14112
14113 wine_fn_append_file ALL_MAKERULES "Make.rules"
14114 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Make.rules: Make.rules.in config.status"
14115 MAKE_RULES=Make.rules
14116 ac_config_files="$ac_config_files Make.rules"
14117
14118 wine_fn_append_file ALL_MAKERULES "Maketest.rules"
14119 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Maketest.rules: Maketest.rules.in Make.rules config.status"
14120 MAKE_TEST_RULES=Maketest.rules
14121 ac_config_files="$ac_config_files Maketest.rules"
14122
14123 wine_fn_append_file ALL_MAKERULES "dlls/Makedll.rules"
14124 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makedll.rules: dlls/Makedll.rules.in Make.rules config.status"
14125 MAKE_DLL_RULES=dlls/Makedll.rules
14126 ac_config_files="$ac_config_files dlls/Makedll.rules"
14127
14128 wine_fn_append_file ALL_MAKERULES "dlls/Makeimplib.rules"
14129 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makeimplib.rules: dlls/Makeimplib.rules.in Make.rules config.status"
14130 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14131 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14132
14133 wine_fn_append_file ALL_MAKERULES "programs/Makeprog.rules"
14134 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "programs/Makeprog.rules: programs/Makeprog.rules.in Make.rules config.status"
14135 MAKE_PROG_RULES=programs/Makeprog.rules
14136 ac_config_files="$ac_config_files programs/Makeprog.rules"
14137
14138
14139 wine_fn_config_dll acledit enable_acledit
14140 wine_fn_config_dll aclui enable_aclui aclui
14141 wine_fn_config_dll activeds enable_activeds activeds
14142 wine_fn_config_dll actxprxy enable_actxprxy
14143 wine_fn_config_lib adsiid
14144 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14145 wine_fn_config_test dlls/advapi32/tests advapi32_test
14146 wine_fn_config_dll advpack enable_advpack advpack
14147 wine_fn_config_test dlls/advpack/tests advpack_test
14148 wine_fn_config_dll amstream enable_amstream
14149 wine_fn_config_test dlls/amstream/tests amstream_test
14150 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14151 wine_fn_config_dll atl enable_atl atl
14152 wine_fn_config_dll authz enable_authz
14153 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14154 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14155 wine_fn_config_test dlls/avifil32/tests avifil32_test
14156 wine_fn_config_dll avifile.dll16 enable_win16
14157 wine_fn_config_dll avrt enable_avrt avrt
14158 wine_fn_config_dll bcrypt enable_bcrypt
14159 wine_fn_config_dll browseui enable_browseui
14160 wine_fn_config_test dlls/browseui/tests browseui_test
14161 wine_fn_config_dll cabinet enable_cabinet cabinet
14162 wine_fn_config_test dlls/cabinet/tests cabinet_test
14163 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14164 wine_fn_config_dll cards enable_cards cards
14165 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14166 wine_fn_config_dll clusapi enable_clusapi clusapi
14167 wine_fn_config_dll comcat enable_comcat
14168 wine_fn_config_test dlls/comcat/tests comcat_test
14169 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14170 wine_fn_config_test dlls/comctl32/tests comctl32_test
14171 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14172 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14173 wine_fn_config_dll comm.drv16 enable_win16
14174 wine_fn_config_dll commdlg.dll16 enable_win16
14175 wine_fn_config_dll compobj.dll16 enable_win16
14176 wine_fn_config_dll compstui enable_compstui compstui
14177 wine_fn_config_dll credui enable_credui credui
14178 wine_fn_config_test dlls/credui/tests credui_test
14179 wine_fn_config_dll crtdll enable_crtdll crtdll
14180 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14181 wine_fn_config_test dlls/crypt32/tests crypt32_test
14182 wine_fn_config_dll cryptdlg enable_cryptdlg
14183 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14184 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14185 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14186 wine_fn_config_dll cryptui enable_cryptui cryptui
14187 wine_fn_config_test dlls/cryptui/tests cryptui_test
14188 wine_fn_config_dll ctapi32 enable_ctapi32
14189 wine_fn_config_dll ctl3d.dll16 enable_win16
14190 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14191 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14192 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14193 wine_fn_config_test dlls/d3d10/tests d3d10_test
14194 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14195 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14196 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14197 wine_fn_config_test dlls/d3d8/tests d3d8_test
14198 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14199 wine_fn_config_test dlls/d3d9/tests d3d9_test
14200 wine_fn_config_dll d3dim enable_d3dim d3dim
14201 wine_fn_config_dll d3drm enable_d3drm d3drm
14202 wine_fn_config_test dlls/d3drm/tests d3drm_test
14203 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14204 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14205 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14206 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14207 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14208 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14209 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14210 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14211 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14212 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14213 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14214 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14215 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14216 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14217 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14218 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14219 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14220 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14221 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14222 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14223 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14224 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14225 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14226 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14227 wine_fn_config_dll ddeml.dll16 enable_win16
14228 wine_fn_config_dll ddraw enable_ddraw ddraw
14229 wine_fn_config_test dlls/ddraw/tests ddraw_test
14230 wine_fn_config_dll ddrawex enable_ddrawex
14231 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14232 wine_fn_config_dll devenum enable_devenum
14233 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14234 wine_fn_config_test dlls/dinput/tests dinput_test
14235 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14236 wine_fn_config_dll dispdib.dll16 enable_win16
14237 wine_fn_config_dll dispex enable_dispex
14238 wine_fn_config_test dlls/dispex/tests dispex_test
14239 wine_fn_config_dll display.drv16 enable_win16
14240 wine_fn_config_dll dmband enable_dmband
14241 wine_fn_config_dll dmcompos enable_dmcompos
14242 wine_fn_config_dll dmime enable_dmime
14243 wine_fn_config_dll dmloader enable_dmloader
14244 wine_fn_config_test dlls/dmloader/tests dmloader_test
14245 wine_fn_config_dll dmscript enable_dmscript
14246 wine_fn_config_dll dmstyle enable_dmstyle
14247 wine_fn_config_dll dmsynth enable_dmsynth
14248 wine_fn_config_dll dmusic enable_dmusic
14249 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14250 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14251 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14252 wine_fn_config_dll dplay enable_dplay dplay
14253 wine_fn_config_dll dplayx enable_dplayx dplayx
14254 wine_fn_config_test dlls/dplayx/tests dplayx_test
14255 wine_fn_config_dll dpnaddr enable_dpnaddr
14256 wine_fn_config_dll dpnet enable_dpnet dpnet
14257 wine_fn_config_dll dpnhpast enable_dpnhpast
14258 wine_fn_config_dll dpnlobby enable_dpnlobby
14259 wine_fn_config_dll dpwsockx enable_dpwsockx
14260 wine_fn_config_dll drmclien enable_drmclien
14261 wine_fn_config_dll dsound enable_dsound dsound
14262 wine_fn_config_test dlls/dsound/tests dsound_test
14263 wine_fn_config_dll dssenh enable_dssenh
14264 wine_fn_config_dll dswave enable_dswave
14265 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14266 wine_fn_config_dll dxdiagn enable_dxdiagn
14267 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14268 wine_fn_config_lib dxerr8
14269 wine_fn_config_lib dxerr9
14270 wine_fn_config_dll dxgi enable_dxgi dxgi
14271 wine_fn_config_test dlls/dxgi/tests dxgi_test
14272 wine_fn_config_lib dxguid
14273 wine_fn_config_dll faultrep enable_faultrep
14274 wine_fn_config_dll fltlib enable_fltlib
14275 wine_fn_config_dll fusion enable_fusion
14276 wine_fn_config_test dlls/fusion/tests fusion_test
14277 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14278 wine_fn_config_dll gdi.exe16 enable_win16
14279 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14280 wine_fn_config_test dlls/gdi32/tests gdi32_test
14281 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14282 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14283 wine_fn_config_dll glu32 enable_glu32 glu32
14284 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14285 wine_fn_config_dll gpkcsp enable_gpkcsp
14286 wine_fn_config_dll hal enable_hal
14287 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14288 wine_fn_config_dll hid enable_hid hid
14289 wine_fn_config_dll hlink enable_hlink hlink
14290 wine_fn_config_test dlls/hlink/tests hlink_test
14291 wine_fn_config_dll hnetcfg enable_hnetcfg
14292 wine_fn_config_dll httpapi enable_httpapi
14293 wine_fn_config_dll iccvid enable_iccvid
14294 wine_fn_config_dll icmp enable_icmp
14295 wine_fn_config_dll ifsmgr.vxd enable_win16
14296 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14297 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14298 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14299 wine_fn_config_dll imm.dll16 enable_win16
14300 wine_fn_config_dll imm32 enable_imm32 imm32
14301 wine_fn_config_test dlls/imm32/tests imm32_test
14302 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14303 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14304 wine_fn_config_dll inetmib1 enable_inetmib1
14305 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14306 wine_fn_config_dll infosoft enable_infosoft
14307 wine_fn_config_test dlls/infosoft/tests infosoft_test
14308 wine_fn_config_dll initpki enable_initpki
14309 wine_fn_config_dll inkobj enable_inkobj
14310 wine_fn_config_dll inseng enable_inseng
14311 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14312 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14313 wine_fn_config_dll itircl enable_itircl
14314 wine_fn_config_dll itss enable_itss
14315 wine_fn_config_test dlls/itss/tests itss_test
14316 wine_fn_config_dll jscript enable_jscript
14317 wine_fn_config_test dlls/jscript/tests jscript_test
14318 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14319 wine_fn_config_test dlls/kernel32/tests kernel32_test
14320 wine_fn_config_dll keyboard.drv16 enable_win16
14321 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14322 wine_fn_config_dll loadperf enable_loadperf loadperf
14323 wine_fn_config_dll localspl enable_localspl
14324 wine_fn_config_test dlls/localspl/tests localspl_test
14325 wine_fn_config_dll localui enable_localui
14326 wine_fn_config_test dlls/localui/tests localui_test
14327 wine_fn_config_dll lz32 enable_lz32 lz32
14328 wine_fn_config_test dlls/lz32/tests lz32_test
14329 wine_fn_config_dll lzexpand.dll16 enable_win16
14330 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14331 wine_fn_config_test dlls/mapi32/tests mapi32_test
14332 wine_fn_config_dll mapistub enable_mapistub
14333 wine_fn_config_dll mciavi32 enable_mciavi32
14334 wine_fn_config_dll mcicda enable_mcicda
14335 wine_fn_config_dll mciqtz32 enable_mciqtz32
14336 wine_fn_config_dll mciseq enable_mciseq
14337 wine_fn_config_dll mciwave enable_mciwave
14338 wine_fn_config_dll midimap enable_midimap
14339 wine_fn_config_dll mlang enable_mlang mlang
14340 wine_fn_config_test dlls/mlang/tests mlang_test
14341 wine_fn_config_dll mmdevapi enable_mmdevapi
14342 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14343 wine_fn_config_dll mmdevldr.vxd enable_win16
14344 wine_fn_config_dll mmsystem.dll16 enable_win16
14345 wine_fn_config_dll monodebg.vxd enable_win16
14346 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14347 wine_fn_config_dll mouse.drv16 enable_win16
14348 wine_fn_config_dll mpr enable_mpr mpr
14349 wine_fn_config_dll mprapi enable_mprapi mprapi
14350 wine_fn_config_dll msacm.dll16 enable_win16
14351 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14352 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14353 wine_fn_config_test dlls/msacm32/tests msacm32_test
14354 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14355 wine_fn_config_dll mscat32 enable_mscat32
14356 wine_fn_config_dll mscms enable_mscms mscms
14357 wine_fn_config_test dlls/mscms/tests mscms_test
14358 wine_fn_config_dll mscoree enable_mscoree
14359 wine_fn_config_dll msctf enable_msctf
14360 wine_fn_config_test dlls/msctf/tests msctf_test
14361 wine_fn_config_dll msdaps enable_msdaps
14362 wine_fn_config_dll msdmo enable_msdmo msdmo
14363 wine_fn_config_dll msftedit enable_msftedit
14364 wine_fn_config_dll msg711.acm enable_msg711_acm
14365 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14366 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14367 wine_fn_config_dll mshtml enable_mshtml mshtml
14368 wine_fn_config_test dlls/mshtml/tests mshtml_test
14369 wine_fn_config_dll msi enable_msi msi
14370 wine_fn_config_test dlls/msi/tests msi_test
14371 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14372 wine_fn_config_dll msimtf enable_msimtf
14373 wine_fn_config_dll msisip enable_msisip
14374 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14375 wine_fn_config_dll msnet32 enable_msnet32
14376 wine_fn_config_dll msrle32 enable_msrle32
14377 wine_fn_config_dll mssign32 enable_mssign32
14378 wine_fn_config_dll mssip32 enable_mssip32
14379 wine_fn_config_dll mstask enable_mstask
14380 wine_fn_config_test dlls/mstask/tests mstask_test
14381 wine_fn_config_dll msvcirt enable_msvcirt
14382 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14383 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14384 wine_fn_config_dll msvcr80 enable_msvcr80 msvcr80
14385 wine_fn_config_dll msvcr90 enable_msvcr90 msvcr90
14386 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14387 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14388 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14389 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14390 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14391 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14392 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14393 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14394 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14395 wine_fn_config_dll msvidc32 enable_msvidc32
14396 wine_fn_config_dll msvideo.dll16 enable_win16
14397 wine_fn_config_dll mswsock enable_mswsock mswsock
14398 wine_fn_config_dll msxml3 enable_msxml3
14399 wine_fn_config_test dlls/msxml3/tests msxml3_test
14400 wine_fn_config_dll msxml4 enable_msxml4
14401 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14402 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14403 wine_fn_config_test dlls/netapi32/tests netapi32_test
14404 wine_fn_config_dll newdev enable_newdev newdev
14405 wine_fn_config_dll ntdll enable_ntdll ntdll
14406 wine_fn_config_test dlls/ntdll/tests ntdll_test
14407 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14408 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14409 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14410 wine_fn_config_dll ntprint enable_ntprint
14411 wine_fn_config_test dlls/ntprint/tests ntprint_test
14412 wine_fn_config_dll objsel enable_objsel
14413 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14414 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14415 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14416 wine_fn_config_dll ole2.dll16 enable_win16
14417 wine_fn_config_dll ole2conv.dll16 enable_win16
14418 wine_fn_config_dll ole2disp.dll16 enable_win16
14419 wine_fn_config_dll ole2nls.dll16 enable_win16
14420 wine_fn_config_dll ole2prox.dll16 enable_win16
14421 wine_fn_config_dll ole2thk.dll16 enable_win16
14422 wine_fn_config_dll ole32 enable_ole32 ole32
14423 wine_fn_config_test dlls/ole32/tests ole32_test
14424 wine_fn_config_dll oleacc enable_oleacc oleacc
14425 wine_fn_config_test dlls/oleacc/tests oleacc_test
14426 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14427 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14428 wine_fn_config_dll olecli.dll16 enable_win16
14429 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14430 wine_fn_config_dll oledb32 enable_oledb32
14431 wine_fn_config_test dlls/oledb32/tests oledb32_test
14432 wine_fn_config_dll oledlg enable_oledlg oledlg
14433 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14434 wine_fn_config_dll olesvr.dll16 enable_win16
14435 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14436 wine_fn_config_dll olethk32 enable_olethk32
14437 wine_fn_config_dll openal32 enable_openal32
14438 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14439 wine_fn_config_test dlls/opengl32/tests opengl32_test
14440 wine_fn_config_dll pdh enable_pdh pdh
14441 wine_fn_config_test dlls/pdh/tests pdh_test
14442 wine_fn_config_dll pidgen enable_pidgen
14443 wine_fn_config_dll powrprof enable_powrprof powrprof
14444 wine_fn_config_dll printui enable_printui
14445 wine_fn_config_dll propsys enable_propsys
14446 wine_fn_config_dll psapi enable_psapi psapi
14447 wine_fn_config_test dlls/psapi/tests psapi_test
14448 wine_fn_config_dll pstorec enable_pstorec
14449 wine_fn_config_dll qcap enable_qcap
14450 wine_fn_config_dll qedit enable_qedit
14451 wine_fn_config_test dlls/qedit/tests qedit_test
14452 wine_fn_config_dll qmgr enable_qmgr
14453 wine_fn_config_test dlls/qmgr/tests qmgr_test
14454 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14455 wine_fn_config_dll quartz enable_quartz quartz
14456 wine_fn_config_test dlls/quartz/tests quartz_test
14457 wine_fn_config_dll query enable_query
14458 wine_fn_config_dll rasapi16.dll16 enable_win16
14459 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14460 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14461 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14462 wine_fn_config_dll resutils enable_resutils resutils
14463 wine_fn_config_dll riched20 enable_riched20 riched20
14464 wine_fn_config_test dlls/riched20/tests riched20_test
14465 wine_fn_config_dll riched32 enable_riched32
14466 wine_fn_config_test dlls/riched32/tests riched32_test
14467 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14468 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14469 wine_fn_config_dll rsabase enable_rsabase
14470 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14471 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14472 wine_fn_config_dll rtutils enable_rtutils rtutils
14473 wine_fn_config_dll sane.ds enable_sane_ds
14474 wine_fn_config_dll sccbase enable_sccbase
14475 wine_fn_config_dll schannel enable_schannel
14476 wine_fn_config_test dlls/schannel/tests schannel_test
14477 wine_fn_config_dll secur32 enable_secur32 secur32
14478 wine_fn_config_test dlls/secur32/tests secur32_test
14479 wine_fn_config_dll security enable_security
14480 wine_fn_config_dll sensapi enable_sensapi sensapi
14481 wine_fn_config_dll serialui enable_serialui serialui
14482 wine_fn_config_test dlls/serialui/tests serialui_test
14483 wine_fn_config_dll setupapi enable_setupapi setupapi
14484 wine_fn_config_test dlls/setupapi/tests setupapi_test
14485 wine_fn_config_dll setupx.dll16 enable_win16
14486 wine_fn_config_dll sfc enable_sfc sfc
14487 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14488 wine_fn_config_dll shdoclc enable_shdoclc
14489 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14490 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14491 wine_fn_config_dll shell.dll16 enable_win16
14492 wine_fn_config_dll shell32 enable_shell32 shell32
14493 wine_fn_config_test dlls/shell32/tests shell32_test
14494 wine_fn_config_dll shfolder enable_shfolder shfolder
14495 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14496 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14497 wine_fn_config_dll slbcsp enable_slbcsp
14498 wine_fn_config_dll slc enable_slc slc
14499 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14500 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14501 wine_fn_config_dll softpub enable_softpub
14502 wine_fn_config_dll sound.drv16 enable_win16
14503 wine_fn_config_dll spoolss enable_spoolss spoolss
14504 wine_fn_config_test dlls/spoolss/tests spoolss_test
14505 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14506 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14507 wine_fn_config_dll sti enable_sti sti
14508 wine_fn_config_test dlls/sti/tests sti_test
14509 wine_fn_config_dll storage.dll16 enable_win16
14510 wine_fn_config_dll stress.dll16 enable_win16
14511 wine_fn_config_lib strmiids
14512 wine_fn_config_dll svrapi enable_svrapi
14513 wine_fn_config_dll sxs enable_sxs
14514 wine_fn_config_dll system.drv16 enable_win16
14515 wine_fn_config_dll t2embed enable_t2embed
14516 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14517 wine_fn_config_dll toolhelp.dll16 enable_win16
14518 wine_fn_config_dll traffic enable_traffic
14519 wine_fn_config_dll twain.dll16 enable_win16
14520 wine_fn_config_dll twain_32 enable_twain_32
14521 wine_fn_config_test dlls/twain_32/tests twain_32_test
14522 wine_fn_config_dll typelib.dll16 enable_win16
14523 wine_fn_config_dll unicows enable_unicows unicows
14524 wine_fn_config_dll updspapi enable_updspapi
14525 wine_fn_config_dll url enable_url url
14526 wine_fn_config_dll urlmon enable_urlmon urlmon
14527 wine_fn_config_test dlls/urlmon/tests urlmon_test
14528 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14529 wine_fn_config_dll user.exe16 enable_win16
14530 wine_fn_config_dll user32 enable_user32 user32
14531 wine_fn_config_test dlls/user32/tests user32_test
14532 wine_fn_config_dll userenv enable_userenv userenv
14533 wine_fn_config_test dlls/userenv/tests userenv_test
14534 wine_fn_config_dll usp10 enable_usp10 usp10
14535 wine_fn_config_test dlls/usp10/tests usp10_test
14536 wine_fn_config_lib uuid
14537 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14538 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14539 wine_fn_config_dll vdhcp.vxd enable_win16
14540 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14541 wine_fn_config_dll ver.dll16 enable_win16
14542 wine_fn_config_dll version enable_version version
14543 wine_fn_config_test dlls/version/tests version_test
14544 wine_fn_config_dll vmm.vxd enable_win16
14545 wine_fn_config_dll vnbt.vxd enable_win16
14546 wine_fn_config_dll vnetbios.vxd enable_win16
14547 wine_fn_config_dll vtdapi.vxd enable_win16
14548 wine_fn_config_dll vwin32.vxd enable_win16
14549 wine_fn_config_dll w32skrnl enable_win16
14550 wine_fn_config_dll w32sys.dll16 enable_win16
14551 wine_fn_config_dll wbemprox enable_wbemprox
14552 wine_fn_config_dll wiaservc enable_wiaservc
14553 wine_fn_config_dll win32s16.dll16 enable_win16
14554 wine_fn_config_dll win87em.dll16 enable_win16
14555 wine_fn_config_dll winaspi.dll16 enable_win16
14556 wine_fn_config_dll windebug.dll16 enable_win16
14557 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14558 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14559 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14560 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14561 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14562 wine_fn_config_lib winecrt0
14563 wine_fn_config_dll wined3d enable_wined3d wined3d
14564 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14565 wine_fn_config_dll winejack.drv enable_winejack_drv
14566 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14567 wine_fn_config_dll winemapi enable_winemapi
14568 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14569 wine_fn_config_dll winenas.drv enable_winenas_drv
14570 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14571 wine_fn_config_dll wineps.drv enable_wineps_drv
14572 wine_fn_config_dll wineps16.drv16 enable_win16
14573 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14574 wine_fn_config_dll winex11.drv enable_winex11_drv
14575 wine_fn_config_dll wing.dll16 enable_win16
14576 wine_fn_config_dll wing32 enable_wing32
14577 wine_fn_config_dll winhttp enable_winhttp winhttp
14578 wine_fn_config_test dlls/winhttp/tests winhttp_test
14579 wine_fn_config_dll wininet enable_wininet wininet
14580 wine_fn_config_test dlls/wininet/tests wininet_test
14581 wine_fn_config_dll winmm enable_winmm winmm
14582 wine_fn_config_test dlls/winmm/tests winmm_test
14583 wine_fn_config_dll winnls.dll16 enable_win16
14584 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14585 wine_fn_config_dll winscard enable_winscard winscard
14586 wine_fn_config_dll winsock.dll16 enable_win16
14587 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14588 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14589 wine_fn_config_dll wintab.dll16 enable_win16
14590 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14591 wine_fn_config_test dlls/wintab32/tests wintab32_test
14592 wine_fn_config_dll wintrust enable_wintrust wintrust
14593 wine_fn_config_test dlls/wintrust/tests wintrust_test
14594 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14595 wine_fn_config_test dlls/wldap32/tests wldap32_test
14596 wine_fn_config_dll wmi enable_wmi
14597 wine_fn_config_dll wmiutils enable_wmiutils
14598 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14599 wine_fn_config_dll wow32 enable_win16 wow32
14600 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14601 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14602 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14603 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14604 wine_fn_config_dll wuapi enable_wuapi
14605 wine_fn_config_dll wuaueng enable_wuaueng
14606 wine_fn_config_dll xinput1_1 enable_xinput1_1
14607 wine_fn_config_dll xinput1_2 enable_xinput1_2
14608 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14609 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14610 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14611 wine_fn_config_dll xmllite enable_xmllite
14612 wine_fn_config_test dlls/xmllite/tests xmllite_test
14613 wine_fn_config_makefile documentation enable_documentation
14614 wine_fn_config_makefile fonts enable_fonts
14615 wine_fn_config_makefile include enable_include
14616 wine_fn_config_makefile libs/port enable_libs_port
14617 wine_fn_config_makefile libs/wine enable_libs_wine
14618 wine_fn_config_makefile libs/wpp enable_libs_wpp
14619 wine_fn_config_makefile loader enable_loader
14620 wine_fn_config_makefile programs enable_programs
14621 wine_fn_config_program attrib enable_attrib install
14622 wine_fn_config_program cacls enable_cacls install
14623 wine_fn_config_program clock enable_clock install
14624 wine_fn_config_program cmd enable_cmd install
14625 wine_fn_config_test programs/cmd/tests cmd.exe_test
14626 wine_fn_config_program cmdlgtst enable_cmdlgtst
14627 wine_fn_config_program control enable_control install
14628 wine_fn_config_program dxdiag enable_dxdiag install
14629 wine_fn_config_program eject enable_eject install
14630 wine_fn_config_program expand enable_expand install
14631 wine_fn_config_program explorer enable_explorer install
14632 wine_fn_config_program extrac32 enable_extrac32 install
14633 wine_fn_config_program hh enable_hh install
14634 wine_fn_config_program icinfo enable_icinfo install
14635 wine_fn_config_program iexplore enable_iexplore install
14636 wine_fn_config_program lodctr enable_lodctr install
14637 wine_fn_config_program mshta enable_mshta install
14638 wine_fn_config_program msiexec enable_msiexec installbin
14639 wine_fn_config_program net enable_net install
14640 wine_fn_config_program notepad enable_notepad installbin
14641 wine_fn_config_program oleview enable_oleview install
14642 wine_fn_config_program ping enable_ping install
14643 wine_fn_config_program progman enable_progman install
14644 wine_fn_config_program reg enable_reg install
14645 wine_fn_config_program regedit enable_regedit installbin
14646 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14647 wine_fn_config_program rpcss enable_rpcss install
14648 wine_fn_config_program rundll32 enable_rundll32 install
14649 wine_fn_config_program secedit enable_secedit install
14650 wine_fn_config_program services enable_services install
14651 wine_fn_config_program spoolsv enable_spoolsv install
14652 wine_fn_config_program start enable_start install
14653 wine_fn_config_program svchost enable_svchost install
14654 wine_fn_config_program taskmgr enable_taskmgr install
14655 wine_fn_config_program termsv enable_termsv install
14656 wine_fn_config_program uninstaller enable_uninstaller install
14657 wine_fn_config_program unlodctr enable_unlodctr install
14658 wine_fn_config_program view enable_view
14659 wine_fn_config_program wineboot enable_wineboot installbin
14660 wine_fn_config_program winebrowser enable_winebrowser install
14661 wine_fn_config_program winecfg enable_winecfg installbin
14662 wine_fn_config_program wineconsole enable_wineconsole installbin
14663 wine_fn_config_program winedbg enable_winedbg installbin
14664 wine_fn_config_program winedevice enable_winedevice install
14665 wine_fn_config_program winefile enable_winefile installbin
14666 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14667 wine_fn_config_program winemine enable_winemine installbin
14668 wine_fn_config_program winepath enable_winepath installbin
14669 wine_fn_config_program winetest enable_winetest
14670 wine_fn_config_program winevdm enable_win16 install
14671 wine_fn_config_program winhelp.exe16 enable_win16 install
14672 wine_fn_config_program winhlp32 enable_winhlp32 install
14673 wine_fn_config_program winoldap.mod16 enable_win16 install
14674 wine_fn_config_program winver enable_winver install
14675 wine_fn_config_program wordpad enable_wordpad install
14676 wine_fn_config_program write enable_write install
14677 wine_fn_config_program xcopy enable_xcopy install
14678 wine_fn_config_makefile server enable_server
14679 wine_fn_config_tool tools
14680 wine_fn_config_tool tools/widl
14681 wine_fn_config_tool tools/winebuild
14682 wine_fn_config_tool tools/winedump
14683 wine_fn_config_tool tools/winegcc
14684 wine_fn_config_tool tools/wmc
14685 wine_fn_config_tool tools/wrc
14686
14687 ac_config_files="$ac_config_files Makefile"
14688
14689
14690 test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
14691
14692 cat >confcache <<\_ACEOF
14693 # This file is a shell script that caches the results of configure
14694 # tests run on this system so they can be shared between configure
14695 # scripts and configure runs, see configure's option --config-cache.
14696 # It is not useful on other systems.  If it contains results you don't
14697 # want to keep, you may remove or edit it.
14698 #
14699 # config.status only pays attention to the cache file if you give it
14700 # the --recheck option to rerun configure.
14701 #
14702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14704 # following values.
14705
14706 _ACEOF
14707
14708 # The following way of writing the cache mishandles newlines in values,
14709 # but we know of no workaround that is simple, portable, and efficient.
14710 # So, we kill variables containing newlines.
14711 # Ultrix sh set writes to stderr and can't be redirected directly,
14712 # and sets the high bit in the cache file unless we assign to the vars.
14713 (
14714   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14715     eval ac_val=\$$ac_var
14716     case $ac_val in #(
14717     *${as_nl}*)
14718       case $ac_var in #(
14719       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14721       esac
14722       case $ac_var in #(
14723       _ | IFS | as_nl) ;; #(
14724       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14725       *) { eval $ac_var=; unset $ac_var;} ;;
14726       esac ;;
14727     esac
14728   done
14729
14730   (set) 2>&1 |
14731     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14732     *${as_nl}ac_space=\ *)
14733       # `set' does not quote correctly, so add quotes: double-quote
14734       # substitution turns \\\\ into \\, and sed turns \\ into \.
14735       sed -n \
14736         "s/'/'\\\\''/g;
14737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14738       ;; #(
14739     *)
14740       # `set' quotes correctly as required by POSIX, so do not add quotes.
14741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14742       ;;
14743     esac |
14744     sort
14745 ) |
14746   sed '
14747      /^ac_cv_env_/b end
14748      t clear
14749      :clear
14750      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14751      t end
14752      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14753      :end' >>confcache
14754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14755   if test -w "$cache_file"; then
14756     test "x$cache_file" != "x/dev/null" &&
14757       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14758 $as_echo "$as_me: updating cache $cache_file" >&6;}
14759     cat confcache >$cache_file
14760   else
14761     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14763   fi
14764 fi
14765 rm -f confcache
14766
14767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14768 # Let make expand exec_prefix.
14769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14770
14771 DEFS=-DHAVE_CONFIG_H
14772
14773 ac_libobjs=
14774 ac_ltlibobjs=
14775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14776   # 1. Remove the extension, and $U if already installed.
14777   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14778   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14779   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14780   #    will be set to the directory where LIBOBJS objects are built.
14781   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14782   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14783 done
14784 LIBOBJS=$ac_libobjs
14785
14786 LTLIBOBJS=$ac_ltlibobjs
14787
14788
14789
14790 : ${CONFIG_STATUS=./config.status}
14791 ac_write_fail=0
14792 ac_clean_files_save=$ac_clean_files
14793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14796 as_write_fail=0
14797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14798 #! $SHELL
14799 # Generated by $as_me.
14800 # Run this file to recreate the current configuration.
14801 # Compiler output produced by configure, useful for debugging
14802 # configure, is in config.log if it exists.
14803
14804 debug=false
14805 ac_cs_recheck=false
14806 ac_cs_silent=false
14807
14808 SHELL=\${CONFIG_SHELL-$SHELL}
14809 export SHELL
14810 _ASEOF
14811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14812 ## -------------------- ##
14813 ## M4sh Initialization. ##
14814 ## -------------------- ##
14815
14816 # Be more Bourne compatible
14817 DUALCASE=1; export DUALCASE # for MKS sh
14818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14819   emulate sh
14820   NULLCMD=:
14821   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14822   # is contrary to our usage.  Disable this feature.
14823   alias -g '${1+"$@"}'='"$@"'
14824   setopt NO_GLOB_SUBST
14825 else
14826   case `(set -o) 2>/dev/null` in #(
14827   *posix*) :
14828     set -o posix ;; #(
14829   *) :
14830      ;;
14831 esac
14832 fi
14833
14834
14835 as_nl='
14836 '
14837 export as_nl
14838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14842 # Prefer a ksh shell builtin over an external printf program on Solaris,
14843 # but without wasting forks for bash or zsh.
14844 if test -z "$BASH_VERSION$ZSH_VERSION" \
14845     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14846   as_echo='print -r --'
14847   as_echo_n='print -rn --'
14848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14849   as_echo='printf %s\n'
14850   as_echo_n='printf %s'
14851 else
14852   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14853     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14854     as_echo_n='/usr/ucb/echo -n'
14855   else
14856     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14857     as_echo_n_body='eval
14858       arg=$1;
14859       case $arg in #(
14860       *"$as_nl"*)
14861         expr "X$arg" : "X\\(.*\\)$as_nl";
14862         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14863       esac;
14864       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14865     '
14866     export as_echo_n_body
14867     as_echo_n='sh -c $as_echo_n_body as_echo'
14868   fi
14869   export as_echo_body
14870   as_echo='sh -c $as_echo_body as_echo'
14871 fi
14872
14873 # The user is always right.
14874 if test "${PATH_SEPARATOR+set}" != set; then
14875   PATH_SEPARATOR=:
14876   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14877     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14878       PATH_SEPARATOR=';'
14879   }
14880 fi
14881
14882
14883 # IFS
14884 # We need space, tab and new line, in precisely that order.  Quoting is
14885 # there to prevent editors from complaining about space-tab.
14886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14887 # splitting by setting IFS to empty value.)
14888 IFS=" ""        $as_nl"
14889
14890 # Find who we are.  Look in the path if we contain no directory separator.
14891 case $0 in #((
14892   *[\\/]* ) as_myself=$0 ;;
14893   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14895 do
14896   IFS=$as_save_IFS
14897   test -z "$as_dir" && as_dir=.
14898     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14899   done
14900 IFS=$as_save_IFS
14901
14902      ;;
14903 esac
14904 # We did not find ourselves, most probably we were run as `sh COMMAND'
14905 # in which case we are not to be found in the path.
14906 if test "x$as_myself" = x; then
14907   as_myself=$0
14908 fi
14909 if test ! -f "$as_myself"; then
14910   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14911   exit 1
14912 fi
14913
14914 # Unset variables that we do not need and which cause bugs (e.g. in
14915 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14916 # suppresses any "Segmentation fault" message there.  '((' could
14917 # trigger a bug in pdksh 5.2.14.
14918 for as_var in BASH_ENV ENV MAIL MAILPATH
14919 do eval test x\${$as_var+set} = xset \
14920   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14921 done
14922 PS1='$ '
14923 PS2='> '
14924 PS4='+ '
14925
14926 # NLS nuisances.
14927 LC_ALL=C
14928 export LC_ALL
14929 LANGUAGE=C
14930 export LANGUAGE
14931
14932 # CDPATH.
14933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14934
14935
14936 # as_fn_error ERROR [LINENO LOG_FD]
14937 # ---------------------------------
14938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14940 # script with status $?, using 1 if that was 0.
14941 as_fn_error ()
14942 {
14943   as_status=$?; test $as_status -eq 0 && as_status=1
14944   if test "$3"; then
14945     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14946     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14947   fi
14948   $as_echo "$as_me: error: $1" >&2
14949   as_fn_exit $as_status
14950 } # as_fn_error
14951
14952
14953 # as_fn_set_status STATUS
14954 # -----------------------
14955 # Set $? to STATUS, without forking.
14956 as_fn_set_status ()
14957 {
14958   return $1
14959 } # as_fn_set_status
14960
14961 # as_fn_exit STATUS
14962 # -----------------
14963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14964 as_fn_exit ()
14965 {
14966   set +e
14967   as_fn_set_status $1
14968   exit $1
14969 } # as_fn_exit
14970
14971 # as_fn_unset VAR
14972 # ---------------
14973 # Portably unset VAR.
14974 as_fn_unset ()
14975 {
14976   { eval $1=; unset $1;}
14977 }
14978 as_unset=as_fn_unset
14979 # as_fn_append VAR VALUE
14980 # ----------------------
14981 # Append the text in VALUE to the end of the definition contained in VAR. Take
14982 # advantage of any shell optimizations that allow amortized linear growth over
14983 # repeated appends, instead of the typical quadratic growth present in naive
14984 # implementations.
14985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14986   eval 'as_fn_append ()
14987   {
14988     eval $1+=\$2
14989   }'
14990 else
14991   as_fn_append ()
14992   {
14993     eval $1=\$$1\$2
14994   }
14995 fi # as_fn_append
14996
14997 # as_fn_arith ARG...
14998 # ------------------
14999 # Perform arithmetic evaluation on the ARGs, and store the result in the
15000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15001 # must be portable across $(()) and expr.
15002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15003   eval 'as_fn_arith ()
15004   {
15005     as_val=$(( $* ))
15006   }'
15007 else
15008   as_fn_arith ()
15009   {
15010     as_val=`expr "$@" || test $? -eq 1`
15011   }
15012 fi # as_fn_arith
15013
15014
15015 if expr a : '\(a\)' >/dev/null 2>&1 &&
15016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15017   as_expr=expr
15018 else
15019   as_expr=false
15020 fi
15021
15022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15023   as_basename=basename
15024 else
15025   as_basename=false
15026 fi
15027
15028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15029   as_dirname=dirname
15030 else
15031   as_dirname=false
15032 fi
15033
15034 as_me=`$as_basename -- "$0" ||
15035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15036          X"$0" : 'X\(//\)$' \| \
15037          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15038 $as_echo X/"$0" |
15039     sed '/^.*\/\([^/][^/]*\)\/*$/{
15040             s//\1/
15041             q
15042           }
15043           /^X\/\(\/\/\)$/{
15044             s//\1/
15045             q
15046           }
15047           /^X\/\(\/\).*/{
15048             s//\1/
15049             q
15050           }
15051           s/.*/./; q'`
15052
15053 # Avoid depending upon Character Ranges.
15054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15057 as_cr_digits='0123456789'
15058 as_cr_alnum=$as_cr_Letters$as_cr_digits
15059
15060 ECHO_C= ECHO_N= ECHO_T=
15061 case `echo -n x` in #(((((
15062 -n*)
15063   case `echo 'xy\c'` in
15064   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15065   xy)  ECHO_C='\c';;
15066   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15067        ECHO_T=' ';;
15068   esac;;
15069 *)
15070   ECHO_N='-n';;
15071 esac
15072
15073 rm -f conf$$ conf$$.exe conf$$.file
15074 if test -d conf$$.dir; then
15075   rm -f conf$$.dir/conf$$.file
15076 else
15077   rm -f conf$$.dir
15078   mkdir conf$$.dir 2>/dev/null
15079 fi
15080 if (echo >conf$$.file) 2>/dev/null; then
15081   if ln -s conf$$.file conf$$ 2>/dev/null; then
15082     as_ln_s='ln -s'
15083     # ... but there are two gotchas:
15084     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15085     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15086     # In both cases, we have to default to `cp -p'.
15087     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15088       as_ln_s='cp -p'
15089   elif ln conf$$.file conf$$ 2>/dev/null; then
15090     as_ln_s=ln
15091   else
15092     as_ln_s='cp -p'
15093   fi
15094 else
15095   as_ln_s='cp -p'
15096 fi
15097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15098 rmdir conf$$.dir 2>/dev/null
15099
15100
15101 # as_fn_mkdir_p
15102 # -------------
15103 # Create "$as_dir" as a directory, including parents if necessary.
15104 as_fn_mkdir_p ()
15105 {
15106
15107   case $as_dir in #(
15108   -*) as_dir=./$as_dir;;
15109   esac
15110   test -d "$as_dir" || eval $as_mkdir_p || {
15111     as_dirs=
15112     while :; do
15113       case $as_dir in #(
15114       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15115       *) as_qdir=$as_dir;;
15116       esac
15117       as_dirs="'$as_qdir' $as_dirs"
15118       as_dir=`$as_dirname -- "$as_dir" ||
15119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120          X"$as_dir" : 'X\(//\)[^/]' \| \
15121          X"$as_dir" : 'X\(//\)$' \| \
15122          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15123 $as_echo X"$as_dir" |
15124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15125             s//\1/
15126             q
15127           }
15128           /^X\(\/\/\)[^/].*/{
15129             s//\1/
15130             q
15131           }
15132           /^X\(\/\/\)$/{
15133             s//\1/
15134             q
15135           }
15136           /^X\(\/\).*/{
15137             s//\1/
15138             q
15139           }
15140           s/.*/./; q'`
15141       test -d "$as_dir" && break
15142     done
15143     test -z "$as_dirs" || eval "mkdir $as_dirs"
15144   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15145
15146
15147 } # as_fn_mkdir_p
15148 if mkdir -p . 2>/dev/null; then
15149   as_mkdir_p='mkdir -p "$as_dir"'
15150 else
15151   test -d ./-p && rmdir ./-p
15152   as_mkdir_p=false
15153 fi
15154
15155 if test -x / >/dev/null 2>&1; then
15156   as_test_x='test -x'
15157 else
15158   if ls -dL / >/dev/null 2>&1; then
15159     as_ls_L_option=L
15160   else
15161     as_ls_L_option=
15162   fi
15163   as_test_x='
15164     eval sh -c '\''
15165       if test -d "$1"; then
15166         test -d "$1/.";
15167       else
15168         case $1 in #(
15169         -*)set "./$1";;
15170         esac;
15171         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15172         ???[sx]*):;;*)false;;esac;fi
15173     '\'' sh
15174   '
15175 fi
15176 as_executable_p=$as_test_x
15177
15178 # Sed expression to map a string onto a valid CPP name.
15179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15180
15181 # Sed expression to map a string onto a valid variable name.
15182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15183
15184
15185 exec 6>&1
15186 ## ----------------------------------- ##
15187 ## Main body of $CONFIG_STATUS script. ##
15188 ## ----------------------------------- ##
15189 _ASEOF
15190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15191
15192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193 # Save the log message, to keep $0 and so on meaningful, and to
15194 # report actual input values of CONFIG_FILES etc. instead of their
15195 # values after options handling.
15196 ac_log="
15197 This file was extended by Wine $as_me 1.1.41, which was
15198 generated by GNU Autoconf 2.65.  Invocation command line was
15199
15200   CONFIG_FILES    = $CONFIG_FILES
15201   CONFIG_HEADERS  = $CONFIG_HEADERS
15202   CONFIG_LINKS    = $CONFIG_LINKS
15203   CONFIG_COMMANDS = $CONFIG_COMMANDS
15204   $ $0 $@
15205
15206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15207 "
15208
15209 _ACEOF
15210
15211 case $ac_config_files in *"
15212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15213 esac
15214
15215 case $ac_config_headers in *"
15216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15217 esac
15218
15219
15220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15221 # Files that config.status was made for.
15222 config_files="$ac_config_files"
15223 config_headers="$ac_config_headers"
15224 config_links="$ac_config_links"
15225 config_commands="$ac_config_commands"
15226
15227 _ACEOF
15228
15229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15230 ac_cs_usage="\
15231 \`$as_me' instantiates files and other configuration actions
15232 from templates according to the current configuration.  Unless the files
15233 and actions are specified as TAGs, all are instantiated by default.
15234
15235 Usage: $0 [OPTION]... [TAG]...
15236
15237   -h, --help       print this help, then exit
15238   -V, --version    print version number and configuration settings, then exit
15239       --config     print configuration, then exit
15240   -q, --quiet, --silent
15241                    do not print progress messages
15242   -d, --debug      don't remove temporary files
15243       --recheck    update $as_me by reconfiguring in the same conditions
15244       --file=FILE[:TEMPLATE]
15245                    instantiate the configuration file FILE
15246       --header=FILE[:TEMPLATE]
15247                    instantiate the configuration header FILE
15248
15249 Configuration files:
15250 $config_files
15251
15252 Configuration headers:
15253 $config_headers
15254
15255 Configuration links:
15256 $config_links
15257
15258 Configuration commands:
15259 $config_commands
15260
15261 Report bugs to <wine-devel@winehq.org>.
15262 Wine home page: <http://www.winehq.org>."
15263
15264 _ACEOF
15265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15267 ac_cs_version="\\
15268 Wine config.status 1.1.41
15269 configured by $0, generated by GNU Autoconf 2.65,
15270   with options \\"\$ac_cs_config\\"
15271
15272 Copyright (C) 2009 Free Software Foundation, Inc.
15273 This config.status script is free software; the Free Software Foundation
15274 gives unlimited permission to copy, distribute and modify it."
15275
15276 ac_pwd='$ac_pwd'
15277 srcdir='$srcdir'
15278 INSTALL='$INSTALL'
15279 test -n "\$AWK" || AWK=awk
15280 _ACEOF
15281
15282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15283 # The default lists apply if the user does not specify any file.
15284 ac_need_defaults=:
15285 while test $# != 0
15286 do
15287   case $1 in
15288   --*=*)
15289     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15290     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15291     ac_shift=:
15292     ;;
15293   *)
15294     ac_option=$1
15295     ac_optarg=$2
15296     ac_shift=shift
15297     ;;
15298   esac
15299
15300   case $ac_option in
15301   # Handling of the options.
15302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15303     ac_cs_recheck=: ;;
15304   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15305     $as_echo "$ac_cs_version"; exit ;;
15306   --config | --confi | --conf | --con | --co | --c )
15307     $as_echo "$ac_cs_config"; exit ;;
15308   --debug | --debu | --deb | --de | --d | -d )
15309     debug=: ;;
15310   --file | --fil | --fi | --f )
15311     $ac_shift
15312     case $ac_optarg in
15313     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15314     esac
15315     as_fn_append CONFIG_FILES " '$ac_optarg'"
15316     ac_need_defaults=false;;
15317   --header | --heade | --head | --hea )
15318     $ac_shift
15319     case $ac_optarg in
15320     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15321     esac
15322     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15323     ac_need_defaults=false;;
15324   --he | --h)
15325     # Conflict between --help and --header
15326     as_fn_error "ambiguous option: \`$1'
15327 Try \`$0 --help' for more information.";;
15328   --help | --hel | -h )
15329     $as_echo "$ac_cs_usage"; exit ;;
15330   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15331   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15332     ac_cs_silent=: ;;
15333
15334   # This is an error.
15335   -*) as_fn_error "unrecognized option: \`$1'
15336 Try \`$0 --help' for more information." ;;
15337
15338   *) as_fn_append ac_config_targets " $1"
15339      ac_need_defaults=false ;;
15340
15341   esac
15342   shift
15343 done
15344
15345 ac_configure_extra_args=
15346
15347 if $ac_cs_silent; then
15348   exec 6>/dev/null
15349   ac_configure_extra_args="$ac_configure_extra_args --silent"
15350 fi
15351
15352 _ACEOF
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354 if \$ac_cs_recheck; then
15355   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15356   shift
15357   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15358   CONFIG_SHELL='$SHELL'
15359   export CONFIG_SHELL
15360   exec "\$@"
15361 fi
15362
15363 _ACEOF
15364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15365 exec 5>>config.log
15366 {
15367   echo
15368   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15369 ## Running $as_me. ##
15370 _ASBOX
15371   $as_echo "$ac_log"
15372 } >&5
15373
15374 _ACEOF
15375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376 _ACEOF
15377
15378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379
15380 # Handling of arguments.
15381 for ac_config_target in $ac_config_targets
15382 do
15383   case $ac_config_target in
15384     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15385     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15386     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15387     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15388     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15389     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15390     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15391     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15392     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15393     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15394     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15395     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15396     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15397     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15398     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15399     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15400     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15401     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15402     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15403     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15404
15405   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15406   esac
15407 done
15408
15409
15410 # If the user did not use the arguments to specify the items to instantiate,
15411 # then the envvar interface is used.  Set only those that are not.
15412 # We use the long form for the default assignment because of an extremely
15413 # bizarre bug on SunOS 4.1.3.
15414 if $ac_need_defaults; then
15415   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15416   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15417   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15418   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15419 fi
15420
15421 # Have a temporary directory for convenience.  Make it in the build tree
15422 # simply because there is no reason against having it here, and in addition,
15423 # creating and moving files from /tmp can sometimes cause problems.
15424 # Hook for its removal unless debugging.
15425 # Note that there is a small window in which the directory will not be cleaned:
15426 # after its creation but before its name has been assigned to `$tmp'.
15427 $debug ||
15428 {
15429   tmp=
15430   trap 'exit_status=$?
15431   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15432 ' 0
15433   trap 'as_fn_exit 1' 1 2 13 15
15434 }
15435 # Create a (secure) tmp directory for tmp files.
15436
15437 {
15438   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15439   test -n "$tmp" && test -d "$tmp"
15440 }  ||
15441 {
15442   tmp=./conf$$-$RANDOM
15443   (umask 077 && mkdir "$tmp")
15444 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15445
15446 # Set up the scripts for CONFIG_FILES section.
15447 # No need to generate them if there are no CONFIG_FILES.
15448 # This happens for instance with `./config.status config.h'.
15449 if test -n "$CONFIG_FILES"; then
15450
15451 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15452   ac_cs_awk_getline=:
15453   ac_cs_awk_pipe_init=
15454   ac_cs_awk_read_file='
15455       while ((getline aline < (F[key])) > 0)
15456         print(aline)
15457       close(F[key])'
15458   ac_cs_awk_pipe_fini=
15459 else
15460   ac_cs_awk_getline=false
15461   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15462   ac_cs_awk_read_file='
15463       print "|#_!!_#|"
15464       print "cat " F[key] " &&"
15465       '$ac_cs_awk_pipe_init
15466   # The final `:' finishes the AND list.
15467   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15468 fi
15469 ac_cr=`echo X | tr X '\015'`
15470 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15471 # But we know of no other shell where ac_cr would be empty at this
15472 # point, so we can use a bashism as a fallback.
15473 if test "x$ac_cr" = x; then
15474   eval ac_cr=\$\'\\r\'
15475 fi
15476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15478   ac_cs_awk_cr='\r'
15479 else
15480   ac_cs_awk_cr=$ac_cr
15481 fi
15482
15483 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15484 _ACEOF
15485
15486 # Create commands to substitute file output variables.
15487 {
15488   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15489   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15490   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15491   echo "_ACAWK" &&
15492   echo "_ACEOF"
15493 } >conf$$files.sh &&
15494 . ./conf$$files.sh ||
15495   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15496 rm -f conf$$files.sh
15497
15498 {
15499   echo "cat >conf$$subs.awk <<_ACEOF" &&
15500   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15501   echo "_ACEOF"
15502 } >conf$$subs.sh ||
15503   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15505 ac_delim='%!_!# '
15506 for ac_last_try in false false false false false :; do
15507   . ./conf$$subs.sh ||
15508     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15509
15510   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15511   if test $ac_delim_n = $ac_delim_num; then
15512     break
15513   elif $ac_last_try; then
15514     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15515   else
15516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15517   fi
15518 done
15519 rm -f conf$$subs.sh
15520
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15523 _ACEOF
15524 sed -n '
15525 h
15526 s/^/S["/; s/!.*/"]=/
15527 p
15528 g
15529 s/^[^!]*!//
15530 :repl
15531 t repl
15532 s/'"$ac_delim"'$//
15533 t delim
15534 :nl
15535 h
15536 s/\(.\{148\}\)..*/\1/
15537 t more1
15538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15539 p
15540 n
15541 b repl
15542 :more1
15543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15544 p
15545 g
15546 s/.\{148\}//
15547 t nl
15548 :delim
15549 h
15550 s/\(.\{148\}\)..*/\1/
15551 t more2
15552 s/["\\]/\\&/g; s/^/"/; s/$/"/
15553 p
15554 b
15555 :more2
15556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15557 p
15558 g
15559 s/.\{148\}//
15560 t delim
15561 ' <conf$$subs.awk | sed '
15562 /^[^""]/{
15563   N
15564   s/\n//
15565 }
15566 ' >>$CONFIG_STATUS || ac_write_fail=1
15567 rm -f conf$$subs.awk
15568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569 _ACAWK
15570 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15571   for (key in S) S_is_set[key] = 1
15572   FS = "\a"
15573   \$ac_cs_awk_pipe_init
15574 }
15575 {
15576   line = $ 0
15577   nfields = split(line, field, "@")
15578   substed = 0
15579   len = length(field[1])
15580   for (i = 2; i < nfields; i++) {
15581     key = field[i]
15582     keylen = length(key)
15583     if (S_is_set[key]) {
15584       value = S[key]
15585       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15586       len += length(value) + length(field[++i])
15587       substed = 1
15588     } else
15589       len += 1 + keylen
15590   }
15591   if (nfields == 3 && !substed) {
15592     key = field[2]
15593     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15594       \$ac_cs_awk_read_file
15595       next
15596     }
15597   }
15598   print line
15599 }
15600 \$ac_cs_awk_pipe_fini
15601 _ACAWK
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15605   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15606 else
15607   cat
15608 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15609   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15610 _ACEOF
15611
15612 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15613 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15614 # trailing colons and then remove the whole line if VPATH becomes empty
15615 # (actually we leave an empty line to preserve line numbers).
15616 if test "x$srcdir" = x.; then
15617   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15618 s/:*\$(srcdir):*/:/
15619 s/:*\${srcdir}:*/:/
15620 s/:*@srcdir@:*/:/
15621 s/^\([^=]*=[     ]*\):*/\1/
15622 s/:*$//
15623 s/^[^=]*=[       ]*$//
15624 }'
15625 fi
15626
15627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15628 fi # test -n "$CONFIG_FILES"
15629
15630 # Set up the scripts for CONFIG_HEADERS section.
15631 # No need to generate them if there are no CONFIG_HEADERS.
15632 # This happens for instance with `./config.status Makefile'.
15633 if test -n "$CONFIG_HEADERS"; then
15634 cat >"$tmp/defines.awk" <<\_ACAWK ||
15635 BEGIN {
15636 _ACEOF
15637
15638 # Transform confdefs.h into an awk script `defines.awk', embedded as
15639 # here-document in config.status, that substitutes the proper values into
15640 # config.h.in to produce config.h.
15641
15642 # Create a delimiter string that does not exist in confdefs.h, to ease
15643 # handling of long lines.
15644 ac_delim='%!_!# '
15645 for ac_last_try in false false :; do
15646   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15647   if test -z "$ac_t"; then
15648     break
15649   elif $ac_last_try; then
15650     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15651   else
15652     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15653   fi
15654 done
15655
15656 # For the awk script, D is an array of macro values keyed by name,
15657 # likewise P contains macro parameters if any.  Preserve backslash
15658 # newline sequences.
15659
15660 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15661 sed -n '
15662 s/.\{148\}/&'"$ac_delim"'/g
15663 t rset
15664 :rset
15665 s/^[     ]*#[    ]*define[       ][      ]*/ /
15666 t def
15667 d
15668 :def
15669 s/\\$//
15670 t bsnl
15671 s/["\\]/\\&/g
15672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15673 D["\1"]=" \3"/p
15674 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15675 d
15676 :bsnl
15677 s/["\\]/\\&/g
15678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15679 D["\1"]=" \3\\\\\\n"\\/p
15680 t cont
15681 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15682 t cont
15683 d
15684 :cont
15685 n
15686 s/.\{148\}/&'"$ac_delim"'/g
15687 t clear
15688 :clear
15689 s/\\$//
15690 t bsnlc
15691 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15692 d
15693 :bsnlc
15694 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15695 b cont
15696 ' <confdefs.h | sed '
15697 s/'"$ac_delim"'/"\\\
15698 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15699
15700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701   for (key in D) D_is_set[key] = 1
15702   FS = "\a"
15703 }
15704 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15705   line = \$ 0
15706   split(line, arg, " ")
15707   if (arg[1] == "#") {
15708     defundef = arg[2]
15709     mac1 = arg[3]
15710   } else {
15711     defundef = substr(arg[1], 2)
15712     mac1 = arg[2]
15713   }
15714   split(mac1, mac2, "(") #)
15715   macro = mac2[1]
15716   prefix = substr(line, 1, index(line, defundef) - 1)
15717   if (D_is_set[macro]) {
15718     # Preserve the white space surrounding the "#".
15719     print prefix "define", macro P[macro] D[macro]
15720     next
15721   } else {
15722     # Replace #undef with comments.  This is necessary, for example,
15723     # in the case of _POSIX_SOURCE, which is predefined and required
15724     # on some systems where configure will not decide to define it.
15725     if (defundef == "undef") {
15726       print "/*", prefix defundef, macro, "*/"
15727       next
15728     }
15729   }
15730 }
15731 { print }
15732 _ACAWK
15733 _ACEOF
15734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15735   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15736 fi # test -n "$CONFIG_HEADERS"
15737
15738
15739 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15740 shift
15741 for ac_tag
15742 do
15743   case $ac_tag in
15744   :[FHLC]) ac_mode=$ac_tag; continue;;
15745   esac
15746   case $ac_mode$ac_tag in
15747   :[FHL]*:*);;
15748   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15749   :[FH]-) ac_tag=-:-;;
15750   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15751   esac
15752   ac_save_IFS=$IFS
15753   IFS=:
15754   set x $ac_tag
15755   IFS=$ac_save_IFS
15756   shift
15757   ac_file=$1
15758   shift
15759
15760   case $ac_mode in
15761   :L) ac_source=$1;;
15762   :[FH])
15763     ac_file_inputs=
15764     for ac_f
15765     do
15766       case $ac_f in
15767       -) ac_f="$tmp/stdin";;
15768       *) # Look for the file first in the build tree, then in the source tree
15769          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15770          # because $ac_f cannot contain `:'.
15771          test -f "$ac_f" ||
15772            case $ac_f in
15773            [\\/$]*) false;;
15774            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15775            esac ||
15776            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15777       esac
15778       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15779       as_fn_append ac_file_inputs " '$ac_f'"
15780     done
15781
15782     # Let's still pretend it is `configure' which instantiates (i.e., don't
15783     # use $as_me), people would be surprised to read:
15784     #    /* config.h.  Generated by config.status.  */
15785     configure_input='Generated from '`
15786           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15787         `' by configure.'
15788     if test x"$ac_file" != x-; then
15789       configure_input="$ac_file.  $configure_input"
15790       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15791 $as_echo "$as_me: creating $ac_file" >&6;}
15792     fi
15793     # Neutralize special characters interpreted by sed in replacement strings.
15794     case $configure_input in #(
15795     *\&* | *\|* | *\\* )
15796        ac_sed_conf_input=`$as_echo "$configure_input" |
15797        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15798     *) ac_sed_conf_input=$configure_input;;
15799     esac
15800
15801     case $ac_tag in
15802     *:-:* | *:-) cat >"$tmp/stdin" \
15803       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15804     esac
15805     ;;
15806   esac
15807
15808   ac_dir=`$as_dirname -- "$ac_file" ||
15809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15810          X"$ac_file" : 'X\(//\)[^/]' \| \
15811          X"$ac_file" : 'X\(//\)$' \| \
15812          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15813 $as_echo X"$ac_file" |
15814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15815             s//\1/
15816             q
15817           }
15818           /^X\(\/\/\)[^/].*/{
15819             s//\1/
15820             q
15821           }
15822           /^X\(\/\/\)$/{
15823             s//\1/
15824             q
15825           }
15826           /^X\(\/\).*/{
15827             s//\1/
15828             q
15829           }
15830           s/.*/./; q'`
15831   as_dir="$ac_dir"; as_fn_mkdir_p
15832   ac_builddir=.
15833
15834 case "$ac_dir" in
15835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15836 *)
15837   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15838   # A ".." for each directory in $ac_dir_suffix.
15839   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15840   case $ac_top_builddir_sub in
15841   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15842   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15843   esac ;;
15844 esac
15845 ac_abs_top_builddir=$ac_pwd
15846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15847 # for backward compatibility:
15848 ac_top_builddir=$ac_top_build_prefix
15849
15850 case $srcdir in
15851   .)  # We are building in place.
15852     ac_srcdir=.
15853     ac_top_srcdir=$ac_top_builddir_sub
15854     ac_abs_top_srcdir=$ac_pwd ;;
15855   [\\/]* | ?:[\\/]* )  # Absolute name.
15856     ac_srcdir=$srcdir$ac_dir_suffix;
15857     ac_top_srcdir=$srcdir
15858     ac_abs_top_srcdir=$srcdir ;;
15859   *) # Relative name.
15860     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15861     ac_top_srcdir=$ac_top_build_prefix$srcdir
15862     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15863 esac
15864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15865
15866
15867   case $ac_mode in
15868   :F)
15869   #
15870   # CONFIG_FILE
15871   #
15872
15873   case $INSTALL in
15874   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15875   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15876   esac
15877 _ACEOF
15878
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15880 # If the template does not know about datarootdir, expand it.
15881 # FIXME: This hack should be removed a few years after 2.60.
15882 ac_datarootdir_hack=; ac_datarootdir_seen=
15883 ac_sed_dataroot='
15884 /datarootdir/ {
15885   p
15886   q
15887 }
15888 /@datadir@/p
15889 /@docdir@/p
15890 /@infodir@/p
15891 /@localedir@/p
15892 /@mandir@/p'
15893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15894 *datarootdir*) ac_datarootdir_seen=yes;;
15895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15896   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15897 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15898 _ACEOF
15899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900   ac_datarootdir_hack='
15901   s&@datadir@&$datadir&g
15902   s&@docdir@&$docdir&g
15903   s&@infodir@&$infodir&g
15904   s&@localedir@&$localedir&g
15905   s&@mandir@&$mandir&g
15906   s&\\\${datarootdir}&$datarootdir&g' ;;
15907 esac
15908 _ACEOF
15909
15910 # Neutralize VPATH when `$srcdir' = `.'.
15911 # Shell code in configure.ac might set extrasub.
15912 # FIXME: do we really want to maintain this feature?
15913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914 ac_sed_extra="$ac_vpsub
15915 $extrasub
15916 _ACEOF
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918 :t
15919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15920 s|@configure_input@|$ac_sed_conf_input|;t t
15921 s&@top_builddir@&$ac_top_builddir_sub&;t t
15922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15923 s&@srcdir@&$ac_srcdir&;t t
15924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15925 s&@top_srcdir@&$ac_top_srcdir&;t t
15926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15927 s&@builddir@&$ac_builddir&;t t
15928 s&@abs_builddir@&$ac_abs_builddir&;t t
15929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15930 s&@INSTALL@&$ac_INSTALL&;t t
15931 $ac_datarootdir_hack
15932 "
15933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15934 if $ac_cs_awk_getline; then
15935   $AWK -f "$tmp/subs.awk"
15936 else
15937   $AWK -f "$tmp/subs.awk" | $SHELL
15938 fi >$tmp/out \
15939   || as_fn_error "could not create $ac_file" "$LINENO" 5
15940
15941 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15942   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15943   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15945 which seems to be undefined.  Please make sure it is defined." >&5
15946 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15947 which seems to be undefined.  Please make sure it is defined." >&2;}
15948
15949   rm -f "$tmp/stdin"
15950   case $ac_file in
15951   -) cat "$tmp/out" && rm -f "$tmp/out";;
15952   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15953   esac \
15954   || as_fn_error "could not create $ac_file" "$LINENO" 5
15955  ;;
15956   :H)
15957   #
15958   # CONFIG_HEADER
15959   #
15960   if test x"$ac_file" != x-; then
15961     {
15962       $as_echo "/* $configure_input  */" \
15963       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15964     } >"$tmp/config.h" \
15965       || as_fn_error "could not create $ac_file" "$LINENO" 5
15966     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15967       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15969     else
15970       rm -f "$ac_file"
15971       mv "$tmp/config.h" "$ac_file" \
15972         || as_fn_error "could not create $ac_file" "$LINENO" 5
15973     fi
15974   else
15975     $as_echo "/* $configure_input  */" \
15976       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15977       || as_fn_error "could not create -" "$LINENO" 5
15978   fi
15979  ;;
15980   :L)
15981   #
15982   # CONFIG_LINK
15983   #
15984
15985   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15986     :
15987   else
15988     # Prefer the file from the source tree if names are identical.
15989     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15990       ac_source=$srcdir/$ac_source
15991     fi
15992
15993     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15994 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15995
15996     if test ! -r "$ac_source"; then
15997       as_fn_error "$ac_source: file not found" "$LINENO" 5
15998     fi
15999     rm -f "$ac_file"
16000
16001     # Try a relative symlink, then a hard link, then a copy.
16002     case $srcdir in
16003     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16004         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16005     esac
16006     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16007       ln "$ac_source" "$ac_file" 2>/dev/null ||
16008       cp -p "$ac_source" "$ac_file" ||
16009       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16010   fi
16011  ;;
16012   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16013 $as_echo "$as_me: executing $ac_file commands" >&6;}
16014  ;;
16015   esac
16016
16017
16018   case $ac_file$ac_mode in
16019     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16020     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16021 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16022     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16023 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16024     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16025 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16026     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16027 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16028     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16029 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16030     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16031 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16032
16033   esac
16034 done # for ac_tag
16035
16036
16037 as_fn_exit 0
16038 _ACEOF
16039 ac_clean_files=$ac_clean_files_save
16040
16041 test $ac_write_fail = 0 ||
16042   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16043
16044
16045 # configure is writing to config.log, and then calls config.status.
16046 # config.status does its own redirection, appending to config.log.
16047 # Unfortunately, on DOS this fails, as config.log is still kept open
16048 # by configure, so config.status won't be able to write to it; its
16049 # output is simply discarded.  So we exec the FD to /dev/null,
16050 # effectively closing config.log, so it can be properly (re)opened and
16051 # appended to by config.status.  When coming back to configure, we
16052 # need to make the FD available again.
16053 if test "$no_create" != yes; then
16054   ac_cs_success=:
16055   ac_config_status_args=
16056   test "$silent" = yes &&
16057     ac_config_status_args="$ac_config_status_args --quiet"
16058   exec 5>/dev/null
16059   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16060   exec 5>>config.log
16061   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16062   # would make configure fail if this is the last instruction.
16063   $ac_cs_success || as_fn_exit $?
16064 fi
16065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16067 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16068 fi
16069
16070
16071 if test "$no_create" = "yes"
16072 then
16073   exit 0
16074 fi
16075
16076 ac_save_IFS="$IFS"
16077 if test "x$wine_notices != "x; then
16078     echo >&6
16079     IFS="|"
16080     for msg in $wine_notices; do
16081         IFS="$ac_save_IFS"
16082         if test -n "$msg"; then
16083             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16084 $as_echo "$as_me: $msg" >&6;}
16085         fi
16086     done
16087 fi
16088 IFS="|"
16089 for msg in $wine_warnings; do
16090     IFS="$ac_save_IFS"
16091     if test -n "$msg"; then
16092         echo >&2
16093         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16094 $as_echo "$as_me: WARNING: $msg" >&2;}
16095     fi
16096 done
16097 IFS="$ac_save_IFS"
16098
16099 echo "
16100 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16101 " >&6
16102