include: Move D3D_SHADER_INPUT_TYPE to d3dcommon.h.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.5.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&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, old GNU/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.3.5'
556 PACKAGE_STRING='Wine 1.3.5'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 AUDIOIOLIBS
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 ZLIB
627 FREETYPEINCL
628 FREETYPELIBS
629 ft_devel
630 LCMSLIBS
631 RESOLVLIBS
632 GPHOTO2INCL
633 GPHOTO2LIBS
634 gphoto2port_devel
635 gphoto2_devel
636 SANEINCL
637 sane_devel
638 GNUTLSINCL
639 HALINCL
640 XSLTINCL
641 XML2INCL
642 XML2LIBS
643 NASLIBS
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 LIBPTHREAD
650 CROSSTARGET
651 CROSSCC
652 CROSSTEST_DISABLE
653 PRELINK
654 CARBONLIB
655 FRAMEWORK_OPENAL
656 COREAUDIO
657 DISKARBITRATIONLIB
658 LDEXECFLAGS
659 IOKITLIB
660 COREFOUNDATIONLIB
661 SECURITYLIB
662 DLLWRAP
663 DLLTOOL
664 LDD
665 LDRPATH_LOCAL
666 LDRPATH_INSTALL
667 IMPLIBEXT
668 LIBEXT
669 LDDLLFLAGS
670 LDSHARED
671 DLLFLAGS
672 DLLEXT
673 CPP
674 OPENGL_LIBS
675 XLIB
676 MAINTAINER_MODE
677 ICOTOOL
678 CONVERT
679 RSVG
680 PKG_CONFIG
681 FONTFORGE
682 LINTFLAGS
683 LINT
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LDCONFIG
688 EGREP
689 GREP
690 LN_S
691 STRIP
692 RANLIB
693 ARFLAGS
694 ac_ct_AR
695 AR
696 BISON
697 FLEX
698 TOOLSDIR
699 WOW64_DISABLE
700 TARGETFLAGS
701 CPPBIN
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 SET_MAKE
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files='MAKE_RULES
760 MAKE_TEST_RULES
761 MAKE_DLL_RULES
762 MAKE_IMPLIB_RULES
763 MAKE_PROG_RULES'
764 ac_user_opts='
765 enable_option_checking
766 enable_win16
767 enable_win64
768 enable_tests
769 enable_maintainer_mode
770 with_alsa
771 with_audioio
772 with_capi
773 with_cms
774 with_coreaudio
775 with_cups
776 with_curses
777 with_esd
778 with_fontconfig
779 with_freetype
780 with_gphoto
781 with_glu
782 with_gnutls
783 with_gsm
784 with_gstreamer
785 with_hal
786 with_icns
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= ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965       as_fn_error $? "invalid feature name: $ac_useropt"
966     ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969       *"
970 "enable_$ac_useropt"
971 "*) ;;
972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973          ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976
977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979   | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983   | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985
986   -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989
990   -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996
997   -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999   -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001
1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005   | --ht=*)
1006     htmldir=$ac_optarg ;;
1007
1008   -includedir | --includedir | --includedi | --included | --include \
1009   | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014
1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019
1020   -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024
1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026   | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029   | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031
1032   -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036
1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
1038   | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043
1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048
1049   -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052
1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054   | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056
1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060
1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063   | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069
1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074
1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076   | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081
1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083   | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088
1089   -program-transform-name | --program-transform-name \
1090   | --program-transform-nam | --program-transform-na \
1091   | --program-transform-n | --program-transform- \
1092   | --program-transform | --program-transfor \
1093   | --program-transfo | --program-transf \
1094   | --program-trans | --program-tran \
1095   | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097   -program-transform-name=* | --program-transform-name=* \
1098   | --program-transform-nam=* | --program-transform-na=* \
1099   | --program-transform-n=* | --program-transform-=* \
1100   | --program-transform=* | --program-transfor=* \
1101   | --program-transfo=* | --program-transf=* \
1102   | --program-trans=* | --program-tran=* \
1103   | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105
1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110
1111   -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115
1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117   | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119
1120   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121     ac_prev=sbindir ;;
1122   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123   | --sbi=* | --sb=*)
1124     sbindir=$ac_optarg ;;
1125
1126   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128   | --sharedst | --shareds | --shared | --share | --shar \
1129   | --sha | --sh)
1130     ac_prev=sharedstatedir ;;
1131   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134   | --sha=* | --sh=*)
1135     sharedstatedir=$ac_optarg ;;
1136
1137   -site | --site | --sit)
1138     ac_prev=site ;;
1139   -site=* | --site=* | --sit=*)
1140     site=$ac_optarg ;;
1141
1142   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143     ac_prev=srcdir ;;
1144   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145     srcdir=$ac_optarg ;;
1146
1147   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148   | --syscon | --sysco | --sysc | --sys | --sy)
1149     ac_prev=sysconfdir ;;
1150   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152     sysconfdir=$ac_optarg ;;
1153
1154   -target | --target | --targe | --targ | --tar | --ta | --t)
1155     ac_prev=target_alias ;;
1156   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157     target_alias=$ac_optarg ;;
1158
1159   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160     verbose=yes ;;
1161
1162   -version | --version | --versio | --versi | --vers | -V)
1163     ac_init_version=: ;;
1164
1165   -with-* | --with-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=\$ac_optarg ;;
1180
1181   -without-* | --without-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error $? "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=no ;;
1196
1197   --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200
1201   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202   | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207
1208   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214
1215   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     case $ac_envvar in #(
1223       '' | [0-9]* | *[!_$as_cr_alnum]* )
1224       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225     esac
1226     eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228
1229   *)
1230     # FIXME: should be removed in autoconf 3.0.
1231     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235     ;;
1236
1237   esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242   as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250   esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255                 datadir sysconfdir sharedstatedir localstatedir includedir \
1256                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257                 libdir localedir mandir
1258 do
1259   eval ac_val=\$$ac_var
1260   # Remove trailing slashes.
1261   case $ac_val in
1262     */ )
1263       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264       eval $ac_var=\$ac_val;;
1265   esac
1266   # Be sure to have absolute directory names.
1267   case $ac_val in
1268     [\\/$]* | ?:[\\/]* )  continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270   esac
1271   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283   if test "x$build_alias" = x; then
1284     cross_compiling=maybe
1285     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1286     If a cross compiler is detected then cross compile mode will be used" >&2
1287   elif test "x$build_alias" != "x$host_alias"; then
1288     cross_compiling=yes
1289   fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301   as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303   as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308   ac_srcdir_defaulted=yes
1309   # Try the directory containing this script, then the parent directory.
1310   ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312          X"$as_myself" : 'X\(//\)[^/]' \| \
1313          X"$as_myself" : 'X\(//\)$' \| \
1314          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317             s//\1/
1318             q
1319           }
1320           /^X\(\/\/\)[^/].*/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\).*/{
1329             s//\1/
1330             q
1331           }
1332           s/.*/./; q'`
1333   srcdir=$ac_confdir
1334   if test ! -r "$srcdir/$ac_unique_file"; then
1335     srcdir=..
1336   fi
1337 else
1338   ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347         pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350   srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures Wine 1.3.5 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking ...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 X features:
1430   --x-includes=DIR    X include files are in DIR
1431   --x-libraries=DIR   X library files are in DIR
1432
1433 System types:
1434   --build=BUILD     configure for building on BUILD [guessed]
1435   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440   case $ac_init_help in
1441      short | recursive ) echo "Configuration of Wine 1.3.5:";;
1442    esac
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --disable-win16         do not include Win16 support
1450   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1451                           binaries)
1452   --disable-tests         do not build the regression tests
1453   --enable-maintainer-mode
1454                           enable maintainer-specific build rules
1455   --disable-largefile     omit support for large files
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --without-alsa          do not use the Alsa sound support
1461   --without-audioio       do not use the AudioIO sound support
1462   --without-capi          do not use CAPI (ISDN support)
1463   --without-cms           do not use CMS (color management support)
1464   --without-coreaudio     do not use the CoreAudio sound support
1465   --without-cups          do not use CUPS
1466   --without-curses        do not use (n)curses
1467   --without-esd           do not use the EsounD sound support
1468   --without-fontconfig    do not use fontconfig
1469   --without-freetype      do not use the FreeType library
1470   --without-gphoto        do not use gphoto (Digital Camera support)
1471   --without-glu           do not use the GLU library
1472   --without-gnutls        do not use GnuTLS (schannel support)
1473   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1474   --without-gstreamer     do not use GStreamer (codecs support)
1475   --without-hal           do not use HAL (dynamic device support)
1476   --without-icns          do not use ICNS icon support
1477   --without-jack          do not use the Jack sound support
1478   --without-jpeg          do not use JPEG
1479   --without-ldap          do not use LDAP
1480   --without-mpg123        do not use the mpg123 library
1481   --without-nas           do not use the NAS sound support
1482   --without-openal        do not use OpenAL
1483   --without-opengl        do not use OpenGL
1484   --without-openssl       do not use OpenSSL
1485   --without-oss           do not use the OSS sound support
1486   --without-png           do not use PNG
1487   --without-pthread       do not use the pthread library
1488   --without-sane          do not use SANE (scanner support)
1489   --without-tiff          do not use TIFF
1490   --without-v4l           do not use v4l1 (v4l support)
1491   --without-xcomposite    do not use the Xcomposite extension
1492   --without-xcursor       do not use the Xcursor extension
1493   --without-xinerama      do not use Xinerama (multi-monitor support)
1494   --without-xinput        do not use the Xinput extension
1495   --without-xml           do not use XML
1496   --without-xrandr        do not use Xrandr (resolution changes)
1497   --without-xrender       do not use the Xrender extension
1498   --without-xshape        do not use the Xshape extension
1499   --without-xshm          do not use XShm (shared memory extension)
1500   --without-xslt          do not use XSLT
1501   --without-xxf86vm       do not use XFree video mode extension
1502   --with-wine-tools=DIR   use Wine tools from directory DIR
1503   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1504   --with-x                use the X Window System
1505
1506 Some influential environment variables:
1507   CC          C compiler command
1508   CFLAGS      C compiler flags
1509   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1510               nonstandard directory <lib dir>
1511   LIBS        libraries to pass to the linker, e.g. -l<library>
1512   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513               you have headers in a nonstandard directory <include dir>
1514   CXX         C++ compiler command
1515   CXXFLAGS    C++ compiler flags
1516   CPP         C preprocessor
1517   XMKMF       Path to xmkmf, Makefile generator for X Window System
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <wine-devel@winehq.org>.
1523 Wine home page: <http://www.winehq.org>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529   # If there are subdirs, report their specific --help.
1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531     test -d "$ac_dir" ||
1532       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533       continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 Wine configure 1.3.5
1587 generated by GNU Autoconf 2.67
1588
1589 Copyright (C) 2010 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593   exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   rm -f conftest.$ac_objext
1607   if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_compile") 2>conftest.err
1615   ac_status=$?
1616   if test -s conftest.err; then
1617     grep -v '^ *+' conftest.err >conftest.er1
1618     cat conftest.er1 >&5
1619     mv -f conftest.er1 conftest.err
1620   fi
1621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622   test $ac_status = 0; } && {
1623          test -z "$ac_c_werror_flag" ||
1624          test ! -s conftest.err
1625        } && test -s conftest.$ac_objext; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631         ac_retval=1
1632 fi
1633   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634   as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_cxx_try_compile LINENO
1639 # ----------------------------
1640 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_cxx_try_compile ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   rm -f conftest.$ac_objext
1645   if { { ac_try="$ac_compile"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_compile") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } && {
1661          test -z "$ac_cxx_werror_flag" ||
1662          test ! -s conftest.err
1663        } && test -s conftest.$ac_objext; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669         ac_retval=1
1670 fi
1671   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_cxx_try_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   rm -f conftest.$ac_objext conftest$ac_exeext
1683   if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_link") 2>conftest.err
1691   ac_status=$?
1692   if test -s conftest.err; then
1693     grep -v '^ *+' conftest.err >conftest.er1
1694     cat conftest.er1 >&5
1695     mv -f conftest.er1 conftest.err
1696   fi
1697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698   test $ac_status = 0; } && {
1699          test -z "$ac_c_werror_flag" ||
1700          test ! -s conftest.err
1701        } && test -s conftest$ac_exeext && {
1702          test "$cross_compiling" = yes ||
1703          $as_test_x conftest$ac_exeext
1704        }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710         ac_retval=1
1711 fi
1712   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714   # interfere with the next link command; also delete a directory that is
1715   # left behind by Apple's compiler.  We do this before executing the actions.
1716   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718   as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_link
1721
1722 # ac_fn_c_try_cpp LINENO
1723 # ----------------------
1724 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_cpp ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_cpp conftest.$ac_ext"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736   ac_status=$?
1737   if test -s conftest.err; then
1738     grep -v '^ *+' conftest.err >conftest.er1
1739     cat conftest.er1 >&5
1740     mv -f conftest.er1 conftest.err
1741   fi
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; } > conftest.i && {
1744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745          test ! -s conftest.err
1746        }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752     ac_retval=1
1753 fi
1754   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_cpp
1758
1759 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1762 # the include files in INCLUDES and setting the cache variable VAR
1763 # accordingly.
1764 ac_fn_c_check_header_mongrel ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   if eval "test \"\${$3+set}\"" = set; then :
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval "test \"\${$3+set}\"" = set; then :
1771   $as_echo_n "(cached) " >&6
1772 fi
1773 eval ac_res=\$$3
1774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 else
1777   # Is the header compilable?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1779 $as_echo_n "checking $2 usability... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   ac_header_compiler=yes
1787 else
1788   ac_header_compiler=no
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1792 $as_echo "$ac_header_compiler" >&6; }
1793
1794 # Is the header present?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1796 $as_echo_n "checking $2 presence... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_cpp "$LINENO"; then :
1802   ac_header_preproc=yes
1803 else
1804   ac_header_preproc=no
1805 fi
1806 rm -f conftest.err conftest.i conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1808 $as_echo "$ac_header_preproc" >&6; }
1809
1810 # So?  What about this header?
1811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1812   yes:no: )
1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1814 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817     ;;
1818   no:yes:* )
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1820 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1822 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1824 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1826 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ( $as_echo "## ------------------------------------ ##
1830 ## Report this to wine-devel@winehq.org ##
1831 ## ------------------------------------ ##"
1832      ) | sed "s/^/$as_me: WARNING:     /" >&2
1833     ;;
1834 esac
1835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval "test \"\${$3+set}\"" = set; then :
1838   $as_echo_n "(cached) " >&6
1839 else
1840   eval "$3=\$ac_header_compiler"
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 fi
1846   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848 } # ac_fn_c_check_header_mongrel
1849
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1854 ac_fn_c_try_run ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_link") 2>&5
1865   ac_status=$?
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868   { { case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_try") 2>&5
1875   ac_status=$?
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; }; }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: program exited with status $ac_status" >&5
1881        $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884        ac_retval=$ac_status
1885 fi
1886   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888   as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_run
1891
1892 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists and can be compiled using the include files in
1895 # INCLUDES, setting the cache variable VAR accordingly.
1896 ac_fn_c_check_header_compile ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval "test \"\${$3+set}\"" = set; then :
1902   $as_echo_n "(cached) " >&6
1903 else
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 $4
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910   eval "$3=yes"
1911 else
1912   eval "$3=no"
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
1921 } # ac_fn_c_check_header_compile
1922
1923 # ac_fn_c_check_func LINENO FUNC VAR
1924 # ----------------------------------
1925 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1926 ac_fn_c_check_func ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval "test \"\${$3+set}\"" = set; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h.  */
1936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1938 #define $2 innocuous_$2
1939
1940 /* System header to define __stub macros and hopefully few prototypes,
1941     which can conflict with char $2 (); below.
1942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943     <limits.h> exists even on freestanding compilers.  */
1944
1945 #ifdef __STDC__
1946 # include <limits.h>
1947 #else
1948 # include <assert.h>
1949 #endif
1950
1951 #undef $2
1952
1953 /* Override any GCC internal prototype to avoid an error.
1954    Use char because int might match the return type of a GCC
1955    builtin and then its argument prototype would still apply.  */
1956 #ifdef __cplusplus
1957 extern "C"
1958 #endif
1959 char $2 ();
1960 /* The GNU C library defines this for functions which it implements
1961     to always fail with ENOSYS.  Some functions are actually named
1962     something starting with __ and the normal name is an alias.  */
1963 #if defined __stub_$2 || defined __stub___$2
1964 choke me
1965 #endif
1966
1967 int
1968 main ()
1969 {
1970 return $2 ();
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_link "$LINENO"; then :
1976   eval "$3=yes"
1977 else
1978   eval "$3=no"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext \
1981     conftest$ac_exeext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987
1988 } # ac_fn_c_check_func
1989
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if eval "test \"\${$4+set}\"" = set; then :
2000   $as_echo_n "(cached) " >&6
2001 else
2002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $5
2005 int
2006 main ()
2007 {
2008 static $2 ac_aggr;
2009 if (ac_aggr.$3)
2010 return 0;
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   eval "$4=yes"
2017 else
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $5
2021 int
2022 main ()
2023 {
2024 static $2 ac_aggr;
2025 if (sizeof ac_aggr.$3)
2026 return 0;
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   eval "$4=yes"
2033 else
2034   eval "$4=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$4
2041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_member
2046
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval "test \"\${$3+set}\"" = set; then :
2057   $as_echo_n "(cached) " >&6
2058 else
2059   eval "$3=no"
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 int
2064 main ()
2065 {
2066 if (sizeof ($2))
2067          return 0;
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 if (sizeof (($2)))
2080             return 0;
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086
2087 else
2088   eval "$3=yes"
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 eval ac_res=\$$3
2095                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098
2099 } # ac_fn_c_check_type
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2103
2104 It was created by Wine $as_me 1.3.5, which was
2105 generated by GNU Autoconf 2.67.  Invocation command line was
2106
2107   $ $0 $@
2108
2109 _ACEOF
2110 exec 5>>config.log
2111 {
2112 cat <<_ASUNAME
2113 ## --------- ##
2114 ## Platform. ##
2115 ## --------- ##
2116
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2125
2126 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2127 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2130 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2131 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2132 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2133
2134 _ASUNAME
2135
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141     $as_echo "PATH: $as_dir"
2142   done
2143 IFS=$as_save_IFS
2144
2145 } >&5
2146
2147 cat >&5 <<_ACEOF
2148
2149
2150 ## ----------- ##
2151 ## Core tests. ##
2152 ## ----------- ##
2153
2154 _ACEOF
2155
2156
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2162 ac_configure_args=
2163 ac_configure_args0=
2164 ac_configure_args1=
2165 ac_must_keep_next=false
2166 for ac_pass in 1 2
2167 do
2168   for ac_arg
2169   do
2170     case $ac_arg in
2171     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173     | -silent | --silent | --silen | --sile | --sil)
2174       continue ;;
2175     *\'*)
2176       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177     esac
2178     case $ac_pass in
2179     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180     2)
2181       as_fn_append ac_configure_args1 " '$ac_arg'"
2182       if test $ac_must_keep_next = true; then
2183         ac_must_keep_next=false # Got value, back to normal.
2184       else
2185         case $ac_arg in
2186           *=* | --config-cache | -C | -disable-* | --disable-* \
2187           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189           | -with-* | --with-* | -without-* | --without-* | --x)
2190             case "$ac_configure_args0 " in
2191               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192             esac
2193             ;;
2194           -* ) ac_must_keep_next=true ;;
2195         esac
2196       fi
2197       as_fn_append ac_configure_args " '$ac_arg'"
2198       ;;
2199     esac
2200   done
2201 done
2202 { ac_configure_args0=; unset ac_configure_args0;}
2203 { ac_configure_args1=; unset ac_configure_args1;}
2204
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log.  We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211   # Save into config.log some information that might help in debugging.
2212   {
2213     echo
2214
2215     $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2218     echo
2219     # The following way of writing the cache mishandles newlines in values,
2220 (
2221   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222     eval ac_val=\$$ac_var
2223     case $ac_val in #(
2224     *${as_nl}*)
2225       case $ac_var in #(
2226       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228       esac
2229       case $ac_var in #(
2230       _ | IFS | as_nl) ;; #(
2231       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232       *) { eval $ac_var=; unset $ac_var;} ;;
2233       esac ;;
2234     esac
2235   done
2236   (set) 2>&1 |
2237     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238     *${as_nl}ac_space=\ *)
2239       sed -n \
2240         "s/'\''/'\''\\\\'\'''\''/g;
2241           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242       ;; #(
2243     *)
2244       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245       ;;
2246     esac |
2247     sort
2248 )
2249     echo
2250
2251     $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2254     echo
2255     for ac_var in $ac_subst_vars
2256     do
2257       eval ac_val=\$$ac_var
2258       case $ac_val in
2259       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260       esac
2261       $as_echo "$ac_var='\''$ac_val'\''"
2262     done | sort
2263     echo
2264
2265     if test -n "$ac_subst_files"; then
2266       $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2269       echo
2270       for ac_var in $ac_subst_files
2271       do
2272         eval ac_val=\$$ac_var
2273         case $ac_val in
2274         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275         esac
2276         $as_echo "$ac_var='\''$ac_val'\''"
2277       done | sort
2278       echo
2279     fi
2280
2281     if test -s confdefs.h; then
2282       $as_echo "## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##"
2285       echo
2286       cat confdefs.h
2287       echo
2288     fi
2289     test "$ac_signal" != 0 &&
2290       $as_echo "$as_me: caught signal $ac_signal"
2291     $as_echo "$as_me: exit $exit_status"
2292   } >&5
2293   rm -f core *.core core.conftest.* &&
2294     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295     exit $exit_status
2296 ' 0
2297 for ac_signal in 1 2 13 15; do
2298   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2301
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2304
2305 $as_echo "/* confdefs.h */" > confdefs.h
2306
2307 # Predefined preprocessor variables.
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2332
2333
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339   # We do not want a PATH search for config.site.
2340   case $CONFIG_SITE in #((
2341     -*)  ac_site_file1=./$CONFIG_SITE;;
2342     */*) ac_site_file1=$CONFIG_SITE;;
2343     *)   ac_site_file1=./$CONFIG_SITE;;
2344   esac
2345 elif test "x$prefix" != xNONE; then
2346   ac_site_file1=$prefix/share/config.site
2347   ac_site_file2=$prefix/etc/config.site
2348 else
2349   ac_site_file1=$ac_default_prefix/share/config.site
2350   ac_site_file2=$ac_default_prefix/etc/config.site
2351 fi
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353 do
2354   test "x$ac_site_file" = xNONE && continue
2355   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2356     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358     sed 's/^/| /' "$ac_site_file" >&5
2359     . "$ac_site_file" \
2360       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $? "failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5 ; }
2364   fi
2365 done
2366
2367 if test -r "$cache_file"; then
2368   # Some versions of bash will fail to source /dev/null (special files
2369   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2370   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2373     case $cache_file in
2374       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375       *)                      . "./$cache_file";;
2376     esac
2377   fi
2378 else
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381   >$cache_file
2382 fi
2383
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389   eval ac_new_set=\$ac_env_${ac_var}_set
2390   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391   eval ac_new_val=\$ac_env_${ac_var}_value
2392   case $ac_old_set,$ac_new_set in
2393     set,)
2394       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396       ac_cache_corrupted=: ;;
2397     ,set)
2398       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400       ac_cache_corrupted=: ;;
2401     ,);;
2402     *)
2403       if test "x$ac_old_val" != "x$ac_new_val"; then
2404         # differences in whitespace do not lead to failure.
2405         ac_old_val_w=`echo x $ac_old_val`
2406         ac_new_val_w=`echo x $ac_new_val`
2407         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410           ac_cache_corrupted=:
2411         else
2412           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414           eval $ac_var=\$ac_old_val
2415         fi
2416         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2417 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2418         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2420       fi;;
2421   esac
2422   # Pass precious variables to config.status.
2423   if test "$ac_new_set" = set; then
2424     case $ac_new_val in
2425     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426     *) ac_arg=$ac_var=$ac_new_val ;;
2427     esac
2428     case " $ac_configure_args " in
2429       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2430       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431     esac
2432   fi
2433 done
2434 if $ac_cache_corrupted; then
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2440 fi
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453 ac_config_headers="$ac_config_headers include/config.h"
2454
2455 ac_aux_dir=
2456 for ac_dir in tools "$srcdir"/tools; do
2457   if test -f "$ac_dir/install-sh"; then
2458     ac_aux_dir=$ac_dir
2459     ac_install_sh="$ac_aux_dir/install-sh -c"
2460     break
2461   elif test -f "$ac_dir/install.sh"; then
2462     ac_aux_dir=$ac_dir
2463     ac_install_sh="$ac_aux_dir/install.sh -c"
2464     break
2465   elif test -f "$ac_dir/shtool"; then
2466     ac_aux_dir=$ac_dir
2467     ac_install_sh="$ac_aux_dir/shtool install -c"
2468     break
2469   fi
2470 done
2471 if test -z "$ac_aux_dir"; then
2472   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2473 fi
2474
2475 # These three variables are undocumented and unsupported,
2476 # and are intended to be withdrawn in a future Autoconf release.
2477 # They can cause serious problems if a builder's source tree is in a directory
2478 # whose full name contains unusual characters.
2479 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2480 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2481 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2482
2483
2484
2485
2486
2487 # Check whether --enable-win16 was given.
2488 if test "${enable_win16+set}" = set; then :
2489   enableval=$enable_win16;
2490 fi
2491
2492 # Check whether --enable-win64 was given.
2493 if test "${enable_win64+set}" = set; then :
2494   enableval=$enable_win64;
2495 fi
2496
2497 # Check whether --enable-tests was given.
2498 if test "${enable_tests+set}" = set; then :
2499   enableval=$enable_tests;
2500 fi
2501
2502 # Check whether --enable-maintainer-mode was given.
2503 if test "${enable_maintainer_mode+set}" = set; then :
2504   enableval=$enable_maintainer_mode;
2505 fi
2506
2507
2508
2509 # Check whether --with-alsa was given.
2510 if test "${with_alsa+set}" = set; then :
2511   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2512 fi
2513
2514
2515 # Check whether --with-audioio was given.
2516 if test "${with_audioio+set}" = set; then :
2517   withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2518 fi
2519
2520
2521 # Check whether --with-capi was given.
2522 if test "${with_capi+set}" = set; then :
2523   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2524 fi
2525
2526
2527 # Check whether --with-cms was given.
2528 if test "${with_cms+set}" = set; then :
2529   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2530 fi
2531
2532
2533 # Check whether --with-coreaudio was given.
2534 if test "${with_coreaudio+set}" = set; then :
2535   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2536 fi
2537
2538
2539 # Check whether --with-cups was given.
2540 if test "${with_cups+set}" = set; then :
2541   withval=$with_cups;
2542 fi
2543
2544
2545 # Check whether --with-curses was given.
2546 if test "${with_curses+set}" = set; then :
2547   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2548 fi
2549
2550
2551 # Check whether --with-esd was given.
2552 if test "${with_esd+set}" = set; then :
2553   withval=$with_esd;
2554 fi
2555
2556
2557 # Check whether --with-fontconfig was given.
2558 if test "${with_fontconfig+set}" = set; then :
2559   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560 fi
2561
2562
2563 # Check whether --with-freetype was given.
2564 if test "${with_freetype+set}" = set; then :
2565   withval=$with_freetype;
2566 fi
2567
2568
2569 # Check whether --with-gphoto was given.
2570 if test "${with_gphoto+set}" = set; then :
2571   withval=$with_gphoto;
2572 fi
2573
2574
2575 # Check whether --with-glu was given.
2576 if test "${with_glu+set}" = set; then :
2577   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2578 fi
2579
2580
2581 # Check whether --with-gnutls was given.
2582 if test "${with_gnutls+set}" = set; then :
2583   withval=$with_gnutls;
2584 fi
2585
2586
2587 # Check whether --with-gsm was given.
2588 if test "${with_gsm+set}" = set; then :
2589   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2590 fi
2591
2592
2593 # Check whether --with-gstreamer was given.
2594 if test "${with_gstreamer+set}" = set; then :
2595   withval=$with_gstreamer;
2596 fi
2597
2598
2599 # Check whether --with-hal was given.
2600 if test "${with_hal+set}" = set; then :
2601   withval=$with_hal;
2602 fi
2603
2604
2605 # Check whether --with-icns was given.
2606 if test "${with_icns+set}" = set; then :
2607   withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2608 fi
2609
2610
2611 # Check whether --with-jack was given.
2612 if test "${with_jack+set}" = set; then :
2613   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2614 fi
2615
2616
2617 # Check whether --with-jpeg was given.
2618 if test "${with_jpeg+set}" = set; then :
2619   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2620 fi
2621
2622
2623 # Check whether --with-ldap was given.
2624 if test "${with_ldap+set}" = set; then :
2625   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2626 fi
2627
2628
2629 # Check whether --with-mpg123 was given.
2630 if test "${with_mpg123+set}" = set; then :
2631   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2632 fi
2633
2634
2635 # Check whether --with-nas was given.
2636 if test "${with_nas+set}" = set; then :
2637   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2638 fi
2639
2640
2641 # Check whether --with-openal was given.
2642 if test "${with_openal+set}" = set; then :
2643   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2644 fi
2645
2646
2647 # Check whether --with-opengl was given.
2648 if test "${with_opengl+set}" = set; then :
2649   withval=$with_opengl;
2650 fi
2651
2652
2653 # Check whether --with-openssl was given.
2654 if test "${with_openssl+set}" = set; then :
2655   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2656 fi
2657
2658
2659 # Check whether --with-oss was given.
2660 if test "${with_oss+set}" = set; then :
2661   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
2662 fi
2663
2664
2665 # Check whether --with-png was given.
2666 if test "${with_png+set}" = set; then :
2667   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2668 fi
2669
2670
2671 # Check whether --with-pthread was given.
2672 if test "${with_pthread+set}" = set; then :
2673   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2674 fi
2675
2676
2677 # Check whether --with-sane was given.
2678 if test "${with_sane+set}" = set; then :
2679   withval=$with_sane;
2680 fi
2681
2682
2683 # Check whether --with-tiff was given.
2684 if test "${with_tiff+set}" = set; then :
2685   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2686 fi
2687
2688
2689 # Check whether --with-v4l was given.
2690 if test "${with_v4l+set}" = set; then :
2691   withval=$with_v4l;
2692 fi
2693
2694
2695 # Check whether --with-xcomposite was given.
2696 if test "${with_xcomposite+set}" = set; then :
2697   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2698 fi
2699
2700
2701 # Check whether --with-xcursor was given.
2702 if test "${with_xcursor+set}" = set; then :
2703   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2704 fi
2705
2706
2707 # Check whether --with-xinerama was given.
2708 if test "${with_xinerama+set}" = set; then :
2709   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2710 fi
2711
2712
2713 # Check whether --with-xinput was given.
2714 if test "${with_xinput+set}" = set; then :
2715   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2716 fi
2717
2718
2719 # Check whether --with-xml was given.
2720 if test "${with_xml+set}" = set; then :
2721   withval=$with_xml;
2722 fi
2723
2724
2725 # Check whether --with-xrandr was given.
2726 if test "${with_xrandr+set}" = set; then :
2727   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2728 fi
2729
2730
2731 # Check whether --with-xrender was given.
2732 if test "${with_xrender+set}" = set; then :
2733   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2734 fi
2735
2736
2737 # Check whether --with-xshape was given.
2738 if test "${with_xshape+set}" = set; then :
2739   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2740 fi
2741
2742
2743 # Check whether --with-xshm was given.
2744 if test "${with_xshm+set}" = set; then :
2745   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2746 fi
2747
2748
2749 # Check whether --with-xslt was given.
2750 if test "${with_xslt+set}" = set; then :
2751   withval=$with_xslt;
2752 fi
2753
2754
2755 # Check whether --with-xxf86vm was given.
2756 if test "${with_xxf86vm+set}" = set; then :
2757   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
2758 fi
2759
2760
2761
2762 # Check whether --with-wine-tools was given.
2763 if test "${with_wine_tools+set}" = set; then :
2764   withval=$with_wine_tools;
2765 fi
2766
2767
2768 # Check whether --with-wine64 was given.
2769 if test "${with_wine64+set}" = set; then :
2770   withval=$with_wine64;
2771 fi
2772
2773
2774 # Make sure we can run config.sub.
2775 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2776   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2779 $as_echo_n "checking build system type... " >&6; }
2780 if test "${ac_cv_build+set}" = set; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   ac_build_alias=$build_alias
2784 test "x$ac_build_alias" = x &&
2785   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2786 test "x$ac_build_alias" = x &&
2787   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2788 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2789   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2790
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2793 $as_echo "$ac_cv_build" >&6; }
2794 case $ac_cv_build in
2795 *-*-*) ;;
2796 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2797 esac
2798 build=$ac_cv_build
2799 ac_save_IFS=$IFS; IFS='-'
2800 set x $ac_cv_build
2801 shift
2802 build_cpu=$1
2803 build_vendor=$2
2804 shift; shift
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2807 build_os=$*
2808 IFS=$ac_save_IFS
2809 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2813 $as_echo_n "checking host system type... " >&6; }
2814 if test "${ac_cv_host+set}" = set; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test "x$host_alias" = x; then
2818   ac_cv_host=$ac_cv_build
2819 else
2820   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2821     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2822 fi
2823
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2826 $as_echo "$ac_cv_host" >&6; }
2827 case $ac_cv_host in
2828 *-*-*) ;;
2829 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2830 esac
2831 host=$ac_cv_host
2832 ac_save_IFS=$IFS; IFS='-'
2833 set x $ac_cv_host
2834 shift
2835 host_cpu=$1
2836 host_vendor=$2
2837 shift; shift
2838 # Remember, the first character of IFS is used to create $*,
2839 # except with old shells:
2840 host_os=$*
2841 IFS=$ac_save_IFS
2842 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843
2844
2845
2846 case "$srcdir" in
2847  .) ;;
2848  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2849       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2850 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2851     fi ;;
2852 esac
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857 set x ${MAKE-make}
2858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   cat >conftest.make <<\_ACEOF
2863 SHELL = /bin/sh
2864 all:
2865         @echo '@@@%%%=$(MAKE)=@@@%%%'
2866 _ACEOF
2867 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869   *@@@%%%=?*=@@@%%%*)
2870     eval ac_cv_prog_make_${ac_make}_set=yes;;
2871   *)
2872     eval ac_cv_prog_make_${ac_make}_set=no;;
2873 esac
2874 rm -f conftest.make
2875 fi
2876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2879   SET_MAKE=
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883   SET_MAKE="MAKE=${MAKE-make}"
2884 fi
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then :
2897   $as_echo_n "(cached) " >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907     for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914   done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_CC"; then
2931   ac_ct_CC=$CC
2932   # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$ac_ct_CC"; then
2940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_ac_ct_CC="gcc"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968   if test "x$ac_ct_CC" = x; then
2969     CC=""
2970   else
2971     case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CC=$ac_ct_CC
2978   fi
2979 else
2980   CC="$ac_cv_prog_CC"
2981 fi
2982
2983 if test -z "$CC"; then
2984           if test -n "$ac_tool_prefix"; then
2985     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$CC"; then
2993   ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_CC="${ac_tool_prefix}cc"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022   fi
3023 fi
3024 if test -z "$CC"; then
3025   # Extract the first word of "cc", so it can be a program name with args.
3026 set dummy cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$CC"; then
3033   ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035   ac_prog_rejected=no
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3044        ac_prog_rejected=yes
3045        continue
3046      fi
3047     ac_cv_prog_CC="cc"
3048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052   done
3053 IFS=$as_save_IFS
3054
3055 if test $ac_prog_rejected = yes; then
3056   # We found a bogon in the path, so make sure we never use it.
3057   set dummy $ac_cv_prog_CC
3058   shift
3059   if test $# != 0; then
3060     # We chose a different compiler from the bogus one.
3061     # However, it has the same basename, so the bogon will be chosen
3062     # first if we set CC to just the basename; use the full file name.
3063     shift
3064     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3065   fi
3066 fi
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$CC"; then
3081   if test -n "$ac_tool_prefix"; then
3082   for ac_prog in cl.exe
3083   do
3084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$CC"; then
3092   ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121     test -n "$CC" && break
3122   done
3123 fi
3124 if test -z "$CC"; then
3125   ac_ct_CC=$CC
3126   for ac_prog in cl.exe
3127 do
3128   # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$ac_ct_CC"; then
3136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_ac_ct_CC="$ac_prog"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165   test -n "$ac_ct_CC" && break
3166 done
3167
3168   if test "x$ac_ct_CC" = x; then
3169     CC=""
3170   else
3171     case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177     CC=$ac_ct_CC
3178   fi
3179 fi
3180
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details" "$LINENO" 5 ; }
3188
3189 # Provide some information about the compiler.
3190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 set X $ac_compile
3192 ac_compiler=$2
3193 for ac_option in --version -v -V -qversion; do
3194   { { ac_try="$ac_compiler $ac_option >&5"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3202   ac_status=$?
3203   if test -s conftest.err; then
3204     sed '10a\
3205 ... rest of stderr output deleted ...
3206          10q' conftest.err >conftest.er1
3207     cat conftest.er1 >&5
3208   fi
3209   rm -f conftest.er1 conftest.err
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }
3212 done
3213
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 ac_clean_files_save=$ac_clean_files
3226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3227 # Try to create an executable without -o first, disregard a.out.
3228 # It will help us diagnose broken compilers, and finding out an intuition
3229 # of exeext.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3231 $as_echo_n "checking whether the C compiler works... " >&6; }
3232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233
3234 # The possible output files:
3235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236
3237 ac_rmfiles=
3238 for ac_file in $ac_files
3239 do
3240   case $ac_file in
3241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243   esac
3244 done
3245 rm -f $ac_rmfiles
3246
3247 if { { ac_try="$ac_link_default"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254   (eval "$ac_link_default") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257   test $ac_status = 0; }; then :
3258   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3262 # Autoconf.
3263 for ac_file in $ac_files ''
3264 do
3265   test -f "$ac_file" || continue
3266   case $ac_file in
3267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268         ;;
3269     [ab].out )
3270         # We found the default executable, but exeext='' is most
3271         # certainly right.
3272         break;;
3273     *.* )
3274         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275         then :; else
3276            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277         fi
3278         # We set ac_cv_exeext here because the later test for it is not
3279         # safe: cross compilers may not add the suffix if given an `-o'
3280         # argument, so we may need to know it at that point already.
3281         # Even if this section looks crufty: it has the advantage of
3282         # actually working.
3283         break;;
3284     * )
3285         break;;
3286   esac
3287 done
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289
3290 else
3291   ac_file=''
3292 fi
3293 if test -z "$ac_file"; then :
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error 77 "C compiler cannot create executables
3302 See \`config.log' for more details" "$LINENO" 5 ; }
3303 else
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3308 $as_echo_n "checking for C compiler default output file name... " >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3310 $as_echo "$ac_file" >&6; }
3311 ac_exeext=$ac_cv_exeext
3312
3313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3316 $as_echo_n "checking for suffix of executables... " >&6; }
3317 if { { ac_try="$ac_link"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324   (eval "$ac_link") 2>&5
3325   ac_status=$?
3326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327   test $ac_status = 0; }; then :
3328   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3329 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3330 # work properly (i.e., refer to `conftest.exe'), while it won't with
3331 # `rm'.
3332 for ac_file in conftest.exe conftest conftest.*; do
3333   test -f "$ac_file" || continue
3334   case $ac_file in
3335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337           break;;
3338     * ) break;;
3339   esac
3340 done
3341 else
3342   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3345 See \`config.log' for more details" "$LINENO" 5 ; }
3346 fi
3347 rm -f conftest conftest$ac_cv_exeext
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3349 $as_echo "$ac_cv_exeext" >&6; }
3350
3351 rm -f conftest.$ac_ext
3352 EXEEXT=$ac_cv_exeext
3353 ac_exeext=$EXEEXT
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h.  */
3356 #include <stdio.h>
3357 int
3358 main ()
3359 {
3360 FILE *f = fopen ("conftest.out", "w");
3361  return ferror (f) || fclose (f) != 0;
3362
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 ac_clean_files="$ac_clean_files conftest.out"
3368 # Check that the compiler produces executables we can run.  If not, either
3369 # the compiler is broken, or we cross compile.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3371 $as_echo_n "checking whether we are cross compiling... " >&6; }
3372 if test "$cross_compiling" != yes; then
3373   { { ac_try="$ac_link"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_link") 2>&5
3381   ac_status=$?
3382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383   test $ac_status = 0; }
3384   if { ac_try='./conftest$ac_cv_exeext'
3385   { { case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_try") 2>&5
3392   ac_status=$?
3393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394   test $ac_status = 0; }; }; then
3395     cross_compiling=no
3396   else
3397     if test "$cross_compiling" = maybe; then
3398         cross_compiling=yes
3399     else
3400         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details" "$LINENO" 5 ; }
3405     fi
3406   fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3409 $as_echo "$cross_compiling" >&6; }
3410
3411 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3412 ac_clean_files=$ac_clean_files_save
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3414 $as_echo_n "checking for suffix of object files... " >&6; }
3415 if test "${ac_cv_objext+set}" = set; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 rm -f conftest.o conftest.obj
3430 if { { ac_try="$ac_compile"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437   (eval "$ac_compile") 2>&5
3438   ac_status=$?
3439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440   test $ac_status = 0; }; then :
3441   for ac_file in conftest.o conftest.obj conftest.*; do
3442   test -f "$ac_file" || continue;
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3445     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3446        break;;
3447   esac
3448 done
3449 else
3450   $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details" "$LINENO" 5 ; }
3457 fi
3458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3461 $as_echo "$ac_cv_objext" >&6; }
3462 OBJEXT=$ac_cv_objext
3463 ac_objext=$OBJEXT
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3466 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475 #ifndef __GNUC__
3476        choke me
3477 #endif
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484   ac_compiler_gnu=yes
3485 else
3486   ac_compiler_gnu=no
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3494 if test $ac_compiler_gnu = yes; then
3495   GCC=yes
3496 else
3497   GCC=
3498 fi
3499 ac_test_CFLAGS=${CFLAGS+set}
3500 ac_save_CFLAGS=$CFLAGS
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3503 if test "${ac_cv_prog_cc_g+set}" = set; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   ac_save_c_werror_flag=$ac_c_werror_flag
3507    ac_c_werror_flag=yes
3508    ac_cv_prog_cc_g=no
3509    CFLAGS="-g"
3510    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522   ac_cv_prog_cc_g=yes
3523 else
3524   CFLAGS=""
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
3538 else
3539   ac_c_werror_flag=$ac_save_c_werror_flag
3540          CFLAGS="-g"
3541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553   ac_cv_prog_cc_g=yes
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560    ac_c_werror_flag=$ac_save_c_werror_flag
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3563 $as_echo "$ac_cv_prog_cc_g" >&6; }
3564 if test "$ac_test_CFLAGS" = set; then
3565   CFLAGS=$ac_save_CFLAGS
3566 elif test $ac_cv_prog_cc_g = yes; then
3567   if test "$GCC" = yes; then
3568     CFLAGS="-g -O2"
3569   else
3570     CFLAGS="-g"
3571   fi
3572 else
3573   if test "$GCC" = yes; then
3574     CFLAGS="-O2"
3575   else
3576     CFLAGS=
3577   fi
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3581 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3582   $as_echo_n "(cached) " >&6
3583 else
3584   ac_cv_prog_cc_c89=no
3585 ac_save_CC=$CC
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588 #include <stdarg.h>
3589 #include <stdio.h>
3590 #include <sys/types.h>
3591 #include <sys/stat.h>
3592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3593 struct buf { int x; };
3594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3595 static char *e (p, i)
3596      char **p;
3597      int i;
3598 {
3599   return p[i];
3600 }
3601 static char *f (char * (*g) (char **, int), char **p, ...)
3602 {
3603   char *s;
3604   va_list v;
3605   va_start (v,p);
3606   s = g (p, va_arg (v,int));
3607   va_end (v);
3608   return s;
3609 }
3610
3611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3612    function prototypes and stuff, but not '\xHH' hex character constants.
3613    These don't provoke an error unfortunately, instead are silently treated
3614    as 'x'.  The following induces an error, until -std is added to get
3615    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3616    array size at least.  It's necessary to write '\x00'==0 to get something
3617    that's true only with -std.  */
3618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619
3620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3621    inside strings and character constants.  */
3622 #define FOO(x) 'x'
3623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3624
3625 int test (int i, double x);
3626 struct s1 {int (*f) (int a);};
3627 struct s2 {int (*f) (double a);};
3628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3629 int argc;
3630 char **argv;
3631 int
3632 main ()
3633 {
3634 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3640         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 do
3642   CC="$ac_save_CC $ac_arg"
3643   if ac_fn_c_try_compile "$LINENO"; then :
3644   ac_cv_prog_cc_c89=$ac_arg
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext
3647   test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC
3651
3652 fi
3653 # AC_CACHE_VAL
3654 case "x$ac_cv_prog_cc_c89" in
3655   x)
3656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;;
3658   xno)
3659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3660 $as_echo "unsupported" >&6; } ;;
3661   *)
3662     CC="$CC $ac_cv_prog_cc_c89"
3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3665 esac
3666 if test "x$ac_cv_prog_cc_c89" != xno; then :
3667
3668 fi
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675
3676 ac_ext=cpp
3677 ac_cpp='$CXXCPP $CPPFLAGS'
3678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3681 if test -z "$CXX"; then
3682   if test -n "$CCC"; then
3683     CXX=$CCC
3684   else
3685     if test -n "$ac_tool_prefix"; then
3686   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3687   do
3688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CXX+set}" = set; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if test -n "$CXX"; then
3696   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710   done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CXX=$ac_cv_prog_CXX
3716 if test -n "$CXX"; then
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3718 $as_echo "$CXX" >&6; }
3719 else
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725     test -n "$CXX" && break
3726   done
3727 fi
3728 if test -z "$CXX"; then
3729   ac_ct_CXX=$CXX
3730   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731 do
3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   if test -n "$ac_ct_CXX"; then
3740   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     for ac_exec_ext in '' $ac_executable_extensions; do
3748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749     ac_cv_prog_ac_ct_CXX="$ac_prog"
3750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754   done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3760 if test -n "$ac_ct_CXX"; then
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3762 $as_echo "$ac_ct_CXX" >&6; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769   test -n "$ac_ct_CXX" && break
3770 done
3771
3772   if test "x$ac_ct_CXX" = x; then
3773     CXX="g++"
3774   else
3775     case $cross_compiling:$ac_tool_warned in
3776 yes:)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779 ac_tool_warned=yes ;;
3780 esac
3781     CXX=$ac_ct_CXX
3782   fi
3783 fi
3784
3785   fi
3786 fi
3787 # Provide some information about the compiler.
3788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3789 set X $ac_compile
3790 ac_compiler=$2
3791 for ac_option in --version -v -V -qversion; do
3792   { { ac_try="$ac_compiler $ac_option >&5"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3800   ac_status=$?
3801   if test -s conftest.err; then
3802     sed '10a\
3803 ... rest of stderr output deleted ...
3804          10q' conftest.err >conftest.er1
3805     cat conftest.er1 >&5
3806   fi
3807   rm -f conftest.er1 conftest.err
3808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809   test $ac_status = 0; }
3810 done
3811
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3813 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3814 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823 #ifndef __GNUC__
3824        choke me
3825 #endif
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_cxx_try_compile "$LINENO"; then :
3832   ac_compiler_gnu=yes
3833 else
3834   ac_compiler_gnu=no
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3838
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3841 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3842 if test $ac_compiler_gnu = yes; then
3843   GXX=yes
3844 else
3845   GXX=
3846 fi
3847 ac_test_CXXFLAGS=${CXXFLAGS+set}
3848 ac_save_CXXFLAGS=$CXXFLAGS
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3850 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3851 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3855    ac_cxx_werror_flag=yes
3856    ac_cv_prog_cxx_g=no
3857    CXXFLAGS="-g"
3858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h.  */
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_cxx_try_compile "$LINENO"; then :
3870   ac_cv_prog_cxx_g=yes
3871 else
3872   CXXFLAGS=""
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
3886 else
3887   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3888          CXXFLAGS="-g"
3889          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_cxx_try_compile "$LINENO"; then :
3901   ac_cv_prog_cxx_g=yes
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3911 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3912 if test "$ac_test_CXXFLAGS" = set; then
3913   CXXFLAGS=$ac_save_CXXFLAGS
3914 elif test $ac_cv_prog_cxx_g = yes; then
3915   if test "$GXX" = yes; then
3916     CXXFLAGS="-g -O2"
3917   else
3918     CXXFLAGS="-g"
3919   fi
3920 else
3921   if test "$GXX" = yes; then
3922     CXXFLAGS="-O2"
3923   else
3924     CXXFLAGS=
3925   fi
3926 fi
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933 if test -n "$ac_tool_prefix"; then
3934   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   if test -n "$CPPBIN"; then
3942   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949     for ac_exec_ext in '' $ac_executable_extensions; do
3950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956   done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 CPPBIN=$ac_cv_prog_CPPBIN
3962 if test -n "$CPPBIN"; then
3963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3964 $as_echo "$CPPBIN" >&6; }
3965 else
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_prog_CPPBIN"; then
3973   ac_ct_CPPBIN=$CPPBIN
3974   # Extract the first word of "cpp", so it can be a program name with args.
3975 set dummy cpp; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   if test -n "$ac_ct_CPPBIN"; then
3982   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     for ac_exec_ext in '' $ac_executable_extensions; do
3990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991     ac_cv_prog_ac_ct_CPPBIN="cpp"
3992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996   done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4002 if test -n "$ac_ct_CPPBIN"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4004 $as_echo "$ac_ct_CPPBIN" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010   if test "x$ac_ct_CPPBIN" = x; then
4011     CPPBIN="cpp"
4012   else
4013     case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4018 esac
4019     CPPBIN=$ac_ct_CPPBIN
4020   fi
4021 else
4022   CPPBIN="$ac_cv_prog_CPPBIN"
4023 fi
4024
4025
4026 cat >>confdefs.h <<_ACEOF
4027 #define EXEEXT "$ac_exeext"
4028 _ACEOF
4029
4030
4031 case $host in
4032   *-darwin*)
4033     if test "x$enable_win64" = "xyes"
4034     then
4035       CC="$CC -m64"
4036       CXX="$CXX -m64"
4037       LD="${LD:-ld} -arch x86_64"
4038       AS="${AS:-as} -arch x86_64"
4039       host_cpu="x86_64"
4040       notice_platform="64-bit "
4041       TARGETFLAGS="-m64"
4042
4043     else
4044       CC="$CC -m32"
4045       CXX="$CXX -m32"
4046       LD="${LD:-ld} -arch i386"
4047       AS="${AS:-as} -arch i386"
4048       host_cpu="i386"
4049       notice_platform="32-bit "
4050       TARGETFLAGS="-m32"
4051
4052       enable_win16=${enable_win16:-yes}
4053     fi
4054     ;;
4055   x86_64*)
4056     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4057     then
4058       CC="$CC -m32"
4059       CXX="$CXX -m32"
4060       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4061 $as_echo_n "checking whether $CC works... " >&6; }
4062
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065
4066 int
4067 main ()
4068 {
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_link "$LINENO"; then :
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 $as_echo "yes" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext \
4083     conftest$ac_exeext conftest.$ac_ext
4084       LD="${LD:-ld} -m elf_i386"
4085       AS="${AS:-as} --32"
4086       host_cpu="i386"
4087       notice_platform="32-bit "
4088       TARGETFLAGS="-m32"
4089
4090       enable_win16=${enable_win16:-yes}
4091     else
4092       if test "x${GCC}" = "xyes"
4093       then
4094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4095 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098 #include <stdarg.h>
4099 int
4100 main ()
4101 {
4102 void func(__builtin_ms_va_list *args);
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4109 $as_echo "yes" >&6; }
4110 else
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4113                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116       fi
4117       TARGETFLAGS="-m64"
4118
4119     fi
4120     ;;
4121   *-mingw32*|*-cygwin*)
4122     enable_win16=${enable_win16:-no}
4123     CFLAGS="$CFLAGS -D_WIN32"
4124     ;;
4125   i[3456789]86*)
4126     enable_win16=${enable_win16:-yes}
4127     ;;
4128 esac
4129
4130 enable_win16=${enable_win16:-no}
4131
4132 enable_winetest=${enable_winetest:-$enable_tests}
4133
4134 if test -n "$with_wine64"
4135 then
4136     if test "x$enable_win64" = "xyes"
4137     then
4138         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4139 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4140     fi
4141     WOW64_DISABLE=\#
4142
4143     enable_fonts=${enable_fonts:-no}
4144     enable_server=${enable_server:-no}
4145     enable_tools=${enable_tools:-no}
4146 elif test "x$enable_win64" = "xyes"
4147 then
4148     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4149 fi
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4152 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4153 if test "${wine_cv_toolsdir+set}" = set; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   wine_cv_toolsdir="$with_wine_tools"
4157    if test -z "$with_wine_tools"; then
4158      if test "$cross_compiling" = "yes"; then
4159        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4160      elif test -n "$with_wine64"; then
4161        wine_cv_toolsdir="$with_wine64"
4162      fi
4163    fi
4164    if test -z "$wine_cv_toolsdir"; then
4165      wine_cv_toolsdir="\$(top_builddir)"
4166    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4167      case "$wine_cv_toolsdir" in
4168        /*) ;;
4169        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4170      esac
4171    else
4172      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4173    fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4176 $as_echo "$wine_cv_toolsdir" >&6; }
4177 TOOLSDIR=$wine_cv_toolsdir
4178
4179 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4180 then
4181     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4182
4183 fi
4184
4185 for ac_prog in flex
4186 do
4187   # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if test "${ac_cv_prog_FLEX+set}" = set; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -n "$FLEX"; then
4195   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204     ac_cv_prog_FLEX="$ac_prog"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 FLEX=$ac_cv_prog_FLEX
4215 if test -n "$FLEX"; then
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4217 $as_echo "$FLEX" >&6; }
4218 else
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224   test -n "$FLEX" && break
4225 done
4226 test -n "$FLEX" || FLEX="none"
4227
4228 if test "$FLEX" = "none"
4229 then
4230   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4233 $as_echo_n "checking whether flex is recent enough... " >&6; }
4234 cat >conftest.l <<EOF
4235 %top{
4236 #include "prediluvian.h"
4237 }
4238 %%
4239 EOF
4240 if $FLEX -t conftest.l >/dev/null 2>&5
4241 then
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244 else
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4248 fi
4249
4250 for ac_prog in bison
4251 do
4252   # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if test "${ac_cv_prog_BISON+set}" = set; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -n "$BISON"; then
4260   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_exec_ext in '' $ac_executable_extensions; do
4268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269     ac_cv_prog_BISON="$ac_prog"
4270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271     break 2
4272   fi
4273 done
4274   done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 BISON=$ac_cv_prog_BISON
4280 if test -n "$BISON"; then
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4282 $as_echo "$BISON" >&6; }
4283 else
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289   test -n "$BISON" && break
4290 done
4291 test -n "$BISON" || BISON="none"
4292
4293 if test "$BISON" = "none"
4294 then
4295   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4296 fi
4297
4298 if test -n "$ac_tool_prefix"; then
4299   for ac_prog in ar gar
4300   do
4301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if test "${ac_cv_prog_AR+set}" = set; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   if test -n "$AR"; then
4309   ac_cv_prog_AR="$AR" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_exec_ext in '' $ac_executable_extensions; do
4317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323   done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 AR=$ac_cv_prog_AR
4329 if test -n "$AR"; then
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4331 $as_echo "$AR" >&6; }
4332 else
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338     test -n "$AR" && break
4339   done
4340 fi
4341 if test -z "$AR"; then
4342   ac_ct_AR=$AR
4343   for ac_prog in ar gar
4344 do
4345   # Extract the first word of "$ac_prog", so it can be a program name with args.
4346 set dummy $ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -n "$ac_ct_AR"; then
4353   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_prog_ac_ct_AR="$ac_prog"
4363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367   done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373 if test -n "$ac_ct_AR"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4375 $as_echo "$ac_ct_AR" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382   test -n "$ac_ct_AR" && break
4383 done
4384
4385   if test "x$ac_ct_AR" = x; then
4386     AR="ar"
4387   else
4388     case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394     AR=$ac_ct_AR
4395   fi
4396 fi
4397
4398 ARFLAGS=rc
4399
4400 if test -n "$ac_tool_prefix"; then
4401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$RANLIB"; then
4409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423   done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 RANLIB=$ac_cv_prog_RANLIB
4429 if test -n "$RANLIB"; then
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4431 $as_echo "$RANLIB" >&6; }
4432 else
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 fi
4439 if test -z "$ac_cv_prog_RANLIB"; then
4440   ac_ct_RANLIB=$RANLIB
4441   # Extract the first word of "ranlib", so it can be a program name with args.
4442 set dummy ranlib; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   if test -n "$ac_ct_RANLIB"; then
4449   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456     for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_prog_ac_ct_RANLIB="ranlib"
4459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463   done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469 if test -n "$ac_ct_RANLIB"; then
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4471 $as_echo "$ac_ct_RANLIB" >&6; }
4472 else
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477   if test "x$ac_ct_RANLIB" = x; then
4478     RANLIB=":"
4479   else
4480     case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486     RANLIB=$ac_ct_RANLIB
4487   fi
4488 else
4489   RANLIB="$ac_cv_prog_RANLIB"
4490 fi
4491
4492 if test -n "$ac_tool_prefix"; then
4493   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4494 set dummy ${ac_tool_prefix}strip; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if test "${ac_cv_prog_STRIP+set}" = set; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if test -n "$STRIP"; then
4501   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515   done
4516 IFS=$as_save_IFS
4517
4518 fi
4519 fi
4520 STRIP=$ac_cv_prog_STRIP
4521 if test -n "$STRIP"; then
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4523 $as_echo "$STRIP" >&6; }
4524 else
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4527 fi
4528
4529
4530 fi
4531 if test -z "$ac_cv_prog_STRIP"; then
4532   ac_ct_STRIP=$STRIP
4533   # Extract the first word of "strip", so it can be a program name with args.
4534 set dummy strip; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -n "$ac_ct_STRIP"; then
4541   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550     ac_cv_prog_ac_ct_STRIP="strip"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4561 if test -n "$ac_ct_STRIP"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4563 $as_echo "$ac_ct_STRIP" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569   if test "x$ac_ct_STRIP" = x; then
4570     STRIP="strip"
4571   else
4572     case $cross_compiling:$ac_tool_warned in
4573 yes:)
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576 ac_tool_warned=yes ;;
4577 esac
4578     STRIP=$ac_ct_STRIP
4579   fi
4580 else
4581   STRIP="$ac_cv_prog_STRIP"
4582 fi
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4585 $as_echo_n "checking whether ln -s works... " >&6; }
4586 LN_S=$as_ln_s
4587 if test "$LN_S" = "ln -s"; then
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4590 else
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4592 $as_echo "no, using $LN_S" >&6; }
4593 fi
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4596 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4597 if test "${ac_cv_path_GREP+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -z "$GREP"; then
4601   ac_path_GREP_found=false
4602   # Loop through the user's path and test for each of PROGNAME-LIST
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608     for ac_prog in grep ggrep; do
4609     for ac_exec_ext in '' $ac_executable_extensions; do
4610       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4611       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4612 # Check for GNU ac_path_GREP and select it if it is found.
4613   # Check for GNU $ac_path_GREP
4614 case `"$ac_path_GREP" --version 2>&1` in
4615 *GNU*)
4616   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4617 *)
4618   ac_count=0
4619   $as_echo_n 0123456789 >"conftest.in"
4620   while :
4621   do
4622     cat "conftest.in" "conftest.in" >"conftest.tmp"
4623     mv "conftest.tmp" "conftest.in"
4624     cp "conftest.in" "conftest.nl"
4625     $as_echo 'GREP' >> "conftest.nl"
4626     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4627     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4628     as_fn_arith $ac_count + 1 && ac_count=$as_val
4629     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4630       # Best one so far, save it but keep looking for a better one
4631       ac_cv_path_GREP="$ac_path_GREP"
4632       ac_path_GREP_max=$ac_count
4633     fi
4634     # 10*(2^10) chars as input seems more than enough
4635     test $ac_count -gt 10 && break
4636   done
4637   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4638 esac
4639
4640       $ac_path_GREP_found && break 3
4641     done
4642   done
4643   done
4644 IFS=$as_save_IFS
4645   if test -z "$ac_cv_path_GREP"; then
4646     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4647   fi
4648 else
4649   ac_cv_path_GREP=$GREP
4650 fi
4651
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4654 $as_echo "$ac_cv_path_GREP" >&6; }
4655  GREP="$ac_cv_path_GREP"
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4659 $as_echo_n "checking for egrep... " >&6; }
4660 if test "${ac_cv_path_EGREP+set}" = set; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4664    then ac_cv_path_EGREP="$GREP -E"
4665    else
4666      if test -z "$EGREP"; then
4667   ac_path_EGREP_found=false
4668   # Loop through the user's path and test for each of PROGNAME-LIST
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_prog in egrep; do
4675     for ac_exec_ext in '' $ac_executable_extensions; do
4676       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4677       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4678 # Check for GNU ac_path_EGREP and select it if it is found.
4679   # Check for GNU $ac_path_EGREP
4680 case `"$ac_path_EGREP" --version 2>&1` in
4681 *GNU*)
4682   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4683 *)
4684   ac_count=0
4685   $as_echo_n 0123456789 >"conftest.in"
4686   while :
4687   do
4688     cat "conftest.in" "conftest.in" >"conftest.tmp"
4689     mv "conftest.tmp" "conftest.in"
4690     cp "conftest.in" "conftest.nl"
4691     $as_echo 'EGREP' >> "conftest.nl"
4692     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4694     as_fn_arith $ac_count + 1 && ac_count=$as_val
4695     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4696       # Best one so far, save it but keep looking for a better one
4697       ac_cv_path_EGREP="$ac_path_EGREP"
4698       ac_path_EGREP_max=$ac_count
4699     fi
4700     # 10*(2^10) chars as input seems more than enough
4701     test $ac_count -gt 10 && break
4702   done
4703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 esac
4705
4706       $ac_path_EGREP_found && break 3
4707     done
4708   done
4709   done
4710 IFS=$as_save_IFS
4711   if test -z "$ac_cv_path_EGREP"; then
4712     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4713   fi
4714 else
4715   ac_cv_path_EGREP=$EGREP
4716 fi
4717
4718    fi
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4721 $as_echo "$ac_cv_path_EGREP" >&6; }
4722  EGREP="$ac_cv_path_EGREP"
4723
4724
4725 # Extract the first word of "ldconfig", so it can be a program name with args.
4726 set dummy ldconfig; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   case $LDCONFIG in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in /sbin /usr/sbin $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749   done
4750 IFS=$as_save_IFS
4751
4752   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4753   ;;
4754 esac
4755 fi
4756 LDCONFIG=$ac_cv_path_LDCONFIG
4757 if test -n "$LDCONFIG"; then
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4759 $as_echo "$LDCONFIG" >&6; }
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765
4766 # Find a good install program.  We prefer a C program (faster),
4767 # so one script is as good as another.  But avoid the broken or
4768 # incompatible versions:
4769 # SysV /etc/install, /usr/sbin/install
4770 # SunOS /usr/etc/install
4771 # IRIX /sbin/install
4772 # AIX /bin/install
4773 # AmigaOS /C/install, which installs bootblocks on floppy discs
4774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4777 # OS/2's system install, which has a completely different semantic
4778 # ./install, which can be erroneously created by make from ./install.sh.
4779 # Reject install programs that cannot install multiple files.
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4781 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4782 if test -z "$INSTALL"; then
4783 if test "${ac_cv_path_install+set}" = set; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     # Account for people who put trailing slashes in PATH elements.
4792 case $as_dir/ in #((
4793   ./ | .// | /[cC]/* | \
4794   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4795   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4796   /usr/ucb/* ) ;;
4797   *)
4798     # OSF1 and SCO ODT 3.0 have their own names for install.
4799     # Don't use installbsd from OSF since it installs stuff as root
4800     # by default.
4801     for ac_prog in ginstall scoinst install; do
4802       for ac_exec_ext in '' $ac_executable_extensions; do
4803         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4804           if test $ac_prog = install &&
4805             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4806             # AIX install.  It has an incompatible calling convention.
4807             :
4808           elif test $ac_prog = install &&
4809             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810             # program-specific install script used by HP pwplus--don't use.
4811             :
4812           else
4813             rm -rf conftest.one conftest.two conftest.dir
4814             echo one > conftest.one
4815             echo two > conftest.two
4816             mkdir conftest.dir
4817             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4818               test -s conftest.one && test -s conftest.two &&
4819               test -s conftest.dir/conftest.one &&
4820               test -s conftest.dir/conftest.two
4821             then
4822               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4823               break 3
4824             fi
4825           fi
4826         fi
4827       done
4828     done
4829     ;;
4830 esac
4831
4832   done
4833 IFS=$as_save_IFS
4834
4835 rm -rf conftest.one conftest.two conftest.dir
4836
4837 fi
4838   if test "${ac_cv_path_install+set}" = set; then
4839     INSTALL=$ac_cv_path_install
4840   else
4841     # As a last resort, use the slow shell script.  Don't cache a
4842     # value for INSTALL within a source directory, because that will
4843     # break other packages using the cache if that directory is
4844     # removed, or if the value is a relative name.
4845     INSTALL=$ac_install_sh
4846   fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4849 $as_echo "$INSTALL" >&6; }
4850
4851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4852 # It thinks the first close brace ends the variable substitution.
4853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4854
4855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4856
4857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4858
4859 case "$INSTALL" in
4860   [\\/$]* | ?:[\\/]* ) ;;
4861   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4862 esac
4863
4864 for ac_prog in lclint lint
4865 do
4866   # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_LINT+set}" = set; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   if test -n "$LINT"; then
4874   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_prog_LINT="$ac_prog"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 LINT=$ac_cv_prog_LINT
4894 if test -n "$LINT"; then
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4896 $as_echo "$LINT" >&6; }
4897 else
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903   test -n "$LINT" && break
4904 done
4905
4906 if test "$LINT" = "lint"
4907 then
4908   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4909   fi
4910
4911
4912
4913 for ac_prog in fontforge
4914 do
4915   # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if test -n "$FONTFORGE"; then
4923   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930     for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_FONTFORGE="$ac_prog"
4933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937   done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 FONTFORGE=$ac_cv_prog_FONTFORGE
4943 if test -n "$FONTFORGE"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4945 $as_echo "$FONTFORGE" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952   test -n "$FONTFORGE" && break
4953 done
4954 test -n "$FONTFORGE" || FONTFORGE="false"
4955
4956 for ac_prog in pkg-config
4957 do
4958   # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   if test -n "$PKG_CONFIG"; then
4966   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973     for ac_exec_ext in '' $ac_executable_extensions; do
4974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975     ac_cv_prog_PKG_CONFIG="$ac_prog"
4976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980   done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4986 if test -n "$PKG_CONFIG"; then
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4988 $as_echo "$PKG_CONFIG" >&6; }
4989 else
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994
4995   test -n "$PKG_CONFIG" && break
4996 done
4997 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4998
4999 for ac_prog in rsvg
5000 do
5001   # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_RSVG+set}" = set; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$RSVG"; then
5009   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_prog_RSVG="$ac_prog"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 RSVG=$ac_cv_prog_RSVG
5029 if test -n "$RSVG"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5031 $as_echo "$RSVG" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038   test -n "$RSVG" && break
5039 done
5040 test -n "$RSVG" || RSVG="false"
5041
5042 for ac_prog in convert
5043 do
5044   # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -n "$CONVERT"; then
5052   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_prog_CONVERT="$ac_prog"
5062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066   done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 CONVERT=$ac_cv_prog_CONVERT
5072 if test -n "$CONVERT"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5074 $as_echo "$CONVERT" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081   test -n "$CONVERT" && break
5082 done
5083 test -n "$CONVERT" || CONVERT="false"
5084
5085 for ac_prog in icotool
5086 do
5087   # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if test -n "$ICOTOOL"; then
5095   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102     for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_ICOTOOL="$ac_prog"
5105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109   done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ICOTOOL=$ac_cv_prog_ICOTOOL
5115 if test -n "$ICOTOOL"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5117 $as_echo "$ICOTOOL" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124   test -n "$ICOTOOL" && break
5125 done
5126 test -n "$ICOTOOL" || ICOTOOL="false"
5127
5128
5129 if test "x$enable_maintainer_mode" != "xyes"
5130 then
5131   MAINTAINER_MODE=\#
5132
5133 else
5134   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5135   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5136
5137     if test "$CONVERT" = false
5138   then
5139     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5140   else
5141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5142 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5143     convert_version=`convert --version | head -n1`
5144     if test "x$convert_version" != "x"
5145     then
5146       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5147       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5148       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5149       then
5150         CONVERT=false
5151       fi
5152     fi
5153     if test "$CONVERT" = false
5154     then
5155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5156 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5157       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5158     else
5159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5160 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5161     fi
5162   fi
5163
5164     if test "$ICOTOOL" = false
5165   then
5166     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5167   else
5168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5169 $as_echo_n "checking for recent enough icotool... " >&6; }
5170     icotool_version=`icotool --version | head -n1`
5171     if test "x$icotool_version" != "x"
5172     then
5173       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5174       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5175       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5176       then
5177         ICOTOOL=false
5178         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5179       fi
5180     fi
5181     if test "$ICOTOOL" = false
5182     then
5183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5184 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5185       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5186     else
5187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5188 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5189     fi
5190   fi
5191
5192 fi
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5196 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5197 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   ac_check_lib_save_LIBS=$LIBS
5201 LIBS="-li386  $LIBS"
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204
5205 /* Override any GCC internal prototype to avoid an error.
5206    Use char because int might match the return type of a GCC
5207    builtin and then its argument prototype would still apply.  */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 char i386_set_ldt ();
5212 int
5213 main ()
5214 {
5215 return i386_set_ldt ();
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"; then :
5221   ac_cv_lib_i386_i386_set_ldt=yes
5222 else
5223   ac_cv_lib_i386_i386_set_ldt=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226     conftest$ac_exeext conftest.$ac_ext
5227 LIBS=$ac_check_lib_save_LIBS
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5230 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5231 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5232   cat >>confdefs.h <<_ACEOF
5233 #define HAVE_LIBI386 1
5234 _ACEOF
5235
5236   LIBS="-li386 $LIBS"
5237
5238 fi
5239
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5241 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5242 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5243   $as_echo_n "(cached) " >&6
5244 else
5245   ac_check_lib_save_LIBS=$LIBS
5246 LIBS="-lossaudio  $LIBS"
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h.  */
5249
5250 /* Override any GCC internal prototype to avoid an error.
5251    Use char because int might match the return type of a GCC
5252    builtin and then its argument prototype would still apply.  */
5253 #ifdef __cplusplus
5254 extern "C"
5255 #endif
5256 char _oss_ioctl ();
5257 int
5258 main ()
5259 {
5260 return _oss_ioctl ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_link "$LINENO"; then :
5266   ac_cv_lib_ossaudio__oss_ioctl=yes
5267 else
5268   ac_cv_lib_ossaudio__oss_ioctl=no
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext \
5271     conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5275 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5276 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5277   cat >>confdefs.h <<_ACEOF
5278 #define HAVE_LIBOSSAUDIO 1
5279 _ACEOF
5280
5281   LIBS="-lossaudio $LIBS"
5282
5283 fi
5284
5285
5286 XLIB=""
5287
5288 OPENGL_LIBS=""
5289
5290
5291
5292 # Check whether --enable-largefile was given.
5293 if test "${enable_largefile+set}" = set; then :
5294   enableval=$enable_largefile;
5295 fi
5296
5297 if test "$enable_largefile" != no; then
5298
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5300 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5301 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   ac_cv_sys_largefile_CC=no
5305      if test "$GCC" != yes; then
5306        ac_save_CC=$CC
5307        while :; do
5308          # IRIX 6.2 and later do not support large files by default,
5309          # so use the C compiler's -n32 option if that helps.
5310          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h.  */
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   break
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext
5333          CC="$CC -n32"
5334          if ac_fn_c_try_compile "$LINENO"; then :
5335   ac_cv_sys_largefile_CC=' -n32'; break
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext
5338          break
5339        done
5340        CC=$ac_save_CC
5341        rm -f conftest.$ac_ext
5342     fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5345 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5346   if test "$ac_cv_sys_largefile_CC" != no; then
5347     CC=$CC$ac_cv_sys_largefile_CC
5348   fi
5349
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5351 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5352 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   while :; do
5356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h.  */
5358 #include <sys/types.h>
5359  /* Check that off_t can represent 2**63 - 1 correctly.
5360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361     since some C++ compilers masquerading as C compilers
5362     incorrectly reject 9223372036854775807.  */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365                        && LARGE_OFF_T % 2147483647 == 1)
5366                       ? 1 : -1];
5367 int
5368 main ()
5369 {
5370
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376   ac_cv_sys_file_offset_bits=no; break
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #define _FILE_OFFSET_BITS 64
5382 #include <sys/types.h>
5383  /* Check that off_t can represent 2**63 - 1 correctly.
5384     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5385     since some C++ compilers masquerading as C compilers
5386     incorrectly reject 9223372036854775807.  */
5387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5388   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5389                        && LARGE_OFF_T % 2147483647 == 1)
5390                       ? 1 : -1];
5391 int
5392 main ()
5393 {
5394
5395   ;
5396   return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400   ac_cv_sys_file_offset_bits=64; break
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403   ac_cv_sys_file_offset_bits=unknown
5404   break
5405 done
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5408 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5409 case $ac_cv_sys_file_offset_bits in #(
5410   no | unknown) ;;
5411   *)
5412 cat >>confdefs.h <<_ACEOF
5413 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5414 _ACEOF
5415 ;;
5416 esac
5417 rm -rf conftest*
5418   if test $ac_cv_sys_file_offset_bits = unknown; then
5419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5420 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5421 if test "${ac_cv_sys_large_files+set}" = set; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   while :; do
5425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h.  */
5427 #include <sys/types.h>
5428  /* Check that off_t can represent 2**63 - 1 correctly.
5429     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430     since some C++ compilers masquerading as C compilers
5431     incorrectly reject 9223372036854775807.  */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434                        && LARGE_OFF_T % 2147483647 == 1)
5435                       ? 1 : -1];
5436 int
5437 main ()
5438 {
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445   ac_cv_sys_large_files=no; break
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #define _LARGE_FILES 1
5451 #include <sys/types.h>
5452  /* Check that off_t can represent 2**63 - 1 correctly.
5453     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5454     since some C++ compilers masquerading as C compilers
5455     incorrectly reject 9223372036854775807.  */
5456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5457   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5458                        && LARGE_OFF_T % 2147483647 == 1)
5459                       ? 1 : -1];
5460 int
5461 main ()
5462 {
5463
5464   ;
5465   return 0;
5466 }
5467 _ACEOF
5468 if ac_fn_c_try_compile "$LINENO"; then :
5469   ac_cv_sys_large_files=1; break
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472   ac_cv_sys_large_files=unknown
5473   break
5474 done
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5477 $as_echo "$ac_cv_sys_large_files" >&6; }
5478 case $ac_cv_sys_large_files in #(
5479   no | unknown) ;;
5480   *)
5481 cat >>confdefs.h <<_ACEOF
5482 #define _LARGE_FILES $ac_cv_sys_large_files
5483 _ACEOF
5484 ;;
5485 esac
5486 rm -rf conftest*
5487   fi
5488 fi
5489
5490
5491 ac_ext=c
5492 ac_cpp='$CPP $CPPFLAGS'
5493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5497 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5498 # On Suns, sometimes $CPP names a directory.
5499 if test -n "$CPP" && test -d "$CPP"; then
5500   CPP=
5501 fi
5502 if test -z "$CPP"; then
5503   if test "${ac_cv_prog_CPP+set}" = set; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506       # Double quotes because CPP needs to be expanded
5507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5508     do
5509       ac_preproc_ok=false
5510 for ac_c_preproc_warn_flag in '' yes
5511 do
5512   # Use a header file that comes with gcc, so configuring glibc
5513   # with a fresh cross-compiler works.
5514   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515   # <limits.h> exists even on freestanding compilers.
5516   # On the NeXT, cc -E runs the code through the compiler's parser,
5517   # not just through cpp. "Syntax error" is here to catch this case.
5518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h.  */
5520 #ifdef __STDC__
5521 # include <limits.h>
5522 #else
5523 # include <assert.h>
5524 #endif
5525                      Syntax error
5526 _ACEOF
5527 if ac_fn_c_try_cpp "$LINENO"; then :
5528
5529 else
5530   # Broken: fails on valid input.
5531 continue
5532 fi
5533 rm -f conftest.err conftest.i conftest.$ac_ext
5534
5535   # OK, works on sane cases.  Now check whether nonexistent headers
5536   # can be detected and how.
5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539 #include <ac_nonexistent.h>
5540 _ACEOF
5541 if ac_fn_c_try_cpp "$LINENO"; then :
5542   # Broken: success on invalid input.
5543 continue
5544 else
5545   # Passes both tests.
5546 ac_preproc_ok=:
5547 break
5548 fi
5549 rm -f conftest.err conftest.i conftest.$ac_ext
5550
5551 done
5552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5553 rm -f conftest.i conftest.err conftest.$ac_ext
5554 if $ac_preproc_ok; then :
5555   break
5556 fi
5557
5558     done
5559     ac_cv_prog_CPP=$CPP
5560
5561 fi
5562   CPP=$ac_cv_prog_CPP
5563 else
5564   ac_cv_prog_CPP=$CPP
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5567 $as_echo "$CPP" >&6; }
5568 ac_preproc_ok=false
5569 for ac_c_preproc_warn_flag in '' yes
5570 do
5571   # Use a header file that comes with gcc, so configuring glibc
5572   # with a fresh cross-compiler works.
5573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5574   # <limits.h> exists even on freestanding compilers.
5575   # On the NeXT, cc -E runs the code through the compiler's parser,
5576   # not just through cpp. "Syntax error" is here to catch this case.
5577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 #ifdef __STDC__
5580 # include <limits.h>
5581 #else
5582 # include <assert.h>
5583 #endif
5584                      Syntax error
5585 _ACEOF
5586 if ac_fn_c_try_cpp "$LINENO"; then :
5587
5588 else
5589   # Broken: fails on valid input.
5590 continue
5591 fi
5592 rm -f conftest.err conftest.i conftest.$ac_ext
5593
5594   # OK, works on sane cases.  Now check whether nonexistent headers
5595   # can be detected and how.
5596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h.  */
5598 #include <ac_nonexistent.h>
5599 _ACEOF
5600 if ac_fn_c_try_cpp "$LINENO"; then :
5601   # Broken: success on invalid input.
5602 continue
5603 else
5604   # Passes both tests.
5605 ac_preproc_ok=:
5606 break
5607 fi
5608 rm -f conftest.err conftest.i conftest.$ac_ext
5609
5610 done
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.i conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then :
5614
5615 else
5616   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5618 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5619 See \`config.log' for more details" "$LINENO" 5 ; }
5620 fi
5621
5622 ac_ext=c
5623 ac_cpp='$CPP $CPPFLAGS'
5624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5630 $as_echo_n "checking for ANSI C header files... " >&6; }
5631 if test "${ac_cv_header_stdc+set}" = set; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636 #include <stdlib.h>
5637 #include <stdarg.h>
5638 #include <string.h>
5639 #include <float.h>
5640
5641 int
5642 main ()
5643 {
5644
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650   ac_cv_header_stdc=yes
5651 else
5652   ac_cv_header_stdc=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655
5656 if test $ac_cv_header_stdc = yes; then
5657   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h.  */
5660 #include <string.h>
5661
5662 _ACEOF
5663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5664   $EGREP "memchr" >/dev/null 2>&1; then :
5665
5666 else
5667   ac_cv_header_stdc=no
5668 fi
5669 rm -f conftest*
5670
5671 fi
5672
5673 if test $ac_cv_header_stdc = yes; then
5674   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h.  */
5677 #include <stdlib.h>
5678
5679 _ACEOF
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681   $EGREP "free" >/dev/null 2>&1; then :
5682
5683 else
5684   ac_cv_header_stdc=no
5685 fi
5686 rm -f conftest*
5687
5688 fi
5689
5690 if test $ac_cv_header_stdc = yes; then
5691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5692   if test "$cross_compiling" = yes; then :
5693   :
5694 else
5695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h.  */
5697 #include <ctype.h>
5698 #include <stdlib.h>
5699 #if ((' ' & 0x0FF) == 0x020)
5700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5702 #else
5703 # define ISLOWER(c) \
5704                    (('a' <= (c) && (c) <= 'i') \
5705                      || ('j' <= (c) && (c) <= 'r') \
5706                      || ('s' <= (c) && (c) <= 'z'))
5707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5708 #endif
5709
5710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5711 int
5712 main ()
5713 {
5714   int i;
5715   for (i = 0; i < 256; i++)
5716     if (XOR (islower (i), ISLOWER (i))
5717         || toupper (i) != TOUPPER (i))
5718       return 2;
5719   return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_run "$LINENO"; then :
5723
5724 else
5725   ac_cv_header_stdc=no
5726 fi
5727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5728   conftest.$ac_objext conftest.beam conftest.$ac_ext
5729 fi
5730
5731 fi
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5734 $as_echo "$ac_cv_header_stdc" >&6; }
5735 if test $ac_cv_header_stdc = yes; then
5736
5737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5738
5739 fi
5740
5741 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5743                   inttypes.h stdint.h unistd.h
5744 do :
5745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5747 "
5748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5749   cat >>confdefs.h <<_ACEOF
5750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5751 _ACEOF
5752
5753 fi
5754
5755 done
5756
5757
5758 for ac_header in \
5759         AL/al.h \
5760         AudioToolbox/AudioConverter.h \
5761         AudioUnit/AudioUnit.h \
5762         Carbon/Carbon.h \
5763         CoreAudio/CoreAudio.h \
5764         DiskArbitration/DiskArbitration.h \
5765         IOKit/IOKitLib.h \
5766         IOKit/hid/IOHIDLib.h \
5767         OpenAL/al.h \
5768         alias.h \
5769         alsa/asoundlib.h \
5770         arpa/inet.h \
5771         arpa/nameser.h \
5772         asm/types.h \
5773         capi20.h \
5774         curses.h \
5775         direct.h \
5776         dirent.h \
5777         dlfcn.h \
5778         elf.h \
5779         float.h \
5780         fnmatch.h \
5781         fontconfig/fontconfig.h \
5782         getopt.h \
5783         grp.h \
5784         gsm.h \
5785         gsm/gsm.h \
5786         icns.h \
5787         ieeefp.h \
5788         inet/mib2.h \
5789         io.h \
5790         jack/jack.h \
5791         jpeglib.h \
5792         kstat.h \
5793         lber.h \
5794         lcms.h \
5795         lcms/lcms.h \
5796         ldap.h \
5797         libaudioio.h \
5798         link.h \
5799         linux/cdrom.h \
5800         linux/compiler.h \
5801         linux/hdreg.h \
5802         linux/input.h \
5803         linux/ioctl.h \
5804         linux/joystick.h \
5805         linux/major.h \
5806         linux/param.h \
5807         linux/serial.h \
5808         linux/types.h \
5809         linux/ucdrom.h \
5810         mach-o/nlist.h \
5811         mach-o/loader.h \
5812         mach/mach.h \
5813         mach/machine.h \
5814         machine/cpu.h \
5815         machine/limits.h \
5816         machine/soundcard.h \
5817         machine/sysarch.h \
5818         mntent.h \
5819         mpg123.h \
5820         ncurses.h \
5821         netdb.h \
5822         netinet/in.h \
5823         netinet/in_systm.h \
5824         netinet/tcp.h \
5825         netinet/tcp_fsm.h \
5826         openssl/err.h \
5827         openssl/ssl.h \
5828         png.h \
5829         poll.h \
5830         port.h \
5831         process.h \
5832         pthread.h \
5833         pwd.h \
5834         regex.h \
5835         sched.h \
5836         scsi/scsi.h \
5837         scsi/scsi_ioctl.h \
5838         scsi/sg.h \
5839         soundcard.h \
5840         stdbool.h \
5841         stdint.h \
5842         strings.h \
5843         stropts.h \
5844         sys/asoundlib.h \
5845         sys/cdio.h \
5846         sys/elf32.h \
5847         sys/epoll.h \
5848         sys/errno.h \
5849         sys/event.h \
5850         sys/exec_elf.h \
5851         sys/filio.h \
5852         sys/inotify.h \
5853         sys/ioctl.h \
5854         sys/ipc.h \
5855         sys/limits.h \
5856         sys/link.h \
5857         sys/mman.h \
5858         sys/modem.h \
5859         sys/msg.h \
5860         sys/mtio.h \
5861         sys/param.h \
5862         sys/poll.h \
5863         sys/prctl.h \
5864         sys/protosw.h \
5865         sys/ptrace.h \
5866         sys/resource.h \
5867         sys/scsiio.h \
5868         sys/shm.h \
5869         sys/signal.h \
5870         sys/socket.h \
5871         sys/socketvar.h \
5872         sys/sockio.h \
5873         sys/soundcard.h \
5874         sys/statvfs.h \
5875         sys/strtio.h \
5876         sys/syscall.h \
5877         sys/tihdr.h \
5878         sys/time.h \
5879         sys/timeout.h \
5880         sys/times.h \
5881         sys/uio.h \
5882         sys/un.h \
5883         sys/utsname.h \
5884         sys/vm86.h \
5885         sys/wait.h \
5886         syscall.h \
5887         termios.h \
5888         tiffio.h \
5889         unistd.h \
5890         utime.h \
5891         valgrind/memcheck.h \
5892         valgrind/valgrind.h \
5893         zlib.h
5894
5895 do :
5896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5899   cat >>confdefs.h <<_ACEOF
5900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 _ACEOF
5902
5903 fi
5904
5905 done
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5908 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5909 if test "${ac_cv_header_stat_broken+set}" = set; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h.  */
5914 #include <sys/types.h>
5915 #include <sys/stat.h>
5916
5917 #if defined S_ISBLK && defined S_IFDIR
5918 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5919 #endif
5920
5921 #if defined S_ISBLK && defined S_IFCHR
5922 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5923 #endif
5924
5925 #if defined S_ISLNK && defined S_IFREG
5926 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5927 #endif
5928
5929 #if defined S_ISSOCK && defined S_IFREG
5930 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5931 #endif
5932
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935   ac_cv_header_stat_broken=no
5936 else
5937   ac_cv_header_stat_broken=yes
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5942 $as_echo "$ac_cv_header_stat_broken" >&6; }
5943 if test $ac_cv_header_stat_broken = yes; then
5944
5945 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5946
5947 fi
5948
5949
5950
5951 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5952 do :
5953   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5955      #ifdef HAVE_SYS_PARAM_H
5956      # include <sys/param.h>
5957      #endif
5958 "
5959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5960   cat >>confdefs.h <<_ACEOF
5961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5962 _ACEOF
5963
5964 fi
5965
5966 done
5967
5968
5969 for ac_header in \
5970         netinet/ip.h \
5971         net/if.h \
5972         net/if_arp.h \
5973         net/if_dl.h \
5974         net/if_types.h \
5975         net/route.h \
5976         netinet/if_ether.h \
5977         netinet/if_inarp.h \
5978         netinet/in_pcb.h \
5979         netinet/ip_icmp.h \
5980         netinet/ip_var.h \
5981         netinet/udp.h \
5982         netipx/ipx.h \
5983
5984 do :
5985   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5987      #ifdef HAVE_SYS_SOCKET_H
5988      # include <sys/socket.h>
5989      #endif
5990      #ifdef HAVE_SYS_SOCKETVAR_H
5991      # include <sys/socketvar.h>
5992      #endif
5993      #ifdef HAVE_NET_ROUTE_H
5994      # include <net/route.h>
5995      #endif
5996      #ifdef HAVE_NETINET_IN_H
5997      # include <netinet/in.h>
5998      #endif
5999      #ifdef HAVE_NETINET_IN_SYSTM_H
6000      # include <netinet/in_systm.h>
6001      #endif
6002      #ifdef HAVE_NET_IF_H
6003      # include <net/if.h>
6004      #endif
6005      #ifdef HAVE_NETINET_IP_H
6006      # include <netinet/ip.h>
6007      #endif
6008 "
6009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6010   cat >>confdefs.h <<_ACEOF
6011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6012 _ACEOF
6013
6014 fi
6015
6016 done
6017
6018
6019 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6020 do :
6021   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6023      #ifdef HAVE_ALIAS_H
6024      # include <alias.h>
6025      #endif
6026      #ifdef HAVE_SYS_SOCKET_H
6027      # include <sys/socket.h>
6028      #endif
6029      #ifdef HAVE_SYS_SOCKETVAR_H
6030      # include <sys/socketvar.h>
6031      #endif
6032      #ifdef HAVE_SYS_TIMEOUT_H
6033      # include <sys/timeout.h>
6034      #endif
6035      #ifdef HAVE_NETINET_IN_H
6036      # include <netinet/in.h>
6037      #endif
6038      #ifdef HAVE_NETINET_IN_SYSTM_H
6039      # include <netinet/in_systm.h>
6040      #endif
6041      #ifdef HAVE_NETINET_IP_H
6042      # include <netinet/ip.h>
6043      #endif
6044      #ifdef HAVE_NETINET_IP_VAR_H
6045      # include <netinet/ip_var.h>
6046      #endif
6047      #ifdef HAVE_NETINET_IP_ICMP_H
6048      # include <netinet/ip_icmp.h>
6049      #endif
6050      #ifdef HAVE_NETINET_UDP_H
6051      # include <netinet/udp.h>
6052      #endif
6053      #ifdef HAVE_NETINET_TCP_H
6054      # include <netinet/tcp.h>
6055      #endif
6056      #ifdef HAVE_NETINET_TCP_TIMER_H
6057      #include <netinet/tcp_timer.h>
6058      #endif
6059 "
6060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6061   cat >>confdefs.h <<_ACEOF
6062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 _ACEOF
6064
6065 fi
6066
6067 done
6068
6069
6070 for ac_header in linux/ipx.h linux/irda.h
6071 do :
6072   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6074      #ifdef HAVE_ASM_TYPES_H
6075      # include <asm/types.h>
6076      #endif
6077      #ifdef HAVE_SYS_SOCKET_H
6078      # include <sys/socket.h>
6079      #endif
6080      #ifdef HAVE_LINUX_TYPES_H
6081      # include <linux/types.h>
6082      #endif
6083 "
6084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6085   cat >>confdefs.h <<_ACEOF
6086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 _ACEOF
6088
6089 fi
6090
6091 done
6092
6093
6094 for ac_header in mach-o/dyld_images.h
6095 do :
6096   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6097      # include <stdbool.h>
6098      #endif
6099      #ifdef HAVE_STDINT_H
6100      # include <stdint.h>
6101      #endif
6102 "
6103 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6104   cat >>confdefs.h <<_ACEOF
6105 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6106 _ACEOF
6107
6108 fi
6109
6110 done
6111
6112
6113 for ac_header in resolv.h
6114 do :
6115   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6116      #ifdef HAVE_SYS_SOCKET_H
6117      # include <sys/socket.h>
6118      #endif
6119      #ifdef HAVE_NETINET_IN_H
6120      # include <netinet/in.h>
6121      #endif
6122      #ifdef HAVE_ARPA_NAMESER_H
6123      # include <arpa/nameser.h>
6124      #endif
6125 "
6126 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6127   cat >>confdefs.h <<_ACEOF
6128 #define HAVE_RESOLV_H 1
6129 _ACEOF
6130
6131 fi
6132
6133 done
6134
6135
6136 for ac_header in ifaddrs.h
6137 do :
6138   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6139 "
6140 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6141   cat >>confdefs.h <<_ACEOF
6142 #define HAVE_IFADDRS_H 1
6143 _ACEOF
6144
6145 fi
6146
6147 done
6148
6149
6150 for ac_header in ucontext.h
6151 do :
6152   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6153 "
6154 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6155   cat >>confdefs.h <<_ACEOF
6156 #define HAVE_UCONTEXT_H 1
6157 _ACEOF
6158
6159 fi
6160
6161 done
6162
6163
6164 for ac_header in sys/thr.h
6165 do :
6166   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6167 #ifdef HAVE_UCONTEXT_H
6168 #include <ucontext.h>
6169 #endif
6170 "
6171 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6172   cat >>confdefs.h <<_ACEOF
6173 #define HAVE_SYS_THR_H 1
6174 _ACEOF
6175
6176 fi
6177
6178 done
6179
6180
6181 for ac_header in pthread_np.h
6182 do :
6183   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6184 #include <pthread.h>
6185 #endif
6186 "
6187 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6188   cat >>confdefs.h <<_ACEOF
6189 #define HAVE_PTHREAD_NP_H 1
6190 _ACEOF
6191
6192 fi
6193
6194 done
6195
6196
6197 for ac_header in linux/videodev.h
6198 do :
6199   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6200 #include <sys/time.h>
6201 #endif
6202 #include <sys/types.h>
6203 #ifdef HAVE_ASM_TYPES_H
6204 #include <asm/types.h>
6205 #endif
6206 "
6207 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6208   cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LINUX_VIDEODEV_H 1
6210 _ACEOF
6211
6212 fi
6213
6214 done
6215
6216
6217 for ac_header in linux/capi.h
6218 do :
6219   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6220 "
6221 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6222   cat >>confdefs.h <<_ACEOF
6223 #define HAVE_LINUX_CAPI_H 1
6224 _ACEOF
6225
6226 fi
6227
6228 done
6229
6230
6231
6232 DLLEXT=""
6233
6234 DLLFLAGS="-D_REENTRANT"
6235
6236 LDSHARED=""
6237
6238 LDDLLFLAGS=""
6239
6240 LIBEXT="so"
6241
6242 IMPLIBEXT="def"
6243
6244 LDRPATH_INSTALL=""
6245
6246 LDRPATH_LOCAL=""
6247
6248 STATIC_IMPLIBEXT="def.a"
6249 # Extract the first word of "ldd", so it can be a program name with args.
6250 set dummy ldd; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_path_LDD+set}" = set; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   case $LDD in
6257   [\\/]* | ?:[\\/]*)
6258   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6259   ;;
6260   *)
6261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 as_dummy="/sbin:/usr/sbin:$PATH"
6263 for as_dir in $as_dummy
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276
6277   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6278   ;;
6279 esac
6280 fi
6281 LDD=$ac_cv_path_LDD
6282 if test -n "$LDD"; then
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6284 $as_echo "$LDD" >&6; }
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290
6291
6292 case $host_os in
6293   cygwin*|mingw32*)
6294     if test -n "$ac_tool_prefix"; then
6295   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$DLLTOOL"; then
6303   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 DLLTOOL=$ac_cv_prog_DLLTOOL
6323 if test -n "$DLLTOOL"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6325 $as_echo "$DLLTOOL" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_DLLTOOL"; then
6334   ac_ct_DLLTOOL=$DLLTOOL
6335   # Extract the first word of "dlltool", so it can be a program name with args.
6336 set dummy dlltool; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_DLLTOOL"; then
6343   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6363 if test -n "$ac_ct_DLLTOOL"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6365 $as_echo "$ac_ct_DLLTOOL" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371   if test "x$ac_ct_DLLTOOL" = x; then
6372     DLLTOOL="false"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     DLLTOOL=$ac_ct_DLLTOOL
6381   fi
6382 else
6383   DLLTOOL="$ac_cv_prog_DLLTOOL"
6384 fi
6385
6386     if test -n "$ac_tool_prefix"; then
6387   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$DLLWRAP"; then
6395   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 DLLWRAP=$ac_cv_prog_DLLWRAP
6415 if test -n "$DLLWRAP"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6417 $as_echo "$DLLWRAP" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423
6424 fi
6425 if test -z "$ac_cv_prog_DLLWRAP"; then
6426   ac_ct_DLLWRAP=$DLLWRAP
6427   # Extract the first word of "dllwrap", so it can be a program name with args.
6428 set dummy dllwrap; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$ac_ct_DLLWRAP"; then
6435   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6455 if test -n "$ac_ct_DLLWRAP"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6457 $as_echo "$ac_ct_DLLWRAP" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463   if test "x$ac_ct_DLLWRAP" = x; then
6464     DLLWRAP="false"
6465   else
6466     case $cross_compiling:$ac_tool_warned in
6467 yes:)
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6471 esac
6472     DLLWRAP=$ac_ct_DLLWRAP
6473   fi
6474 else
6475   DLLWRAP="$ac_cv_prog_DLLWRAP"
6476 fi
6477
6478     if test "$DLLWRAP" = "false"; then
6479       LIBEXT="a"
6480     else
6481             LIBEXT="dll"
6482     fi
6483     IMPLIBEXT="a"
6484     STATIC_IMPLIBEXT="a"
6485         enable_iphlpapi=${enable_iphlpapi:-no}
6486     enable_kernel32=${enable_kernel32:-no}
6487     enable_msvcrt=${enable_msvcrt:-no}
6488     enable_ntdll=${enable_ntdll:-no}
6489     enable_ws2_32=${enable_ws2_32:-no}
6490     enable_loader=${enable_loader:-no}
6491     enable_server=${enable_server:-no}
6492         with_x=${with_x:-no}
6493     with_pthread=${with_pthread:-no}
6494     ;;
6495   darwin*|macosx*)
6496     DLLEXT=".so"
6497     LIBEXT="dylib"
6498     DLLFLAGS="$DLLFLAGS -fPIC"
6499     LDDLLFLAGS="-bundle -multiply_defined suppress"
6500     LIBWINE_LDFLAGS="-multiply_defined suppress"
6501     LDSHARED="\$(CC) -dynamiclib"
6502     STRIP="$STRIP -x"
6503     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6504         SECURITYLIB="-framework Security -framework CoreFoundation"
6505
6506     COREFOUNDATIONLIB="-framework CoreFoundation"
6507
6508     IOKITLIB="-framework IOKit -framework CoreFoundation"
6509
6510     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6511
6512     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6513     then
6514                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6515
6516     fi
6517     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6518     then
6519                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6520
6521     fi
6522     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6523     then
6524         FRAMEWORK_OPENAL="-framework OpenAL"
6525
6526
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_OPENAL 1
6529 _ACEOF
6530
6531         ac_cv_lib_openal=yes
6532     fi
6533     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6534     then
6535         ac_save_LIBS="$LIBS"
6536         LIBS="$LIBS $IOKITLIB"
6537         for ac_func in IOHIDManagerCreate
6538 do :
6539   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6540 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6541   cat >>confdefs.h <<_ACEOF
6542 #define HAVE_IOHIDMANAGERCREATE 1
6543 _ACEOF
6544
6545 fi
6546 done
6547
6548         LIBS="$ac_save_LIBS"
6549     fi
6550     case $host_cpu in
6551       *powerpc*)
6552         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6553     esac
6554         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6555     then
6556         CARBONLIB="-framework Carbon"
6557
6558         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6559     fi
6560         if test "x$enable_win16" = "xyes"
6561     then
6562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6563 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6564         if test "$cross_compiling" = yes; then :
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6566 $as_echo "cross-compiling, assuming yes" >&6; }
6567 else
6568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h.  */
6570 asm(".text\n"
6571                                             "bad:\tnop;nop\n"
6572                                             "good:\tnop;nop\n\t"
6573                                             ".globl _testfunc\n"
6574                                             "_testfunc:\tcallw good");
6575                                         extern void testfunc();
6576 int
6577 main ()
6578 {
6579 unsigned short *p = (unsigned short *)testfunc;
6580                                         return p[0] != 0xe866 || p[1] != 0xfffa
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_run "$LINENO"; then :
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6587 $as_echo "yes" >&6; }
6588 else
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591                                        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
6592 fi
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594   conftest.$ac_objext conftest.beam conftest.$ac_ext
6595 fi
6596
6597     fi
6598     ;;
6599   *)
6600     DLLFLAGS="$DLLFLAGS -fPIC"
6601     DLLEXT=".so"
6602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6603 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6604 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   ac_wine_try_cflags_saved=$CFLAGS
6608 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h.  */
6611 void myfunc() {}
6612 _ACEOF
6613 if ac_fn_c_try_link "$LINENO"; then :
6614   ac_cv_c_dll_gnuelf="yes"
6615 else
6616   ac_cv_c_dll_gnuelf="no"
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext \
6619     conftest$ac_exeext conftest.$ac_ext
6620 CFLAGS=$ac_wine_try_cflags_saved
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6623 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6624     if test "$ac_cv_c_dll_gnuelf" = "yes"
6625     then
6626       LDSHARED="\$(CC) -shared"
6627       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6628       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6629 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6630 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   ac_wine_try_cflags_saved=$CFLAGS
6634 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
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__soname_confest_so_1=yes
6641 else
6642   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=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__soname_confest_so_1" >&5
6649 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6650 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6651   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6652 else
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6654 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6655 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   ac_wine_try_cflags_saved=$CFLAGS
6659 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662 int main(int argc, char **argv) { return 0; }
6663 _ACEOF
6664 if ac_fn_c_try_link "$LINENO"; then :
6665   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6666 else
6667   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext \
6670     conftest$ac_exeext conftest.$ac_ext
6671 CFLAGS=$ac_wine_try_cflags_saved
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6674 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6675 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6676   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6677 fi
6678 fi
6679
6680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6681 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6682 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   ac_wine_try_cflags_saved=$CFLAGS
6686 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h.  */
6689 int main(int argc, char **argv) { return 0; }
6690 _ACEOF
6691 if ac_fn_c_try_link "$LINENO"; then :
6692   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6693 else
6694   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext \
6697     conftest$ac_exeext conftest.$ac_ext
6698 CFLAGS=$ac_wine_try_cflags_saved
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6701 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6702 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6703   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6704 fi
6705
6706       { $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
6707 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6708 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711   ac_wine_try_cflags_saved=$CFLAGS
6712 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h.  */
6715 int main(int argc, char **argv) { return 0; }
6716 _ACEOF
6717 if ac_fn_c_try_link "$LINENO"; then :
6718   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6719 else
6720   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext \
6723     conftest$ac_exeext conftest.$ac_ext
6724 CFLAGS=$ac_wine_try_cflags_saved
6725 fi
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6727 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6728 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6729   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6730 fi
6731
6732       echo '{ global: *; };' >conftest.map
6733       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6735 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6736 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   ac_wine_try_cflags_saved=$CFLAGS
6740 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743 int main(int argc, char **argv) { return 0; }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"; then :
6746   eval "$as_ac_var=yes"
6747 else
6748   eval "$as_ac_var=no"
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext \
6751     conftest$ac_exeext conftest.$ac_ext
6752 CFLAGS=$ac_wine_try_cflags_saved
6753 fi
6754 eval ac_res=\$$as_ac_var
6755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6758   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6759 fi
6760       rm -f conftest.map
6761
6762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6763 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6764 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   ac_wine_try_cflags_saved=$CFLAGS
6768 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h.  */
6771 int main(int argc, char **argv) { return 0; }
6772 _ACEOF
6773 if ac_fn_c_try_link "$LINENO"; then :
6774   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6775 else
6776   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext \
6779     conftest$ac_exeext conftest.$ac_ext
6780 CFLAGS=$ac_wine_try_cflags_saved
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6783 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6784 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6785   LDEXECFLAGS="-Wl,--export-dynamic"
6786
6787 fi
6788
6789       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6791 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6792 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795   ac_wine_try_cflags_saved=$CFLAGS
6796 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h.  */
6799 int main(int argc, char **argv) { return 0; }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802   eval "$as_ac_var=yes"
6803 else
6804   eval "$as_ac_var=no"
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext \
6807     conftest$ac_exeext conftest.$ac_ext
6808 CFLAGS=$ac_wine_try_cflags_saved
6809 fi
6810 eval ac_res=\$$as_ac_var
6811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6814   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6815                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6816 else
6817   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6819 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6820 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   ac_wine_try_cflags_saved=$CFLAGS
6824 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 int main(int argc, char **argv) { return 0; }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830   eval "$as_ac_var=yes"
6831 else
6832   eval "$as_ac_var=no"
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext \
6835     conftest$ac_exeext conftest.$ac_ext
6836 CFLAGS=$ac_wine_try_cflags_saved
6837 fi
6838 eval ac_res=\$$as_ac_var
6839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6841 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6842   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6843                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6844 fi
6845 fi
6846
6847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6848 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6849 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6850   $as_echo_n "(cached) " >&6
6851 else
6852   ac_wine_try_cflags_saved=$CFLAGS
6853 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856 int main(int argc, char **argv) { return 0; }
6857 _ACEOF
6858 if ac_fn_c_try_link "$LINENO"; then :
6859   ac_cv_cflags__Wl___enable_new_dtags=yes
6860 else
6861   ac_cv_cflags__Wl___enable_new_dtags=no
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext \
6864     conftest$ac_exeext conftest.$ac_ext
6865 CFLAGS=$ac_wine_try_cflags_saved
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6868 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6869 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6870   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6871 fi
6872
6873       case $host_cpu in
6874         *i[3456789]86* | x86_64)
6875           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6877 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6878 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   ac_wine_try_cflags_saved=$CFLAGS
6882 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 int main(int argc, char **argv) { return 0; }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888   eval "$as_ac_var=yes"
6889 else
6890   eval "$as_ac_var=no"
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893     conftest$ac_exeext conftest.$ac_ext
6894 CFLAGS=$ac_wine_try_cflags_saved
6895 fi
6896 eval ac_res=\$$as_ac_var
6897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6898 $as_echo "$ac_res" >&6; }
6899 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6900   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6901 fi
6902           # Extract the first word of "prelink", so it can be a program name with args.
6903 set dummy prelink; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_path_PRELINK+set}" = set; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   case $PRELINK in
6910   [\\/]* | ?:[\\/]*)
6911   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6912   ;;
6913   *)
6914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in /sbin /usr/sbin $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6930   ;;
6931 esac
6932 fi
6933 PRELINK=$ac_cv_path_PRELINK
6934 if test -n "$PRELINK"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6936 $as_echo "$PRELINK" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943           if test "x$PRELINK" = xfalse
6944           then
6945               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6946           fi
6947           ;;
6948       esac
6949
6950     else
6951       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6952 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6953 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   ac_wine_try_cflags_saved=$CFLAGS
6957 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h.  */
6960 void myfunc() {}
6961 _ACEOF
6962 if ac_fn_c_try_link "$LINENO"; then :
6963   ac_cv_c_dll_unixware="yes"
6964 else
6965   ac_cv_c_dll_unixware="no"
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext \
6968     conftest$ac_exeext conftest.$ac_ext
6969 CFLAGS=$ac_wine_try_cflags_saved
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6972 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6973       if test "$ac_cv_c_dll_unixware" = "yes"
6974       then
6975         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6976         LDDLLFLAGS="-Wl,-G,-B,symbolic"
6977
6978       else
6979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6980 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6981 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   ac_wine_try_cflags_saved=$CFLAGS
6985 CFLAGS="$CFLAGS -shared"
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h.  */
6988 void myfunc() {}
6989 _ACEOF
6990 if ac_fn_c_try_link "$LINENO"; then :
6991   ac_cv_c_dll_hpux="yes"
6992 else
6993   ac_cv_c_dll_hpux="no"
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996     conftest$ac_exeext conftest.$ac_ext
6997 CFLAGS=$ac_wine_try_cflags_saved
6998 fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7000 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7001         if test "$ac_cv_c_dll_hpux" = "yes"
7002         then
7003           LIBEXT="sl"
7004           DLLEXT=".sl"
7005           LDDLLFLAGS="-shared -fPIC"
7006           LDSHARED="\$(CC) -shared"
7007         fi
7008       fi
7009     fi
7010     ;;
7011 esac
7012
7013 enable_winequartz_drv=${enable_winequartz_drv:-no}
7014
7015 if test "$LIBEXT" = "a"; then
7016   as_fn_error $? "could not find a way to build shared libraries.
7017 It is currently not possible to build Wine without shared library
7018 (.so) support to allow transparent switch between .so and .dll files.
7019 If you are using Linux, you will need a newer binutils.
7020 " "$LINENO" 5
7021 fi
7022
7023 CROSSTEST_DISABLE=\#
7024
7025 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7026 then
7027     case "$host_cpu" in
7028   i[3456789]86*)
7029     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 " ;;
7030   x86_64)
7031     ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
7032   *)
7033     ac_prefix_list="" ;;
7034 esac
7035 for ac_prog in $ac_prefix_list
7036 do
7037   # Extract the first word of "$ac_prog", so it can be a program name with args.
7038 set dummy $ac_prog; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   if test -n "$CROSSCC"; then
7045   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052     for ac_exec_ext in '' $ac_executable_extensions; do
7053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054     ac_cv_prog_CROSSCC="$ac_prog"
7055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059   done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 CROSSCC=$ac_cv_prog_CROSSCC
7065 if test -n "$CROSSCC"; then
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7067 $as_echo "$CROSSCC" >&6; }
7068 else
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073
7074   test -n "$CROSSCC" && break
7075 done
7076 test -n "$CROSSCC" || CROSSCC="false"
7077
7078     if test "$CROSSCC" != "false"
7079     then
7080         ac_save_CC="$CC"
7081         CC="$CROSSCC"
7082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7083 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7084         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h.  */
7086
7087 int
7088 main ()
7089 {
7090
7091   ;
7092   return 0;
7093 }
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7098                            set x $CROSSCC
7099                            shift
7100                            target=""
7101                            while test $# -ge 1
7102                            do
7103                                case "$1" in
7104                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7105                                esac
7106                                shift
7107                            done
7108                            if test -n "$target"
7109                            then
7110                                CROSSTEST_DISABLE=""
7111                                CROSSTARGET="$target"
7112
7113                            fi
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119         CC="$ac_save_CC"
7120     fi
7121 fi
7122
7123
7124 if test "$ac_cv_header_pthread_h" = "yes"
7125 then
7126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7127 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7128 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   ac_check_lib_save_LIBS=$LIBS
7132 LIBS="-lpthread  $LIBS"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135
7136 /* Override any GCC internal prototype to avoid an error.
7137    Use char because int might match the return type of a GCC
7138    builtin and then its argument prototype would still apply.  */
7139 #ifdef __cplusplus
7140 extern "C"
7141 #endif
7142 char pthread_create ();
7143 int
7144 main ()
7145 {
7146 return pthread_create ();
7147   ;
7148   return 0;
7149 }
7150 _ACEOF
7151 if ac_fn_c_try_link "$LINENO"; then :
7152   ac_cv_lib_pthread_pthread_create=yes
7153 else
7154   ac_cv_lib_pthread_pthread_create=no
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext \
7157     conftest$ac_exeext conftest.$ac_ext
7158 LIBS=$ac_check_lib_save_LIBS
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7161 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7162 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7163   LIBPTHREAD="-lpthread"
7164
7165 fi
7166
7167 fi
7168 if test "x$LIBPTHREAD" = "x"; then :
7169   case "x$with_pthread" in
7170   xno) ;;
7171   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7172 Wine cannot support threads without libpthread.
7173 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7174 esac
7175 fi
7176
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7179 $as_echo_n "checking for X... " >&6; }
7180
7181
7182 # Check whether --with-x was given.
7183 if test "${with_x+set}" = set; then :
7184   withval=$with_x;
7185 fi
7186
7187 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7188 if test "x$with_x" = xno; then
7189   # The user explicitly disabled X.
7190   have_x=disabled
7191 else
7192   case $x_includes,$x_libraries in #(
7193     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7194     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   # One or both of the vars are not set, and there is no cached value.
7198 ac_x_includes=no ac_x_libraries=no
7199 rm -f -r conftest.dir
7200 if mkdir conftest.dir; then
7201   cd conftest.dir
7202   cat >Imakefile <<'_ACEOF'
7203 incroot:
7204         @echo incroot='${INCROOT}'
7205 usrlibdir:
7206         @echo usrlibdir='${USRLIBDIR}'
7207 libdir:
7208         @echo libdir='${LIBDIR}'
7209 _ACEOF
7210   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7211     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7212     for ac_var in incroot usrlibdir libdir; do
7213       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7214     done
7215     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7216     for ac_extension in a so sl dylib la dll; do
7217       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7218          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7219         ac_im_usrlibdir=$ac_im_libdir; break
7220       fi
7221     done
7222     # Screen out bogus values from the imake configuration.  They are
7223     # bogus both because they are the default anyway, and because
7224     # using them would break gcc on systems where it needs fixed includes.
7225     case $ac_im_incroot in
7226         /usr/include) ac_x_includes= ;;
7227         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7228     esac
7229     case $ac_im_usrlibdir in
7230         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7231         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7232     esac
7233   fi
7234   cd ..
7235   rm -f -r conftest.dir
7236 fi
7237
7238 # Standard set of common directories for X headers.
7239 # Check X11 before X11Rn because it is often a symlink to the current release.
7240 ac_x_header_dirs='
7241 /usr/X11/include
7242 /usr/X11R7/include
7243 /usr/X11R6/include
7244 /usr/X11R5/include
7245 /usr/X11R4/include
7246
7247 /usr/include/X11
7248 /usr/include/X11R7
7249 /usr/include/X11R6
7250 /usr/include/X11R5
7251 /usr/include/X11R4
7252
7253 /usr/local/X11/include
7254 /usr/local/X11R7/include
7255 /usr/local/X11R6/include
7256 /usr/local/X11R5/include
7257 /usr/local/X11R4/include
7258
7259 /usr/local/include/X11
7260 /usr/local/include/X11R7
7261 /usr/local/include/X11R6
7262 /usr/local/include/X11R5
7263 /usr/local/include/X11R4
7264
7265 /usr/X386/include
7266 /usr/x386/include
7267 /usr/XFree86/include/X11
7268
7269 /usr/include
7270 /usr/local/include
7271 /usr/unsupported/include
7272 /usr/athena/include
7273 /usr/local/x11r5/include
7274 /usr/lpp/Xamples/include
7275
7276 /usr/openwin/include
7277 /usr/openwin/share/include'
7278
7279 if test "$ac_x_includes" = no; then
7280   # Guess where to find include files, by looking for Xlib.h.
7281   # First, try using that file with no special directory specified.
7282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284 #include <X11/Xlib.h>
7285 _ACEOF
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7287   # We can compile using X headers with no special include directory.
7288 ac_x_includes=
7289 else
7290   for ac_dir in $ac_x_header_dirs; do
7291   if test -r "$ac_dir/X11/Xlib.h"; then
7292     ac_x_includes=$ac_dir
7293     break
7294   fi
7295 done
7296 fi
7297 rm -f conftest.err conftest.i conftest.$ac_ext
7298 fi # $ac_x_includes = no
7299
7300 if test "$ac_x_libraries" = no; then
7301   # Check for the libraries.
7302   # See if we find them without any special options.
7303   # Don't add to $LIBS permanently.
7304   ac_save_LIBS=$LIBS
7305   LIBS="-lX11 $LIBS"
7306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h.  */
7308 #include <X11/Xlib.h>
7309 int
7310 main ()
7311 {
7312 XrmInitialize ()
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318   LIBS=$ac_save_LIBS
7319 # We can link X programs with no special library path.
7320 ac_x_libraries=
7321 else
7322   LIBS=$ac_save_LIBS
7323 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7324 do
7325   # Don't even attempt the hair of trying to link an X program!
7326   for ac_extension in a so sl dylib la dll; do
7327     if test -r "$ac_dir/libX11.$ac_extension"; then
7328       ac_x_libraries=$ac_dir
7329       break 2
7330     fi
7331   done
7332 done
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext \
7335     conftest$ac_exeext conftest.$ac_ext
7336 fi # $ac_x_libraries = no
7337
7338 case $ac_x_includes,$ac_x_libraries in #(
7339   no,* | *,no | *\'*)
7340     # Didn't find X, or a directory has "'" in its name.
7341     ac_cv_have_x="have_x=no";; #(
7342   *)
7343     # Record where we found X for the cache.
7344     ac_cv_have_x="have_x=yes\
7345         ac_x_includes='$ac_x_includes'\
7346         ac_x_libraries='$ac_x_libraries'"
7347 esac
7348 fi
7349 ;; #(
7350     *) have_x=yes;;
7351   esac
7352   eval "$ac_cv_have_x"
7353 fi # $with_x != no
7354
7355 if test "$have_x" != yes; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7357 $as_echo "$have_x" >&6; }
7358   no_x=yes
7359 else
7360   # If each of the values was on the command line, it overrides each guess.
7361   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7362   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7363   # Update the cache value to reflect the command line values.
7364   ac_cv_have_x="have_x=yes\
7365         ac_x_includes='$x_includes'\
7366         ac_x_libraries='$x_libraries'"
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7368 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7369 fi
7370
7371 if test "$no_x" = yes; then
7372   # Not all programs may use this symbol, but it does not hurt to define it.
7373
7374 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7375
7376   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7377 else
7378   if test -n "$x_includes"; then
7379     X_CFLAGS="$X_CFLAGS -I$x_includes"
7380   fi
7381
7382   # It would also be nice to do this for all -L options, not just this one.
7383   if test -n "$x_libraries"; then
7384     X_LIBS="$X_LIBS -L$x_libraries"
7385     # For Solaris; some versions of Sun CC require a space after -R and
7386     # others require no space.  Words are not sufficient . . . .
7387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7388 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7389     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7390     ac_xsave_c_werror_flag=$ac_c_werror_flag
7391     ac_c_werror_flag=yes
7392     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395 int
7396 main ()
7397 {
7398
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406        X_LIBS="$X_LIBS -R$x_libraries"
7407 else
7408   LIBS="$ac_xsave_LIBS -R $x_libraries"
7409        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h.  */
7411
7412 int
7413 main ()
7414 {
7415
7416   ;
7417   return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"; then :
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7422 $as_echo "yes" >&6; }
7423           X_LIBS="$X_LIBS -R $x_libraries"
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7426 $as_echo "neither works" >&6; }
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429     conftest$ac_exeext conftest.$ac_ext
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext \
7432     conftest$ac_exeext conftest.$ac_ext
7433     ac_c_werror_flag=$ac_xsave_c_werror_flag
7434     LIBS=$ac_xsave_LIBS
7435   fi
7436
7437   # Check for system-dependent libraries X programs must link with.
7438   # Do this before checking for the system-independent R6 libraries
7439   # (-lICE), since we may need -lsocket or whatever for X linking.
7440
7441   if test "$ISC" = yes; then
7442     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7443   else
7444     # Martyn Johnson says this is needed for Ultrix, if the X
7445     # libraries were built with DECnet support.  And Karl Berry says
7446     # the Alpha needs dnet_stub (dnet does not exist).
7447     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h.  */
7450
7451 /* Override any GCC internal prototype to avoid an error.
7452    Use char because int might match the return type of a GCC
7453    builtin and then its argument prototype would still apply.  */
7454 #ifdef __cplusplus
7455 extern "C"
7456 #endif
7457 char XOpenDisplay ();
7458 int
7459 main ()
7460 {
7461 return XOpenDisplay ();
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467
7468 else
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7470 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   ac_check_lib_save_LIBS=$LIBS
7475 LIBS="-ldnet  $LIBS"
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h.  */
7478
7479 /* Override any GCC internal prototype to avoid an error.
7480    Use char because int might match the return type of a GCC
7481    builtin and then its argument prototype would still apply.  */
7482 #ifdef __cplusplus
7483 extern "C"
7484 #endif
7485 char dnet_ntoa ();
7486 int
7487 main ()
7488 {
7489 return dnet_ntoa ();
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495   ac_cv_lib_dnet_dnet_ntoa=yes
7496 else
7497   ac_cv_lib_dnet_dnet_ntoa=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext \
7500     conftest$ac_exeext conftest.$ac_ext
7501 LIBS=$ac_check_lib_save_LIBS
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7504 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7505 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7506   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7507 fi
7508
7509     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7510       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7511 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7512 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   ac_check_lib_save_LIBS=$LIBS
7516 LIBS="-ldnet_stub  $LIBS"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h.  */
7519
7520 /* Override any GCC internal prototype to avoid an error.
7521    Use char because int might match the return type of a GCC
7522    builtin and then its argument prototype would still apply.  */
7523 #ifdef __cplusplus
7524 extern "C"
7525 #endif
7526 char dnet_ntoa ();
7527 int
7528 main ()
7529 {
7530 return dnet_ntoa ();
7531   ;
7532   return 0;
7533 }
7534 _ACEOF
7535 if ac_fn_c_try_link "$LINENO"; then :
7536   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7537 else
7538   ac_cv_lib_dnet_stub_dnet_ntoa=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext \
7541     conftest$ac_exeext conftest.$ac_ext
7542 LIBS=$ac_check_lib_save_LIBS
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7545 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7546 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7547   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7548 fi
7549
7550     fi
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext \
7553     conftest$ac_exeext conftest.$ac_ext
7554     LIBS="$ac_xsave_LIBS"
7555
7556     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7557     # to get the SysV transport functions.
7558     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7559     # needs -lnsl.
7560     # The nsl library prevents programs from opening the X display
7561     # on Irix 5.2, according to T.E. Dickey.
7562     # The functions gethostbyname, getservbyname, and inet_addr are
7563     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7564     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7565 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7566
7567 fi
7568
7569     if test $ac_cv_func_gethostbyname = no; then
7570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7571 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7572 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lnsl  $LIBS"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h.  */
7579
7580 /* Override any GCC internal prototype to avoid an error.
7581    Use char because int might match the return type of a GCC
7582    builtin and then its argument prototype would still apply.  */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 char gethostbyname ();
7587 int
7588 main ()
7589 {
7590 return gethostbyname ();
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596   ac_cv_lib_nsl_gethostbyname=yes
7597 else
7598   ac_cv_lib_nsl_gethostbyname=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601     conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7605 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7606 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7607   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7608 fi
7609
7610       if test $ac_cv_lib_nsl_gethostbyname = no; then
7611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7612 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7613 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-lbsd  $LIBS"
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620
7621 /* Override any GCC internal prototype to avoid an error.
7622    Use char because int might match the return type of a GCC
7623    builtin and then its argument prototype would still apply.  */
7624 #ifdef __cplusplus
7625 extern "C"
7626 #endif
7627 char gethostbyname ();
7628 int
7629 main ()
7630 {
7631 return gethostbyname ();
7632   ;
7633   return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_link "$LINENO"; then :
7637   ac_cv_lib_bsd_gethostbyname=yes
7638 else
7639   ac_cv_lib_bsd_gethostbyname=no
7640 fi
7641 rm -f core conftest.err conftest.$ac_objext \
7642     conftest$ac_exeext conftest.$ac_ext
7643 LIBS=$ac_check_lib_save_LIBS
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7646 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7647 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7648   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7649 fi
7650
7651       fi
7652     fi
7653
7654     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7655     # socket/setsockopt and other routines are undefined under SCO ODT
7656     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7657     # on later versions), says Simon Leinen: it contains gethostby*
7658     # variants that don't use the name server (or something).  -lsocket
7659     # must be given before -lnsl if both are needed.  We assume that
7660     # if connect needs -lnsl, so does gethostbyname.
7661     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7662 if test "x$ac_cv_func_connect" = x""yes; then :
7663
7664 fi
7665
7666     if test $ac_cv_func_connect = no; then
7667       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7668 $as_echo_n "checking for connect in -lsocket... " >&6; }
7669 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   ac_check_lib_save_LIBS=$LIBS
7673 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h.  */
7676
7677 /* Override any GCC internal prototype to avoid an error.
7678    Use char because int might match the return type of a GCC
7679    builtin and then its argument prototype would still apply.  */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 char connect ();
7684 int
7685 main ()
7686 {
7687 return connect ();
7688   ;
7689   return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_link "$LINENO"; then :
7693   ac_cv_lib_socket_connect=yes
7694 else
7695   ac_cv_lib_socket_connect=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext \
7698     conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7702 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7703 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7704   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7705 fi
7706
7707     fi
7708
7709     # Guillermo Gomez says -lposix is necessary on A/UX.
7710     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7711 if test "x$ac_cv_func_remove" = x""yes; then :
7712
7713 fi
7714
7715     if test $ac_cv_func_remove = no; then
7716       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7717 $as_echo_n "checking for remove in -lposix... " >&6; }
7718 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   ac_check_lib_save_LIBS=$LIBS
7722 LIBS="-lposix  $LIBS"
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725
7726 /* Override any GCC internal prototype to avoid an error.
7727    Use char because int might match the return type of a GCC
7728    builtin and then its argument prototype would still apply.  */
7729 #ifdef __cplusplus
7730 extern "C"
7731 #endif
7732 char remove ();
7733 int
7734 main ()
7735 {
7736 return remove ();
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 if ac_fn_c_try_link "$LINENO"; then :
7742   ac_cv_lib_posix_remove=yes
7743 else
7744   ac_cv_lib_posix_remove=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext \
7747     conftest$ac_exeext conftest.$ac_ext
7748 LIBS=$ac_check_lib_save_LIBS
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7751 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7752 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7753   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7754 fi
7755
7756     fi
7757
7758     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7759     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7760 if test "x$ac_cv_func_shmat" = x""yes; then :
7761
7762 fi
7763
7764     if test $ac_cv_func_shmat = no; then
7765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7766 $as_echo_n "checking for shmat in -lipc... " >&6; }
7767 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   ac_check_lib_save_LIBS=$LIBS
7771 LIBS="-lipc  $LIBS"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h.  */
7774
7775 /* Override any GCC internal prototype to avoid an error.
7776    Use char because int might match the return type of a GCC
7777    builtin and then its argument prototype would still apply.  */
7778 #ifdef __cplusplus
7779 extern "C"
7780 #endif
7781 char shmat ();
7782 int
7783 main ()
7784 {
7785 return shmat ();
7786   ;
7787   return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791   ac_cv_lib_ipc_shmat=yes
7792 else
7793   ac_cv_lib_ipc_shmat=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext \
7796     conftest$ac_exeext conftest.$ac_ext
7797 LIBS=$ac_check_lib_save_LIBS
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7800 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7801 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7802   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7803 fi
7804
7805     fi
7806   fi
7807
7808   # Check for libraries that X11R6 Xt/Xaw programs need.
7809   ac_save_LDFLAGS=$LDFLAGS
7810   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7811   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7812   # check for ICE first), but we must link in the order -lSM -lICE or
7813   # we get undefined symbols.  So assume we have SM if we have ICE.
7814   # These have to be linked with before -lX11, unlike the other
7815   # libraries we check for below, so use a different variable.
7816   # John Interrante, Karl Berry
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7818 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7819 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7820   $as_echo_n "(cached) " >&6
7821 else
7822   ac_check_lib_save_LIBS=$LIBS
7823 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h.  */
7826
7827 /* Override any GCC internal prototype to avoid an error.
7828    Use char because int might match the return type of a GCC
7829    builtin and then its argument prototype would still apply.  */
7830 #ifdef __cplusplus
7831 extern "C"
7832 #endif
7833 char IceConnectionNumber ();
7834 int
7835 main ()
7836 {
7837 return IceConnectionNumber ();
7838   ;
7839   return 0;
7840 }
7841 _ACEOF
7842 if ac_fn_c_try_link "$LINENO"; then :
7843   ac_cv_lib_ICE_IceConnectionNumber=yes
7844 else
7845   ac_cv_lib_ICE_IceConnectionNumber=no
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext \
7848     conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7852 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7853 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7854   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7855 fi
7856
7857   LDFLAGS=$ac_save_LDFLAGS
7858
7859 fi
7860
7861
7862 if test "$have_x" = "yes"
7863 then
7864     XLIB="-lX11"
7865     ac_save_CPPFLAGS="$CPPFLAGS"
7866     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7867
7868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7869 $as_echo_n "checking for -lX11... " >&6; }
7870 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   ac_check_soname_save_LIBS=$LIBS
7874 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h.  */
7877
7878 /* Override any GCC internal prototype to avoid an error.
7879    Use char because int might match the return type of a GCC
7880    builtin and then its argument prototype would still apply.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char XCreateWindow ();
7885 int
7886 main ()
7887 {
7888 return XCreateWindow ();
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_link "$LINENO"; then :
7894   case "$LIBEXT" in
7895     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7896     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'` ;;
7897     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7898   esac
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901     conftest$ac_exeext conftest.$ac_ext
7902   LIBS=$ac_check_soname_save_LIBS
7903 fi
7904 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7906 $as_echo "not found" >&6; }
7907
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7910 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7914 _ACEOF
7915
7916
7917 fi
7918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7919 $as_echo_n "checking for -lXext... " >&6; }
7920 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   ac_check_soname_save_LIBS=$LIBS
7924 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h.  */
7927
7928 /* Override any GCC internal prototype to avoid an error.
7929    Use char because int might match the return type of a GCC
7930    builtin and then its argument prototype would still apply.  */
7931 #ifdef __cplusplus
7932 extern "C"
7933 #endif
7934 char XextCreateExtension ();
7935 int
7936 main ()
7937 {
7938 return XextCreateExtension ();
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944   case "$LIBEXT" in
7945     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7946     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'` ;;
7947     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7948   esac
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext \
7951     conftest$ac_exeext conftest.$ac_ext
7952   LIBS=$ac_check_soname_save_LIBS
7953 fi
7954 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7956 $as_echo "not found" >&6; }
7957
7958 else
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7960 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7964 _ACEOF
7965
7966        XLIB="-lXext $XLIB"
7967 fi
7968
7969         for ac_header in X11/Xlib.h \
7970                       X11/XKBlib.h \
7971                       X11/Xutil.h \
7972                       X11/Xcursor/Xcursor.h \
7973                       X11/extensions/shape.h \
7974                       X11/extensions/XInput.h \
7975                       X11/extensions/XShm.h \
7976                       X11/extensions/Xcomposite.h \
7977                       X11/extensions/Xinerama.h \
7978                       X11/extensions/Xrandr.h \
7979                       X11/extensions/Xrender.h \
7980                       X11/extensions/xf86vmode.h \
7981                       X11/extensions/xf86vmproto.h
7982 do :
7983   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7985 # include <X11/Xlib.h>
7986 #endif
7987 #ifdef HAVE_X11_XUTIL_H
7988 # include <X11/Xutil.h>
7989 #endif
7990 "
7991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7992   cat >>confdefs.h <<_ACEOF
7993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994 _ACEOF
7995
7996 fi
7997
7998 done
7999
8000
8001                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8002         then
8003               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8004 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8005 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8006   $as_echo_n "(cached) " >&6
8007 else
8008   ac_check_lib_save_LIBS=$LIBS
8009 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012
8013 /* Override any GCC internal prototype to avoid an error.
8014    Use char because int might match the return type of a GCC
8015    builtin and then its argument prototype would still apply.  */
8016 #ifdef __cplusplus
8017 extern "C"
8018 #endif
8019 char XkbQueryExtension ();
8020 int
8021 main ()
8022 {
8023 return XkbQueryExtension ();
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029   ac_cv_lib_X11_XkbQueryExtension=yes
8030 else
8031   ac_cv_lib_X11_XkbQueryExtension=no
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034     conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8038 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8039 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8040
8041 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8042
8043 fi
8044
8045         fi
8046
8047                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8048         then
8049             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8050 $as_echo_n "checking for -lXcursor... " >&6; }
8051 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   ac_check_soname_save_LIBS=$LIBS
8055 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060    Use char because int might match the return type of a GCC
8061    builtin and then its argument prototype would still apply.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char XcursorImageLoadCursor ();
8066 int
8067 main ()
8068 {
8069 return XcursorImageLoadCursor ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075   case "$LIBEXT" in
8076     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8077     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'` ;;
8078     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8079   esac
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext \
8082     conftest$ac_exeext conftest.$ac_ext
8083   LIBS=$ac_check_soname_save_LIBS
8084 fi
8085 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8087 $as_echo "not found" >&6; }
8088
8089 else
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8091 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8092
8093 cat >>confdefs.h <<_ACEOF
8094 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8095 _ACEOF
8096
8097
8098 fi
8099         fi
8100         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8101   case "x$with_xcursor" in
8102   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8103   xno) ;;
8104   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8105 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8106 esac
8107 fi
8108
8109                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8110         then
8111             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8112 $as_echo_n "checking for -lXi... " >&6; }
8113 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   ac_check_soname_save_LIBS=$LIBS
8117 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h.  */
8120
8121 /* Override any GCC internal prototype to avoid an error.
8122    Use char because int might match the return type of a GCC
8123    builtin and then its argument prototype would still apply.  */
8124 #ifdef __cplusplus
8125 extern "C"
8126 #endif
8127 char XOpenDevice ();
8128 int
8129 main ()
8130 {
8131 return XOpenDevice ();
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_link "$LINENO"; then :
8137   case "$LIBEXT" in
8138     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8139     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'` ;;
8140     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8141   esac
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144     conftest$ac_exeext conftest.$ac_ext
8145   LIBS=$ac_check_soname_save_LIBS
8146 fi
8147 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8149 $as_echo "not found" >&6; }
8150
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8153 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8154
8155 cat >>confdefs.h <<_ACEOF
8156 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8157 _ACEOF
8158
8159
8160 fi
8161         fi
8162         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8163   case "x$with_xinput" in
8164   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8165   xno) ;;
8166   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8167 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8168 esac
8169 fi
8170
8171                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8172         then
8173               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8174 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8175 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   ac_check_lib_save_LIBS=$LIBS
8179 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h.  */
8182
8183 /* Override any GCC internal prototype to avoid an error.
8184    Use char because int might match the return type of a GCC
8185    builtin and then its argument prototype would still apply.  */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 char XShmQueryExtension ();
8190 int
8191 main ()
8192 {
8193 return XShmQueryExtension ();
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_link "$LINENO"; then :
8199   ac_cv_lib_Xext_XShmQueryExtension=yes
8200 else
8201   ac_cv_lib_Xext_XShmQueryExtension=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext \
8204     conftest$ac_exeext conftest.$ac_ext
8205 LIBS=$ac_check_lib_save_LIBS
8206 fi
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8208 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8209 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8210
8211 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8212
8213 fi
8214
8215         fi
8216         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8217   case "x$with_xshm" in
8218   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8219   xno) ;;
8220   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8221 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8222 esac
8223 fi
8224
8225                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8226         then
8227               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8228 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8229 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h.  */
8236
8237 /* Override any GCC internal prototype to avoid an error.
8238    Use char because int might match the return type of a GCC
8239    builtin and then its argument prototype would still apply.  */
8240 #ifdef __cplusplus
8241 extern "C"
8242 #endif
8243 char XShapeQueryExtension ();
8244 int
8245 main ()
8246 {
8247 return XShapeQueryExtension ();
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253   ac_cv_lib_Xext_XShapeQueryExtension=yes
8254 else
8255   ac_cv_lib_Xext_XShapeQueryExtension=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext \
8258     conftest$ac_exeext conftest.$ac_ext
8259 LIBS=$ac_check_lib_save_LIBS
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8262 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8263 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8264
8265 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8266
8267 fi
8268
8269         fi
8270         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8271   case "x$with_xshape" in
8272   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8273   xno) ;;
8274   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8275 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8276 esac
8277 fi
8278
8279                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8280         then
8281             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8282 $as_echo_n "checking for -lXxf86vm... " >&6; }
8283 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   ac_check_soname_save_LIBS=$LIBS
8287 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h.  */
8290
8291 /* Override any GCC internal prototype to avoid an error.
8292    Use char because int might match the return type of a GCC
8293    builtin and then its argument prototype would still apply.  */
8294 #ifdef __cplusplus
8295 extern "C"
8296 #endif
8297 char XF86VidModeQueryExtension ();
8298 int
8299 main ()
8300 {
8301 return XF86VidModeQueryExtension ();
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307   case "$LIBEXT" in
8308     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8309     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'` ;;
8310     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8311   esac
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext \
8314     conftest$ac_exeext conftest.$ac_ext
8315   LIBS=$ac_check_soname_save_LIBS
8316 fi
8317 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8319 $as_echo "not found" >&6; }
8320
8321 else
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8323 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8324
8325 cat >>confdefs.h <<_ACEOF
8326 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8327 _ACEOF
8328
8329
8330 fi
8331         fi
8332         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8333   case "x$with_xxf86vm" in
8334   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8335   xno) ;;
8336   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8337 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8338 esac
8339 fi
8340
8341                 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"
8342         then
8343             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8344 $as_echo_n "checking for -lXrender... " >&6; }
8345 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   ac_check_soname_save_LIBS=$LIBS
8349 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h.  */
8352
8353 /* Override any GCC internal prototype to avoid an error.
8354    Use char because int might match the return type of a GCC
8355    builtin and then its argument prototype would still apply.  */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 char XRenderQueryExtension ();
8360 int
8361 main ()
8362 {
8363 return XRenderQueryExtension ();
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369   case "$LIBEXT" in
8370     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8371     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'` ;;
8372     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8373   esac
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext \
8376     conftest$ac_exeext conftest.$ac_ext
8377   LIBS=$ac_check_soname_save_LIBS
8378 fi
8379 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8381 $as_echo "not found" >&6; }
8382
8383 else
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8385 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8386
8387 cat >>confdefs.h <<_ACEOF
8388 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8389 _ACEOF
8390
8391        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8392 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8393 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   ac_check_lib_save_LIBS=$LIBS
8397 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h.  */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402    Use char because int might match the return type of a GCC
8403    builtin and then its argument prototype would still apply.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char XRenderSetPictureTransform ();
8408 int
8409 main ()
8410 {
8411 return XRenderSetPictureTransform ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8418 else
8419   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext \
8422     conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8426 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8427 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8428
8429 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8430
8431 fi
8432
8433 fi
8434
8435         fi
8436         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8437   case "x$with_xrender" in
8438   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8439   xno) ;;
8440   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8441 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8442 esac
8443 fi
8444
8445                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8446         then
8447                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h.  */
8449 #include <X11/Xlib.h>
8450 #include <X11/extensions/Xrandr.h>
8451 int
8452 main ()
8453 {
8454 static typeof(XRRSetScreenConfigAndRate) * func;
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8461 $as_echo_n "checking for -lXrandr... " >&6; }
8462 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   ac_check_soname_save_LIBS=$LIBS
8466 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h.  */
8469
8470 /* Override any GCC internal prototype to avoid an error.
8471    Use char because int might match the return type of a GCC
8472    builtin and then its argument prototype would still apply.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 char XRRQueryExtension ();
8477 int
8478 main ()
8479 {
8480 return XRRQueryExtension ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"; then :
8486   case "$LIBEXT" in
8487     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8488     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'` ;;
8489     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8490   esac
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext \
8493     conftest$ac_exeext conftest.$ac_ext
8494   LIBS=$ac_check_soname_save_LIBS
8495 fi
8496 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8498 $as_echo "not found" >&6; }
8499
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8502 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8506 _ACEOF
8507
8508
8509 fi
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512         fi
8513         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8514   case "x$with_xrandr" in
8515   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8516   xno) ;;
8517   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8518 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8519 esac
8520 fi
8521
8522                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8523         then
8524                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 #include <X11/Xlib.h>
8527 #include <X11/extensions/Xinerama.h>
8528 int
8529 main ()
8530 {
8531 static typeof(XineramaQueryScreens) * func;
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8538 $as_echo_n "checking for -lXinerama... " >&6; }
8539 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8540   $as_echo_n "(cached) " >&6
8541 else
8542   ac_check_soname_save_LIBS=$LIBS
8543 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546
8547 /* Override any GCC internal prototype to avoid an error.
8548    Use char because int might match the return type of a GCC
8549    builtin and then its argument prototype would still apply.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 char XineramaQueryScreens ();
8554 int
8555 main ()
8556 {
8557 return XineramaQueryScreens ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_link "$LINENO"; then :
8563   case "$LIBEXT" in
8564     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8565     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'` ;;
8566     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8567   esac
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570     conftest$ac_exeext conftest.$ac_ext
8571   LIBS=$ac_check_soname_save_LIBS
8572 fi
8573 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8575 $as_echo "not found" >&6; }
8576
8577 else
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8579 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8580
8581 cat >>confdefs.h <<_ACEOF
8582 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8583 _ACEOF
8584
8585
8586 fi
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589         fi
8590         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8591   case "x$with_xinerama" in
8592   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8593   xno) ;;
8594   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8595 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8596 esac
8597 fi
8598
8599                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8600         then
8601             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8602 $as_echo_n "checking for -lXcomposite... " >&6; }
8603 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8604   $as_echo_n "(cached) " >&6
8605 else
8606   ac_check_soname_save_LIBS=$LIBS
8607 LIBS="-lXcomposite $X_LIBS $XLIB $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 XCompositeRedirectWindow ();
8618 int
8619 main ()
8620 {
8621 return XCompositeRedirectWindow ();
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_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8629     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'` ;;
8630     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$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_Xcomposite" = "x"; then :
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8639 $as_echo "not found" >&6; }
8640
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8643 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8644
8645 cat >>confdefs.h <<_ACEOF
8646 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8647 _ACEOF
8648
8649
8650 fi
8651         fi
8652         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8653   case "x$with_xcomposite" in
8654   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8655   xno) ;;
8656   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8657 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8658 esac
8659 fi
8660
8661                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8662 #include <X11/Xlib.h>
8663 #endif
8664 "
8665 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8666
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_XICCALLBACK_CALLBACK 1
8669 _ACEOF
8670
8671
8672 fi
8673
8674
8675
8676         opengl_msg=""
8677     if test "x$with_opengl" != "xno"
8678     then
8679         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8680 do :
8681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8683 # include <GL/glx.h>
8684 #endif
8685 "
8686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8687   cat >>confdefs.h <<_ACEOF
8688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8689 _ACEOF
8690
8691 fi
8692
8693 done
8694
8695         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8696         then
8697                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8698 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8699 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h.  */
8704 #include <GL/gl.h>
8705 int
8706 main ()
8707 {
8708 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 if ac_fn_c_try_compile "$LINENO"; then :
8714   wine_cv_opengl_header_version_OK="yes"
8715 else
8716   wine_cv_opengl_header_version_OK="no"
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8721 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8722
8723             if test "$wine_cv_opengl_header_version_OK" = "yes"
8724             then
8725                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8726 $as_echo_n "checking for -lGL... " >&6; }
8727 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   ac_check_soname_save_LIBS=$LIBS
8731 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h.  */
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736    Use char because int might match the return type of a GCC
8737    builtin and then its argument prototype would still apply.  */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char glXCreateContext ();
8742 int
8743 main ()
8744 {
8745 return glXCreateContext ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"; then :
8751   case "$LIBEXT" in
8752     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8753     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'` ;;
8754     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8755   esac
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758     conftest$ac_exeext conftest.$ac_ext
8759   LIBS=$ac_check_soname_save_LIBS
8760 fi
8761 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8763 $as_echo "not found" >&6; }
8764        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8765 $as_echo_n "checking for -lGL... " >&6; }
8766 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   ac_check_soname_save_LIBS=$LIBS
8770 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"
8771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h.  */
8773
8774 /* Override any GCC internal prototype to avoid an error.
8775    Use char because int might match the return type of a GCC
8776    builtin and then its argument prototype would still apply.  */
8777 #ifdef __cplusplus
8778 extern "C"
8779 #endif
8780 char glXCreateContext ();
8781 int
8782 main ()
8783 {
8784 return glXCreateContext ();
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"; then :
8790   case "$LIBEXT" in
8791     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8792     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'` ;;
8793     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8794   esac
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext \
8797     conftest$ac_exeext conftest.$ac_ext
8798   LIBS=$ac_check_soname_save_LIBS
8799 fi
8800 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8802 $as_echo "not found" >&6; }
8803        if test -f /usr/X11R6/lib/libGL.a
8804                                     then
8805                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8806 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8807                                     else
8808                                         opengl_msg="No OpenGL library found on this system."
8809                                     fi
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8812 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8816 _ACEOF
8817
8818        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"
8819
8820 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8821
8822 fi
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8825 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8826
8827 cat >>confdefs.h <<_ACEOF
8828 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8829 _ACEOF
8830
8831        OPENGL_LIBS="-lGL"
8832
8833 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8834
8835 fi
8836                  if test "$ac_cv_header_GL_glu_h" = "yes"
8837                  then
8838                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8839 $as_echo_n "checking for -lGLU... " >&6; }
8840 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   ac_check_soname_save_LIBS=$LIBS
8844 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847
8848 /* Override any GCC internal prototype to avoid an error.
8849    Use char because int might match the return type of a GCC
8850    builtin and then its argument prototype would still apply.  */
8851 #ifdef __cplusplus
8852 extern "C"
8853 #endif
8854 char gluLookAt ();
8855 int
8856 main ()
8857 {
8858 return gluLookAt ();
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864   case "$LIBEXT" in
8865     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8866     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'` ;;
8867     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8868   esac
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext \
8871     conftest$ac_exeext conftest.$ac_ext
8872   LIBS=$ac_check_soname_save_LIBS
8873 fi
8874 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8876 $as_echo "not found" >&6; }
8877
8878 else
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8880 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8881
8882 cat >>confdefs.h <<_ACEOF
8883 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8884 _ACEOF
8885
8886
8887 fi
8888                  fi
8889                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8890   case "x$with_glu" in
8891   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8892   xno) ;;
8893   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8894 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8895 esac
8896 fi
8897              else
8898                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8899              fi
8900          else
8901              opengl_msg="OpenGL development headers not found."
8902          fi
8903          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8904          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8905     else
8906          enable_opengl32=${enable_opengl32:-no}
8907          enable_glu32=${enable_glu32:-no}
8908     fi
8909     if test -n "$opengl_msg"; then :
8910   case "x$with_opengl" in
8911   x)   as_fn_append wine_warnings "|$opengl_msg
8912 OpenGL and Direct3D won't be supported." ;;
8913   xno) ;;
8914   *)   as_fn_error $? "$opengl_msg
8915 OpenGL and Direct3D won't be supported.
8916 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
8917 esac
8918 fi
8919
8920         NASLIBS=""
8921
8922     for ac_header in audio/audiolib.h
8923 do :
8924   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8925 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8926   cat >>confdefs.h <<_ACEOF
8927 #define HAVE_AUDIO_AUDIOLIB_H 1
8928 _ACEOF
8929  for ac_header in audio/soundlib.h
8930 do :
8931   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8932 "
8933 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8934   cat >>confdefs.h <<_ACEOF
8935 #define HAVE_AUDIO_SOUNDLIB_H 1
8936 _ACEOF
8937
8938 fi
8939
8940 done
8941
8942           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8943 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8944 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   ac_check_lib_save_LIBS=$LIBS
8948 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h.  */
8951
8952 /* Override any GCC internal prototype to avoid an error.
8953    Use char because int might match the return type of a GCC
8954    builtin and then its argument prototype would still apply.  */
8955 #ifdef __cplusplus
8956 extern "C"
8957 #endif
8958 char AuCreateFlow ();
8959 int
8960 main ()
8961 {
8962 return AuCreateFlow ();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"; then :
8968   ac_cv_lib_audio_AuCreateFlow=yes
8969 else
8970   ac_cv_lib_audio_AuCreateFlow=no
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext \
8973     conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8977 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8978 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8979
8980 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8981
8982                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8983 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8984 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-lXau $X_LIBS $LIBS"
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h.  */
8991
8992 /* Override any GCC internal prototype to avoid an error.
8993    Use char because int might match the return type of a GCC
8994    builtin and then its argument prototype would still apply.  */
8995 #ifdef __cplusplus
8996 extern "C"
8997 #endif
8998 char XauGetBestAuthByAddr ();
8999 int
9000 main ()
9001 {
9002 return XauGetBestAuthByAddr ();
9003   ;
9004   return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"; then :
9008   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9009 else
9010   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext \
9013     conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9017 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9018 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9019   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9020 else
9021   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9022 fi
9023
9024
9025 fi
9026
9027 fi
9028
9029 done
9030
9031
9032     CPPFLAGS="$ac_save_CPPFLAGS"
9033 else
9034     XLIB=""
9035     X_CFLAGS=""
9036     X_LIBS=""
9037     enable_winex11_drv=${enable_winex11_drv:-no}
9038     enable_opengl32=${enable_opengl32:-no}
9039     enable_glu32=${enable_glu32:-no}
9040 fi
9041 if test "x$XLIB" = "x"; then :
9042   case "x$with_x" in
9043   xno) ;;
9044   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9045 without X support, which probably isn't what you want. You will need
9046 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9047 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9048 esac
9049 fi
9050
9051
9052 XML2LIBS=""
9053
9054 XML2INCL=""
9055
9056 XSLTINCL=""
9057
9058 if test "x$with_xml" != "xno"
9059 then
9060     ac_save_CPPFLAGS="$CPPFLAGS"
9061     if test "$PKG_CONFIG" != "false"
9062     then
9063         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9064         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9065     else
9066         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9067         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9068     fi
9069     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9070     for ac_header in libxml/parser.h
9071 do :
9072   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9073 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9074   cat >>confdefs.h <<_ACEOF
9075 #define HAVE_LIBXML_PARSER_H 1
9076 _ACEOF
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9078 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9079 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9080   $as_echo_n "(cached) " >&6
9081 else
9082   ac_check_lib_save_LIBS=$LIBS
9083 LIBS="-lxml2 $ac_xml_libs $LIBS"
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086
9087 /* Override any GCC internal prototype to avoid an error.
9088    Use char because int might match the return type of a GCC
9089    builtin and then its argument prototype would still apply.  */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 char xmlParseMemory ();
9094 int
9095 main ()
9096 {
9097 return xmlParseMemory ();
9098   ;
9099   return 0;
9100 }
9101 _ACEOF
9102 if ac_fn_c_try_link "$LINENO"; then :
9103   ac_cv_lib_xml2_xmlParseMemory=yes
9104 else
9105   ac_cv_lib_xml2_xmlParseMemory=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext \
9108     conftest$ac_exeext conftest.$ac_ext
9109 LIBS=$ac_check_lib_save_LIBS
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9112 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9113 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9114
9115 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9116
9117                  XML2LIBS="$ac_xml_libs"
9118                  XML2INCL="$ac_xml_cflags"
9119 fi
9120
9121              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9122 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9123 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-lxml2 $ac_xml_libs $LIBS"
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h.  */
9130
9131 /* Override any GCC internal prototype to avoid an error.
9132    Use char because int might match the return type of a GCC
9133    builtin and then its argument prototype would still apply.  */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 char xmlReadMemory ();
9138 int
9139 main ()
9140 {
9141 return xmlReadMemory ();
9142   ;
9143   return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147   ac_cv_lib_xml2_xmlReadMemory=yes
9148 else
9149   ac_cv_lib_xml2_xmlReadMemory=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext \
9152     conftest$ac_exeext conftest.$ac_ext
9153 LIBS=$ac_check_lib_save_LIBS
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9156 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9157 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9158
9159 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9160
9161 fi
9162
9163              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9164 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9165 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9166   $as_echo_n "(cached) " >&6
9167 else
9168   ac_check_lib_save_LIBS=$LIBS
9169 LIBS="-lxml2 $ac_xml_libs $LIBS"
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h.  */
9172
9173 /* Override any GCC internal prototype to avoid an error.
9174    Use char because int might match the return type of a GCC
9175    builtin and then its argument prototype would still apply.  */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 char xmlNewDocPI ();
9180 int
9181 main ()
9182 {
9183 return xmlNewDocPI ();
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_link "$LINENO"; then :
9189   ac_cv_lib_xml2_xmlNewDocPI=yes
9190 else
9191   ac_cv_lib_xml2_xmlNewDocPI=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext \
9194     conftest$ac_exeext conftest.$ac_ext
9195 LIBS=$ac_check_lib_save_LIBS
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9198 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9199 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9200
9201 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9202
9203 fi
9204
9205
9206 fi
9207
9208 done
9209
9210     CPPFLAGS="$ac_save_CPPFLAGS"
9211 fi
9212 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9213   case "x$with_xml" in
9214   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9215   xno) ;;
9216   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9217 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9218 esac
9219 fi
9220
9221 if test "x$with_xslt" != "xno"
9222 then
9223     if test "$PKG_CONFIG" != "false"
9224     then
9225         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9226         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9227     else
9228         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9229         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9230     fi
9231     ac_save_CPPFLAGS="$CPPFLAGS"
9232     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9233     for ac_header in libxslt/pattern.h libxslt/transform.h
9234 do :
9235   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9237 # include <libxslt/pattern.h>
9238 #endif
9239 "
9240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9241   cat >>confdefs.h <<_ACEOF
9242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9243 _ACEOF
9244
9245 fi
9246
9247 done
9248
9249     CPPFLAGS="$ac_save_CPPFLAGS"
9250     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9251     then
9252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9253 $as_echo_n "checking for -lxslt... " >&6; }
9254 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9255   $as_echo_n "(cached) " >&6
9256 else
9257   ac_check_soname_save_LIBS=$LIBS
9258 LIBS="-lxslt $ac_xslt_libs $LIBS"
9259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h.  */
9261
9262 /* Override any GCC internal prototype to avoid an error.
9263    Use char because int might match the return type of a GCC
9264    builtin and then its argument prototype would still apply.  */
9265 #ifdef __cplusplus
9266 extern "C"
9267 #endif
9268 char xsltCompilePattern ();
9269 int
9270 main ()
9271 {
9272 return xsltCompilePattern ();
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278   case "$LIBEXT" in
9279     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9280     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'` ;;
9281     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9282   esac
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext \
9285     conftest$ac_exeext conftest.$ac_ext
9286   LIBS=$ac_check_soname_save_LIBS
9287 fi
9288 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9290 $as_echo "not found" >&6; }
9291
9292 else
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9294 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9298 _ACEOF
9299
9300        XSLTINCL="$ac_xslt_cflags"
9301 fi
9302     fi
9303 fi
9304 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9305   case "x$with_xslt" in
9306   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9307   xno) ;;
9308   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9309 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9310 esac
9311 fi
9312
9313 HALINCL=""
9314
9315 if test "x$with_hal" != "xno"
9316 then
9317     ac_save_CPPFLAGS="$CPPFLAGS"
9318     if test "$PKG_CONFIG" != "false"
9319     then
9320         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9321         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9322         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9323     fi
9324     for ac_header in dbus/dbus.h hal/libhal.h
9325 do :
9326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9329   cat >>confdefs.h <<_ACEOF
9330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9331 _ACEOF
9332
9333 fi
9334
9335 done
9336
9337     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9338     then
9339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9340 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9341 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   ac_check_lib_save_LIBS=$LIBS
9345 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h.  */
9348
9349 /* Override any GCC internal prototype to avoid an error.
9350    Use char because int might match the return type of a GCC
9351    builtin and then its argument prototype would still apply.  */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 char dbus_connection_close ();
9356 int
9357 main ()
9358 {
9359 return dbus_connection_close ();
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365   ac_cv_lib_dbus_1_dbus_connection_close=yes
9366 else
9367   ac_cv_lib_dbus_1_dbus_connection_close=no
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370     conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9374 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9375 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9377 $as_echo_n "checking for -lhal... " >&6; }
9378 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   ac_check_soname_save_LIBS=$LIBS
9382 LIBS="-lhal $ac_hal_libs $LIBS"
9383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h.  */
9385
9386 /* Override any GCC internal prototype to avoid an error.
9387    Use char because int might match the return type of a GCC
9388    builtin and then its argument prototype would still apply.  */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char libhal_ctx_new ();
9393 int
9394 main ()
9395 {
9396 return libhal_ctx_new ();
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 if ac_fn_c_try_link "$LINENO"; then :
9402   case "$LIBEXT" in
9403     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9404     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'` ;;
9405     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9406   esac
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext \
9409     conftest$ac_exeext conftest.$ac_ext
9410   LIBS=$ac_check_soname_save_LIBS
9411 fi
9412 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9414 $as_echo "not found" >&6; }
9415
9416 else
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9418 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9419
9420 cat >>confdefs.h <<_ACEOF
9421 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9422 _ACEOF
9423
9424        HALINCL="$ac_hal_cflags"
9425 fi
9426 fi
9427
9428     fi
9429     CPPFLAGS="$ac_save_CPPFLAGS"
9430 fi
9431 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9432   case "x$with_hal" in
9433   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9434   xno) ;;
9435   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9436 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9437 esac
9438 fi
9439
9440 if test "x$with_gnutls" != "xno"
9441 then
9442     ac_save_CPPFLAGS="$CPPFLAGS"
9443     if test "$PKG_CONFIG" != "false"
9444     then
9445         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9446         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9447         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9448     fi
9449     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9450 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h.  */
9453 #include <gnutls/gnutls.h>
9454 int
9455 main ()
9456 {
9457 typeof(gnutls_mac_get_key_size) *pfunc;
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9464 $as_echo_n "checking for -lgnutls... " >&6; }
9465 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   ac_check_soname_save_LIBS=$LIBS
9469 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char gnutls_global_init ();
9480 int
9481 main ()
9482 {
9483 return gnutls_global_init ();
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_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9491     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'` ;;
9492     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$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_gnutls" = "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_gnutls" >&5
9505 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9506
9507 cat >>confdefs.h <<_ACEOF
9508 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9509 _ACEOF
9510
9511        GNUTLSINCL="$ac_gnutls_cflags"
9512
9513 fi
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 fi
9517
9518
9519     CPPFLAGS="$ac_save_CPPFLAGS"
9520 fi
9521 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9522   case "x$with_gnutls" in
9523   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9524   xno) ;;
9525   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9526 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9527 esac
9528 fi
9529
9530 CURSESLIBS=""
9531 if test "$ac_cv_header_ncurses_h" = "yes"
9532 then
9533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9534 $as_echo_n "checking for -lncurses... " >&6; }
9535 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   ac_check_soname_save_LIBS=$LIBS
9539 LIBS="-lncurses  $LIBS"
9540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h.  */
9542
9543 /* Override any GCC internal prototype to avoid an error.
9544    Use char because int might match the return type of a GCC
9545    builtin and then its argument prototype would still apply.  */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char waddch ();
9550 int
9551 main ()
9552 {
9553 return waddch ();
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559   case "$LIBEXT" in
9560     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9561     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'` ;;
9562     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9563   esac
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566     conftest$ac_exeext conftest.$ac_ext
9567   LIBS=$ac_check_soname_save_LIBS
9568 fi
9569 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9571 $as_echo "not found" >&6; }
9572
9573 else
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9575 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9576
9577 cat >>confdefs.h <<_ACEOF
9578 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9579 _ACEOF
9580
9581        CURSESLIBS="-lncurses"
9582 fi
9583 elif test "$ac_cv_header_curses_h" = "yes"
9584 then
9585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9586 $as_echo_n "checking for -lcurses... " >&6; }
9587 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   ac_check_soname_save_LIBS=$LIBS
9591 LIBS="-lcurses  $LIBS"
9592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h.  */
9594
9595 /* Override any GCC internal prototype to avoid an error.
9596    Use char because int might match the return type of a GCC
9597    builtin and then its argument prototype would still apply.  */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char waddch ();
9602 int
9603 main ()
9604 {
9605 return waddch ();
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9611   case "$LIBEXT" in
9612     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9613     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'` ;;
9614     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9615   esac
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext \
9618     conftest$ac_exeext conftest.$ac_ext
9619   LIBS=$ac_check_soname_save_LIBS
9620 fi
9621 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9623 $as_echo "not found" >&6; }
9624
9625 else
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9627 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9628
9629 cat >>confdefs.h <<_ACEOF
9630 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9631 _ACEOF
9632
9633        CURSESLIBS="-lcurses"
9634 fi
9635 fi
9636 ac_save_LIBS="$LIBS"
9637 LIBS="$LIBS $CURSESLIBS"
9638 for ac_func in mousemask
9639 do :
9640   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9641 if test "x$ac_cv_func_mousemask" = x""yes; then :
9642   cat >>confdefs.h <<_ACEOF
9643 #define HAVE_MOUSEMASK 1
9644 _ACEOF
9645
9646 fi
9647 done
9648
9649 LIBS="$ac_save_LIBS"
9650 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9651   case "x$with_curses" in
9652   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9653   xno) ;;
9654   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9655 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9656 esac
9657 fi
9658
9659 if test "x$with_sane" != "xno"
9660 then
9661     ac_save_CPPFLAGS="$CPPFLAGS"
9662     # Extract the first word of "sane-config", so it can be a program name with args.
9663 set dummy sane-config; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   if test -n "$sane_devel"; then
9670   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9671 else
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675   IFS=$as_save_IFS
9676   test -z "$as_dir" && as_dir=.
9677     for ac_exec_ext in '' $ac_executable_extensions; do
9678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9679     ac_cv_prog_sane_devel="sane-config"
9680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681     break 2
9682   fi
9683 done
9684   done
9685 IFS=$as_save_IFS
9686
9687   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9688 fi
9689 fi
9690 sane_devel=$ac_cv_prog_sane_devel
9691 if test -n "$sane_devel"; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9693 $as_echo "$sane_devel" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698
9699
9700     if test "$sane_devel" != "no"
9701     then
9702         ac_sane_incl="`$sane_devel --cflags`"
9703         ac_sane_libs="`$sane_devel --ldflags`"
9704         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9705     fi
9706     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9707 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9709 $as_echo_n "checking for -lsane... " >&6; }
9710 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   ac_check_soname_save_LIBS=$LIBS
9714 LIBS="-lsane $ac_sane_libs $LIBS"
9715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h.  */
9717
9718 /* Override any GCC internal prototype to avoid an error.
9719    Use char because int might match the return type of a GCC
9720    builtin and then its argument prototype would still apply.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 char sane_init ();
9725 int
9726 main ()
9727 {
9728 return sane_init ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 if ac_fn_c_try_link "$LINENO"; then :
9734   case "$LIBEXT" in
9735     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9736     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'` ;;
9737     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9738   esac
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext \
9741     conftest$ac_exeext conftest.$ac_ext
9742   LIBS=$ac_check_soname_save_LIBS
9743 fi
9744 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9746 $as_echo "not found" >&6; }
9747
9748 else
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9750 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9751
9752 cat >>confdefs.h <<_ACEOF
9753 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9754 _ACEOF
9755
9756        SANEINCL="$ac_sane_incl"
9757
9758 fi
9759 fi
9760
9761
9762     CPPFLAGS="$ac_save_CPPFLAGS"
9763 fi
9764 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9765   case "x$with_sane" in
9766   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9767   xno) ;;
9768   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9769 This is an error since --with-sane was requested." "$LINENO" 5  ;;
9770 esac
9771 fi
9772
9773 if test "x$with_v4l" != "xno"
9774 then
9775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9776 $as_echo_n "checking for -lv4l1... " >&6; }
9777 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   ac_check_soname_save_LIBS=$LIBS
9781 LIBS="-lv4l1  $LIBS"
9782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h.  */
9784
9785 /* Override any GCC internal prototype to avoid an error.
9786    Use char because int might match the return type of a GCC
9787    builtin and then its argument prototype would still apply.  */
9788 #ifdef __cplusplus
9789 extern "C"
9790 #endif
9791 char v4l1_open ();
9792 int
9793 main ()
9794 {
9795 return v4l1_open ();
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801   case "$LIBEXT" in
9802     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9803     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'` ;;
9804     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9805   esac
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808     conftest$ac_exeext conftest.$ac_ext
9809   LIBS=$ac_check_soname_save_LIBS
9810 fi
9811 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9813 $as_echo "not found" >&6; }
9814
9815 else
9816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9817 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9818
9819 cat >>confdefs.h <<_ACEOF
9820 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9821 _ACEOF
9822
9823
9824 fi
9825 fi
9826 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9827   case "x$with_v4l" in
9828   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9829   xno) ;;
9830   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
9831 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
9832 esac
9833 fi
9834
9835 if test "x$with_gphoto" != "xno"
9836 then
9837     ac_save_CPPFLAGS="$CPPFLAGS"
9838     # Extract the first word of "gphoto2-config", so it can be a program name with args.
9839 set dummy gphoto2-config; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   if test -n "$gphoto2_devel"; then
9846   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9847 else
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851   IFS=$as_save_IFS
9852   test -z "$as_dir" && as_dir=.
9853     for ac_exec_ext in '' $ac_executable_extensions; do
9854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9855     ac_cv_prog_gphoto2_devel="gphoto2-config"
9856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857     break 2
9858   fi
9859 done
9860   done
9861 IFS=$as_save_IFS
9862
9863   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9864 fi
9865 fi
9866 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9867 if test -n "$gphoto2_devel"; then
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9869 $as_echo "$gphoto2_devel" >&6; }
9870 else
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9873 fi
9874
9875
9876     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9877 set dummy gphoto2-port-config; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   if test -n "$gphoto2port_devel"; then
9884   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889   IFS=$as_save_IFS
9890   test -z "$as_dir" && as_dir=.
9891     for ac_exec_ext in '' $ac_executable_extensions; do
9892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895     break 2
9896   fi
9897 done
9898   done
9899 IFS=$as_save_IFS
9900
9901   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9902 fi
9903 fi
9904 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9905 if test -n "$gphoto2port_devel"; then
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9907 $as_echo "$gphoto2port_devel" >&6; }
9908 else
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 fi
9912
9913
9914     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9915     then
9916         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9917         ac_gphoto2_libs=""
9918         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9919         do
9920             case "$i" in
9921             -L/usr/lib|-L/usr/lib64) ;;
9922             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9923             esac
9924         done
9925         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9926     fi
9927     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9928     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9929 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9931 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9932 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9933   $as_echo_n "(cached) " >&6
9934 else
9935   ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h.  */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char gp_camera_new ();
9947 int
9948 main ()
9949 {
9950 return gp_camera_new ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956   ac_cv_lib_gphoto2_gp_camera_new=yes
9957 else
9958   ac_cv_lib_gphoto2_gp_camera_new=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961     conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9965 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9966 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9967
9968 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9969
9970                                    GPHOTO2LIBS="$ac_gphoto2_libs"
9971
9972                                    GPHOTO2INCL="$ac_gphoto2_incl"
9973
9974 fi
9975
9976 fi
9977
9978
9979     CPPFLAGS="$ac_save_CPPFLAGS"
9980 fi
9981 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9982   case "x$with_gphoto" in
9983   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9984   xno) ;;
9985   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9986 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
9987 esac
9988 fi
9989
9990
9991 if test "$ac_cv_header_resolv_h" = "yes"
9992 then
9993     ac_save_LIBS="$LIBS"
9994     for lib in '' -lresolv
9995     do
9996       LIBS="$lib $ac_save_LIBS"
9997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h.  */
9999 #ifdef HAVE_NETINET_IN_H
10000 #include <netinet/in.h>
10001 #endif
10002 #include <resolv.h>
10003 int
10004 main ()
10005 {
10006 res_query("foo",ns_c_in,0,0,0);
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 if ac_fn_c_try_link "$LINENO"; then :
10012
10013 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10014
10015          RESOLVLIBS="$lib"
10016
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019     conftest$ac_exeext conftest.$ac_ext
10020       if test "${RESOLVLIBS+set}" = set; then
10021         break
10022       fi
10023     done
10024     LIBS="$ac_save_LIBS"
10025 fi
10026
10027 LCMSLIBS=""
10028
10029 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10030 then
10031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10032 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10033 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-llcms  $LIBS"
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h.  */
10040
10041 /* Override any GCC internal prototype to avoid an error.
10042    Use char because int might match the return type of a GCC
10043    builtin and then its argument prototype would still apply.  */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char cmsOpenProfileFromFile ();
10048 int
10049 main ()
10050 {
10051 return cmsOpenProfileFromFile ();
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"; then :
10057   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10058 else
10059   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext \
10062     conftest$ac_exeext conftest.$ac_ext
10063 LIBS=$ac_check_lib_save_LIBS
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10066 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10067 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10068
10069 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10070
10071          LCMSLIBS="-llcms"
10072 fi
10073
10074 fi
10075 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10076   case "x$with_cms" in
10077   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10078   xno) ;;
10079   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10080 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10081 esac
10082 fi
10083
10084 if test "x$with_freetype" != "xno"
10085 then
10086     for ac_prog in freetype-config freetype2-config
10087 do
10088   # Extract the first word of "$ac_prog", so it can be a program name with args.
10089 set dummy $ac_prog; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10093   $as_echo_n "(cached) " >&6
10094 else
10095   if test -n "$ft_devel"; then
10096   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10097 else
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10100 do
10101   IFS=$as_save_IFS
10102   test -z "$as_dir" && as_dir=.
10103     for ac_exec_ext in '' $ac_executable_extensions; do
10104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105     ac_cv_prog_ft_devel="$ac_prog"
10106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107     break 2
10108   fi
10109 done
10110   done
10111 IFS=$as_save_IFS
10112
10113 fi
10114 fi
10115 ft_devel=$ac_cv_prog_ft_devel
10116 if test -n "$ft_devel"; then
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10118 $as_echo "$ft_devel" >&6; }
10119 else
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123
10124
10125   test -n "$ft_devel" && break
10126 done
10127 test -n "$ft_devel" || ft_devel="no"
10128
10129     if test "$ft_devel" != "no"
10130     then
10131         ac_freetype_incl=`$ft_devel --cflags`
10132         ac_freetype_libs=`$ft_devel --libs`
10133     fi
10134     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10136 $as_echo_n "checking for -lfreetype... " >&6; }
10137 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10138   $as_echo_n "(cached) " >&6
10139 else
10140   ac_check_soname_save_LIBS=$LIBS
10141 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h.  */
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char FT_Init_FreeType ();
10152 int
10153 main ()
10154 {
10155 return FT_Init_FreeType ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 if ac_fn_c_try_link "$LINENO"; then :
10161   case "$LIBEXT" in
10162     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10163     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'` ;;
10164     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10165   esac
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext \
10168     conftest$ac_exeext conftest.$ac_ext
10169   LIBS=$ac_check_soname_save_LIBS
10170 fi
10171 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10173 $as_echo "not found" >&6; }
10174        ft_lib=no
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10177 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10178
10179 cat >>confdefs.h <<_ACEOF
10180 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10181 _ACEOF
10182
10183        ft_lib=yes
10184 fi
10185     if test "$ft_lib" = "yes"
10186     then
10187         ac_save_CPPFLAGS="$CPPFLAGS"
10188         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10189         for ac_header in ft2build.h \
10190                          freetype/freetype.h \
10191                          freetype/ftglyph.h \
10192                          freetype/fttypes.h \
10193                          freetype/tttables.h \
10194                          freetype/ftsnames.h \
10195                          freetype/ttnameid.h \
10196                          freetype/ftoutln.h \
10197                          freetype/ftwinfnt.h \
10198                          freetype/ftmodapi.h \
10199                          freetype/ftlcdfil.h \
10200                          freetype/internal/sfnt.h
10201 do :
10202   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10203 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10204                           # include <ft2build.h>
10205                           #endif
10206 "
10207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10208   cat >>confdefs.h <<_ACEOF
10209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 _ACEOF
10211
10212 fi
10213
10214 done
10215
10216         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h.  */
10218 #include <ft2build.h>
10219                     #include <freetype/fttrigon.h>
10220 _ACEOF
10221 if ac_fn_c_try_cpp "$LINENO"; then :
10222
10223 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10224
10225                     wine_cv_fttrigon=yes
10226 else
10227   wine_cv_fttrigon=no
10228 fi
10229 rm -f conftest.err conftest.i conftest.$ac_ext
10230         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10231 "
10232 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10233
10234 cat >>confdefs.h <<_ACEOF
10235 #define HAVE_FT_TRUETYPEENGINETYPE 1
10236 _ACEOF
10237
10238
10239 fi
10240
10241         ac_save_CFLAGS="$CFLAGS"
10242         CFLAGS="$CFLAGS $ac_freetype_libs"
10243         for ac_func in FT_Load_Sfnt_Table
10244 do :
10245   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10246 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10247   cat >>confdefs.h <<_ACEOF
10248 #define HAVE_FT_LOAD_SFNT_TABLE 1
10249 _ACEOF
10250
10251 fi
10252 done
10253
10254         CFLAGS="$ac_save_CFLAGS"
10255         CPPFLAGS="$ac_save_CPPFLAGS"
10256                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10257         then
10258
10259 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10260
10261             FREETYPELIBS="$ac_freetype_libs"
10262
10263             FREETYPEINCL="$ac_freetype_incl"
10264
10265         fi
10266     fi
10267 fi
10268 if test "x$FREETYPELIBS" = "x"; then :
10269   case "x$with_freetype" in
10270   xno) ;;
10271   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10272 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10273 esac
10274 fi
10275 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10276
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10278 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10279 if test "${ac_cv_c_ppdev+set}" = set; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h.  */
10284 #ifdef HAVE_SYS_IOCTL_H
10285 # include <sys/ioctl.h>
10286 #endif
10287 #include <linux/ppdev.h>
10288 int
10289 main ()
10290 {
10291 ioctl (1,PPCLAIM,0)
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"; then :
10297   ac_cv_c_ppdev="yes"
10298 else
10299   ac_cv_c_ppdev="no"
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10304 $as_echo "$ac_cv_c_ppdev" >&6; }
10305 if test "$ac_cv_c_ppdev" = "yes"
10306 then
10307
10308 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10309
10310 fi
10311
10312 ac_wine_check_funcs_save_LIBS="$LIBS"
10313 LIBS="$LIBS $LIBPTHREAD"
10314 for ac_func in \
10315         pthread_attr_get_np \
10316         pthread_getattr_np \
10317         pthread_get_stackaddr_np \
10318         pthread_get_stacksize_np
10319 do :
10320   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10323   cat >>confdefs.h <<_ACEOF
10324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10325 _ACEOF
10326
10327 fi
10328 done
10329
10330 LIBS="$ac_wine_check_funcs_save_LIBS"
10331
10332 if test "$ac_cv_header_zlib_h" = "yes"
10333 then
10334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10335 $as_echo_n "checking for inflate in -lz... " >&6; }
10336 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   ac_check_lib_save_LIBS=$LIBS
10340 LIBS="-lz  $LIBS"
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343
10344 /* Override any GCC internal prototype to avoid an error.
10345    Use char because int might match the return type of a GCC
10346    builtin and then its argument prototype would still apply.  */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 char inflate ();
10351 int
10352 main ()
10353 {
10354 return inflate ();
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360   ac_cv_lib_z_inflate=yes
10361 else
10362   ac_cv_lib_z_inflate=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext \
10365     conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_lib_save_LIBS
10367 fi
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10369 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10370 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10371
10372 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10373
10374                             ZLIB="-lz"
10375
10376 fi
10377
10378 fi
10379
10380 if test "x$with_esd" != xno
10381 then
10382     save_CFLAGS="$CFLAGS"
10383     # Extract the first word of "esd-config", so it can be a program name with args.
10384 set dummy esd-config; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10388   $as_echo_n "(cached) " >&6
10389 else
10390   case $ESDCONFIG in
10391   [\\/]* | ?:[\\/]*)
10392   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10393   ;;
10394   *)
10395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10397 do
10398   IFS=$as_save_IFS
10399   test -z "$as_dir" && as_dir=.
10400     for ac_exec_ext in '' $ac_executable_extensions; do
10401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404     break 2
10405   fi
10406 done
10407   done
10408 IFS=$as_save_IFS
10409
10410   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10411   ;;
10412 esac
10413 fi
10414 ESDCONFIG=$ac_cv_path_ESDCONFIG
10415 if test -n "$ESDCONFIG"; then
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10417 $as_echo "$ESDCONFIG" >&6; }
10418 else
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10421 fi
10422
10423
10424     if test "x$ESDCONFIG" != "xno"
10425     then
10426         ac_esd_incl=""
10427         for i in `$ESDCONFIG --cflags`
10428         do
10429             case "$i" in
10430                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10431             esac
10432         done
10433         ac_esd_libs=`$ESDCONFIG --libs`
10434         CFLAGS="$CFLAGS $ac_esd_incl"
10435     fi
10436     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10437     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10438 if test "x$ac_cv_header_esd_h" = x""yes; then :
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10440 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10441 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lesd $ac_esd_libs $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h.  */
10448
10449 /* Override any GCC internal prototype to avoid an error.
10450    Use char because int might match the return type of a GCC
10451    builtin and then its argument prototype would still apply.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char esd_open_sound ();
10456 int
10457 main ()
10458 {
10459 return esd_open_sound ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465   ac_cv_lib_esd_esd_open_sound=yes
10466 else
10467   ac_cv_lib_esd_esd_open_sound=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext \
10470     conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10472 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10474 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10475 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10476   ESDINCL="$ac_esd_incl"
10477
10478              ESDLIBS="$ac_esd_libs"
10479
10480
10481 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10482
10483 fi
10484
10485 fi
10486
10487
10488     CFLAGS="$save_CFLAGS"
10489 fi
10490
10491 if test "x$with_gstreamer" != "xno"
10492 then
10493     ac_save_CPPFLAGS="$CPPFLAGS"
10494     if test "$PKG_CONFIG" != "false"; then
10495         ac_gst_incl=""
10496         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10497         do
10498             case "$i" in
10499                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10500             esac
10501         done
10502         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10503         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10504         ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10505 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10507 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10508 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10509   $as_echo_n "(cached) " >&6
10510 else
10511   ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h.  */
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517    Use char because int might match the return type of a GCC
10518    builtin and then its argument prototype would still apply.  */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char gst_app_buffer_new ();
10523 int
10524 main ()
10525 {
10526 return gst_app_buffer_new ();
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 if ac_fn_c_try_link "$LINENO"; then :
10532   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10533 else
10534   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext \
10537     conftest$ac_exeext conftest.$ac_ext
10538 LIBS=$ac_check_lib_save_LIBS
10539 fi
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10541 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10542 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10543   GSTREAMER_LIBS="$ac_gst_libs"
10544
10545                  GSTREAMER_INCL="$ac_gst_incl"
10546
10547 fi
10548
10549 fi
10550
10551
10552     fi
10553     CPPFLAGS="$ac_save_CPPFLAGS"
10554 fi
10555 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10556   case "x$with_gstreamer" in
10557   x)   as_fn_append wine_notices "|gstreamer-0.10 ${notice_platform}development files not found, gstreamer support disabled" ;;
10558   xno) ;;
10559   *)   as_fn_error $? "gstreamer-0.10 ${notice_platform}development files not found, gstreamer support disabled
10560 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10561 esac
10562 fi
10563 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10564
10565 ALSALIBS=""
10566
10567 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10568 then
10569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10570 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10571 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10572   $as_echo_n "(cached) " >&6
10573 else
10574   ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-lasound  $LIBS"
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h.  */
10578
10579 /* Override any GCC internal prototype to avoid an error.
10580    Use char because int might match the return type of a GCC
10581    builtin and then its argument prototype would still apply.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char snd_pcm_hw_params_get_access ();
10586 int
10587 main ()
10588 {
10589 return snd_pcm_hw_params_get_access ();
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10596 else
10597   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600     conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10604 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10605 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h.  */
10608 #ifdef HAVE_ALSA_ASOUNDLIB_H
10609 #include <alsa/asoundlib.h>
10610 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10611 #include <sys/asoundlib.h>
10612 #endif
10613 int
10614 main ()
10615 {
10616 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 if ac_fn_c_try_compile "$LINENO"; then :
10622
10623 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10624
10625                          ALSALIBS="-lasound"
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 fi
10629
10630 fi
10631
10632 AUDIOIOLIBS=""
10633
10634 if test "$ac_cv_header_libaudioio_h" = "yes"
10635 then
10636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10637 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10638 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-laudioio  $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647    Use char because int might match the return type of a GCC
10648    builtin and then its argument prototype would still apply.  */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char AudioIOGetVersion ();
10653 int
10654 main ()
10655 {
10656 return AudioIOGetVersion ();
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662   ac_cv_lib_audioio_AudioIOGetVersion=yes
10663 else
10664   ac_cv_lib_audioio_AudioIOGetVersion=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667     conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10671 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10672 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10673   AUDIOIOLIBS="-laudioio"
10674
10675 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10676
10677 fi
10678
10679 fi
10680
10681
10682 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10683 then
10684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10685 $as_echo_n "checking for -lcapi20... " >&6; }
10686 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   ac_check_soname_save_LIBS=$LIBS
10690 LIBS="-lcapi20  $LIBS"
10691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h.  */
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695    Use char because int might match the return type of a GCC
10696    builtin and then its argument prototype would still apply.  */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char capi20_register ();
10701 int
10702 main ()
10703 {
10704 return capi20_register ();
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710   case "$LIBEXT" in
10711     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10712     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'` ;;
10713     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10714   esac
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718   LIBS=$ac_check_soname_save_LIBS
10719 fi
10720 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10722 $as_echo "not found" >&6; }
10723
10724 else
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10726 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10727
10728 cat >>confdefs.h <<_ACEOF
10729 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10730 _ACEOF
10731
10732
10733 fi
10734 fi
10735 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10736   case "x$with_capi" in
10737   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10738   xno) ;;
10739   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10740 This is an error since --with-capi was requested." "$LINENO" 5  ;;
10741 esac
10742 fi
10743
10744 CUPSINCL=""
10745
10746 if test "x$with_cups" != "xno"
10747 then
10748     ac_save_CPPFLAGS="$CPPFLAGS"
10749     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10750     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10751     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10752     for ac_header in cups/cups.h
10753 do :
10754   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10755 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10756   cat >>confdefs.h <<_ACEOF
10757 #define HAVE_CUPS_CUPS_H 1
10758 _ACEOF
10759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10760 $as_echo_n "checking for -lcups... " >&6; }
10761 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   ac_check_soname_save_LIBS=$LIBS
10765 LIBS="-lcups $ac_cups_libs $LIBS"
10766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h.  */
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770    Use char because int might match the return type of a GCC
10771    builtin and then its argument prototype would still apply.  */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char cupsGetDefault ();
10776 int
10777 main ()
10778 {
10779 return cupsGetDefault ();
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785   case "$LIBEXT" in
10786     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10787     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'` ;;
10788     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10789   esac
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext \
10792     conftest$ac_exeext conftest.$ac_ext
10793   LIBS=$ac_check_soname_save_LIBS
10794 fi
10795 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10797 $as_echo "not found" >&6; }
10798
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10801 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10802
10803 cat >>confdefs.h <<_ACEOF
10804 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10805 _ACEOF
10806
10807        CUPSINCL="$ac_cups_cflags"
10808 fi
10809 fi
10810
10811 done
10812
10813     CPPFLAGS="$ac_save_CPPFLAGS"
10814 fi
10815 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10816   case "x$with_cups" in
10817   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10818   xno) ;;
10819   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10820 This is an error since --with-cups was requested." "$LINENO" 5  ;;
10821 esac
10822 fi
10823
10824 if test "$ac_cv_header_jack_jack_h" = "yes"
10825 then
10826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10827 $as_echo_n "checking for -ljack... " >&6; }
10828 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   ac_check_soname_save_LIBS=$LIBS
10832 LIBS="-ljack  $LIBS"
10833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837    Use char because int might match the return type of a GCC
10838    builtin and then its argument prototype would still apply.  */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char jack_client_new ();
10843 int
10844 main ()
10845 {
10846 return jack_client_new ();
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852   case "$LIBEXT" in
10853     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10854     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'` ;;
10855     *) 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'` ;;
10856   esac
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext \
10859     conftest$ac_exeext conftest.$ac_ext
10860   LIBS=$ac_check_soname_save_LIBS
10861 fi
10862 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10864 $as_echo "not found" >&6; }
10865
10866 else
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10868 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10869
10870 cat >>confdefs.h <<_ACEOF
10871 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10872 _ACEOF
10873
10874
10875 fi
10876 fi
10877
10878 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10879 then
10880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10881 $as_echo_n "checking for -lfontconfig... " >&6; }
10882 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   ac_check_soname_save_LIBS=$LIBS
10886 LIBS="-lfontconfig  $LIBS"
10887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h.  */
10889
10890 /* Override any GCC internal prototype to avoid an error.
10891    Use char because int might match the return type of a GCC
10892    builtin and then its argument prototype would still apply.  */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 char FcInit ();
10897 int
10898 main ()
10899 {
10900 return FcInit ();
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906   case "$LIBEXT" in
10907     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10908     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'` ;;
10909     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10910   esac
10911 fi
10912 rm -f core conftest.err conftest.$ac_objext \
10913     conftest$ac_exeext conftest.$ac_ext
10914   LIBS=$ac_check_soname_save_LIBS
10915 fi
10916 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10918 $as_echo "not found" >&6; }
10919
10920 else
10921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10922 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10923
10924 cat >>confdefs.h <<_ACEOF
10925 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10926 _ACEOF
10927
10928
10929 fi
10930 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10931 then
10932         ac_save_CPPFLAGS="$CPPFLAGS"
10933     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10934     $as_unset ac_cv_header_fontconfig_fontconfig_h
10935     for ac_header in fontconfig/fontconfig.h
10936 do :
10937   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10938 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10939   cat >>confdefs.h <<_ACEOF
10940 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10941 _ACEOF
10942
10943 fi
10944
10945 done
10946
10947     CPPFLAGS="$ac_save_CPPFLAGS"
10948     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10949     then
10950         FONTCONFIGINCL="$X_CFLAGS"
10951
10952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10953 $as_echo_n "checking for -lfontconfig... " >&6; }
10954 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10955   $as_echo_n "(cached) " >&6
10956 else
10957   ac_check_soname_save_LIBS=$LIBS
10958 LIBS="-lfontconfig $X_LIBS $LIBS"
10959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h.  */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char FcInit ();
10969 int
10970 main ()
10971 {
10972 return FcInit ();
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 if ac_fn_c_try_link "$LINENO"; then :
10978   case "$LIBEXT" in
10979     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10980     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'` ;;
10981     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10982   esac
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985     conftest$ac_exeext conftest.$ac_ext
10986   LIBS=$ac_check_soname_save_LIBS
10987 fi
10988 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10990 $as_echo "not found" >&6; }
10991
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10994 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10995
10996 cat >>confdefs.h <<_ACEOF
10997 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10998 _ACEOF
10999
11000
11001 fi
11002     fi
11003 fi
11004 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11005   case "x$with_fontconfig" in
11006   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11007   xno) ;;
11008   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11009 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11010 esac
11011 fi
11012
11013 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11014 then
11015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11016 $as_echo_n "checking for -lssl... " >&6; }
11017 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11018   $as_echo_n "(cached) " >&6
11019 else
11020   ac_check_soname_save_LIBS=$LIBS
11021 LIBS="-lssl  $LIBS"
11022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h.  */
11024
11025 /* Override any GCC internal prototype to avoid an error.
11026    Use char because int might match the return type of a GCC
11027    builtin and then its argument prototype would still apply.  */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 char SSL_library_init ();
11032 int
11033 main ()
11034 {
11035 return SSL_library_init ();
11036   ;
11037   return 0;
11038 }
11039 _ACEOF
11040 if ac_fn_c_try_link "$LINENO"; then :
11041   case "$LIBEXT" in
11042     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11043     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'` ;;
11044     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11045   esac
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext \
11048     conftest$ac_exeext conftest.$ac_ext
11049   LIBS=$ac_check_soname_save_LIBS
11050 fi
11051 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11053 $as_echo "not found" >&6; }
11054
11055 else
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11057 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11058
11059 cat >>confdefs.h <<_ACEOF
11060 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11061 _ACEOF
11062
11063
11064 fi
11065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11066 $as_echo_n "checking for -lcrypto... " >&6; }
11067 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   ac_check_soname_save_LIBS=$LIBS
11071 LIBS="-lcrypto  $LIBS"
11072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char BIO_new_socket ();
11082 int
11083 main ()
11084 {
11085 return BIO_new_socket ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   case "$LIBEXT" in
11092     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11093     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'` ;;
11094     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11095   esac
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098     conftest$ac_exeext conftest.$ac_ext
11099   LIBS=$ac_check_soname_save_LIBS
11100 fi
11101 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11103 $as_echo "not found" >&6; }
11104
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11107 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11108
11109 cat >>confdefs.h <<_ACEOF
11110 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11111 _ACEOF
11112
11113
11114 fi
11115 fi
11116 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11117   case "x$with_openssl" in
11118   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11119   xno) ;;
11120   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11121 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11122 esac
11123 fi
11124
11125 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11126 then
11127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11128 $as_echo_n "checking for -lgsm... " >&6; }
11129 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11130   $as_echo_n "(cached) " >&6
11131 else
11132   ac_check_soname_save_LIBS=$LIBS
11133 LIBS="-lgsm  $LIBS"
11134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h.  */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138    Use char because int might match the return type of a GCC
11139    builtin and then its argument prototype would still apply.  */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char gsm_create ();
11144 int
11145 main ()
11146 {
11147 return gsm_create ();
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153   case "$LIBEXT" in
11154     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11155     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'` ;;
11156     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11157   esac
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext \
11160     conftest$ac_exeext conftest.$ac_ext
11161   LIBS=$ac_check_soname_save_LIBS
11162 fi
11163 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11165 $as_echo "not found" >&6; }
11166
11167 else
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11169 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11170
11171 cat >>confdefs.h <<_ACEOF
11172 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11173 _ACEOF
11174
11175
11176 fi
11177 fi
11178 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11179   case "x$with_gsm" in
11180   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11181   xno) ;;
11182   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11183 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11184 esac
11185 fi
11186
11187 if test "$ac_cv_header_icns_h" = "yes"
11188 then
11189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11190 $as_echo_n "checking for -licns... " >&6; }
11191 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11192   $as_echo_n "(cached) " >&6
11193 else
11194   ac_check_soname_save_LIBS=$LIBS
11195 LIBS="-licns  $LIBS"
11196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h.  */
11198
11199 /* Override any GCC internal prototype to avoid an error.
11200    Use char because int might match the return type of a GCC
11201    builtin and then its argument prototype would still apply.  */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 char icns_write_family_to_file ();
11206 int
11207 main ()
11208 {
11209 return icns_write_family_to_file ();
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215   case "$LIBEXT" in
11216     dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11217     dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11218     *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11219   esac
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext \
11222     conftest$ac_exeext conftest.$ac_ext
11223   LIBS=$ac_check_soname_save_LIBS
11224 fi
11225 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11227 $as_echo "not found" >&6; }
11228
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11231 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11232
11233 cat >>confdefs.h <<_ACEOF
11234 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11235 _ACEOF
11236
11237
11238 fi
11239 fi
11240 case $host_os in
11241   darwin*|macosx*)
11242     if test "x$ac_cv_lib_soname_icns" = "x"; then :
11243   case "x$with_icns" in
11244   x)   as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11245   xno) ;;
11246   *)   as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11247 This is an error since --with-icns was requested." "$LINENO" 5  ;;
11248 esac
11249 fi ;;
11250 esac
11251
11252 if test "$ac_cv_header_jpeglib_h" = "yes"
11253 then
11254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11255 $as_echo_n "checking for -ljpeg... " >&6; }
11256 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   ac_check_soname_save_LIBS=$LIBS
11260 LIBS="-ljpeg  $LIBS"
11261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h.  */
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265    Use char because int might match the return type of a GCC
11266    builtin and then its argument prototype would still apply.  */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char jpeg_start_decompress ();
11271 int
11272 main ()
11273 {
11274 return jpeg_start_decompress ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_c_try_link "$LINENO"; then :
11280   case "$LIBEXT" in
11281     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11282     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'` ;;
11283     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11284   esac
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288   LIBS=$ac_check_soname_save_LIBS
11289 fi
11290 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11292 $as_echo "not found" >&6; }
11293
11294 else
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11296 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11297
11298 cat >>confdefs.h <<_ACEOF
11299 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11300 _ACEOF
11301
11302
11303 fi
11304 fi
11305 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11306   case "x$with_jpeg" in
11307   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11308   xno) ;;
11309   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11310 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11311 esac
11312 fi
11313
11314 if test "$ac_cv_header_png_h" = "yes"
11315 then
11316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11317 $as_echo_n "checking for -lpng... " >&6; }
11318 if test "${ac_cv_lib_soname_png+set}" = set; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321   ac_check_soname_save_LIBS=$LIBS
11322 LIBS="-lpng -lm -lz $LIBS"
11323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h.  */
11325
11326 /* Override any GCC internal prototype to avoid an error.
11327    Use char because int might match the return type of a GCC
11328    builtin and then its argument prototype would still apply.  */
11329 #ifdef __cplusplus
11330 extern "C"
11331 #endif
11332 char png_create_read_struct ();
11333 int
11334 main ()
11335 {
11336 return png_create_read_struct ();
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342   case "$LIBEXT" in
11343     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11344     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'` ;;
11345     *) 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'` ;;
11346   esac
11347 fi
11348 rm -f core conftest.err conftest.$ac_objext \
11349     conftest$ac_exeext conftest.$ac_ext
11350   LIBS=$ac_check_soname_save_LIBS
11351 fi
11352 if test "x$ac_cv_lib_soname_png" = "x"; then :
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11354 $as_echo "not found" >&6; }
11355
11356 else
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11358 $as_echo "$ac_cv_lib_soname_png" >&6; }
11359
11360 cat >>confdefs.h <<_ACEOF
11361 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11362 _ACEOF
11363
11364
11365 fi
11366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11367 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11368 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-lpng -lm -lz $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h.  */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377    Use char because int might match the return type of a GCC
11378    builtin and then its argument prototype would still apply.  */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char png_set_expand_gray_1_2_4_to_8 ();
11383 int
11384 main ()
11385 {
11386 return png_set_expand_gray_1_2_4_to_8 ();
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11393 else
11394   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397     conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11401 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11402 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11403
11404 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11405
11406
11407 fi
11408
11409 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11410 then
11411         ac_save_CPPFLAGS="$CPPFLAGS"
11412     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11413     $as_unset ac_cv_header_png_h
11414     for ac_header in png.h
11415 do :
11416   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11417 if test "x$ac_cv_header_png_h" = x""yes; then :
11418   cat >>confdefs.h <<_ACEOF
11419 #define HAVE_PNG_H 1
11420 _ACEOF
11421
11422 fi
11423
11424 done
11425
11426     CPPFLAGS="$ac_save_CPPFLAGS"
11427     if test "$ac_cv_header_png_h" = "yes"
11428     then
11429         PNGINCL="$X_CFLAGS"
11430
11431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11432 $as_echo_n "checking for -lpng... " >&6; }
11433 if test "${ac_cv_lib_soname_png+set}" = set; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   ac_check_soname_save_LIBS=$LIBS
11437 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h.  */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442    Use char because int might match the return type of a GCC
11443    builtin and then its argument prototype would still apply.  */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char png_create_read_struct ();
11448 int
11449 main ()
11450 {
11451 return png_create_read_struct ();
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457   case "$LIBEXT" in
11458     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11459     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'` ;;
11460     *) 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'` ;;
11461   esac
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464     conftest$ac_exeext conftest.$ac_ext
11465   LIBS=$ac_check_soname_save_LIBS
11466 fi
11467 if test "x$ac_cv_lib_soname_png" = "x"; then :
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11469 $as_echo "not found" >&6; }
11470
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11473 $as_echo "$ac_cv_lib_soname_png" >&6; }
11474
11475 cat >>confdefs.h <<_ACEOF
11476 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11477 _ACEOF
11478
11479
11480 fi
11481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11482 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11483 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h.  */
11490
11491 /* Override any GCC internal prototype to avoid an error.
11492    Use char because int might match the return type of a GCC
11493    builtin and then its argument prototype would still apply.  */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char png_set_expand_gray_1_2_4_to_8 ();
11498 int
11499 main ()
11500 {
11501 return png_set_expand_gray_1_2_4_to_8 ();
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11508 else
11509   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext \
11512     conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11516 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11517 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11518   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11519
11520 fi
11521
11522     fi
11523 fi
11524 if test "x$ac_cv_lib_soname_png" = "x"; then :
11525   case "x$with_png" in
11526   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11527   xno) ;;
11528   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11529 This is an error since --with-png was requested." "$LINENO" 5  ;;
11530 esac
11531 fi
11532
11533 if test "$ac_cv_header_tiffio_h" = "yes"
11534 then
11535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11536 $as_echo_n "checking for -ltiff... " >&6; }
11537 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   ac_check_soname_save_LIBS=$LIBS
11541 LIBS="-ltiff  $LIBS"
11542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h.  */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546    Use char because int might match the return type of a GCC
11547    builtin and then its argument prototype would still apply.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char TIFFClientOpen ();
11552 int
11553 main ()
11554 {
11555 return TIFFClientOpen ();
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561   case "$LIBEXT" in
11562     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11563     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'` ;;
11564     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11565   esac
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568     conftest$ac_exeext conftest.$ac_ext
11569   LIBS=$ac_check_soname_save_LIBS
11570 fi
11571 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11573 $as_echo "not found" >&6; }
11574
11575 else
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11577 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11578
11579 cat >>confdefs.h <<_ACEOF
11580 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11581 _ACEOF
11582
11583
11584 fi
11585 fi
11586 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11587   case "x$with_tiff" in
11588   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11589   xno) ;;
11590   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11591 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11592 esac
11593 fi
11594
11595 if test "$ac_cv_header_mpg123_h" = "yes"
11596 then
11597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11598 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11599 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-lmpg123  $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h.  */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608    Use char because int might match the return type of a GCC
11609    builtin and then its argument prototype would still apply.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char mpg123_feed ();
11614 int
11615 main ()
11616 {
11617 return mpg123_feed ();
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623   ac_cv_lib_mpg123_mpg123_feed=yes
11624 else
11625   ac_cv_lib_mpg123_mpg123_feed=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628     conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11632 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11633 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11634   LIBMPG123="-lmpg123"
11635
11636 fi
11637
11638 fi
11639 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11640   case "x$with_mpg123" in
11641   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11642   xno) ;;
11643   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11644 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11645 esac
11646 fi
11647 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11648
11649 if test "$ac_cv_header_AL_al_h" = "yes"
11650 then
11651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11652 $as_echo_n "checking for -lopenal... " >&6; }
11653 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11654   $as_echo_n "(cached) " >&6
11655 else
11656   ac_check_soname_save_LIBS=$LIBS
11657 LIBS="-lopenal  $LIBS"
11658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h.  */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662    Use char because int might match the return type of a GCC
11663    builtin and then its argument prototype would still apply.  */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char alGetSource3i ();
11668 int
11669 main ()
11670 {
11671 return alGetSource3i ();
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677   case "$LIBEXT" in
11678     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11679     dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11680     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11681   esac
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684     conftest$ac_exeext conftest.$ac_ext
11685   LIBS=$ac_check_soname_save_LIBS
11686 fi
11687 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11689 $as_echo "not found" >&6; }
11690
11691 else
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11693 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11694
11695 cat >>confdefs.h <<_ACEOF
11696 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11697 _ACEOF
11698
11699        LIBOPENAL="-lopenal"
11700
11701                       ac_cv_lib_openal=yes
11702
11703 cat >>confdefs.h <<_ACEOF
11704 #define HAVE_OPENAL 1
11705 _ACEOF
11706
11707 fi
11708 fi
11709 if test "x$ac_cv_lib_openal" != xyes; then :
11710   case "x$with_openal" in
11711   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11712   xno) ;;
11713   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11714 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11715 esac
11716 fi
11717 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11718
11719 if test "$ac_cv_header_kstat_h" = "yes"
11720 then
11721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11722 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11723 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726   ac_check_lib_save_LIBS=$LIBS
11727 LIBS="-lkstat  $LIBS"
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h.  */
11730
11731 /* Override any GCC internal prototype to avoid an error.
11732    Use char because int might match the return type of a GCC
11733    builtin and then its argument prototype would still apply.  */
11734 #ifdef __cplusplus
11735 extern "C"
11736 #endif
11737 char kstat_open ();
11738 int
11739 main ()
11740 {
11741 return kstat_open ();
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747   ac_cv_lib_kstat_kstat_open=yes
11748 else
11749   ac_cv_lib_kstat_kstat_open=no
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext \
11752     conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_lib_save_LIBS
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11756 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11757 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11758
11759 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11760
11761                   LIBKSTAT="-lkstat"
11762
11763 fi
11764
11765 fi
11766
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11768 $as_echo_n "checking for -lodbc... " >&6; }
11769 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11770   $as_echo_n "(cached) " >&6
11771 else
11772   ac_check_soname_save_LIBS=$LIBS
11773 LIBS="-lodbc  $LIBS"
11774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h.  */
11776
11777 /* Override any GCC internal prototype to avoid an error.
11778    Use char because int might match the return type of a GCC
11779    builtin and then its argument prototype would still apply.  */
11780 #ifdef __cplusplus
11781 extern "C"
11782 #endif
11783 char SQLConnect ();
11784 int
11785 main ()
11786 {
11787 return SQLConnect ();
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 if ac_fn_c_try_link "$LINENO"; then :
11793   case "$LIBEXT" in
11794     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11795     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'` ;;
11796     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11797   esac
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext \
11800     conftest$ac_exeext conftest.$ac_ext
11801   LIBS=$ac_check_soname_save_LIBS
11802 fi
11803 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11805 $as_echo "not found" >&6; }
11806        cat >>confdefs.h <<_ACEOF
11807 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11808 _ACEOF
11809
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11812 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11813
11814 cat >>confdefs.h <<_ACEOF
11815 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11816 _ACEOF
11817
11818
11819 fi
11820
11821 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11822         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11823         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11824         "$ac_cv_header_soundcard_h" != "yes" -a \
11825         "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11826 then
11827     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11828 fi
11829
11830
11831 EXTRACFLAGS=""
11832
11833 if test "x${GCC}" = "xyes"
11834 then
11835   EXTRACFLAGS="-Wall -pipe"
11836
11837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11838 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11839 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   if test "$cross_compiling" = yes; then :
11843   ac_cv_c_gcc_strength_bug="yes"
11844 else
11845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h.  */
11847 int L[4] = {0,1,2,3};
11848 int
11849 main ()
11850 {
11851 static int Array[3];
11852   unsigned int B = 3;
11853   int i;
11854   for(i=0; i<B; i++) Array[i] = i - 3;
11855   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11856   L[i] = 4;
11857   return (Array[1] != -2 || L[2] != 3)
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_run "$LINENO"; then :
11863   ac_cv_c_gcc_strength_bug="no"
11864 else
11865   ac_cv_c_gcc_strength_bug="yes"
11866 fi
11867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11868   conftest.$ac_objext conftest.beam conftest.$ac_ext
11869 fi
11870
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11873 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11874   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11875   then
11876     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11877   fi
11878
11879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11880 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11881 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   ac_wine_try_cflags_saved=$CFLAGS
11885 CFLAGS="$CFLAGS -fno-builtin"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888 int main(int argc, char **argv) { return 0; }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891   ac_cv_cflags__fno_builtin=yes
11892 else
11893   ac_cv_cflags__fno_builtin=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896     conftest$ac_exeext conftest.$ac_ext
11897 CFLAGS=$ac_wine_try_cflags_saved
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11900 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11901 if test $ac_cv_cflags__fno_builtin = yes; then :
11902   BUILTINFLAG="-fno-builtin"
11903
11904 fi
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11906 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11907 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11908   $as_echo_n "(cached) " >&6
11909 else
11910   ac_wine_try_cflags_saved=$CFLAGS
11911 CFLAGS="$CFLAGS -fno-strict-aliasing"
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h.  */
11914 int main(int argc, char **argv) { return 0; }
11915 _ACEOF
11916 if ac_fn_c_try_link "$LINENO"; then :
11917   ac_cv_cflags__fno_strict_aliasing=yes
11918 else
11919   ac_cv_cflags__fno_strict_aliasing=no
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext \
11922     conftest$ac_exeext conftest.$ac_ext
11923 CFLAGS=$ac_wine_try_cflags_saved
11924 fi
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11926 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11927 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11928   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11929 fi
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11931 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11932 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   ac_wine_try_cflags_saved=$CFLAGS
11936 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h.  */
11939 int main(int argc, char **argv) { return 0; }
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942   ac_cv_cflags__Wdeclaration_after_statement=yes
11943 else
11944   ac_cv_cflags__Wdeclaration_after_statement=no
11945 fi
11946 rm -f core conftest.err conftest.$ac_objext \
11947     conftest$ac_exeext conftest.$ac_ext
11948 CFLAGS=$ac_wine_try_cflags_saved
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11951 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11952 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11953   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11954 fi
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11956 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11957 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   ac_wine_try_cflags_saved=$CFLAGS
11961 CFLAGS="$CFLAGS -Wstrict-prototypes"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h.  */
11964 int main(int argc, char **argv) { return 0; }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967   ac_cv_cflags__Wstrict_prototypes=yes
11968 else
11969   ac_cv_cflags__Wstrict_prototypes=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972     conftest$ac_exeext conftest.$ac_ext
11973 CFLAGS=$ac_wine_try_cflags_saved
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11976 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11977 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11978   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11979 fi
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11981 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11982 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11983   $as_echo_n "(cached) " >&6
11984 else
11985   ac_wine_try_cflags_saved=$CFLAGS
11986 CFLAGS="$CFLAGS -Wtype-limits"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h.  */
11989 int main(int argc, char **argv) { return 0; }
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992   ac_cv_cflags__Wtype_limits=yes
11993 else
11994   ac_cv_cflags__Wtype_limits=no
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext \
11997     conftest$ac_exeext conftest.$ac_ext
11998 CFLAGS=$ac_wine_try_cflags_saved
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12001 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12002 if test $ac_cv_cflags__Wtype_limits = yes; then :
12003   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12004 fi
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12006 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12007 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   ac_wine_try_cflags_saved=$CFLAGS
12011 CFLAGS="$CFLAGS -Wwrite-strings"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12014 int main(int argc, char **argv) { return 0; }
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017   ac_cv_cflags__Wwrite_strings=yes
12018 else
12019   ac_cv_cflags__Wwrite_strings=no
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext \
12022     conftest$ac_exeext conftest.$ac_ext
12023 CFLAGS=$ac_wine_try_cflags_saved
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12026 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12027 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12028   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12029 fi
12030
12031     saved_CFLAGS="$CFLAGS"
12032   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
12034 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
12035 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h.  */
12040 #include <string.h>
12041 int
12042 main ()
12043 {
12044
12045   ;
12046   return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050   ac_cv_c_string_h_warnings=no
12051 else
12052   ac_cv_c_string_h_warnings=yes
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12057 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12058   CFLAGS="$saved_CFLAGS"
12059   if test "$ac_cv_c_string_h_warnings" = "no"
12060   then
12061     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12062   fi
12063
12064     if test "x$enable_maintainer_mode" = "xyes"
12065   then
12066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12067 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12068 if test "${ac_cv_cflags__Werror+set}" = set; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   ac_wine_try_cflags_saved=$CFLAGS
12072 CFLAGS="$CFLAGS -Werror"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075 int main(int argc, char **argv) { return 0; }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"; then :
12078   ac_cv_cflags__Werror=yes
12079 else
12080   ac_cv_cflags__Werror=no
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext \
12083     conftest$ac_exeext conftest.$ac_ext
12084 CFLAGS=$ac_wine_try_cflags_saved
12085 fi
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12087 $as_echo "$ac_cv_cflags__Werror" >&6; }
12088 if test $ac_cv_cflags__Werror = yes; then :
12089   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12090 fi
12091   fi
12092
12093     saved_CFLAGS="$CFLAGS"
12094   CFLAGS="$CFLAGS -Werror"
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12096 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12097 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h.  */
12102 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12103 int
12104 main ()
12105 {
12106
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_compile "$LINENO"; then :
12112   ac_cv_have_ms_hook_prologue="yes"
12113 else
12114   ac_cv_have_ms_hook_prologue="no"
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12119 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12120   CFLAGS="$saved_CFLAGS"
12121   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12122   then
12123
12124 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12125
12126   else
12127       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12128
12129   fi
12130 fi
12131
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12134 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12135 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140 #include <string.h>
12141 int
12142 main ()
12143 {
12144 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12145 #error Fortify enabled
12146 #endif
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_compile "$LINENO"; then :
12152   ac_cv_c_fortify_enabled=no
12153 else
12154   ac_cv_c_fortify_enabled=yes
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12159 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12160 if test "$ac_cv_c_fortify_enabled" = yes
12161 then
12162     EXTRACFLAGS="$EXTRACFLAGS -D_FORTIFY_SOURCE=0"
12163 fi
12164
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12167 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12168 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h.  */
12173 extern int ac_test;
12174 int
12175 main ()
12176 {
12177 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183   ac_cv_c_extern_prefix="yes"
12184 else
12185   ac_cv_c_extern_prefix="no"
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188     conftest$ac_exeext conftest.$ac_ext
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12191 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12192
12193 case $host_cpu in
12194   *i[3456789]86*)
12195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12196 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12197 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12198   $as_echo_n "(cached) " >&6
12199 else
12200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h.  */
12202 #ifndef _MSC_VER
12203 #define __stdcall __attribute__((__stdcall__))
12204 #endif
12205 int __stdcall ac_test(int i) { return i; }
12206 int
12207 main ()
12208 {
12209 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215   ac_cv_c_stdcall_suffix="yes"
12216 else
12217   ac_cv_c_stdcall_suffix="no"
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12223 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12224   *) ac_cv_c_stdcall_suffix="no" ;;
12225 esac
12226
12227
12228 if test "$ac_cv_c_extern_prefix" = "yes"
12229 then
12230     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12231
12232     asm_name_prefix="_"
12233 else
12234     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12235
12236     asm_name_prefix=""
12237 fi
12238
12239
12240 if test "$ac_cv_c_stdcall_suffix" = "yes"
12241 then
12242     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12243
12244 else
12245     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12246
12247 fi
12248
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12251 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12252 if test "${ac_cv_asm_func_def+set}" = set; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h.  */
12257
12258 int
12259 main ()
12260 {
12261 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267   ac_cv_asm_func_def=".def"
12268 else
12269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h.  */
12271
12272 int
12273 main ()
12274 {
12275 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_link "$LINENO"; then :
12281   ac_cv_asm_func_def=".type @function"
12282 else
12283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285
12286 int
12287 main ()
12288 {
12289 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295   ac_cv_asm_func_def=".type 2"
12296 else
12297   ac_cv_asm_func_def="unknown"
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext \
12300     conftest$ac_exeext conftest.$ac_ext
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303     conftest$ac_exeext conftest.$ac_ext
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext \
12306     conftest$ac_exeext conftest.$ac_ext
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12309 $as_echo "$ac_cv_asm_func_def" >&6; }
12310
12311
12312 case "$ac_cv_asm_func_def" in
12313   ".def")
12314      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12315
12316      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12317   ".type @function")
12318      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12319
12320      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12321   ".type 2")
12322      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12323
12324      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12325   *)
12326      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12327
12328      asm_func_header="" ;;
12329 esac
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12332 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12333 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338 asm(".text\n\t.long 0");
12339 int
12340 main ()
12341 {
12342
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348   ac_cv_c_asm_outside_funcs="yes"
12349 else
12350   ac_cv_c_asm_outside_funcs="no"
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12355 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12356
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12358 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12359 if test "${ac_cv_c_dot_previous+set}" = set; then :
12360   $as_echo_n "(cached) " >&6
12361 else
12362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h.  */
12364
12365 int
12366 main ()
12367 {
12368 asm(".text\nac_test:\t.long 0\n\t.previous");
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374   ac_cv_c_dot_previous="yes"
12375 else
12376   ac_cv_c_dot_previous="no"
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379     conftest$ac_exeext conftest.$ac_ext
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12382 $as_echo "$ac_cv_c_dot_previous" >&6; }
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12385 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12386 if test "${ac_cv_c_cfi_support+set}" = set; then :
12387   $as_echo_n "(cached) " >&6
12388 else
12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12392 int
12393 main ()
12394 {
12395
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401   ac_cv_c_cfi_support="yes"
12402 else
12403   ac_cv_c_cfi_support="no"
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12408 $as_echo "$ac_cv_c_cfi_support" >&6; }
12409
12410 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12411 asm_func_trailer=""
12412 if test "$ac_cv_c_dot_previous" = "yes"
12413 then
12414    asm_func_trailer="\\n\\t.previous"
12415 fi
12416 if test "$ac_cv_c_cfi_support" = "yes"
12417 then
12418    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12419    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12420
12421 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12422
12423    UNWINDFLAGS=-fasynchronous-unwind-tables
12424
12425 else
12426    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12427
12428 fi
12429
12430 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12431
12432
12433 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12434 then
12435     cat >>confdefs.h <<_ACEOF
12436 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12437 _ACEOF
12438
12439 else
12440     cat >>confdefs.h <<_ACEOF
12441 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12442 _ACEOF
12443
12444 fi
12445
12446 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12447
12448
12449 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12450
12451
12452
12453 LDPATH=""
12454
12455 case $build_os in
12456   cygwin*|mingw32*)
12457     TOOLSEXT=".exe"
12458
12459     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12460     ;;
12461   darwin*|macosx*)
12462     ;;
12463   *)
12464     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12465     ;;
12466 esac
12467
12468 case $host_os in
12469   mingw32*)
12470     CRTLIBS="-lmsvcrt"
12471
12472     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12473
12474     ;;
12475 esac
12476
12477 MAIN_BINARY="wine"
12478
12479 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12480
12481 case $host_cpu in
12482   *i[3456789]86*)
12483     case $host_os in
12484       linux*)
12485         EXTRA_BINARIES="wine-preloader"
12486  ;;
12487     esac
12488     ;;
12489 esac
12490
12491
12492 ac_save_CFLAGS="$CFLAGS"
12493 CFLAGS="$CFLAGS $BUILTINFLAG"
12494 for ac_func in \
12495         _pclose \
12496         _popen \
12497         _snprintf \
12498         _spawnvp \
12499         _strdup \
12500         _stricmp \
12501         _strnicmp \
12502         _strtoi64 \
12503         _strtoui64 \
12504         _vsnprintf \
12505         asctime_r \
12506         chsize \
12507         dlopen \
12508         epoll_create \
12509         ffs \
12510         finite \
12511         fnmatch \
12512         fork \
12513         fpclass \
12514         fstatfs \
12515         fstatvfs \
12516         ftruncate \
12517         futimes \
12518         futimesat \
12519         getdirentries \
12520         getopt_long \
12521         getpagesize \
12522         getpwuid \
12523         gettid \
12524         gettimeofday \
12525         getuid \
12526         kqueue \
12527         lstat \
12528         memmove \
12529         mmap \
12530         pclose \
12531         pipe2 \
12532         poll \
12533         popen \
12534         port_create \
12535         prctl \
12536         pread \
12537         pwrite \
12538         readdir \
12539         readlink \
12540         sched_setaffinity \
12541         sched_yield \
12542         select \
12543         setproctitle \
12544         setrlimit \
12545         settimeofday \
12546         sigaltstack \
12547         sigprocmask \
12548         snprintf \
12549         spawnvp \
12550         statfs \
12551         statvfs \
12552         strcasecmp \
12553         strdup \
12554         strerror \
12555         strncasecmp \
12556         strtold \
12557         strtoll \
12558         strtoull \
12559         symlink \
12560         tcgetattr \
12561         thr_kill2 \
12562         timegm \
12563         usleep \
12564         vsnprintf \
12565         wait4 \
12566         waitpid \
12567
12568 do :
12569   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12572   cat >>confdefs.h <<_ACEOF
12573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12574 _ACEOF
12575
12576 fi
12577 done
12578
12579 CFLAGS="$ac_save_CFLAGS"
12580
12581 if test "$ac_cv_func_dlopen" = no
12582 then
12583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldl  $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char dlopen ();
12600 int
12601 main ()
12602 {
12603 return dlopen ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609   ac_cv_lib_dl_dlopen=yes
12610 else
12611   ac_cv_lib_dl_dlopen=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614     conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12619 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12620   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12621  LIBDL="-ldl"
12622
12623 fi
12624
12625 fi
12626 ac_wine_check_funcs_save_LIBS="$LIBS"
12627 LIBS="$LIBS $LIBDL"
12628 for ac_func in dladdr
12629 do :
12630   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12631 if test "x$ac_cv_func_dladdr" = x""yes; then :
12632   cat >>confdefs.h <<_ACEOF
12633 #define HAVE_DLADDR 1
12634 _ACEOF
12635
12636 fi
12637 done
12638
12639 LIBS="$ac_wine_check_funcs_save_LIBS"
12640
12641 if test "$ac_cv_func_poll" = no
12642 then
12643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12644 $as_echo_n "checking for poll in -lpoll... " >&6; }
12645 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   ac_check_lib_save_LIBS=$LIBS
12649 LIBS="-lpoll  $LIBS"
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h.  */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654    Use char because int might match the return type of a GCC
12655    builtin and then its argument prototype would still apply.  */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char poll ();
12660 int
12661 main ()
12662 {
12663 return poll ();
12664   ;
12665   return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669   ac_cv_lib_poll_poll=yes
12670 else
12671   ac_cv_lib_poll_poll=no
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674     conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12678 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12679 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12680   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12681  LIBPOLL="-lpoll"
12682
12683 fi
12684
12685 fi
12686
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12688 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12689 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   ac_func_search_save_LIBS=$LIBS
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h.  */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697    Use char because int might match the return type of a GCC
12698    builtin and then its argument prototype would still apply.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char gethostbyname ();
12703 int
12704 main ()
12705 {
12706 return gethostbyname ();
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 for ac_lib in '' nsl; do
12712   if test -z "$ac_lib"; then
12713     ac_res="none required"
12714   else
12715     ac_res=-l$ac_lib
12716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12717   fi
12718   if ac_fn_c_try_link "$LINENO"; then :
12719   ac_cv_search_gethostbyname=$ac_res
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext
12723   if test "${ac_cv_search_gethostbyname+set}" = set; then :
12724   break
12725 fi
12726 done
12727 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12728
12729 else
12730   ac_cv_search_gethostbyname=no
12731 fi
12732 rm conftest.$ac_ext
12733 LIBS=$ac_func_search_save_LIBS
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12736 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12737 ac_res=$ac_cv_search_gethostbyname
12738 if test "$ac_res" != no; then :
12739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12740
12741 fi
12742
12743
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12745 $as_echo_n "checking for library containing connect... " >&6; }
12746 if test "${ac_cv_search_connect+set}" = set; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   ac_func_search_save_LIBS=$LIBS
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752
12753 /* Override any GCC internal prototype to avoid an error.
12754    Use char because int might match the return type of a GCC
12755    builtin and then its argument prototype would still apply.  */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 char connect ();
12760 int
12761 main ()
12762 {
12763 return connect ();
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 for ac_lib in '' socket; do
12769   if test -z "$ac_lib"; then
12770     ac_res="none required"
12771   else
12772     ac_res=-l$ac_lib
12773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12774   fi
12775   if ac_fn_c_try_link "$LINENO"; then :
12776   ac_cv_search_connect=$ac_res
12777 fi
12778 rm -f core conftest.err conftest.$ac_objext \
12779     conftest$ac_exeext
12780   if test "${ac_cv_search_connect+set}" = set; then :
12781   break
12782 fi
12783 done
12784 if test "${ac_cv_search_connect+set}" = set; then :
12785
12786 else
12787   ac_cv_search_connect=no
12788 fi
12789 rm conftest.$ac_ext
12790 LIBS=$ac_func_search_save_LIBS
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12793 $as_echo "$ac_cv_search_connect" >&6; }
12794 ac_res=$ac_cv_search_connect
12795 if test "$ac_res" != no; then :
12796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12797
12798 fi
12799
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12802 $as_echo_n "checking for library containing inet_aton... " >&6; }
12803 if test "${ac_cv_search_inet_aton+set}" = set; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   ac_func_search_save_LIBS=$LIBS
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char inet_aton ();
12817 int
12818 main ()
12819 {
12820 return inet_aton ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 for ac_lib in '' resolv; do
12826   if test -z "$ac_lib"; then
12827     ac_res="none required"
12828   else
12829     ac_res=-l$ac_lib
12830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12831   fi
12832   if ac_fn_c_try_link "$LINENO"; then :
12833   ac_cv_search_inet_aton=$ac_res
12834 fi
12835 rm -f core conftest.err conftest.$ac_objext \
12836     conftest$ac_exeext
12837   if test "${ac_cv_search_inet_aton+set}" = set; then :
12838   break
12839 fi
12840 done
12841 if test "${ac_cv_search_inet_aton+set}" = set; then :
12842
12843 else
12844   ac_cv_search_inet_aton=no
12845 fi
12846 rm conftest.$ac_ext
12847 LIBS=$ac_func_search_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12850 $as_echo "$ac_cv_search_inet_aton" >&6; }
12851 ac_res=$ac_cv_search_inet_aton
12852 if test "$ac_res" != no; then :
12853   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12854
12855 fi
12856
12857
12858 for ac_func in \
12859         getaddrinfo \
12860         getnameinfo \
12861         getnetbyname \
12862         getprotobyname \
12863         getprotobynumber \
12864         getservbyport \
12865         inet_network \
12866         inet_ntop \
12867         inet_pton \
12868         sendmsg \
12869         socketpair \
12870
12871 do :
12872   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12874 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12875   cat >>confdefs.h <<_ACEOF
12876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12877 _ACEOF
12878
12879 fi
12880 done
12881
12882
12883 LDAPLIBS=""
12884
12885 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12886 then
12887     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12888 "
12889 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12891 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12892 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h.  */
12899
12900 /* Override any GCC internal prototype to avoid an error.
12901    Use char because int might match the return type of a GCC
12902    builtin and then its argument prototype would still apply.  */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char ldap_initialize ();
12907 int
12908 main ()
12909 {
12910 return ldap_initialize ();
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916   ac_cv_lib_ldap_r_ldap_initialize=yes
12917 else
12918   ac_cv_lib_ldap_r_ldap_initialize=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921     conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12923 fi
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12925 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12926 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12928 $as_echo_n "checking for ber_init in -llber... " >&6; }
12929 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12930   $as_echo_n "(cached) " >&6
12931 else
12932   ac_check_lib_save_LIBS=$LIBS
12933 LIBS="-llber $LIBPTHREAD $LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h.  */
12936
12937 /* Override any GCC internal prototype to avoid an error.
12938    Use char because int might match the return type of a GCC
12939    builtin and then its argument prototype would still apply.  */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char ber_init ();
12944 int
12945 main ()
12946 {
12947 return ber_init ();
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953   ac_cv_lib_lber_ber_init=yes
12954 else
12955   ac_cv_lib_lber_ber_init=no
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext \
12958     conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12962 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12963 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12964
12965 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12966
12967                  LDAPLIBS="-lldap_r -llber"
12968 fi
12969
12970 fi
12971
12972 fi
12973
12974     ac_wine_check_funcs_save_LIBS="$LIBS"
12975 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12976 for ac_func in \
12977         ldap_count_references \
12978         ldap_first_reference \
12979         ldap_next_reference \
12980         ldap_parse_reference \
12981         ldap_parse_sort_control \
12982         ldap_parse_sortresponse_control \
12983         ldap_parse_vlv_control \
12984         ldap_parse_vlvresponse_control
12985 do :
12986   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12989   cat >>confdefs.h <<_ACEOF
12990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12991 _ACEOF
12992
12993 fi
12994 done
12995
12996 LIBS="$ac_wine_check_funcs_save_LIBS"
12997 fi
12998 if test "x$LDAPLIBS" = "x"; then :
12999   case "x$with_ldap" in
13000   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13001   xno) ;;
13002   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13003 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13004 esac
13005 fi
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13008 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13009 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 #include <sys/stat.h>
13015 int
13016 main ()
13017 {
13018 mkdir("foo");
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 if ac_fn_c_try_compile "$LINENO"; then :
13024   wine_cv_one_arg_mkdir=yes
13025 else
13026   wine_cv_one_arg_mkdir=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13031 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13032 if test "$wine_cv_one_arg_mkdir" = "yes"
13033 then
13034
13035 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13036
13037 fi
13038
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13041 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13042 if test "${ac_cv_c_const+set}" = set; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h.  */
13047
13048 int
13049 main ()
13050 {
13051 /* FIXME: Include the comments suggested by Paul. */
13052 #ifndef __cplusplus
13053   /* Ultrix mips cc rejects this.  */
13054   typedef int charset[2];
13055   const charset cs;
13056   /* SunOS 4.1.1 cc rejects this.  */
13057   char const *const *pcpcc;
13058   char **ppc;
13059   /* NEC SVR4.0.2 mips cc rejects this.  */
13060   struct point {int x, y;};
13061   static struct point const zero = {0,0};
13062   /* AIX XL C 1.02.0.0 rejects this.
13063      It does not let you subtract one const X* pointer from another in
13064      an arm of an if-expression whose if-part is not a constant
13065      expression */
13066   const char *g = "string";
13067   pcpcc = &g + (g ? g-g : 0);
13068   /* HPUX 7.0 cc rejects these. */
13069   ++pcpcc;
13070   ppc = (char**) pcpcc;
13071   pcpcc = (char const *const *) ppc;
13072   { /* SCO 3.2v4 cc rejects this.  */
13073     char *t;
13074     char const *s = 0 ? (char *) 0 : (char const *) 0;
13075
13076     *t++ = 0;
13077     if (s) return 0;
13078   }
13079   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13080     int x[] = {25, 17};
13081     const int *foo = &x[0];
13082     ++foo;
13083   }
13084   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13085     typedef const int *iptr;
13086     iptr p = 0;
13087     ++p;
13088   }
13089   { /* AIX XL C 1.02.0.0 rejects this saying
13090        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13091     struct s { int j; const int *ap[3]; };
13092     struct s *b; b->j = 5;
13093   }
13094   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13095     const int foo = 10;
13096     if (!foo) return 0;
13097   }
13098   return !cs[0] && !zero.x;
13099 #endif
13100
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106   ac_cv_c_const=yes
13107 else
13108   ac_cv_c_const=no
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13113 $as_echo "$ac_cv_c_const" >&6; }
13114 if test $ac_cv_c_const = no; then
13115
13116 $as_echo "#define const /**/" >>confdefs.h
13117
13118 fi
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13121 $as_echo_n "checking for inline... " >&6; }
13122 if test "${ac_cv_c_inline+set}" = set; then :
13123   $as_echo_n "(cached) " >&6
13124 else
13125   ac_cv_c_inline=no
13126 for ac_kw in inline __inline__ __inline; do
13127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h.  */
13129 #ifndef __cplusplus
13130 typedef int foo_t;
13131 static $ac_kw foo_t static_foo () {return 0; }
13132 $ac_kw foo_t foo () {return 0; }
13133 #endif
13134
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137   ac_cv_c_inline=$ac_kw
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140   test "$ac_cv_c_inline" != no && break
13141 done
13142
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13145 $as_echo "$ac_cv_c_inline" >&6; }
13146
13147 case $ac_cv_c_inline in
13148   inline | yes) ;;
13149   *)
13150     case $ac_cv_c_inline in
13151       no) ac_val=;;
13152       *) ac_val=$ac_cv_c_inline;;
13153     esac
13154     cat >>confdefs.h <<_ACEOF
13155 #ifndef __cplusplus
13156 #define inline $ac_val
13157 #endif
13158 _ACEOF
13159     ;;
13160 esac
13161
13162 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13163 if test "x$ac_cv_type_mode_t" = x""yes; then :
13164
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_MODE_T 1
13167 _ACEOF
13168
13169
13170 fi
13171 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13172 if test "x$ac_cv_type_off_t" = x""yes; then :
13173
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_OFF_T 1
13176 _ACEOF
13177
13178
13179 fi
13180 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13181 if test "x$ac_cv_type_pid_t" = x""yes; then :
13182
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_PID_T 1
13185 _ACEOF
13186
13187
13188 fi
13189 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13190 if test "x$ac_cv_type_size_t" = x""yes; then :
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define HAVE_SIZE_T 1
13194 _ACEOF
13195
13196
13197 fi
13198 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13199 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13200
13201 cat >>confdefs.h <<_ACEOF
13202 #define HAVE_SSIZE_T 1
13203 _ACEOF
13204
13205
13206 fi
13207 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13208 if test "x$ac_cv_type_long_long" = x""yes; then :
13209
13210 cat >>confdefs.h <<_ACEOF
13211 #define HAVE_LONG_LONG 1
13212 _ACEOF
13213
13214
13215 fi
13216 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13217 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_FSBLKCNT_T 1
13221 _ACEOF
13222
13223
13224 fi
13225 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13226 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define HAVE_FSFILCNT_T 1
13230 _ACEOF
13231
13232
13233 fi
13234
13235 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13236 #include <signal.h>
13237 "
13238 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13239
13240 cat >>confdefs.h <<_ACEOF
13241 #define HAVE_SIGSET_T 1
13242 _ACEOF
13243
13244
13245 fi
13246
13247 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13248 "
13249 if test "x$ac_cv_type_request_sense" = x""yes; then :
13250
13251 cat >>confdefs.h <<_ACEOF
13252 #define HAVE_REQUEST_SENSE 1
13253 _ACEOF
13254
13255
13256 fi
13257
13258
13259 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13260 #ifdef HAVE_SYS_SOCKET_H
13261 #include <sys/socket.h>
13262 #endif
13263 #ifdef HAVE_SYS_SOCKETVAR_H
13264 #include <sys/socketvar.h>
13265 #endif
13266 #ifdef HAVE_NET_ROUTE_H
13267 #include <net/route.h>
13268 #endif
13269 #ifdef HAVE_NETINET_IN_H
13270 #include <netinet/in.h>
13271 #endif
13272 #ifdef HAVE_NETINET_IN_SYSTM_H
13273 #include <netinet/in_systm.h>
13274 #endif
13275 #ifdef HAVE_NETINET_IP_H
13276 #include <netinet/ip.h>
13277 #endif
13278 #ifdef HAVE_NETINET_IN_PCB_H
13279 #include <netinet/in_pcb.h>
13280 #endif
13281 "
13282 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13283
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_STRUCT_XINPGEN 1
13286 _ACEOF
13287
13288
13289 fi
13290
13291
13292 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13293 #include <linux/input.h>
13294 #endif
13295 "
13296 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13297
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13300 _ACEOF
13301
13302
13303 fi
13304
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13307 $as_echo_n "checking for sigaddset... " >&6; }
13308 if test "${wine_cv_have_sigaddset+set}" = set; then :
13309   $as_echo_n "(cached) " >&6
13310 else
13311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h.  */
13313 #include <signal.h>
13314 int
13315 main ()
13316 {
13317 sigset_t set; sigaddset(&set,SIGTERM);
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_link "$LINENO"; then :
13323   wine_cv_have_sigaddset=yes
13324 else
13325   wine_cv_have_sigaddset=no
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext \
13328     conftest$ac_exeext conftest.$ac_ext
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13331 $as_echo "$wine_cv_have_sigaddset" >&6; }
13332 if test "$wine_cv_have_sigaddset" = "yes"
13333 then
13334
13335 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13336
13337 fi
13338
13339
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13341 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13342 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h.  */
13347 #include <netdb.h>
13348 int
13349 main ()
13350 {
13351
13352     char *name=0;
13353     struct hostent he;
13354     struct hostent *result;
13355     char *buf=0;
13356     int bufsize=0;
13357     int res,errnr;
13358     char *addr=0;
13359     int addrlen=0;
13360     int addrtype=0;
13361     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13362     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13363
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369   wine_cv_linux_gethostbyname_r_6=yes
13370 else
13371   wine_cv_linux_gethostbyname_r_6=no
13372
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext \
13375     conftest$ac_exeext conftest.$ac_ext
13376
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13379 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13380    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13381    then
13382
13383 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13384
13385    fi
13386
13387 if test "$ac_cv_header_linux_joystick_h" = "yes"
13388 then
13389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13390 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13391 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h.  */
13396
13397         #include <sys/ioctl.h>
13398         #include <sys/types.h>
13399         #include <linux/joystick.h>
13400
13401         struct js_event blub;
13402         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13403         #error "no 2.2 header"
13404         #endif
13405
13406 int
13407 main ()
13408 {
13409 /*empty*/
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415   wine_cv_linux_joystick_22_api=yes
13416 else
13417   wine_cv_linux_joystick_22_api=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13423 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13424    if test "$wine_cv_linux_joystick_22_api" = "yes"
13425    then
13426
13427 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13428
13429    fi
13430 fi
13431
13432
13433 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13434 #ifdef HAVE_SYS_PARAM_H
13435 # include <sys/param.h>
13436 #endif
13437 #ifdef HAVE_SYS_MOUNT_H
13438 # include <sys/mount.h>
13439 #endif
13440 #ifdef HAVE_SYS_VFS_H
13441 # include <sys/vfs.h>
13442 #endif
13443 #ifdef HAVE_SYS_STATFS_H
13444 # include <sys/statfs.h>
13445 #endif
13446 "
13447 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13448
13449 cat >>confdefs.h <<_ACEOF
13450 #define HAVE_STRUCT_STATFS_F_BFREE 1
13451 _ACEOF
13452
13453
13454 fi
13455 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13456 #ifdef HAVE_SYS_PARAM_H
13457 # include <sys/param.h>
13458 #endif
13459 #ifdef HAVE_SYS_MOUNT_H
13460 # include <sys/mount.h>
13461 #endif
13462 #ifdef HAVE_SYS_VFS_H
13463 # include <sys/vfs.h>
13464 #endif
13465 #ifdef HAVE_SYS_STATFS_H
13466 # include <sys/statfs.h>
13467 #endif
13468 "
13469 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13470
13471 cat >>confdefs.h <<_ACEOF
13472 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13473 _ACEOF
13474
13475
13476 fi
13477 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13478 #ifdef HAVE_SYS_PARAM_H
13479 # include <sys/param.h>
13480 #endif
13481 #ifdef HAVE_SYS_MOUNT_H
13482 # include <sys/mount.h>
13483 #endif
13484 #ifdef HAVE_SYS_VFS_H
13485 # include <sys/vfs.h>
13486 #endif
13487 #ifdef HAVE_SYS_STATFS_H
13488 # include <sys/statfs.h>
13489 #endif
13490 "
13491 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13492
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13495 _ACEOF
13496
13497
13498 fi
13499 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13500 #ifdef HAVE_SYS_PARAM_H
13501 # include <sys/param.h>
13502 #endif
13503 #ifdef HAVE_SYS_MOUNT_H
13504 # include <sys/mount.h>
13505 #endif
13506 #ifdef HAVE_SYS_VFS_H
13507 # include <sys/vfs.h>
13508 #endif
13509 #ifdef HAVE_SYS_STATFS_H
13510 # include <sys/statfs.h>
13511 #endif
13512 "
13513 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13514
13515 cat >>confdefs.h <<_ACEOF
13516 #define HAVE_STRUCT_STATFS_F_FFREE 1
13517 _ACEOF
13518
13519
13520 fi
13521 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13522 #ifdef HAVE_SYS_PARAM_H
13523 # include <sys/param.h>
13524 #endif
13525 #ifdef HAVE_SYS_MOUNT_H
13526 # include <sys/mount.h>
13527 #endif
13528 #ifdef HAVE_SYS_VFS_H
13529 # include <sys/vfs.h>
13530 #endif
13531 #ifdef HAVE_SYS_STATFS_H
13532 # include <sys/statfs.h>
13533 #endif
13534 "
13535 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13536
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13539 _ACEOF
13540
13541
13542 fi
13543 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13544 #ifdef HAVE_SYS_PARAM_H
13545 # include <sys/param.h>
13546 #endif
13547 #ifdef HAVE_SYS_MOUNT_H
13548 # include <sys/mount.h>
13549 #endif
13550 #ifdef HAVE_SYS_VFS_H
13551 # include <sys/vfs.h>
13552 #endif
13553 #ifdef HAVE_SYS_STATFS_H
13554 # include <sys/statfs.h>
13555 #endif
13556 "
13557 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13561 _ACEOF
13562
13563
13564 fi
13565
13566
13567 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13568 #include <sys/statvfs.h>
13569 #endif
13570 "
13571 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13572
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13575 _ACEOF
13576
13577
13578 fi
13579
13580
13581 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13582 #ifdef HAVE_SYS_SOCKET_H
13583 # include <sys/socket.h>
13584 #endif
13585 #ifdef HAVE_SYS_UN_H
13586 # include <sys/un.h>
13587 #endif
13588 "
13589 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13590
13591 cat >>confdefs.h <<_ACEOF
13592 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13593 _ACEOF
13594
13595
13596 fi
13597 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13598 #ifdef HAVE_SYS_SOCKET_H
13599 # include <sys/socket.h>
13600 #endif
13601 #ifdef HAVE_SYS_UN_H
13602 # include <sys/un.h>
13603 #endif
13604 "
13605 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13609 _ACEOF
13610
13611
13612 fi
13613 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13614 #ifdef HAVE_SYS_SOCKET_H
13615 # include <sys/socket.h>
13616 #endif
13617 #ifdef HAVE_SYS_UN_H
13618 # include <sys/un.h>
13619 #endif
13620 "
13621 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13622
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13625 _ACEOF
13626
13627
13628 fi
13629
13630
13631 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13632 #ifdef HAVE_SCSI_SG_H
13633 #include <scsi/sg.h>
13634 #endif
13635 "
13636 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13637
13638 cat >>confdefs.h <<_ACEOF
13639 #define HAVE_SCSIREQ_T_CMD 1
13640 _ACEOF
13641
13642
13643 fi
13644 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>
13645 #ifdef HAVE_SCSI_SG_H
13646 #include <scsi/sg.h>
13647 #endif
13648 "
13649 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13650
13651 cat >>confdefs.h <<_ACEOF
13652 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13653 _ACEOF
13654
13655
13656 fi
13657
13658
13659 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13660 "
13661 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13662
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_SIGINFO_T_SI_FD 1
13665 _ACEOF
13666
13667
13668 fi
13669
13670
13671 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13672 #ifdef HAVE_SYS_MTIO_H
13673 #include <sys/mtio.h>
13674 #endif
13675 "
13676 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13677
13678 cat >>confdefs.h <<_ACEOF
13679 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13680 _ACEOF
13681
13682
13683 fi
13684 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13685 #ifdef HAVE_SYS_MTIO_H
13686 #include <sys/mtio.h>
13687 #endif
13688 "
13689 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13690
13691 cat >>confdefs.h <<_ACEOF
13692 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13693 _ACEOF
13694
13695
13696 fi
13697 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13698 #ifdef HAVE_SYS_MTIO_H
13699 #include <sys/mtio.h>
13700 #endif
13701 "
13702 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13703
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13706 _ACEOF
13707
13708
13709 fi
13710
13711
13712 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13713 #include <getopt.h>
13714 #endif
13715 "
13716 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13717
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_STRUCT_OPTION_NAME 1
13720 _ACEOF
13721
13722
13723 fi
13724
13725
13726 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13727 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13728
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13731 _ACEOF
13732
13733
13734 fi
13735 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13736 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13737
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_STRUCT_STAT_ST_MTIM 1
13740 _ACEOF
13741
13742
13743 fi
13744 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13745 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_STRUCT_STAT_ST_CTIM 1
13749 _ACEOF
13750
13751
13752 fi
13753 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13754 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13755
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_STRUCT_STAT_ST_ATIM 1
13758 _ACEOF
13759
13760
13761 fi
13762
13763
13764 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
13765 #include <sys/types.h>
13766 #endif
13767 #ifdef HAVE_NETINET_IN_H
13768 #include <netinet/in.h>
13769 #endif
13770 "
13771 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13775 _ACEOF
13776
13777
13778 fi
13779
13780
13781 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13782 #include <sys/types.h>
13783 #endif
13784 #ifdef HAVE_NETINET_IN_H
13785 # include <netinet/in.h>
13786 #endif
13787 #ifdef HAVE_ARPA_NAMESER_H
13788 # include <arpa/nameser.h>
13789 #endif
13790 "
13791 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_NS_MSG__MSG_PTR 1
13795 _ACEOF
13796
13797
13798 fi
13799
13800
13801 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13802 #include <sys/types.h>
13803 #endif
13804 #ifdef HAVE_ALIAS_H
13805 #include <alias.h>
13806 #endif
13807 #ifdef HAVE_SYS_SOCKET_H
13808 #include <sys/socket.h>
13809 #endif
13810 #ifdef HAVE_SYS_SOCKETVAR_H
13811 #include <sys/socketvar.h>
13812 #endif
13813 #ifdef HAVE_SYS_TIMEOUT_H
13814 #include <sys/timeout.h>
13815 #endif
13816 #ifdef HAVE_NETINET_IN_H
13817 #include <netinet/in.h>
13818 #endif
13819 #ifdef HAVE_NETINET_IN_SYSTM_H
13820 #include <netinet/in_systm.h>
13821 #endif
13822 #ifdef HAVE_NETINET_IP_H
13823 #include <netinet/ip.h>
13824 #endif
13825 #ifdef HAVE_NETINET_IP_VAR_H
13826 #include <netinet/ip_var.h>
13827 #endif
13828 #ifdef HAVE_NETINET_IP_ICMP_H
13829 #include <netinet/ip_icmp.h>
13830 #endif
13831 #ifdef HAVE_NETINET_ICMP_VAR
13832 #include <netinet/icmp_var.h>
13833 #endif
13834 "
13835 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13836
13837 cat >>confdefs.h <<_ACEOF
13838 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13839 _ACEOF
13840
13841
13842 fi
13843
13844
13845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13846 #include <sys/types.h>
13847 #endif
13848 #ifdef HAVE_NET_IF_H
13849 # include <net/if.h>
13850 #endif
13851 "
13852 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13853
13854 cat >>confdefs.h <<_ACEOF
13855 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13856 _ACEOF
13857
13858
13859 fi
13860
13861
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13863 $as_echo_n "checking for timezone variable... " >&6; }
13864 if test "${ac_cv_have_timezone+set}" = set; then :
13865   $as_echo_n "(cached) " >&6
13866 else
13867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869 #include <time.h>
13870 int
13871 main ()
13872 {
13873 timezone = 1
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879   ac_cv_have_timezone="yes"
13880 else
13881   ac_cv_have_timezone="no"
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext \
13884     conftest$ac_exeext conftest.$ac_ext
13885 fi
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13887 $as_echo "$ac_cv_have_timezone" >&6; }
13888 if test "$ac_cv_have_timezone" = "yes"
13889 then
13890
13891 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13892
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13895 $as_echo_n "checking for daylight variable... " >&6; }
13896 if test "${ac_cv_have_daylight+set}" = set; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901 #include <time.h>
13902 int
13903 main ()
13904 {
13905 daylight = 1
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911   ac_cv_have_daylight="yes"
13912 else
13913   ac_cv_have_daylight="no"
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext \
13916     conftest$ac_exeext conftest.$ac_ext
13917 fi
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13919 $as_echo "$ac_cv_have_daylight" >&6; }
13920 if test "$ac_cv_have_daylight" = "yes"
13921 then
13922
13923 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13924
13925 fi
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13928 $as_echo_n "checking for isinf... " >&6; }
13929 if test "${ac_cv_have_isinf+set}" = set; then :
13930   $as_echo_n "(cached) " >&6
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934 #include <math.h>
13935 int
13936 main ()
13937 {
13938 float f = 0.0; int i=isinf(f)
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944   ac_cv_have_isinf="yes"
13945 else
13946   ac_cv_have_isinf="no"
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949     conftest$ac_exeext conftest.$ac_ext
13950 fi
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13952 $as_echo "$ac_cv_have_isinf" >&6; }
13953 if test "$ac_cv_have_isinf" = "yes"
13954 then
13955
13956 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13957
13958 fi
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13961 $as_echo_n "checking for isnan... " >&6; }
13962 if test "${ac_cv_have_isnan+set}" = set; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967 #include <math.h>
13968 int
13969 main ()
13970 {
13971 float f = 0.0; int i=isnan(f)
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 if ac_fn_c_try_link "$LINENO"; then :
13977   ac_cv_have_isnan="yes"
13978 else
13979   ac_cv_have_isnan="no"
13980 fi
13981 rm -f core conftest.err conftest.$ac_objext \
13982     conftest$ac_exeext conftest.$ac_ext
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13985 $as_echo "$ac_cv_have_isnan" >&6; }
13986 if test "$ac_cv_have_isnan" = "yes"
13987 then
13988
13989 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13990
13991 fi
13992
13993
13994 case $host_cpu in
13995   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13996 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13997 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13998   $as_echo_n "(cached) " >&6
13999 else
14000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h.  */
14002 #ifndef __i386__
14003 yes
14004 #endif
14005 _ACEOF
14006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14007   $EGREP "yes" >/dev/null 2>&1; then :
14008   ac_cv_cpp_def___i386__=yes
14009 else
14010   ac_cv_cpp_def___i386__=no
14011 fi
14012 rm -f conftest*
14013
14014 fi
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14016 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14017 if test $ac_cv_cpp_def___i386__ = yes; then :
14018   CFLAGS="$CFLAGS -D__i386__"
14019   LINTFLAGS="$LINTFLAGS -D__i386__"
14020 fi ;;
14021   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14022 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14023 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h.  */
14028 #ifndef __x86_64__
14029 yes
14030 #endif
14031 _ACEOF
14032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14033   $EGREP "yes" >/dev/null 2>&1; then :
14034   ac_cv_cpp_def___x86_64__=yes
14035 else
14036   ac_cv_cpp_def___x86_64__=no
14037 fi
14038 rm -f conftest*
14039
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14042 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14043 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14044   CFLAGS="$CFLAGS -D__x86_64__"
14045   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14046 fi ;;
14047   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14048 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14049 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h.  */
14054 #ifndef __ALPHA__
14055 yes
14056 #endif
14057 _ACEOF
14058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14059   $EGREP "yes" >/dev/null 2>&1; then :
14060   ac_cv_cpp_def___ALPHA__=yes
14061 else
14062   ac_cv_cpp_def___ALPHA__=no
14063 fi
14064 rm -f conftest*
14065
14066 fi
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14068 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14069 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14070   CFLAGS="$CFLAGS -D__ALPHA__"
14071   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14072 fi ;;
14073   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14074 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14075 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14076   $as_echo_n "(cached) " >&6
14077 else
14078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h.  */
14080 #ifndef __sparc__
14081 yes
14082 #endif
14083 _ACEOF
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085   $EGREP "yes" >/dev/null 2>&1; then :
14086   ac_cv_cpp_def___sparc__=yes
14087 else
14088   ac_cv_cpp_def___sparc__=no
14089 fi
14090 rm -f conftest*
14091
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14094 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14095 if test $ac_cv_cpp_def___sparc__ = yes; then :
14096   CFLAGS="$CFLAGS -D__sparc__"
14097   LINTFLAGS="$LINTFLAGS -D__sparc__"
14098 fi ;;
14099   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14100 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14101 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14102   $as_echo_n "(cached) " >&6
14103 else
14104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h.  */
14106 #ifndef __powerpc__
14107 yes
14108 #endif
14109 _ACEOF
14110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14111   $EGREP "yes" >/dev/null 2>&1; then :
14112   ac_cv_cpp_def___powerpc__=yes
14113 else
14114   ac_cv_cpp_def___powerpc__=no
14115 fi
14116 rm -f conftest*
14117
14118 fi
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14120 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14121 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14122   CFLAGS="$CFLAGS -D__powerpc__"
14123   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14124 fi ;;
14125 esac
14126
14127 case $host_vendor in
14128   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14129 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14130 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h.  */
14135 #ifndef __sun__
14136 yes
14137 #endif
14138 _ACEOF
14139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14140   $EGREP "yes" >/dev/null 2>&1; then :
14141   ac_cv_cpp_def___sun__=yes
14142 else
14143   ac_cv_cpp_def___sun__=no
14144 fi
14145 rm -f conftest*
14146
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14149 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14150 if test $ac_cv_cpp_def___sun__ = yes; then :
14151   CFLAGS="$CFLAGS -D__sun__"
14152   LINTFLAGS="$LINTFLAGS -D__sun__"
14153 fi ;;
14154 esac
14155
14156
14157
14158
14159
14160 ac_config_commands="$ac_config_commands include/stamp-h"
14161
14162
14163 ALL_MAKEFILE_DEPENDS="
14164 # Rules automatically generated by configure
14165
14166 .INIT: Makefile
14167 .MAKEFILEDEPS:
14168 all: Makefile
14169 Makefile: Makefile.in Make.vars.in Make.rules config.status
14170         @./config.status Make.tmp Makefile"
14171
14172 ALL_WINETEST_DEPENDS="# Test binaries"
14173
14174 ALL_TEST_BINARIES=""
14175
14176
14177 wine_fn_append_file ()
14178 {
14179     as_fn_append $1 " \\$as_nl  $2"
14180 }
14181
14182 wine_fn_append_rule ()
14183 {
14184     as_fn_append $1 "$as_nl$2"
14185 }
14186
14187 wine_fn_all_dir_rules ()
14188 {
14189     ac_dir=$1
14190     ac_alldeps=$2
14191     ac_makedep="\$(MAKEDEP)"
14192     ac_input=Make.vars.in:$ac_dir/Makefile.in
14193     if test $ac_dir != tools
14194     then
14195                 ac_alldeps="$2 $ac_makedep"
14196     fi
14197     case $2 in
14198       *.in) ac_input=$ac_input:$2 ;;
14199       *) ac_makedep="$2 $ac_makedep" ;;
14200     esac
14201
14202     wine_fn_append_file ALL_DIRS $ac_dir
14203     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14204 "__clean__: $ac_dir/__clean__
14205 .PHONY: $ac_dir/__clean__
14206 $ac_dir/__clean__: $ac_dir/Makefile
14207         @cd $ac_dir && \$(MAKE) clean
14208         \$(RM) $ac_dir/Makefile
14209 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14210         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14211 depend: $ac_dir/__depend__
14212 .PHONY: $ac_dir/__depend__
14213 $ac_dir/__depend__: $ac_makedep dummy
14214         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14215 }
14216
14217 wine_fn_config_makefile ()
14218 {
14219     ac_dir=$1
14220     ac_enable=$2
14221     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14222   return 0
14223 fi
14224
14225     wine_fn_all_dir_rules $ac_dir Make.rules
14226     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14227 "all: $ac_dir
14228 .PHONY: $ac_dir
14229 $ac_dir: $ac_dir/Makefile dummy
14230         @cd $ac_dir && \$(MAKE)
14231 install:: $ac_dir
14232         @cd $ac_dir && \$(MAKE) install
14233 install-lib:: $ac_dir
14234         @cd $ac_dir && \$(MAKE) install-lib
14235 install-dev:: $ac_dir
14236         @cd $ac_dir && \$(MAKE) install-dev
14237 uninstall:: $ac_dir/Makefile
14238         @cd $ac_dir && \$(MAKE) uninstall"
14239 }
14240
14241 wine_fn_config_lib ()
14242 {
14243     ac_name=$1
14244     ac_dir=dlls/$ac_name
14245     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14246     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14247 "all __builddeps__: $ac_dir
14248 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14249         @cd $ac_dir && \$(MAKE)
14250 install install-dev:: $ac_dir
14251         @cd $ac_dir && \$(MAKE) install
14252 uninstall:: $ac_dir/Makefile
14253         @cd $ac_dir && \$(MAKE) uninstall"
14254 }
14255
14256 wine_fn_config_dll ()
14257 {
14258     ac_name=$1
14259     ac_dir=dlls/$ac_name
14260     ac_enable=$2
14261     ac_implib=$3
14262     ac_implibsrc=$4
14263     ac_file=$ac_dir/lib$ac_implib
14264     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14265     ac_implibflags=""
14266
14267     case $ac_name in
14268       *16) ac_implibflags=" -m16" ;;
14269     esac
14270
14271     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14272
14273     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14274                 test "$ac_enable" != enable_win16 || return 0
14275 else
14276   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14277 "all: $ac_dir
14278 .PHONY: $ac_dir
14279 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14280         @cd $ac_dir && \$(MAKE)
14281 install:: $ac_dir/Makefile __builddeps__
14282         @cd $ac_dir && \$(MAKE) install
14283 install-lib:: $ac_dir/Makefile __builddeps__
14284         @cd $ac_dir && \$(MAKE) install-lib
14285 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14286         @cd $ac_dir && \$(MAKE) \$@"
14287 fi
14288
14289     if test -n "$ac_implibsrc"
14290     then
14291         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14292 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14293 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14294 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14295         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14296 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14297         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14298 install-dev:: $ac_dir/Makefile __builddeps__
14299         @cd $ac_dir && \$(MAKE) install-dev"
14300         if test "x$CROSSTEST_DISABLE" = x
14301         then
14302             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14303 "__builddeps__: $ac_file.cross.a
14304 $ac_file.cross.a: $ac_dir/Makefile dummy
14305         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14306         fi
14307
14308     elif test -n "$ac_implib"
14309     then
14310         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14311 "__builddeps__: $ac_file.$IMPLIBEXT
14312 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14313         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14314 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14315         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14316 install-dev:: $ac_dir/Makefile __builddeps__
14317         @cd $ac_dir && \$(MAKE) install-dev"
14318         if test "x$CROSSTEST_DISABLE" = x
14319         then
14320             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14321 "__builddeps__: $ac_file.cross.a
14322 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14323         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14324         fi
14325
14326         if test "$ac_name" != "$ac_implib"
14327         then
14328             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14329 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14330 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14331         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14332 clean::
14333         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14334             if test "x$CROSSTEST_DISABLE" = x
14335             then
14336                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14337 "__builddeps__: dlls/lib$ac_implib.cross.a
14338 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14339         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14340             fi
14341         fi
14342     fi
14343 }
14344
14345 wine_fn_config_program ()
14346 {
14347     ac_name=$1
14348     ac_dir=programs/$ac_name
14349     ac_enable=$2
14350     ac_install=$3
14351     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14352
14353     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14354
14355 else
14356   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14357 "all: $ac_dir
14358 .PHONY: $ac_dir
14359 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14360         @cd $ac_dir && \$(MAKE)"
14361
14362     test -n "$ac_install" || return
14363     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14364 "install install-lib:: $ac_dir/Makefile __builddeps__
14365         @cd $ac_dir && \$(MAKE) install
14366 uninstall:: $ac_dir/Makefile
14367         @cd $ac_dir && \$(MAKE) uninstall"
14368     if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14369     then
14370         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14371 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14372         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14373 uninstall::
14374         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14375     fi
14376 fi
14377 }
14378
14379 wine_fn_config_test ()
14380 {
14381     ac_dir=$1
14382     ac_name=$2
14383     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14384     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14385 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14386         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14387 $ac_name.rc:
14388         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14389 $ac_name.res: $ac_name.rc $ac_name.exe"
14390     wine_fn_all_dir_rules $ac_dir Maketest.rules
14391
14392     if test "x$enable_tests" = x""no; then :
14393
14394 else
14395   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14396 "all programs/winetest: $ac_dir
14397 .PHONY: $ac_dir
14398 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14399         @cd $ac_dir && \$(MAKE)
14400 test: $ac_dir/__test__
14401 .PHONY: $ac_dir/__test__
14402 $ac_dir/__test__: dummy
14403         @cd $ac_dir && \$(MAKE) test
14404 testclean::
14405         \$(RM) $ac_dir/*.ok"
14406
14407         if test "x$CROSSTEST_DISABLE" = x
14408         then
14409             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14410 "crosstest: $ac_dir/__crosstest__
14411 .PHONY: $ac_dir/__crosstest__
14412 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14413         @cd $ac_dir && \$(MAKE) crosstest"
14414         fi
14415 fi
14416 }
14417
14418 wine_fn_config_tool ()
14419 {
14420     ac_dir=$1
14421     wine_fn_all_dir_rules $ac_dir Make.rules
14422
14423     if test "x$enable_tools" = x""no; then :
14424
14425 else
14426   case $ac_dir in
14427             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14428 "install:: $ac_dir
14429         @cd $ac_dir && \$(MAKE) install
14430 install-lib:: $ac_dir
14431         @cd $ac_dir && \$(MAKE) install-lib
14432 install-dev:: $ac_dir
14433         @cd $ac_dir && \$(MAKE) install-dev" ;;
14434       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14435 "install install-dev:: $ac_dir
14436         @cd $ac_dir && \$(MAKE) install" ;;
14437       esac
14438       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14439 "uninstall:: $ac_dir/Makefile
14440         @cd $ac_dir && \$(MAKE) uninstall
14441 all __tooldeps__: $ac_dir
14442 .PHONY: $ac_dir
14443 $ac_dir: $ac_dir/Makefile libs/port dummy
14444         @cd $ac_dir && \$(MAKE)"
14445       case $ac_dir in
14446         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14447       esac
14448 fi
14449 }
14450
14451 wine_fn_config_makerules ()
14452 {
14453     ac_rules=$1
14454     ac_deps=$2
14455     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14456 "$ac_rules: $ac_rules.in $ac_deps config.status
14457         @./config.status $ac_rules
14458 distclean::
14459         \$(RM) $ac_rules"
14460 }
14461
14462 wine_fn_config_symlink ()
14463 {
14464     ac_link=$1
14465     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14466 "$ac_link:
14467         @./config.status $ac_link
14468 distclean::
14469         \$(RM) $ac_link"
14470 }
14471
14472 if test "x$CROSSTEST_DISABLE" != x
14473 then
14474     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14475 "crosstest:
14476         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14477 fi
14478 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14479 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14480 if test "x$enable_fonts" != xno; then
14481 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14482 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14483 fi
14484 if test "x$enable_fonts" != xno; then
14485 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14486 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14487 fi
14488 if test "x$enable_fonts" != xno; then
14489 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14490 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14491 fi
14492 if test "x$enable_fonts" != xno; then
14493 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14494 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14495 fi
14496 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14497 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14498 ac_config_links="$ac_config_links wine:tools/winewrapper"
14499 wine_fn_config_symlink wine
14500
14501 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14502
14503 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14504
14505 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14506
14507 ac_config_commands="$ac_config_commands dlls/user32/resources"
14508
14509 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14510
14511 ac_config_commands="$ac_config_commands include/wine"
14512
14513
14514 wine_fn_config_makerules Make.rules
14515 MAKE_RULES=Make.rules
14516 ac_config_files="$ac_config_files Make.rules"
14517
14518 wine_fn_config_makerules Maketest.rules Make.rules
14519 MAKE_TEST_RULES=Maketest.rules
14520 ac_config_files="$ac_config_files Maketest.rules"
14521
14522 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14523 MAKE_DLL_RULES=dlls/Makedll.rules
14524 ac_config_files="$ac_config_files dlls/Makedll.rules"
14525
14526 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14527 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14528 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14529
14530 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14531 MAKE_PROG_RULES=programs/Makeprog.rules
14532 ac_config_files="$ac_config_files programs/Makeprog.rules"
14533
14534
14535 wine_fn_config_dll acledit enable_acledit
14536 wine_fn_config_dll aclui enable_aclui aclui
14537 wine_fn_config_dll activeds enable_activeds activeds
14538 wine_fn_config_dll actxprxy enable_actxprxy
14539 wine_fn_config_lib adsiid
14540 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14541 wine_fn_config_test dlls/advapi32/tests advapi32_test
14542 wine_fn_config_dll advpack enable_advpack advpack
14543 wine_fn_config_test dlls/advpack/tests advpack_test
14544 wine_fn_config_dll amstream enable_amstream
14545 wine_fn_config_test dlls/amstream/tests amstream_test
14546 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14547 wine_fn_config_dll atl enable_atl atl
14548 wine_fn_config_test dlls/atl/tests atl_test
14549 wine_fn_config_dll authz enable_authz
14550 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14551 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14552 wine_fn_config_test dlls/avifil32/tests avifil32_test
14553 wine_fn_config_dll avifile.dll16 enable_win16
14554 wine_fn_config_dll avrt enable_avrt avrt
14555 wine_fn_config_dll bcrypt enable_bcrypt
14556 wine_fn_config_dll browseui enable_browseui
14557 wine_fn_config_test dlls/browseui/tests browseui_test
14558 wine_fn_config_dll cabinet enable_cabinet cabinet
14559 wine_fn_config_test dlls/cabinet/tests cabinet_test
14560 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14561 wine_fn_config_dll cards enable_cards cards
14562 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14563 wine_fn_config_dll clusapi enable_clusapi clusapi
14564 wine_fn_config_dll comcat enable_comcat
14565 wine_fn_config_test dlls/comcat/tests comcat_test
14566 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14567 wine_fn_config_test dlls/comctl32/tests comctl32_test
14568 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14569 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14570 wine_fn_config_dll comm.drv16 enable_win16
14571 wine_fn_config_dll commdlg.dll16 enable_win16
14572 wine_fn_config_dll compobj.dll16 enable_win16
14573 wine_fn_config_dll compstui enable_compstui compstui
14574 wine_fn_config_dll credui enable_credui credui
14575 wine_fn_config_test dlls/credui/tests credui_test
14576 wine_fn_config_dll crtdll enable_crtdll crtdll
14577 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14578 wine_fn_config_test dlls/crypt32/tests crypt32_test
14579 wine_fn_config_dll cryptdlg enable_cryptdlg
14580 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14581 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14582 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14583 wine_fn_config_dll cryptui enable_cryptui cryptui
14584 wine_fn_config_test dlls/cryptui/tests cryptui_test
14585 wine_fn_config_dll ctapi32 enable_ctapi32
14586 wine_fn_config_dll ctl3d.dll16 enable_win16
14587 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14588 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14589 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14590 wine_fn_config_test dlls/d3d10/tests d3d10_test
14591 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14592 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14593 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14594 wine_fn_config_test dlls/d3d8/tests d3d8_test
14595 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14596 wine_fn_config_test dlls/d3d9/tests d3d9_test
14597 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14598 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14599 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14600 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14601 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14602 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14603 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14604 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14605 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14606 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14607 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
14608 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14609 wine_fn_config_dll d3dim enable_d3dim d3dim
14610 wine_fn_config_dll d3drm enable_d3drm d3drm
14611 wine_fn_config_test dlls/d3drm/tests d3drm_test
14612 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14613 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14614 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14615 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14616 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14617 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14618 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14619 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14620 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14621 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14622 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14623 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14624 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14625 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14626 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14627 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14628 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14629 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14630 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14631 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14632 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14633 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14634 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14635 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14636 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14637 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14638 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14639 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14640 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14641 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14642 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14643 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14644 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14645 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14646 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14647 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14648 wine_fn_config_dll ddeml.dll16 enable_win16
14649 wine_fn_config_dll ddraw enable_ddraw ddraw
14650 wine_fn_config_test dlls/ddraw/tests ddraw_test
14651 wine_fn_config_dll ddrawex enable_ddrawex
14652 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14653 wine_fn_config_dll devenum enable_devenum
14654 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14655 wine_fn_config_test dlls/dinput/tests dinput_test
14656 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14657 wine_fn_config_dll dispdib.dll16 enable_win16
14658 wine_fn_config_dll dispex enable_dispex
14659 wine_fn_config_test dlls/dispex/tests dispex_test
14660 wine_fn_config_dll display.drv16 enable_win16
14661 wine_fn_config_dll dmband enable_dmband
14662 wine_fn_config_dll dmcompos enable_dmcompos
14663 wine_fn_config_dll dmime enable_dmime
14664 wine_fn_config_test dlls/dmime/tests dmime_test
14665 wine_fn_config_dll dmloader enable_dmloader
14666 wine_fn_config_test dlls/dmloader/tests dmloader_test
14667 wine_fn_config_dll dmscript enable_dmscript
14668 wine_fn_config_dll dmstyle enable_dmstyle
14669 wine_fn_config_dll dmsynth enable_dmsynth
14670 wine_fn_config_dll dmusic enable_dmusic
14671 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14672 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14673 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14674 wine_fn_config_dll dplay enable_dplay dplay
14675 wine_fn_config_dll dplayx enable_dplayx dplayx
14676 wine_fn_config_test dlls/dplayx/tests dplayx_test
14677 wine_fn_config_dll dpnaddr enable_dpnaddr
14678 wine_fn_config_dll dpnet enable_dpnet dpnet
14679 wine_fn_config_dll dpnhpast enable_dpnhpast
14680 wine_fn_config_dll dpnlobby enable_dpnlobby
14681 wine_fn_config_dll dpwsockx enable_dpwsockx
14682 wine_fn_config_dll drmclien enable_drmclien
14683 wine_fn_config_dll dsound enable_dsound dsound
14684 wine_fn_config_test dlls/dsound/tests dsound_test
14685 wine_fn_config_dll dssenh enable_dssenh
14686 wine_fn_config_dll dswave enable_dswave
14687 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14688 wine_fn_config_dll dxdiagn enable_dxdiagn
14689 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14690 wine_fn_config_lib dxerr8
14691 wine_fn_config_lib dxerr9
14692 wine_fn_config_dll dxgi enable_dxgi dxgi
14693 wine_fn_config_test dlls/dxgi/tests dxgi_test
14694 wine_fn_config_lib dxguid
14695 wine_fn_config_dll explorerframe enable_explorerframe
14696 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14697 wine_fn_config_dll faultrep enable_faultrep faultrep
14698 wine_fn_config_test dlls/faultrep/tests faultrep_test
14699 wine_fn_config_dll fltlib enable_fltlib
14700 wine_fn_config_dll fusion enable_fusion
14701 wine_fn_config_test dlls/fusion/tests fusion_test
14702 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14703 wine_fn_config_dll gameux enable_gameux
14704 wine_fn_config_test dlls/gameux/tests gameux_test
14705 wine_fn_config_dll gdi.exe16 enable_win16
14706 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14707 wine_fn_config_test dlls/gdi32/tests gdi32_test
14708 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14709 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14710 wine_fn_config_dll glu32 enable_glu32 glu32
14711 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14712 wine_fn_config_dll gpkcsp enable_gpkcsp
14713 wine_fn_config_dll hal enable_hal
14714 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14715 wine_fn_config_dll hid enable_hid hid
14716 wine_fn_config_dll hlink enable_hlink hlink
14717 wine_fn_config_test dlls/hlink/tests hlink_test
14718 wine_fn_config_dll hnetcfg enable_hnetcfg
14719 wine_fn_config_dll httpapi enable_httpapi
14720 wine_fn_config_dll iccvid enable_iccvid
14721 wine_fn_config_dll icmp enable_icmp
14722 wine_fn_config_dll ifsmgr.vxd enable_win16
14723 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14724 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14725 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14726 wine_fn_config_dll imm.dll16 enable_win16
14727 wine_fn_config_dll imm32 enable_imm32 imm32
14728 wine_fn_config_test dlls/imm32/tests imm32_test
14729 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14730 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14731 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
14732 wine_fn_config_dll inetmib1 enable_inetmib1
14733 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14734 wine_fn_config_dll infosoft enable_infosoft
14735 wine_fn_config_test dlls/infosoft/tests infosoft_test
14736 wine_fn_config_dll initpki enable_initpki
14737 wine_fn_config_dll inkobj enable_inkobj
14738 wine_fn_config_dll inseng enable_inseng
14739 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14740 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14741 wine_fn_config_dll itircl enable_itircl
14742 wine_fn_config_dll itss enable_itss
14743 wine_fn_config_test dlls/itss/tests itss_test
14744 wine_fn_config_dll jscript enable_jscript
14745 wine_fn_config_test dlls/jscript/tests jscript_test
14746 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14747 wine_fn_config_test dlls/kernel32/tests kernel32_test
14748 wine_fn_config_dll keyboard.drv16 enable_win16
14749 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14750 wine_fn_config_dll ktmw32 enable_ktmw32
14751 wine_fn_config_dll loadperf enable_loadperf loadperf
14752 wine_fn_config_dll localspl enable_localspl
14753 wine_fn_config_test dlls/localspl/tests localspl_test
14754 wine_fn_config_dll localui enable_localui
14755 wine_fn_config_test dlls/localui/tests localui_test
14756 wine_fn_config_dll lz32 enable_lz32 lz32
14757 wine_fn_config_test dlls/lz32/tests lz32_test
14758 wine_fn_config_dll lzexpand.dll16 enable_win16
14759 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14760 wine_fn_config_test dlls/mapi32/tests mapi32_test
14761 wine_fn_config_dll mapistub enable_mapistub
14762 wine_fn_config_dll mciavi32 enable_mciavi32
14763 wine_fn_config_dll mcicda enable_mcicda
14764 wine_fn_config_dll mciqtz32 enable_mciqtz32
14765 wine_fn_config_dll mciseq enable_mciseq
14766 wine_fn_config_dll mciwave enable_mciwave
14767 wine_fn_config_dll midimap enable_midimap
14768 wine_fn_config_dll mlang enable_mlang mlang
14769 wine_fn_config_test dlls/mlang/tests mlang_test
14770 wine_fn_config_dll mmdevapi enable_mmdevapi
14771 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14772 wine_fn_config_dll mmdevldr.vxd enable_win16
14773 wine_fn_config_dll mmsystem.dll16 enable_win16
14774 wine_fn_config_dll monodebg.vxd enable_win16
14775 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14776 wine_fn_config_dll mouse.drv16 enable_win16
14777 wine_fn_config_dll mpr enable_mpr mpr
14778 wine_fn_config_dll mprapi enable_mprapi mprapi
14779 wine_fn_config_dll msacm.dll16 enable_win16
14780 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14781 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14782 wine_fn_config_test dlls/msacm32/tests msacm32_test
14783 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14784 wine_fn_config_dll mscat32 enable_mscat32
14785 wine_fn_config_dll mscms enable_mscms mscms
14786 wine_fn_config_test dlls/mscms/tests mscms_test
14787 wine_fn_config_dll mscoree enable_mscoree
14788 wine_fn_config_test dlls/mscoree/tests mscoree_test
14789 wine_fn_config_dll msctf enable_msctf
14790 wine_fn_config_test dlls/msctf/tests msctf_test
14791 wine_fn_config_dll msdaps enable_msdaps
14792 wine_fn_config_dll msdmo enable_msdmo msdmo
14793 wine_fn_config_dll msftedit enable_msftedit
14794 wine_fn_config_dll msg711.acm enable_msg711_acm
14795 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14796 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14797 wine_fn_config_dll mshtml enable_mshtml mshtml
14798 wine_fn_config_test dlls/mshtml/tests mshtml_test
14799 wine_fn_config_dll msi enable_msi msi
14800 wine_fn_config_test dlls/msi/tests msi_test
14801 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14802 wine_fn_config_dll msimtf enable_msimtf
14803 wine_fn_config_dll msisip enable_msisip
14804 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14805 wine_fn_config_dll msnet32 enable_msnet32
14806 wine_fn_config_dll msrle32 enable_msrle32
14807 wine_fn_config_dll mssign32 enable_mssign32
14808 wine_fn_config_dll mssip32 enable_mssip32
14809 wine_fn_config_dll mstask enable_mstask
14810 wine_fn_config_test dlls/mstask/tests mstask_test
14811 wine_fn_config_dll msvcirt enable_msvcirt
14812 wine_fn_config_dll msvcp80 enable_msvcp80
14813 wine_fn_config_dll msvcp90 enable_msvcp90
14814 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
14815 wine_fn_config_dll msvcr100 enable_msvcr100
14816 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14817 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14818 wine_fn_config_dll msvcr80 enable_msvcr80
14819 wine_fn_config_dll msvcr90 enable_msvcr90
14820 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14821 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14822 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14823 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14824 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14825 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14826 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14827 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14828 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14829 wine_fn_config_dll msvidc32 enable_msvidc32
14830 wine_fn_config_dll msvideo.dll16 enable_win16
14831 wine_fn_config_dll mswsock enable_mswsock mswsock
14832 wine_fn_config_dll msxml3 enable_msxml3
14833 wine_fn_config_test dlls/msxml3/tests msxml3_test
14834 wine_fn_config_dll msxml4 enable_msxml4
14835 wine_fn_config_dll msxml6 enable_msxml6
14836 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14837 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14838 wine_fn_config_test dlls/netapi32/tests netapi32_test
14839 wine_fn_config_dll newdev enable_newdev newdev
14840 wine_fn_config_dll ntdll enable_ntdll ntdll
14841 wine_fn_config_test dlls/ntdll/tests ntdll_test
14842 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14843 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14844 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14845 wine_fn_config_dll ntprint enable_ntprint
14846 wine_fn_config_test dlls/ntprint/tests ntprint_test
14847 wine_fn_config_dll objsel enable_objsel
14848 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14849 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14850 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14851 wine_fn_config_dll ole2.dll16 enable_win16
14852 wine_fn_config_dll ole2conv.dll16 enable_win16
14853 wine_fn_config_dll ole2disp.dll16 enable_win16
14854 wine_fn_config_dll ole2nls.dll16 enable_win16
14855 wine_fn_config_dll ole2prox.dll16 enable_win16
14856 wine_fn_config_dll ole2thk.dll16 enable_win16
14857 wine_fn_config_dll ole32 enable_ole32 ole32
14858 wine_fn_config_test dlls/ole32/tests ole32_test
14859 wine_fn_config_dll oleacc enable_oleacc oleacc
14860 wine_fn_config_test dlls/oleacc/tests oleacc_test
14861 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14862 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14863 wine_fn_config_dll olecli.dll16 enable_win16
14864 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14865 wine_fn_config_dll oledb32 enable_oledb32
14866 wine_fn_config_test dlls/oledb32/tests oledb32_test
14867 wine_fn_config_dll oledlg enable_oledlg oledlg
14868 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14869 wine_fn_config_dll olesvr.dll16 enable_win16
14870 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14871 wine_fn_config_dll olethk32 enable_olethk32
14872 wine_fn_config_dll openal32 enable_openal32
14873 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14874 wine_fn_config_test dlls/opengl32/tests opengl32_test
14875 wine_fn_config_dll pdh enable_pdh pdh
14876 wine_fn_config_test dlls/pdh/tests pdh_test
14877 wine_fn_config_dll pidgen enable_pidgen
14878 wine_fn_config_dll powrprof enable_powrprof powrprof
14879 wine_fn_config_dll printui enable_printui
14880 wine_fn_config_dll propsys enable_propsys propsys
14881 wine_fn_config_test dlls/propsys/tests propsys_test
14882 wine_fn_config_dll psapi enable_psapi psapi
14883 wine_fn_config_test dlls/psapi/tests psapi_test
14884 wine_fn_config_dll pstorec enable_pstorec
14885 wine_fn_config_dll qcap enable_qcap
14886 wine_fn_config_dll qedit enable_qedit
14887 wine_fn_config_test dlls/qedit/tests qedit_test
14888 wine_fn_config_dll qmgr enable_qmgr
14889 wine_fn_config_test dlls/qmgr/tests qmgr_test
14890 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14891 wine_fn_config_dll quartz enable_quartz quartz
14892 wine_fn_config_test dlls/quartz/tests quartz_test
14893 wine_fn_config_dll query enable_query
14894 wine_fn_config_dll rasapi16.dll16 enable_win16
14895 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14896 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14897 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14898 wine_fn_config_dll resutils enable_resutils resutils
14899 wine_fn_config_dll riched20 enable_riched20 riched20
14900 wine_fn_config_test dlls/riched20/tests riched20_test
14901 wine_fn_config_dll riched32 enable_riched32
14902 wine_fn_config_test dlls/riched32/tests riched32_test
14903 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14904 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14905 wine_fn_config_dll rsabase enable_rsabase
14906 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14907 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14908 wine_fn_config_dll rstrtmgr enable_rstrtmgr
14909 wine_fn_config_dll rtutils enable_rtutils rtutils
14910 wine_fn_config_dll samlib enable_samlib
14911 wine_fn_config_dll sane.ds enable_sane_ds
14912 wine_fn_config_dll sccbase enable_sccbase
14913 wine_fn_config_dll schannel enable_schannel
14914 wine_fn_config_test dlls/schannel/tests schannel_test
14915 wine_fn_config_dll secur32 enable_secur32 secur32
14916 wine_fn_config_test dlls/secur32/tests secur32_test
14917 wine_fn_config_dll security enable_security
14918 wine_fn_config_dll sensapi enable_sensapi sensapi
14919 wine_fn_config_dll serialui enable_serialui serialui
14920 wine_fn_config_test dlls/serialui/tests serialui_test
14921 wine_fn_config_dll setupapi enable_setupapi setupapi
14922 wine_fn_config_test dlls/setupapi/tests setupapi_test
14923 wine_fn_config_dll setupx.dll16 enable_win16
14924 wine_fn_config_dll sfc enable_sfc sfc
14925 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14926 wine_fn_config_dll shdoclc enable_shdoclc
14927 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14928 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14929 wine_fn_config_dll shell.dll16 enable_win16
14930 wine_fn_config_dll shell32 enable_shell32 shell32
14931 wine_fn_config_test dlls/shell32/tests shell32_test
14932 wine_fn_config_dll shfolder enable_shfolder shfolder
14933 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14934 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14935 wine_fn_config_dll slbcsp enable_slbcsp
14936 wine_fn_config_dll slc enable_slc slc
14937 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14938 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14939 wine_fn_config_dll softpub enable_softpub
14940 wine_fn_config_dll sound.drv16 enable_win16
14941 wine_fn_config_dll spoolss enable_spoolss spoolss
14942 wine_fn_config_test dlls/spoolss/tests spoolss_test
14943 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14944 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14945 wine_fn_config_dll sti enable_sti sti
14946 wine_fn_config_test dlls/sti/tests sti_test
14947 wine_fn_config_dll storage.dll16 enable_win16
14948 wine_fn_config_dll stress.dll16 enable_win16
14949 wine_fn_config_lib strmbase
14950 wine_fn_config_lib strmiids
14951 wine_fn_config_dll svrapi enable_svrapi
14952 wine_fn_config_dll sxs enable_sxs
14953 wine_fn_config_dll system.drv16 enable_win16
14954 wine_fn_config_dll t2embed enable_t2embed
14955 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14956 wine_fn_config_dll toolhelp.dll16 enable_win16
14957 wine_fn_config_dll traffic enable_traffic
14958 wine_fn_config_dll twain.dll16 enable_win16
14959 wine_fn_config_dll twain_32 enable_twain_32
14960 wine_fn_config_test dlls/twain_32/tests twain_32_test
14961 wine_fn_config_dll typelib.dll16 enable_win16
14962 wine_fn_config_dll unicows enable_unicows unicows
14963 wine_fn_config_dll updspapi enable_updspapi
14964 wine_fn_config_dll url enable_url url
14965 wine_fn_config_dll urlmon enable_urlmon urlmon
14966 wine_fn_config_test dlls/urlmon/tests urlmon_test
14967 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14968 wine_fn_config_dll user.exe16 enable_win16
14969 wine_fn_config_dll user32 enable_user32 user32
14970 wine_fn_config_test dlls/user32/tests user32_test
14971 wine_fn_config_dll userenv enable_userenv userenv
14972 wine_fn_config_test dlls/userenv/tests userenv_test
14973 wine_fn_config_dll usp10 enable_usp10 usp10
14974 wine_fn_config_test dlls/usp10/tests usp10_test
14975 wine_fn_config_lib uuid
14976 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14977 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14978 wine_fn_config_dll vdhcp.vxd enable_win16
14979 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14980 wine_fn_config_dll ver.dll16 enable_win16
14981 wine_fn_config_dll version enable_version version
14982 wine_fn_config_test dlls/version/tests version_test
14983 wine_fn_config_dll vmm.vxd enable_win16
14984 wine_fn_config_dll vnbt.vxd enable_win16
14985 wine_fn_config_dll vnetbios.vxd enable_win16
14986 wine_fn_config_dll vtdapi.vxd enable_win16
14987 wine_fn_config_dll vwin32.vxd enable_win16
14988 wine_fn_config_dll w32skrnl enable_win16
14989 wine_fn_config_dll w32sys.dll16 enable_win16
14990 wine_fn_config_dll wbemprox enable_wbemprox
14991 wine_fn_config_dll wer enable_wer wer
14992 wine_fn_config_test dlls/wer/tests wer_test
14993 wine_fn_config_dll wiaservc enable_wiaservc
14994 wine_fn_config_dll win32s16.dll16 enable_win16
14995 wine_fn_config_dll win87em.dll16 enable_win16
14996 wine_fn_config_dll winaspi.dll16 enable_win16
14997 wine_fn_config_dll windebug.dll16 enable_win16
14998 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14999 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15000 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15001 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
15002 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15003 wine_fn_config_lib winecrt0
15004 wine_fn_config_dll wined3d enable_wined3d wined3d
15005 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15006 wine_fn_config_dll winegstreamer enable_winegstreamer
15007 wine_fn_config_dll winejack.drv enable_winejack_drv
15008 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15009 wine_fn_config_dll winemapi enable_winemapi
15010 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15011 wine_fn_config_dll winenas.drv enable_winenas_drv
15012 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15013 wine_fn_config_dll wineps.drv enable_wineps_drv
15014 wine_fn_config_dll wineps16.drv16 enable_win16
15015 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15016 wine_fn_config_dll winex11.drv enable_winex11_drv
15017 wine_fn_config_dll wing.dll16 enable_win16
15018 wine_fn_config_dll wing32 enable_wing32
15019 wine_fn_config_dll winhttp enable_winhttp winhttp
15020 wine_fn_config_test dlls/winhttp/tests winhttp_test
15021 wine_fn_config_dll wininet enable_wininet wininet
15022 wine_fn_config_test dlls/wininet/tests wininet_test
15023 wine_fn_config_dll winmm enable_winmm winmm
15024 wine_fn_config_test dlls/winmm/tests winmm_test
15025 wine_fn_config_dll winnls.dll16 enable_win16
15026 wine_fn_config_dll winnls32 enable_winnls32 winnls32
15027 wine_fn_config_dll winscard enable_winscard winscard
15028 wine_fn_config_dll winsock.dll16 enable_win16
15029 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
15030 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15031 wine_fn_config_dll wintab.dll16 enable_win16
15032 wine_fn_config_dll wintab32 enable_wintab32 wintab32
15033 wine_fn_config_test dlls/wintab32/tests wintab32_test
15034 wine_fn_config_dll wintrust enable_wintrust wintrust
15035 wine_fn_config_test dlls/wintrust/tests wintrust_test
15036 wine_fn_config_dll wlanapi enable_wlanapi
15037 wine_fn_config_dll wldap32 enable_wldap32 wldap32
15038 wine_fn_config_test dlls/wldap32/tests wldap32_test
15039 wine_fn_config_dll wmi enable_wmi
15040 wine_fn_config_dll wmiutils enable_wmiutils
15041 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
15042 wine_fn_config_dll wow32 enable_win16 wow32
15043 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
15044 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15045 wine_fn_config_dll wsock32 enable_wsock32 wsock32
15046 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
15047 wine_fn_config_dll wuapi enable_wuapi
15048 wine_fn_config_dll wuaueng enable_wuaueng
15049 wine_fn_config_dll xinput1_1 enable_xinput1_1
15050 wine_fn_config_dll xinput1_2 enable_xinput1_2
15051 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
15052 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15053 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15054 wine_fn_config_dll xmllite enable_xmllite
15055 wine_fn_config_test dlls/xmllite/tests xmllite_test
15056 wine_fn_config_makefile documentation enable_documentation
15057 wine_fn_config_makefile fonts enable_fonts
15058 wine_fn_config_makefile include enable_include
15059 wine_fn_config_makefile libs/port enable_libs_port
15060 wine_fn_config_makefile libs/wine enable_libs_wine
15061 wine_fn_config_makefile libs/wpp enable_libs_wpp
15062 wine_fn_config_makefile loader enable_loader
15063 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15064 wine_fn_config_program attrib enable_attrib install
15065 wine_fn_config_program cacls enable_cacls install
15066 wine_fn_config_program clock enable_clock install
15067 wine_fn_config_program cmd enable_cmd install
15068 wine_fn_config_test programs/cmd/tests cmd.exe_test
15069 wine_fn_config_program cmdlgtst enable_cmdlgtst
15070 wine_fn_config_program control enable_control install
15071 wine_fn_config_program dxdiag enable_dxdiag install
15072 wine_fn_config_program eject enable_eject install
15073 wine_fn_config_program expand enable_expand install
15074 wine_fn_config_program explorer enable_explorer install
15075 wine_fn_config_program extrac32 enable_extrac32 install
15076 wine_fn_config_program hh enable_hh install
15077 wine_fn_config_program icinfo enable_icinfo install
15078 wine_fn_config_program iexplore enable_iexplore install
15079 wine_fn_config_program ipconfig enable_ipconfig install
15080 wine_fn_config_program lodctr enable_lodctr install
15081 wine_fn_config_program mofcomp enable_mofcomp install
15082 wine_fn_config_program mshta enable_mshta install
15083 wine_fn_config_program msiexec enable_msiexec installbin
15084 wine_fn_config_program net enable_net install
15085 wine_fn_config_program ngen enable_ngen install
15086 wine_fn_config_program notepad enable_notepad installbin
15087 wine_fn_config_program oleview enable_oleview install
15088 wine_fn_config_program ping enable_ping install
15089 wine_fn_config_program progman enable_progman install
15090 wine_fn_config_program reg enable_reg install
15091 wine_fn_config_program regedit enable_regedit installbin
15092 wine_fn_config_test programs/regedit/tests regedit.exe_test
15093 wine_fn_config_program regsvr32 enable_regsvr32 installbin
15094 wine_fn_config_program rpcss enable_rpcss install
15095 wine_fn_config_program rundll.exe16 enable_win16 install
15096 wine_fn_config_program rundll32 enable_rundll32 install
15097 wine_fn_config_program sc enable_sc install
15098 wine_fn_config_program secedit enable_secedit install
15099 wine_fn_config_program services enable_services install
15100 wine_fn_config_program spoolsv enable_spoolsv install
15101 wine_fn_config_program start enable_start install
15102 wine_fn_config_program svchost enable_svchost install
15103 wine_fn_config_program taskkill enable_taskkill install
15104 wine_fn_config_program taskmgr enable_taskmgr install
15105 wine_fn_config_program termsv enable_termsv install
15106 wine_fn_config_program uninstaller enable_uninstaller install
15107 wine_fn_config_program unlodctr enable_unlodctr install
15108 wine_fn_config_program view enable_view
15109 wine_fn_config_program wineboot enable_wineboot installbin
15110 wine_fn_config_program winebrowser enable_winebrowser install
15111 wine_fn_config_program winecfg enable_winecfg installbin
15112 wine_fn_config_program wineconsole enable_wineconsole installbin
15113 wine_fn_config_program winedbg enable_winedbg installbin
15114 wine_fn_config_program winedevice enable_winedevice install
15115 wine_fn_config_program winefile enable_winefile installbin
15116 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15117 wine_fn_config_program winemine enable_winemine installbin
15118 wine_fn_config_program winepath enable_winepath installbin
15119 wine_fn_config_program winetest enable_winetest
15120 wine_fn_config_program winevdm enable_win16 install
15121 wine_fn_config_program winhelp.exe16 enable_win16 install
15122 wine_fn_config_program winhlp32 enable_winhlp32 install
15123 wine_fn_config_program winoldap.mod16 enable_win16 install
15124 wine_fn_config_program winver enable_winver install
15125 wine_fn_config_program wordpad enable_wordpad install
15126 wine_fn_config_program write enable_write install
15127 wine_fn_config_program wscript enable_wscript install
15128 wine_fn_config_program xcopy enable_xcopy install
15129 wine_fn_config_makefile server enable_server
15130 wine_fn_config_tool tools
15131 wine_fn_config_tool tools/widl
15132 wine_fn_config_tool tools/winebuild
15133 wine_fn_config_tool tools/winedump
15134 wine_fn_config_tool tools/winegcc
15135 wine_fn_config_tool tools/wmc
15136 wine_fn_config_tool tools/wrc
15137
15138 ac_config_commands="$ac_config_commands Makefile"
15139
15140
15141 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15142
15143
15144
15145 if test -n "$with_wine64"
15146 then
15147 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
15148 fonts server:
15149         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15150 $with_wine64/loader/wine:
15151         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15152 clean::
15153         \$(RM) fonts server $with_wine64/loader/wine"
15154 fi
15155
15156 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15157         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15158
15159 cat >confcache <<\_ACEOF
15160 # This file is a shell script that caches the results of configure
15161 # tests run on this system so they can be shared between configure
15162 # scripts and configure runs, see configure's option --config-cache.
15163 # It is not useful on other systems.  If it contains results you don't
15164 # want to keep, you may remove or edit it.
15165 #
15166 # config.status only pays attention to the cache file if you give it
15167 # the --recheck option to rerun configure.
15168 #
15169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15171 # following values.
15172
15173 _ACEOF
15174
15175 # The following way of writing the cache mishandles newlines in values,
15176 # but we know of no workaround that is simple, portable, and efficient.
15177 # So, we kill variables containing newlines.
15178 # Ultrix sh set writes to stderr and can't be redirected directly,
15179 # and sets the high bit in the cache file unless we assign to the vars.
15180 (
15181   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15182     eval ac_val=\$$ac_var
15183     case $ac_val in #(
15184     *${as_nl}*)
15185       case $ac_var in #(
15186       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15188       esac
15189       case $ac_var in #(
15190       _ | IFS | as_nl) ;; #(
15191       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15192       *) { eval $ac_var=; unset $ac_var;} ;;
15193       esac ;;
15194     esac
15195   done
15196
15197   (set) 2>&1 |
15198     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15199     *${as_nl}ac_space=\ *)
15200       # `set' does not quote correctly, so add quotes: double-quote
15201       # substitution turns \\\\ into \\, and sed turns \\ into \.
15202       sed -n \
15203         "s/'/'\\\\''/g;
15204           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15205       ;; #(
15206     *)
15207       # `set' quotes correctly as required by POSIX, so do not add quotes.
15208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15209       ;;
15210     esac |
15211     sort
15212 ) |
15213   sed '
15214      /^ac_cv_env_/b end
15215      t clear
15216      :clear
15217      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15218      t end
15219      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15220      :end' >>confcache
15221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15222   if test -w "$cache_file"; then
15223     test "x$cache_file" != "x/dev/null" &&
15224       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15225 $as_echo "$as_me: updating cache $cache_file" >&6;}
15226     cat confcache >$cache_file
15227   else
15228     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15230   fi
15231 fi
15232 rm -f confcache
15233
15234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15235 # Let make expand exec_prefix.
15236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15237
15238 DEFS=-DHAVE_CONFIG_H
15239
15240 ac_libobjs=
15241 ac_ltlibobjs=
15242 U=
15243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15244   # 1. Remove the extension, and $U if already installed.
15245   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15246   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15247   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15248   #    will be set to the directory where LIBOBJS objects are built.
15249   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15250   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15251 done
15252 LIBOBJS=$ac_libobjs
15253
15254 LTLIBOBJS=$ac_ltlibobjs
15255
15256
15257
15258 : ${CONFIG_STATUS=./config.status}
15259 ac_write_fail=0
15260 ac_clean_files_save=$ac_clean_files
15261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15264 as_write_fail=0
15265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15266 #! $SHELL
15267 # Generated by $as_me.
15268 # Run this file to recreate the current configuration.
15269 # Compiler output produced by configure, useful for debugging
15270 # configure, is in config.log if it exists.
15271
15272 debug=false
15273 ac_cs_recheck=false
15274 ac_cs_silent=false
15275
15276 SHELL=\${CONFIG_SHELL-$SHELL}
15277 export SHELL
15278 _ASEOF
15279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15280 ## -------------------- ##
15281 ## M4sh Initialization. ##
15282 ## -------------------- ##
15283
15284 # Be more Bourne compatible
15285 DUALCASE=1; export DUALCASE # for MKS sh
15286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15287   emulate sh
15288   NULLCMD=:
15289   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15290   # is contrary to our usage.  Disable this feature.
15291   alias -g '${1+"$@"}'='"$@"'
15292   setopt NO_GLOB_SUBST
15293 else
15294   case `(set -o) 2>/dev/null` in #(
15295   *posix*) :
15296     set -o posix ;; #(
15297   *) :
15298      ;;
15299 esac
15300 fi
15301
15302
15303 as_nl='
15304 '
15305 export as_nl
15306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15310 # Prefer a ksh shell builtin over an external printf program on Solaris,
15311 # but without wasting forks for bash or zsh.
15312 if test -z "$BASH_VERSION$ZSH_VERSION" \
15313     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15314   as_echo='print -r --'
15315   as_echo_n='print -rn --'
15316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15317   as_echo='printf %s\n'
15318   as_echo_n='printf %s'
15319 else
15320   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15321     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15322     as_echo_n='/usr/ucb/echo -n'
15323   else
15324     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15325     as_echo_n_body='eval
15326       arg=$1;
15327       case $arg in #(
15328       *"$as_nl"*)
15329         expr "X$arg" : "X\\(.*\\)$as_nl";
15330         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15331       esac;
15332       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15333     '
15334     export as_echo_n_body
15335     as_echo_n='sh -c $as_echo_n_body as_echo'
15336   fi
15337   export as_echo_body
15338   as_echo='sh -c $as_echo_body as_echo'
15339 fi
15340
15341 # The user is always right.
15342 if test "${PATH_SEPARATOR+set}" != set; then
15343   PATH_SEPARATOR=:
15344   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15345     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15346       PATH_SEPARATOR=';'
15347   }
15348 fi
15349
15350
15351 # IFS
15352 # We need space, tab and new line, in precisely that order.  Quoting is
15353 # there to prevent editors from complaining about space-tab.
15354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15355 # splitting by setting IFS to empty value.)
15356 IFS=" ""        $as_nl"
15357
15358 # Find who we are.  Look in the path if we contain no directory separator.
15359 case $0 in #((
15360   *[\\/]* ) as_myself=$0 ;;
15361   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15363 do
15364   IFS=$as_save_IFS
15365   test -z "$as_dir" && as_dir=.
15366     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15367   done
15368 IFS=$as_save_IFS
15369
15370      ;;
15371 esac
15372 # We did not find ourselves, most probably we were run as `sh COMMAND'
15373 # in which case we are not to be found in the path.
15374 if test "x$as_myself" = x; then
15375   as_myself=$0
15376 fi
15377 if test ! -f "$as_myself"; then
15378   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15379   exit 1
15380 fi
15381
15382 # Unset variables that we do not need and which cause bugs (e.g. in
15383 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15384 # suppresses any "Segmentation fault" message there.  '((' could
15385 # trigger a bug in pdksh 5.2.14.
15386 for as_var in BASH_ENV ENV MAIL MAILPATH
15387 do eval test x\${$as_var+set} = xset \
15388   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15389 done
15390 PS1='$ '
15391 PS2='> '
15392 PS4='+ '
15393
15394 # NLS nuisances.
15395 LC_ALL=C
15396 export LC_ALL
15397 LANGUAGE=C
15398 export LANGUAGE
15399
15400 # CDPATH.
15401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15402
15403
15404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15405 # ----------------------------------------
15406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15408 # script with STATUS, using 1 if that was 0.
15409 as_fn_error ()
15410 {
15411   as_status=$1; test $as_status -eq 0 && as_status=1
15412   if test "$4"; then
15413     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15414     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15415   fi
15416   $as_echo "$as_me: error: $2" >&2
15417   as_fn_exit $as_status
15418 } # as_fn_error
15419
15420
15421 # as_fn_set_status STATUS
15422 # -----------------------
15423 # Set $? to STATUS, without forking.
15424 as_fn_set_status ()
15425 {
15426   return $1
15427 } # as_fn_set_status
15428
15429 # as_fn_exit STATUS
15430 # -----------------
15431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15432 as_fn_exit ()
15433 {
15434   set +e
15435   as_fn_set_status $1
15436   exit $1
15437 } # as_fn_exit
15438
15439 # as_fn_unset VAR
15440 # ---------------
15441 # Portably unset VAR.
15442 as_fn_unset ()
15443 {
15444   { eval $1=; unset $1;}
15445 }
15446 as_unset=as_fn_unset
15447 # as_fn_append VAR VALUE
15448 # ----------------------
15449 # Append the text in VALUE to the end of the definition contained in VAR. Take
15450 # advantage of any shell optimizations that allow amortized linear growth over
15451 # repeated appends, instead of the typical quadratic growth present in naive
15452 # implementations.
15453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15454   eval 'as_fn_append ()
15455   {
15456     eval $1+=\$2
15457   }'
15458 else
15459   as_fn_append ()
15460   {
15461     eval $1=\$$1\$2
15462   }
15463 fi # as_fn_append
15464
15465 # as_fn_arith ARG...
15466 # ------------------
15467 # Perform arithmetic evaluation on the ARGs, and store the result in the
15468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15469 # must be portable across $(()) and expr.
15470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15471   eval 'as_fn_arith ()
15472   {
15473     as_val=$(( $* ))
15474   }'
15475 else
15476   as_fn_arith ()
15477   {
15478     as_val=`expr "$@" || test $? -eq 1`
15479   }
15480 fi # as_fn_arith
15481
15482
15483 if expr a : '\(a\)' >/dev/null 2>&1 &&
15484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15485   as_expr=expr
15486 else
15487   as_expr=false
15488 fi
15489
15490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15491   as_basename=basename
15492 else
15493   as_basename=false
15494 fi
15495
15496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15497   as_dirname=dirname
15498 else
15499   as_dirname=false
15500 fi
15501
15502 as_me=`$as_basename -- "$0" ||
15503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15504          X"$0" : 'X\(//\)$' \| \
15505          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15506 $as_echo X/"$0" |
15507     sed '/^.*\/\([^/][^/]*\)\/*$/{
15508             s//\1/
15509             q
15510           }
15511           /^X\/\(\/\/\)$/{
15512             s//\1/
15513             q
15514           }
15515           /^X\/\(\/\).*/{
15516             s//\1/
15517             q
15518           }
15519           s/.*/./; q'`
15520
15521 # Avoid depending upon Character Ranges.
15522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15525 as_cr_digits='0123456789'
15526 as_cr_alnum=$as_cr_Letters$as_cr_digits
15527
15528 ECHO_C= ECHO_N= ECHO_T=
15529 case `echo -n x` in #(((((
15530 -n*)
15531   case `echo 'xy\c'` in
15532   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15533   xy)  ECHO_C='\c';;
15534   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15535        ECHO_T=' ';;
15536   esac;;
15537 *)
15538   ECHO_N='-n';;
15539 esac
15540
15541 rm -f conf$$ conf$$.exe conf$$.file
15542 if test -d conf$$.dir; then
15543   rm -f conf$$.dir/conf$$.file
15544 else
15545   rm -f conf$$.dir
15546   mkdir conf$$.dir 2>/dev/null
15547 fi
15548 if (echo >conf$$.file) 2>/dev/null; then
15549   if ln -s conf$$.file conf$$ 2>/dev/null; then
15550     as_ln_s='ln -s'
15551     # ... but there are two gotchas:
15552     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15553     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15554     # In both cases, we have to default to `cp -p'.
15555     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15556       as_ln_s='cp -p'
15557   elif ln conf$$.file conf$$ 2>/dev/null; then
15558     as_ln_s=ln
15559   else
15560     as_ln_s='cp -p'
15561   fi
15562 else
15563   as_ln_s='cp -p'
15564 fi
15565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15566 rmdir conf$$.dir 2>/dev/null
15567
15568
15569 # as_fn_mkdir_p
15570 # -------------
15571 # Create "$as_dir" as a directory, including parents if necessary.
15572 as_fn_mkdir_p ()
15573 {
15574
15575   case $as_dir in #(
15576   -*) as_dir=./$as_dir;;
15577   esac
15578   test -d "$as_dir" || eval $as_mkdir_p || {
15579     as_dirs=
15580     while :; do
15581       case $as_dir in #(
15582       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15583       *) as_qdir=$as_dir;;
15584       esac
15585       as_dirs="'$as_qdir' $as_dirs"
15586       as_dir=`$as_dirname -- "$as_dir" ||
15587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15588          X"$as_dir" : 'X\(//\)[^/]' \| \
15589          X"$as_dir" : 'X\(//\)$' \| \
15590          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15591 $as_echo X"$as_dir" |
15592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15593             s//\1/
15594             q
15595           }
15596           /^X\(\/\/\)[^/].*/{
15597             s//\1/
15598             q
15599           }
15600           /^X\(\/\/\)$/{
15601             s//\1/
15602             q
15603           }
15604           /^X\(\/\).*/{
15605             s//\1/
15606             q
15607           }
15608           s/.*/./; q'`
15609       test -d "$as_dir" && break
15610     done
15611     test -z "$as_dirs" || eval "mkdir $as_dirs"
15612   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15613
15614
15615 } # as_fn_mkdir_p
15616 if mkdir -p . 2>/dev/null; then
15617   as_mkdir_p='mkdir -p "$as_dir"'
15618 else
15619   test -d ./-p && rmdir ./-p
15620   as_mkdir_p=false
15621 fi
15622
15623 if test -x / >/dev/null 2>&1; then
15624   as_test_x='test -x'
15625 else
15626   if ls -dL / >/dev/null 2>&1; then
15627     as_ls_L_option=L
15628   else
15629     as_ls_L_option=
15630   fi
15631   as_test_x='
15632     eval sh -c '\''
15633       if test -d "$1"; then
15634         test -d "$1/.";
15635       else
15636         case $1 in #(
15637         -*)set "./$1";;
15638         esac;
15639         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15640         ???[sx]*):;;*)false;;esac;fi
15641     '\'' sh
15642   '
15643 fi
15644 as_executable_p=$as_test_x
15645
15646 # Sed expression to map a string onto a valid CPP name.
15647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15648
15649 # Sed expression to map a string onto a valid variable name.
15650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15651
15652
15653 exec 6>&1
15654 ## ----------------------------------- ##
15655 ## Main body of $CONFIG_STATUS script. ##
15656 ## ----------------------------------- ##
15657 _ASEOF
15658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15659
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661 # Save the log message, to keep $0 and so on meaningful, and to
15662 # report actual input values of CONFIG_FILES etc. instead of their
15663 # values after options handling.
15664 ac_log="
15665 This file was extended by Wine $as_me 1.3.5, which was
15666 generated by GNU Autoconf 2.67.  Invocation command line was
15667
15668   CONFIG_FILES    = $CONFIG_FILES
15669   CONFIG_HEADERS  = $CONFIG_HEADERS
15670   CONFIG_LINKS    = $CONFIG_LINKS
15671   CONFIG_COMMANDS = $CONFIG_COMMANDS
15672   $ $0 $@
15673
15674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15675 "
15676
15677 _ACEOF
15678
15679 case $ac_config_files in *"
15680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15681 esac
15682
15683 case $ac_config_headers in *"
15684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15685 esac
15686
15687
15688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15689 # Files that config.status was made for.
15690 config_files="$ac_config_files"
15691 config_headers="$ac_config_headers"
15692 config_links="$ac_config_links"
15693 config_commands="$ac_config_commands"
15694
15695 _ACEOF
15696
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 ac_cs_usage="\
15699 \`$as_me' instantiates files and other configuration actions
15700 from templates according to the current configuration.  Unless the files
15701 and actions are specified as TAGs, all are instantiated by default.
15702
15703 Usage: $0 [OPTION]... [TAG]...
15704
15705   -h, --help       print this help, then exit
15706   -V, --version    print version number and configuration settings, then exit
15707       --config     print configuration, then exit
15708   -q, --quiet, --silent
15709                    do not print progress messages
15710   -d, --debug      don't remove temporary files
15711       --recheck    update $as_me by reconfiguring in the same conditions
15712       --file=FILE[:TEMPLATE]
15713                    instantiate the configuration file FILE
15714       --header=FILE[:TEMPLATE]
15715                    instantiate the configuration header FILE
15716
15717 Configuration files:
15718 $config_files
15719
15720 Configuration headers:
15721 $config_headers
15722
15723 Configuration links:
15724 $config_links
15725
15726 Configuration commands:
15727 $config_commands
15728
15729 Report bugs to <wine-devel@winehq.org>.
15730 Wine home page: <http://www.winehq.org>."
15731
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15735 ac_cs_version="\\
15736 Wine config.status 1.3.5
15737 configured by $0, generated by GNU Autoconf 2.67,
15738   with options \\"\$ac_cs_config\\"
15739
15740 Copyright (C) 2010 Free Software Foundation, Inc.
15741 This config.status script is free software; the Free Software Foundation
15742 gives unlimited permission to copy, distribute and modify it."
15743
15744 ac_pwd='$ac_pwd'
15745 srcdir='$srcdir'
15746 INSTALL='$INSTALL'
15747 test -n "\$AWK" || AWK=awk
15748 _ACEOF
15749
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751 # The default lists apply if the user does not specify any file.
15752 ac_need_defaults=:
15753 while test $# != 0
15754 do
15755   case $1 in
15756   --*=?*)
15757     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15758     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15759     ac_shift=:
15760     ;;
15761   --*=)
15762     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15763     ac_optarg=
15764     ac_shift=:
15765     ;;
15766   *)
15767     ac_option=$1
15768     ac_optarg=$2
15769     ac_shift=shift
15770     ;;
15771   esac
15772
15773   case $ac_option in
15774   # Handling of the options.
15775   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15776     ac_cs_recheck=: ;;
15777   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15778     $as_echo "$ac_cs_version"; exit ;;
15779   --config | --confi | --conf | --con | --co | --c )
15780     $as_echo "$ac_cs_config"; exit ;;
15781   --debug | --debu | --deb | --de | --d | -d )
15782     debug=: ;;
15783   --file | --fil | --fi | --f )
15784     $ac_shift
15785     case $ac_optarg in
15786     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15787     '') as_fn_error $? "missing file argument" ;;
15788     esac
15789     as_fn_append CONFIG_FILES " '$ac_optarg'"
15790     ac_need_defaults=false;;
15791   --header | --heade | --head | --hea )
15792     $ac_shift
15793     case $ac_optarg in
15794     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15795     esac
15796     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15797     ac_need_defaults=false;;
15798   --he | --h)
15799     # Conflict between --help and --header
15800     as_fn_error $? "ambiguous option: \`$1'
15801 Try \`$0 --help' for more information.";;
15802   --help | --hel | -h )
15803     $as_echo "$ac_cs_usage"; exit ;;
15804   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15805   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15806     ac_cs_silent=: ;;
15807
15808   # This is an error.
15809   -*) as_fn_error $? "unrecognized option: \`$1'
15810 Try \`$0 --help' for more information." ;;
15811
15812   *) as_fn_append ac_config_targets " $1"
15813      ac_need_defaults=false ;;
15814
15815   esac
15816   shift
15817 done
15818
15819 ac_configure_extra_args=
15820
15821 if $ac_cs_silent; then
15822   exec 6>/dev/null
15823   ac_configure_extra_args="$ac_configure_extra_args --silent"
15824 fi
15825
15826 _ACEOF
15827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15828 if \$ac_cs_recheck; then
15829   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15830   shift
15831   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15832   CONFIG_SHELL='$SHELL'
15833   export CONFIG_SHELL
15834   exec "\$@"
15835 fi
15836
15837 _ACEOF
15838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839 exec 5>>config.log
15840 {
15841   echo
15842   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15843 ## Running $as_me. ##
15844 _ASBOX
15845   $as_echo "$ac_log"
15846 } >&5
15847
15848 _ACEOF
15849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15850 #
15851 # INIT-COMMANDS
15852 #
15853 wine_fn_output_makefile ()
15854 {
15855     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15856 $ALL_MAKEFILE_DEPENDS
15857 _WINE_EOF
15858     as_fn_error $? "could not create Makefile" "$LINENO" 5
15859 }
15860
15861 _ACEOF
15862
15863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15864
15865 # Handling of arguments.
15866 for ac_config_target in $ac_config_targets
15867 do
15868   case $ac_config_target in
15869     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15870     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15871     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15872     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15873     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15874     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15875     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15876     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
15877     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15878     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15879     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15880     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15881     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15882     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15883     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15884     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15885     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15886     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15887     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15888     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15889     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15890     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
15891
15892   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15893   esac
15894 done
15895
15896
15897 # If the user did not use the arguments to specify the items to instantiate,
15898 # then the envvar interface is used.  Set only those that are not.
15899 # We use the long form for the default assignment because of an extremely
15900 # bizarre bug on SunOS 4.1.3.
15901 if $ac_need_defaults; then
15902   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15903   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15904   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15905   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15906 fi
15907
15908 # Have a temporary directory for convenience.  Make it in the build tree
15909 # simply because there is no reason against having it here, and in addition,
15910 # creating and moving files from /tmp can sometimes cause problems.
15911 # Hook for its removal unless debugging.
15912 # Note that there is a small window in which the directory will not be cleaned:
15913 # after its creation but before its name has been assigned to `$tmp'.
15914 $debug ||
15915 {
15916   tmp=
15917   trap 'exit_status=$?
15918   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15919 ' 0
15920   trap 'as_fn_exit 1' 1 2 13 15
15921 }
15922 # Create a (secure) tmp directory for tmp files.
15923
15924 {
15925   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15926   test -n "$tmp" && test -d "$tmp"
15927 }  ||
15928 {
15929   tmp=./conf$$-$RANDOM
15930   (umask 077 && mkdir "$tmp")
15931 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15932
15933 # Set up the scripts for CONFIG_FILES section.
15934 # No need to generate them if there are no CONFIG_FILES.
15935 # This happens for instance with `./config.status config.h'.
15936 if test -n "$CONFIG_FILES"; then
15937
15938 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15939   ac_cs_awk_getline=:
15940   ac_cs_awk_pipe_init=
15941   ac_cs_awk_read_file='
15942       while ((getline aline < (F[key])) > 0)
15943         print(aline)
15944       close(F[key])'
15945   ac_cs_awk_pipe_fini=
15946 else
15947   ac_cs_awk_getline=false
15948   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15949   ac_cs_awk_read_file='
15950       print "|#_!!_#|"
15951       print "cat " F[key] " &&"
15952       '$ac_cs_awk_pipe_init
15953   # The final `:' finishes the AND list.
15954   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15955 fi
15956 ac_cr=`echo X | tr X '\015'`
15957 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15958 # But we know of no other shell where ac_cr would be empty at this
15959 # point, so we can use a bashism as a fallback.
15960 if test "x$ac_cr" = x; then
15961   eval ac_cr=\$\'\\r\'
15962 fi
15963 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15964 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15965   ac_cs_awk_cr='\\r'
15966 else
15967   ac_cs_awk_cr=$ac_cr
15968 fi
15969
15970 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15971 _ACEOF
15972
15973 # Create commands to substitute file output variables.
15974 {
15975   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15976   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15977   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15978   echo "_ACAWK" &&
15979   echo "_ACEOF"
15980 } >conf$$files.sh &&
15981 . ./conf$$files.sh ||
15982   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15983 rm -f conf$$files.sh
15984
15985 {
15986   echo "cat >conf$$subs.awk <<_ACEOF" &&
15987   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15988   echo "_ACEOF"
15989 } >conf$$subs.sh ||
15990   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15992 ac_delim='%!_!# '
15993 for ac_last_try in false false false false false :; do
15994   . ./conf$$subs.sh ||
15995     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15996
15997   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15998   if test $ac_delim_n = $ac_delim_num; then
15999     break
16000   elif $ac_last_try; then
16001     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002   else
16003     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16004   fi
16005 done
16006 rm -f conf$$subs.sh
16007
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16010 _ACEOF
16011 sed -n '
16012 h
16013 s/^/S["/; s/!.*/"]=/
16014 p
16015 g
16016 s/^[^!]*!//
16017 :repl
16018 t repl
16019 s/'"$ac_delim"'$//
16020 t delim
16021 :nl
16022 h
16023 s/\(.\{148\}\)..*/\1/
16024 t more1
16025 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16026 p
16027 n
16028 b repl
16029 :more1
16030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16031 p
16032 g
16033 s/.\{148\}//
16034 t nl
16035 :delim
16036 h
16037 s/\(.\{148\}\)..*/\1/
16038 t more2
16039 s/["\\]/\\&/g; s/^/"/; s/$/"/
16040 p
16041 b
16042 :more2
16043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16044 p
16045 g
16046 s/.\{148\}//
16047 t delim
16048 ' <conf$$subs.awk | sed '
16049 /^[^""]/{
16050   N
16051   s/\n//
16052 }
16053 ' >>$CONFIG_STATUS || ac_write_fail=1
16054 rm -f conf$$subs.awk
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 _ACAWK
16057 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16058   for (key in S) S_is_set[key] = 1
16059   FS = "\a"
16060   \$ac_cs_awk_pipe_init
16061 }
16062 {
16063   line = $ 0
16064   nfields = split(line, field, "@")
16065   substed = 0
16066   len = length(field[1])
16067   for (i = 2; i < nfields; i++) {
16068     key = field[i]
16069     keylen = length(key)
16070     if (S_is_set[key]) {
16071       value = S[key]
16072       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16073       len += length(value) + length(field[++i])
16074       substed = 1
16075     } else
16076       len += 1 + keylen
16077   }
16078   if (nfields == 3 && !substed) {
16079     key = field[2]
16080     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16081       \$ac_cs_awk_read_file
16082       next
16083     }
16084   }
16085   print line
16086 }
16087 \$ac_cs_awk_pipe_fini
16088 _ACAWK
16089 _ACEOF
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16092   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16093 else
16094   cat
16095 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16096   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16097 _ACEOF
16098
16099 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16100 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16101 # trailing colons and then remove the whole line if VPATH becomes empty
16102 # (actually we leave an empty line to preserve line numbers).
16103 if test "x$srcdir" = x.; then
16104   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16105 h
16106 s///
16107 s/^/:/
16108 s/[      ]*$/:/
16109 s/:\$(srcdir):/:/g
16110 s/:\${srcdir}:/:/g
16111 s/:@srcdir@:/:/g
16112 s/^:*//
16113 s/:*$//
16114 x
16115 s/\(=[   ]*\).*/\1/
16116 G
16117 s/\n//
16118 s/^[^=]*=[       ]*$//
16119 }'
16120 fi
16121
16122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16123 fi # test -n "$CONFIG_FILES"
16124
16125 # Set up the scripts for CONFIG_HEADERS section.
16126 # No need to generate them if there are no CONFIG_HEADERS.
16127 # This happens for instance with `./config.status Makefile'.
16128 if test -n "$CONFIG_HEADERS"; then
16129 cat >"$tmp/defines.awk" <<\_ACAWK ||
16130 BEGIN {
16131 _ACEOF
16132
16133 # Transform confdefs.h into an awk script `defines.awk', embedded as
16134 # here-document in config.status, that substitutes the proper values into
16135 # config.h.in to produce config.h.
16136
16137 # Create a delimiter string that does not exist in confdefs.h, to ease
16138 # handling of long lines.
16139 ac_delim='%!_!# '
16140 for ac_last_try in false false :; do
16141   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16142   if test -z "$ac_t"; then
16143     break
16144   elif $ac_last_try; then
16145     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16146   else
16147     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16148   fi
16149 done
16150
16151 # For the awk script, D is an array of macro values keyed by name,
16152 # likewise P contains macro parameters if any.  Preserve backslash
16153 # newline sequences.
16154
16155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16156 sed -n '
16157 s/.\{148\}/&'"$ac_delim"'/g
16158 t rset
16159 :rset
16160 s/^[     ]*#[    ]*define[       ][      ]*/ /
16161 t def
16162 d
16163 :def
16164 s/\\$//
16165 t bsnl
16166 s/["\\]/\\&/g
16167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16168 D["\1"]=" \3"/p
16169 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16170 d
16171 :bsnl
16172 s/["\\]/\\&/g
16173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16174 D["\1"]=" \3\\\\\\n"\\/p
16175 t cont
16176 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16177 t cont
16178 d
16179 :cont
16180 n
16181 s/.\{148\}/&'"$ac_delim"'/g
16182 t clear
16183 :clear
16184 s/\\$//
16185 t bsnlc
16186 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16187 d
16188 :bsnlc
16189 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16190 b cont
16191 ' <confdefs.h | sed '
16192 s/'"$ac_delim"'/"\\\
16193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16194
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196   for (key in D) D_is_set[key] = 1
16197   FS = "\a"
16198 }
16199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16200   line = \$ 0
16201   split(line, arg, " ")
16202   if (arg[1] == "#") {
16203     defundef = arg[2]
16204     mac1 = arg[3]
16205   } else {
16206     defundef = substr(arg[1], 2)
16207     mac1 = arg[2]
16208   }
16209   split(mac1, mac2, "(") #)
16210   macro = mac2[1]
16211   prefix = substr(line, 1, index(line, defundef) - 1)
16212   if (D_is_set[macro]) {
16213     # Preserve the white space surrounding the "#".
16214     print prefix "define", macro P[macro] D[macro]
16215     next
16216   } else {
16217     # Replace #undef with comments.  This is necessary, for example,
16218     # in the case of _POSIX_SOURCE, which is predefined and required
16219     # on some systems where configure will not decide to define it.
16220     if (defundef == "undef") {
16221       print "/*", prefix defundef, macro, "*/"
16222       next
16223     }
16224   }
16225 }
16226 { print }
16227 _ACAWK
16228 _ACEOF
16229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16230   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16231 fi # test -n "$CONFIG_HEADERS"
16232
16233
16234 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16235 shift
16236 for ac_tag
16237 do
16238   case $ac_tag in
16239   :[FHLC]) ac_mode=$ac_tag; continue;;
16240   esac
16241   case $ac_mode$ac_tag in
16242   :[FHL]*:*);;
16243   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16244   :[FH]-) ac_tag=-:-;;
16245   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16246   esac
16247   ac_save_IFS=$IFS
16248   IFS=:
16249   set x $ac_tag
16250   IFS=$ac_save_IFS
16251   shift
16252   ac_file=$1
16253   shift
16254
16255   case $ac_mode in
16256   :L) ac_source=$1;;
16257   :[FH])
16258     ac_file_inputs=
16259     for ac_f
16260     do
16261       case $ac_f in
16262       -) ac_f="$tmp/stdin";;
16263       *) # Look for the file first in the build tree, then in the source tree
16264          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16265          # because $ac_f cannot contain `:'.
16266          test -f "$ac_f" ||
16267            case $ac_f in
16268            [\\/$]*) false;;
16269            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16270            esac ||
16271            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16272       esac
16273       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16274       as_fn_append ac_file_inputs " '$ac_f'"
16275     done
16276
16277     # Let's still pretend it is `configure' which instantiates (i.e., don't
16278     # use $as_me), people would be surprised to read:
16279     #    /* config.h.  Generated by config.status.  */
16280     configure_input='Generated from '`
16281           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16282         `' by configure.'
16283     if test x"$ac_file" != x-; then
16284       configure_input="$ac_file.  $configure_input"
16285       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16286 $as_echo "$as_me: creating $ac_file" >&6;}
16287     fi
16288     # Neutralize special characters interpreted by sed in replacement strings.
16289     case $configure_input in #(
16290     *\&* | *\|* | *\\* )
16291        ac_sed_conf_input=`$as_echo "$configure_input" |
16292        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16293     *) ac_sed_conf_input=$configure_input;;
16294     esac
16295
16296     case $ac_tag in
16297     *:-:* | *:-) cat >"$tmp/stdin" \
16298       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16299     esac
16300     ;;
16301   esac
16302
16303   ac_dir=`$as_dirname -- "$ac_file" ||
16304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16305          X"$ac_file" : 'X\(//\)[^/]' \| \
16306          X"$ac_file" : 'X\(//\)$' \| \
16307          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16308 $as_echo X"$ac_file" |
16309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16310             s//\1/
16311             q
16312           }
16313           /^X\(\/\/\)[^/].*/{
16314             s//\1/
16315             q
16316           }
16317           /^X\(\/\/\)$/{
16318             s//\1/
16319             q
16320           }
16321           /^X\(\/\).*/{
16322             s//\1/
16323             q
16324           }
16325           s/.*/./; q'`
16326   as_dir="$ac_dir"; as_fn_mkdir_p
16327   ac_builddir=.
16328
16329 case "$ac_dir" in
16330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16331 *)
16332   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16333   # A ".." for each directory in $ac_dir_suffix.
16334   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16335   case $ac_top_builddir_sub in
16336   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16337   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16338   esac ;;
16339 esac
16340 ac_abs_top_builddir=$ac_pwd
16341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16342 # for backward compatibility:
16343 ac_top_builddir=$ac_top_build_prefix
16344
16345 case $srcdir in
16346   .)  # We are building in place.
16347     ac_srcdir=.
16348     ac_top_srcdir=$ac_top_builddir_sub
16349     ac_abs_top_srcdir=$ac_pwd ;;
16350   [\\/]* | ?:[\\/]* )  # Absolute name.
16351     ac_srcdir=$srcdir$ac_dir_suffix;
16352     ac_top_srcdir=$srcdir
16353     ac_abs_top_srcdir=$srcdir ;;
16354   *) # Relative name.
16355     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16356     ac_top_srcdir=$ac_top_build_prefix$srcdir
16357     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16358 esac
16359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16360
16361
16362   case $ac_mode in
16363   :F)
16364   #
16365   # CONFIG_FILE
16366   #
16367
16368   case $INSTALL in
16369   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16370   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16371   esac
16372 _ACEOF
16373
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375 # If the template does not know about datarootdir, expand it.
16376 # FIXME: This hack should be removed a few years after 2.60.
16377 ac_datarootdir_hack=; ac_datarootdir_seen=
16378 ac_sed_dataroot='
16379 /datarootdir/ {
16380   p
16381   q
16382 }
16383 /@datadir@/p
16384 /@docdir@/p
16385 /@infodir@/p
16386 /@localedir@/p
16387 /@mandir@/p'
16388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16389 *datarootdir*) ac_datarootdir_seen=yes;;
16390 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16393 _ACEOF
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395   ac_datarootdir_hack='
16396   s&@datadir@&$datadir&g
16397   s&@docdir@&$docdir&g
16398   s&@infodir@&$infodir&g
16399   s&@localedir@&$localedir&g
16400   s&@mandir@&$mandir&g
16401   s&\\\${datarootdir}&$datarootdir&g' ;;
16402 esac
16403 _ACEOF
16404
16405 # Neutralize VPATH when `$srcdir' = `.'.
16406 # Shell code in configure.ac might set extrasub.
16407 # FIXME: do we really want to maintain this feature?
16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16409 ac_sed_extra="$ac_vpsub
16410 $extrasub
16411 _ACEOF
16412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16413 :t
16414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16415 s|@configure_input@|$ac_sed_conf_input|;t t
16416 s&@top_builddir@&$ac_top_builddir_sub&;t t
16417 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16418 s&@srcdir@&$ac_srcdir&;t t
16419 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16420 s&@top_srcdir@&$ac_top_srcdir&;t t
16421 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16422 s&@builddir@&$ac_builddir&;t t
16423 s&@abs_builddir@&$ac_abs_builddir&;t t
16424 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16425 s&@INSTALL@&$ac_INSTALL&;t t
16426 $ac_datarootdir_hack
16427 "
16428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16429 if $ac_cs_awk_getline; then
16430   $AWK -f "$tmp/subs.awk"
16431 else
16432   $AWK -f "$tmp/subs.awk" | $SHELL
16433 fi >$tmp/out \
16434   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16435
16436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16437   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16438   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16440 which seems to be undefined.  Please make sure it is defined" >&5
16441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16442 which seems to be undefined.  Please make sure it is defined" >&2;}
16443
16444   rm -f "$tmp/stdin"
16445   case $ac_file in
16446   -) cat "$tmp/out" && rm -f "$tmp/out";;
16447   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16448   esac \
16449   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16450  ;;
16451   :H)
16452   #
16453   # CONFIG_HEADER
16454   #
16455   if test x"$ac_file" != x-; then
16456     {
16457       $as_echo "/* $configure_input  */" \
16458       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16459     } >"$tmp/config.h" \
16460       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16461     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16462       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16464     else
16465       rm -f "$ac_file"
16466       mv "$tmp/config.h" "$ac_file" \
16467         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16468     fi
16469   else
16470     $as_echo "/* $configure_input  */" \
16471       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16472       || as_fn_error $? "could not create -" "$LINENO" 5
16473   fi
16474  ;;
16475   :L)
16476   #
16477   # CONFIG_LINK
16478   #
16479
16480   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16481     :
16482   else
16483     # Prefer the file from the source tree if names are identical.
16484     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16485       ac_source=$srcdir/$ac_source
16486     fi
16487
16488     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16489 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16490
16491     if test ! -r "$ac_source"; then
16492       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16493     fi
16494     rm -f "$ac_file"
16495
16496     # Try a relative symlink, then a hard link, then a copy.
16497     case $ac_source in
16498     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16499         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16500     esac
16501     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16502       ln "$ac_source" "$ac_file" 2>/dev/null ||
16503       cp -p "$ac_source" "$ac_file" ||
16504       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16505   fi
16506  ;;
16507   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16508 $as_echo "$as_me: executing $ac_file commands" >&6;}
16509  ;;
16510   esac
16511
16512
16513   case $ac_file$ac_mode in
16514     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16515     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16516 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16517     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16518 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16519     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16520 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16521     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16522 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16523     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16524 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16525     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16526 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16527     "Makefile":C) wine_fn_output_makefile Makefile ;;
16528
16529   esac
16530 done # for ac_tag
16531
16532
16533 as_fn_exit 0
16534 _ACEOF
16535 ac_clean_files=$ac_clean_files_save
16536
16537 test $ac_write_fail = 0 ||
16538   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16539
16540
16541 # configure is writing to config.log, and then calls config.status.
16542 # config.status does its own redirection, appending to config.log.
16543 # Unfortunately, on DOS this fails, as config.log is still kept open
16544 # by configure, so config.status won't be able to write to it; its
16545 # output is simply discarded.  So we exec the FD to /dev/null,
16546 # effectively closing config.log, so it can be properly (re)opened and
16547 # appended to by config.status.  When coming back to configure, we
16548 # need to make the FD available again.
16549 if test "$no_create" != yes; then
16550   ac_cs_success=:
16551   ac_config_status_args=
16552   test "$silent" = yes &&
16553     ac_config_status_args="$ac_config_status_args --quiet"
16554   exec 5>/dev/null
16555   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16556   exec 5>>config.log
16557   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16558   # would make configure fail if this is the last instruction.
16559   $ac_cs_success || as_fn_exit 1
16560 fi
16561 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16562   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16563 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16564 fi
16565
16566
16567 if test "$no_create" = "yes"
16568 then
16569   exit 0
16570 fi
16571
16572 ac_save_IFS="$IFS"
16573 if test "x$wine_notices != "x; then
16574     echo >&6
16575     IFS="|"
16576     for msg in $wine_notices; do
16577         IFS="$ac_save_IFS"
16578         if test -n "$msg"; then
16579             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16580 $as_echo "$as_me: $msg" >&6;}
16581         fi
16582     done
16583 fi
16584 IFS="|"
16585 for msg in $wine_warnings; do
16586     IFS="$ac_save_IFS"
16587     if test -n "$msg"; then
16588         echo >&2
16589         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16590 $as_echo "$as_me: WARNING: $msg" >&2;}
16591     fi
16592 done
16593 IFS="$ac_save_IFS"
16594
16595 echo "
16596 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16597 " >&6
16598