~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/configure

Version: ~ [ wine-1.5.31 ] ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 #! /bin/sh
  2 # Guess values for system-dependent variables and create Makefiles.
  3 # Generated by GNU Autoconf 2.65 for Wine 1.1.39.
  4 #
  5 # Report bugs to <wine-devel@winehq.org>.
  6 #
  7 #
  8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 10 # Inc.
 11 #
 12 #
 13 # This configure script is free software; the Free Software Foundation
 14 # gives unlimited permission to copy, distribute and modify it.
 15 ## -------------------- ##
 16 ## M4sh Initialization. ##
 17 ## -------------------- ##
 18 
 19 # Be more Bourne compatible
 20 DUALCASE=1; export DUALCASE # for MKS sh
 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 22   emulate sh
 23   NULLCMD=:
 24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 25   # is contrary to our usage.  Disable this feature.
 26   alias -g '${1+"$@"}'='"$@"'
 27   setopt NO_GLOB_SUBST
 28 else
 29   case `(set -o) 2>/dev/null` in #(
 30   *posix*) :
 31     set -o posix ;; #(
 32   *) :
 33      ;;
 34 esac
 35 fi
 36 
 37 
 38 as_nl='
 39 '
 40 export as_nl
 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
 46 # but without wasting forks for bash or zsh.
 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
 48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 49   as_echo='print -r --'
 50   as_echo_n='print -rn --'
 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 52   as_echo='printf %s\n'
 53   as_echo_n='printf %s'
 54 else
 55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 57     as_echo_n='/usr/ucb/echo -n'
 58   else
 59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 60     as_echo_n_body='eval
 61       arg=$1;
 62       case $arg in #(
 63       *"$as_nl"*)
 64         expr "X$arg" : "X\\(.*\\)$as_nl";
 65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 66       esac;
 67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 68     '
 69     export as_echo_n_body
 70     as_echo_n='sh -c $as_echo_n_body as_echo'
 71   fi
 72   export as_echo_body
 73   as_echo='sh -c $as_echo_body as_echo'
 74 fi
 75 
 76 # The user is always right.
 77 if test "${PATH_SEPARATOR+set}" != set; then
 78   PATH_SEPARATOR=:
 79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 81       PATH_SEPARATOR=';'
 82   }
 83 fi
 84 
 85 
 86 # IFS
 87 # We need space, tab and new line, in precisely that order.  Quoting is
 88 # there to prevent editors from complaining about space-tab.
 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 90 # splitting by setting IFS to empty value.)
 91 IFS=" ""        $as_nl"
 92 
 93 # Find who we are.  Look in the path if we contain no directory separator.
 94 case $0 in #((
 95   *[\\/]* ) as_myself=$0 ;;
 96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 97 for as_dir in $PATH
 98 do
 99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104 
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116 
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128 
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134 
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160 
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213 
214 
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225 
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248 
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260 
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268 
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278 
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284 
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 
324 
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343 
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360 
361 
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377 
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384 
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390 
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396 
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415 
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 
423 
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454 
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467 
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494 
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501 
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524 
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 
531 
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534 
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539 
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551 
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.1.39'
556 PACKAGE_STRING='Wine 1.1.39'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559 
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596 
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_PROGRAM_BIN_INSTALL_DIRS
600 ALL_PROGRAM_DIRS
601 ALL_TEST_BINARIES
602 ALL_TEST_DIRS
603 ALL_INSTALL_DIRS
604 ALL_IMPORT_LIBS
605 ALL_STATIC_LIBS
606 ALL_STATICLIB_DIRS
607 ALL_TOOL_DIRS
608 ALL_DLL_DIRS
609 ALL_TOP_DIRS
610 ALL_DIRS
611 ALL_WINETEST_DEPENDS
612 ALL_MAKEFILE_DEPENDS
613 ALL_SYMLINKS
614 ALL_MAKERULES
615 DEPENDENCIES
616 LDAPLIBS
617 LIBPOLL
618 LIBDL
619 EXTRA_BINARIES
620 MAIN_BINARY
621 SOCKETLIBS
622 CRTLIBS
623 TOOLSEXT
624 LDPATH
625 BUILTINFLAG
626 EXTRACFLAGS
627 LIBKSTAT
628 LIBMPG123
629 PNGINCL
630 FONTCONFIGINCL
631 CUPSINCL
632 AUDIOIOLIBS
633 ALSALIBS
634 ESDLIBS
635 ESDINCL
636 ESDCONFIG
637 ZLIB
638 FREETYPEINCL
639 FREETYPELIBS
640 ft_devel
641 LCMSLIBS
642 RESOLVLIBS
643 GPHOTO2INCL
644 GPHOTO2LIBS
645 gphoto2port_devel
646 gphoto2_devel
647 SANEINCL
648 sane_devel
649 GNUTLSINCL
650 HALINCL
651 XSLTINCL
652 XML2INCL
653 XML2LIBS
654 NASLIBS
655 X_EXTRA_LIBS
656 X_LIBS
657 X_PRE_LIBS
658 X_CFLAGS
659 XMKMF
660 LIBPTHREAD
661 CROSSTARGET
662 CROSSTEST
663 CROSSCC
664 CARBONLIB
665 LIBOPENAL
666 COREAUDIO
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 IOKITLIB
670 COREFOUNDATIONLIB
671 SECURITYLIB
672 DLLWRAP
673 DLLTOOL
674 LDD
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
683 CPP
684 OPENGL_LIBS
685 XLIB
686 PRELINK
687 ICOTOOL
688 RSVG
689 PKG_CONFIG
690 FONTFORGE
691 LINTFLAGS
692 LINT
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 LDCONFIG
697 EGREP
698 GREP
699 LN_S
700 STRIP
701 RANLIB
702 ARFLAGS
703 ac_ct_AR
704 AR
705 BISON
706 FLEX
707 TOOLSDIR
708 WOW64_DISABLE
709 TARGETFLAGS
710 CPPBIN
711 ac_ct_CXX
712 CXXFLAGS
713 CXX
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 SET_MAKE
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 MAINTAINER_MODE
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_audioio
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_esd
788 with_fontconfig
789 with_freetype
790 with_gphoto
791 with_glu
792 with_gnutls
793 with_gsm
794 with_hal
795 with_jack
796 with_jpeg
797 with_ldap
798 with_mpg123
799 with_nas
800 with_openal
801 with_opengl
802 with_openssl
803 with_oss
804 with_png
805 with_pthread
806 with_sane
807 with_v4l
808 with_xcomposite
809 with_xcursor
810 with_xinerama
811 with_xinput
812 with_xml
813 with_xrandr
814 with_xrender
815 with_xshape
816 with_xshm
817 with_xslt
818 with_xxf86vm
819 with_wine_tools
820 with_wine64
821 enable_largefile
822 with_x
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CXX
833 CXXFLAGS
834 CCC
835 CPP
836 XMKMF'
837 
838 
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860 
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886 
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891   # If the previous option needs an argument, assign it.
892   if test -n "$ac_prev"; then
893     eval $ac_prev=\$ac_option
894     ac_prev=
895     continue
896   fi
897 
898   case $ac_option in
899   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900   *)    ac_optarg=yes ;;
901   esac
902 
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904 
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908 
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913 
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918 
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925 
926   --config-cache | -C)
927     cache_file=config.cache ;;
928 
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933 
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940 
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956 
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961 
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966 
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982 
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991 
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995 
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002 
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007 
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013 
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020 
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025 
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030 
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037 
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042 
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049 
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054 
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058 
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062 
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066 
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075 
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080 
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087 
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094 
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111 
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116 
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121 
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125 
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131 
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142 
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147 
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152 
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159 
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164 
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167 
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170 
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186 
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202 
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206 
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213 
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220 
1221   -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1223     ;;
1224 
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234 
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241     ;;
1242 
1243   esac
1244 done
1245 
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error "missing argument to $ac_option"
1249 fi
1250 
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258 
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279 
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286 
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292     If a cross compiler is detected then cross compile mode will be used." >&2
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297 
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 
1301 test "$silent" = yes && exec 6>/dev/null
1302 
1303 
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error "pwd does not report name of working directory"
1310 
1311 
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370 
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures Wine 1.1.39 to adapt to many kinds of systems.
1379 
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384 
1385 Defaults for the options are specified in brackets.
1386 
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397 
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403 
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408 
1409 For better control, use the options below.
1410 
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432 
1433   cat <<\_ACEOF
1434 
1435 X features:
1436   --x-includes=DIR    X include files are in DIR
1437   --x-libraries=DIR   X library files are in DIR
1438 
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444 
1445 if test -n "$ac_init_help"; then
1446   case $ac_init_help in
1447      short | recursive ) echo "Configuration of Wine 1.1.39:";;
1448    esac
1449   cat <<\_ACEOF
1450 
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --disable-win16         do not include Win16 support
1456   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1457                           binaries)
1458   --disable-tests         do not build the regression tests
1459   --enable-maintainer-mode
1460                           enable maintainer-specific build rules
1461   --disable-largefile     omit support for large files
1462 
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --without-alsa          do not use the Alsa sound support
1467   --without-audioio       do not use the AudioIO sound support
1468   --without-capi          do not use CAPI (ISDN support)
1469   --without-cms           do not use CMS (color management support)
1470   --without-coreaudio     do not use the CoreAudio sound support
1471   --without-cups          do not use CUPS
1472   --without-curses        do not use (n)curses
1473   --without-esd           do not use the EsounD sound support
1474   --without-fontconfig    do not use fontconfig
1475   --without-freetype      do not use the FreeType library
1476   --without-gphoto        do not use gphoto (Digital Camera support)
1477   --without-glu           do not use the GLU library
1478   --without-gnutls        do not use GnuTLS (schannel support)
1479   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1480   --without-hal           do not use HAL (dynamic device support)
1481   --without-jack          do not use the Jack sound support
1482   --without-jpeg          do not use JPEG
1483   --without-ldap          do not use LDAP
1484   --without-mpg123        do not use the mpg123 library
1485   --without-nas           do not use the NAS sound support
1486   --without-openal        do not use OpenAL
1487   --without-opengl        do not use OpenGL
1488   --without-openssl       do not use OpenSSL
1489   --without-oss           do not use the OSS sound support
1490   --without-png           do not use PNG
1491   --without-pthread       do not use the pthread library
1492   --without-sane          do not use SANE (scanner support)
1493   --without-v4l           do not use v4l1 (v4l support)
1494   --without-xcomposite    do not use the Xcomposite extension
1495   --without-xcursor       do not use the Xcursor extension
1496   --without-xinerama      do not use Xinerama (multi-monitor support)
1497   --without-xinput        do not use the Xinput extension
1498   --without-xml           do not use XML
1499   --without-xrandr        do not use Xrandr (resolution changes)
1500   --without-xrender       do not use the Xrender extension
1501   --without-xshape        do not use the Xshape extension
1502   --without-xshm          do not use XShm (shared memory extension)
1503   --without-xslt          do not use XSLT
1504   --without-xxf86vm       do not use XFree video mode extension
1505   --with-wine-tools=DIR   use Wine tools from directory DIR
1506   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1507   --with-x                use the X Window System
1508 
1509 Some influential environment variables:
1510   CC          C compiler command
1511   CFLAGS      C compiler flags
1512   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513               nonstandard directory <lib dir>
1514   LIBS        libraries to pass to the linker, e.g. -l<library>
1515   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516               you have headers in a nonstandard directory <include dir>
1517   CXX         C++ compiler command
1518   CXXFLAGS    C++ compiler flags
1519   CPP         C preprocessor
1520   XMKMF       Path to xmkmf, Makefile generator for X Window System
1521 
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524 
1525 Report bugs to <wine-devel@winehq.org>.
1526 Wine home page: <http://www.winehq.org>.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530 
1531 if test "$ac_init_help" = "recursive"; then
1532   # If there are subdirs, report their specific --help.
1533   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534     test -d "$ac_dir" ||
1535       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536       continue
1537     ac_builddir=.
1538 
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543   # A ".." for each directory in $ac_dir_suffix.
1544   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545   case $ac_top_builddir_sub in
1546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548   esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554 
1555 case $srcdir in
1556   .)  # We are building in place.
1557     ac_srcdir=.
1558     ac_top_srcdir=$ac_top_builddir_sub
1559     ac_abs_top_srcdir=$ac_pwd ;;
1560   [\\/]* | ?:[\\/]* )  # Absolute name.
1561     ac_srcdir=$srcdir$ac_dir_suffix;
1562     ac_top_srcdir=$srcdir
1563     ac_abs_top_srcdir=$srcdir ;;
1564   *) # Relative name.
1565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566     ac_top_srcdir=$ac_top_build_prefix$srcdir
1567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 
1571     cd "$ac_dir" || { ac_status=$?; continue; }
1572     # Check for guested configure.
1573     if test -f "$ac_srcdir/configure.gnu"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576     elif test -f "$ac_srcdir/configure"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure" --help=recursive
1579     else
1580       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581     fi || ac_status=$?
1582     cd "$ac_pwd" || { ac_status=$?; break; }
1583   done
1584 fi
1585 
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588   cat <<\_ACEOF
1589 Wine configure 1.1.39
1590 generated by GNU Autoconf 2.65
1591 
1592 Copyright (C) 2009 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596   exit
1597 fi
1598 
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602 
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   rm -f conftest.$ac_objext
1610   if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_compile") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } && {
1626          test -z "$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        } && test -s conftest.$ac_objext; then :
1629   ac_retval=0
1630 else
1631   $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633 
1634         ac_retval=1
1635 fi
1636   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637   as_fn_set_status $ac_retval
1638 
1639 } # ac_fn_c_try_compile
1640 
1641 # ac_fn_cxx_try_compile LINENO
1642 # ----------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_cxx_try_compile ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   rm -f conftest.$ac_objext
1648   if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_compile") 2>conftest.err
1656   ac_status=$?
1657   if test -s conftest.err; then
1658     grep -v '^ *+' conftest.err >conftest.er1
1659     cat conftest.er1 >&5
1660     mv -f conftest.er1 conftest.err
1661   fi
1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663   test $ac_status = 0; } && {
1664          test -z "$ac_cxx_werror_flag" ||
1665          test ! -s conftest.err
1666        } && test -s conftest.$ac_objext; then :
1667   ac_retval=0
1668 else
1669   $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671 
1672         ac_retval=1
1673 fi
1674   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675   as_fn_set_status $ac_retval
1676 
1677 } # ac_fn_cxx_try_compile
1678 
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   rm -f conftest.$ac_objext conftest$ac_exeext
1686   if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_link") 2>conftest.err
1694   ac_status=$?
1695   if test -s conftest.err; then
1696     grep -v '^ *+' conftest.err >conftest.er1
1697     cat conftest.er1 >&5
1698     mv -f conftest.er1 conftest.err
1699   fi
1700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701   test $ac_status = 0; } && {
1702          test -z "$ac_c_werror_flag" ||
1703          test ! -s conftest.err
1704        } && test -s conftest$ac_exeext && {
1705          test "$cross_compiling" = yes ||
1706          $as_test_x conftest$ac_exeext
1707        }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712 
1713         ac_retval=1
1714 fi
1715   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717   # interfere with the next link command; also delete a directory that is
1718   # left behind by Apple's compiler.  We do this before executing the actions.
1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721   as_fn_set_status $ac_retval
1722 
1723 } # ac_fn_c_try_link
1724 
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } >/dev/null && {
1747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748          test ! -s conftest.err
1749        }; then :
1750   ac_retval=0
1751 else
1752   $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754 
1755     ac_retval=1
1756 fi
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   as_fn_set_status $ac_retval
1759 
1760 } # ac_fn_c_try_cpp
1761 
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774   $as_echo_n "(cached) " >&6
1775 fi
1776 eval ac_res=\$$3
1777                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780   # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h.  */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789   ac_header_compiler=yes
1790 else
1791   ac_header_compiler=no
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1796 
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805   ac_header_preproc=yes
1806 else
1807   ac_header_preproc=no
1808 fi
1809 rm -f conftest.err conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1812 
1813 # So?  What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815   yes:no: )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820     ;;
1821   no:yes:* )
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( cat <<\_ASBOX
1833 ## ------------------------------------ ##
1834 ## Report this to wine-devel@winehq.org ##
1835 ## ------------------------------------ ##
1836 _ASBOX
1837      ) | sed "s/^/$as_me: WARNING:     /" >&2
1838     ;;
1839 esac
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   eval "$3=\$ac_header_compiler"
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 fi
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 
1853 } # ac_fn_c_check_header_mongrel
1854 
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_link") 2>&5
1870   ac_status=$?
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873   { { case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_try") 2>&5
1880   ac_status=$?
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; }; }; then :
1883   ac_retval=0
1884 else
1885   $as_echo "$as_me: program exited with status $ac_status" >&5
1886        $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888 
1889        ac_retval=$ac_status
1890 fi
1891   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893   as_fn_set_status $ac_retval
1894 
1895 } # ac_fn_c_try_run
1896 
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915   eval "$3=yes"
1916 else
1917   eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 
1926 } # ac_fn_c_check_header_compile
1927 
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937   $as_echo_n "(cached) " >&6
1938 else
1939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943 #define $2 innocuous_$2
1944 
1945 /* System header to define __stub macros and hopefully few prototypes,
1946     which can conflict with char $2 (); below.
1947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948     <limits.h> exists even on freestanding compilers.  */
1949 
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955 
1956 #undef $2
1957 
1958 /* Override any GCC internal prototype to avoid an error.
1959    Use char because int might match the return type of a GCC
1960    builtin and then its argument prototype would still apply.  */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966     to always fail with ENOSYS.  Some functions are actually named
1967     something starting with __ and the normal name is an alias.  */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971 
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981   eval "$3=yes"
1982 else
1983   eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986     conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 
1993 } # ac_fn_c_check_func
1994 
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 $as_echo_n "checking for $2.$3... " >&6; }
2004 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $5
2010 int
2011 main ()
2012 {
2013 static $2 ac_aggr;
2014 if (ac_aggr.$3)
2015 return 0;
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021   eval "$4=yes"
2022 else
2023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $5
2026 int
2027 main ()
2028 {
2029 static $2 ac_aggr;
2030 if (sizeof ac_aggr.$3)
2031 return 0;
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   eval "$4=yes"
2038 else
2039   eval "$4=no"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$4
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 
2050 } # ac_fn_c_check_member
2051 
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062   $as_echo_n "(cached) " >&6
2063 else
2064   eval "$3=no"
2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 if (sizeof ($2))
2072          return 0;
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 if (sizeof (($2)))
2085             return 0;
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 
2092 else
2093   eval "$3=yes"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 
2104 } # ac_fn_c_check_type
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108 
2109 It was created by Wine $as_me 1.1.39, which was
2110 generated by GNU Autoconf 2.65.  Invocation command line was
2111 
2112   $ $0 $@
2113 
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121 
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2130 
2131 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2132 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2135 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2136 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2137 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2138 
2139 _ASUNAME
2140 
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146     $as_echo "PATH: $as_dir"
2147   done
2148 IFS=$as_save_IFS
2149 
2150 } >&5
2151 
2152 cat >&5 <<_ACEOF
2153 
2154 
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158 
2159 _ACEOF
2160 
2161 
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173   for ac_arg
2174   do
2175     case $ac_arg in
2176     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178     | -silent | --silent | --silen | --sile | --sil)
2179       continue ;;
2180     *\'*)
2181       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182     esac
2183     case $ac_pass in
2184     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185     2)
2186       as_fn_append ac_configure_args1 " '$ac_arg'"
2187       if test $ac_must_keep_next = true; then
2188         ac_must_keep_next=false # Got value, back to normal.
2189       else
2190         case $ac_arg in
2191           *=* | --config-cache | -C | -disable-* | --disable-* \
2192           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194           | -with-* | --with-* | -without-* | --without-* | --x)
2195             case "$ac_configure_args0 " in
2196               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197             esac
2198             ;;
2199           -* ) ac_must_keep_next=true ;;
2200         esac
2201       fi
2202       as_fn_append ac_configure_args " '$ac_arg'"
2203       ;;
2204     esac
2205   done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209 
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log.  We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216   # Save into config.log some information that might help in debugging.
2217   {
2218     echo
2219 
2220     cat <<\_ASBOX
2221 ## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##
2224 _ASBOX
2225     echo
2226     # The following way of writing the cache mishandles newlines in values,
2227 (
2228   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229     eval ac_val=\$$ac_var
2230     case $ac_val in #(
2231     *${as_nl}*)
2232       case $ac_var in #(
2233       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235       esac
2236       case $ac_var in #(
2237       _ | IFS | as_nl) ;; #(
2238       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239       *) { eval $ac_var=; unset $ac_var;} ;;
2240       esac ;;
2241     esac
2242   done
2243   (set) 2>&1 |
2244     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245     *${as_nl}ac_space=\ *)
2246       sed -n \
2247         "s/'\''/'\''\\\\'\'''\''/g;
2248           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249       ;; #(
2250     *)
2251       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252       ;;
2253     esac |
2254     sort
2255 )
2256     echo
2257 
2258     cat <<\_ASBOX
2259 ## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##
2262 _ASBOX
2263     echo
2264     for ac_var in $ac_subst_vars
2265     do
2266       eval ac_val=\$$ac_var
2267       case $ac_val in
2268       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269       esac
2270       $as_echo "$ac_var='\''$ac_val'\''"
2271     done | sort
2272     echo
2273 
2274     if test -n "$ac_subst_files"; then
2275       cat <<\_ASBOX
2276 ## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##
2279 _ASBOX
2280       echo
2281       for ac_var in $ac_subst_files
2282       do
2283         eval ac_val=\$$ac_var
2284         case $ac_val in
2285         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286         esac
2287         $as_echo "$ac_var='\''$ac_val'\''"
2288       done | sort
2289       echo
2290     fi
2291 
2292     if test -s confdefs.h; then
2293       cat <<\_ASBOX
2294 ## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##
2297 _ASBOX
2298       echo
2299       cat confdefs.h
2300       echo
2301     fi
2302     test "$ac_signal" != 0 &&
2303       $as_echo "$as_me: caught signal $ac_signal"
2304     $as_echo "$as_me: exit $exit_status"
2305   } >&5
2306   rm -f core *.core core.conftest.* &&
2307     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2308     exit $exit_status
2309 ' 0
2310 for ac_signal in 1 2 13 15; do
2311   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2312 done
2313 ac_signal=0
2314 
2315 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2316 rm -f -r conftest* confdefs.h
2317 
2318 $as_echo "/* confdefs.h */" > confdefs.h
2319 
2320 # Predefined preprocessor variables.
2321 
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_NAME "$PACKAGE_NAME"
2324 _ACEOF
2325 
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2328 _ACEOF
2329 
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2332 _ACEOF
2333 
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_STRING "$PACKAGE_STRING"
2336 _ACEOF
2337 
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2340 _ACEOF
2341 
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_URL "$PACKAGE_URL"
2344 _ACEOF
2345 
2346 
2347 # Let the site file select an alternate cache file if it wants to.
2348 # Prefer an explicitly selected file to automatically selected ones.
2349 ac_site_file1=NONE
2350 ac_site_file2=NONE
2351 if test -n "$CONFIG_SITE"; then
2352   ac_site_file1=$CONFIG_SITE
2353 elif test "x$prefix" != xNONE; then
2354   ac_site_file1=$prefix/share/config.site
2355   ac_site_file2=$prefix/etc/config.site
2356 else
2357   ac_site_file1=$ac_default_prefix/share/config.site
2358   ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362   test "x$ac_site_file" = xNONE && continue
2363   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366     sed 's/^/| /' "$ac_site_file" >&5
2367     . "$ac_site_file"
2368   fi
2369 done
2370 
2371 if test -r "$cache_file"; then
2372   # Some versions of bash will fail to source /dev/null (special files
2373   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2374   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376 $as_echo "$as_me: loading cache $cache_file" >&6;}
2377     case $cache_file in
2378       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379       *)                      . "./$cache_file";;
2380     esac
2381   fi
2382 else
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384 $as_echo "$as_me: creating cache $cache_file" >&6;}
2385   >$cache_file
2386 fi
2387 
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393   eval ac_new_set=\$ac_env_${ac_var}_set
2394   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395   eval ac_new_val=\$ac_env_${ac_var}_value
2396   case $ac_old_set,$ac_new_set in
2397     set,)
2398       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400       ac_cache_corrupted=: ;;
2401     ,set)
2402       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404       ac_cache_corrupted=: ;;
2405     ,);;
2406     *)
2407       if test "x$ac_old_val" != "x$ac_new_val"; then
2408         # differences in whitespace do not lead to failure.
2409         ac_old_val_w=`echo x $ac_old_val`
2410         ac_new_val_w=`echo x $ac_new_val`
2411         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414           ac_cache_corrupted=:
2415         else
2416           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418           eval $ac_var=\$ac_old_val
2419         fi
2420         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2421 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2422         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2424       fi;;
2425   esac
2426   # Pass precious variables to config.status.
2427   if test "$ac_new_set" = set; then
2428     case $ac_new_val in
2429     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430     *) ac_arg=$ac_var=$ac_new_val ;;
2431     esac
2432     case " $ac_configure_args " in
2433       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2434       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435     esac
2436   fi
2437 done
2438 if $ac_cache_corrupted; then
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 fi
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2448 
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 
2455 
2456 
2457 ac_config_headers="$ac_config_headers include/config.h"
2458 
2459 ac_aux_dir=
2460 for ac_dir in tools "$srcdir"/tools; do
2461   for ac_t in install-sh install.sh shtool; do
2462     if test -f "$ac_dir/$ac_t"; then
2463       ac_aux_dir=$ac_dir
2464       ac_install_sh="$ac_aux_dir/$ac_t -c"
2465       break 2
2466     fi
2467   done
2468 done
2469 if test -z "$ac_aux_dir"; then
2470   as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2471 fi
2472 
2473 # These three variables are undocumented and unsupported,
2474 # and are intended to be withdrawn in a future Autoconf release.
2475 # They can cause serious problems if a builder's source tree is in a directory
2476 # whose full name contains unusual characters.
2477 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2478 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2479 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2480 
2481 
2482 
2483 
2484 # Check whether --enable-win16 was given.
2485 if test "${enable_win16+set}" = set; then :
2486   enableval=$enable_win16;
2487 fi
2488 
2489 # Check whether --enable-win64 was given.
2490 if test "${enable_win64+set}" = set; then :
2491   enableval=$enable_win64;
2492 fi
2493 
2494 # Check whether --enable-tests was given.
2495 if test "${enable_tests+set}" = set; then :
2496   enableval=$enable_tests;
2497 fi
2498 
2499 # Check whether --enable-maintainer-mode was given.
2500 if test "${enable_maintainer_mode+set}" = set; then :
2501   enableval=$enable_maintainer_mode;
2502 else
2503   MAINTAINER_MODE=\#
2504 
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-hal was given.
2594 if test "${with_hal+set}" = set; then :
2595   withval=$with_hal;
2596 fi
2597 
2598 
2599 # Check whether --with-jack was given.
2600 if test "${with_jack+set}" = set; then :
2601   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2602 fi
2603 
2604 
2605 # Check whether --with-jpeg was given.
2606 if test "${with_jpeg+set}" = set; then :
2607   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2608 fi
2609 
2610 
2611 # Check whether --with-ldap was given.
2612 if test "${with_ldap+set}" = set; then :
2613   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2614 fi
2615 
2616 
2617 # Check whether --with-mpg123 was given.
2618 if test "${with_mpg123+set}" = set; then :
2619   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2620 fi
2621 
2622 
2623 # Check whether --with-nas was given.
2624 if test "${with_nas+set}" = set; then :
2625   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2626 fi
2627 
2628 
2629 # Check whether --with-openal was given.
2630 if test "${with_openal+set}" = set; then :
2631   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2632 fi
2633 
2634 
2635 # Check whether --with-opengl was given.
2636 if test "${with_opengl+set}" = set; then :
2637   withval=$with_opengl;
2638 fi
2639 
2640 
2641 # Check whether --with-openssl was given.
2642 if test "${with_openssl+set}" = set; then :
2643   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2644 fi
2645 
2646 
2647 # Check whether --with-oss was given.
2648 if test "${with_oss+set}" = set; then :
2649   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
2650 fi
2651 
2652 
2653 # Check whether --with-png was given.
2654 if test "${with_png+set}" = set; then :
2655   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2656 fi
2657 
2658 
2659 # Check whether --with-pthread was given.
2660 if test "${with_pthread+set}" = set; then :
2661   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2662 fi
2663 
2664 
2665 # Check whether --with-sane was given.
2666 if test "${with_sane+set}" = set; then :
2667   withval=$with_sane;
2668 fi
2669 
2670 
2671 # Check whether --with-v4l was given.
2672 if test "${with_v4l+set}" = set; then :
2673   withval=$with_v4l;
2674 fi
2675 
2676 
2677 # Check whether --with-xcomposite was given.
2678 if test "${with_xcomposite+set}" = set; then :
2679   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2680 fi
2681 
2682 
2683 # Check whether --with-xcursor was given.
2684 if test "${with_xcursor+set}" = set; then :
2685   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2686 fi
2687 
2688 
2689 # Check whether --with-xinerama was given.
2690 if test "${with_xinerama+set}" = set; then :
2691   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2692 fi
2693 
2694 
2695 # Check whether --with-xinput was given.
2696 if test "${with_xinput+set}" = set; then :
2697   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2698 fi
2699 
2700 
2701 # Check whether --with-xml was given.
2702 if test "${with_xml+set}" = set; then :
2703   withval=$with_xml;
2704 fi
2705 
2706 
2707 # Check whether --with-xrandr was given.
2708 if test "${with_xrandr+set}" = set; then :
2709   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2710 fi
2711 
2712 
2713 # Check whether --with-xrender was given.
2714 if test "${with_xrender+set}" = set; then :
2715   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2716 fi
2717 
2718 
2719 # Check whether --with-xshape was given.
2720 if test "${with_xshape+set}" = set; then :
2721   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2722 fi
2723 
2724 
2725 # Check whether --with-xshm was given.
2726 if test "${with_xshm+set}" = set; then :
2727   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2728 fi
2729 
2730 
2731 # Check whether --with-xslt was given.
2732 if test "${with_xslt+set}" = set; then :
2733   withval=$with_xslt;
2734 fi
2735 
2736 
2737 # Check whether --with-xxf86vm was given.
2738 if test "${with_xxf86vm+set}" = set; then :
2739   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
2740 fi
2741 
2742 
2743 
2744 # Check whether --with-wine-tools was given.
2745 if test "${with_wine_tools+set}" = set; then :
2746   withval=$with_wine_tools;
2747 fi
2748 
2749 
2750 # Check whether --with-wine64 was given.
2751 if test "${with_wine64+set}" = set; then :
2752   withval=$with_wine64;
2753 fi
2754 
2755 
2756 # Make sure we can run config.sub.
2757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2758   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2759 
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 $as_echo_n "checking build system type... " >&6; }
2762 if test "${ac_cv_build+set}" = set; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   ac_build_alias=$build_alias
2766 test "x$ac_build_alias" = x &&
2767   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768 test "x$ac_build_alias" = x &&
2769   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2771   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2772 
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2777 *-*-*) ;;
2778 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2779 esac
2780 build=$ac_cv_build
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_build
2783 shift
2784 build_cpu=$1
2785 build_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 build_os=$*
2790 IFS=$ac_save_IFS
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2792 
2793 
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if test "${ac_cv_host+set}" = set; then :
2797   $as_echo_n "(cached) " >&6
2798 else
2799   if test "x$host_alias" = x; then
2800   ac_cv_host=$ac_cv_build
2801 else
2802   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2804 fi
2805 
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2808 $as_echo "$ac_cv_host" >&6; }
2809 case $ac_cv_host in
2810 *-*-*) ;;
2811 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2812 esac
2813 host=$ac_cv_host
2814 ac_save_IFS=$IFS; IFS='-'
2815 set x $ac_cv_host
2816 shift
2817 host_cpu=$1
2818 host_vendor=$2
2819 shift; shift
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2822 host_os=$*
2823 IFS=$ac_save_IFS
2824 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2825 
2826 
2827 
2828 case "$srcdir" in
2829  .) ;;
2830  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2831       as_fn_error "you are building out of the source tree, but the source tree contains object files.
2832 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2833     fi ;;
2834 esac
2835 
2836 
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2839 set x ${MAKE-make}
2840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2842   $as_echo_n "(cached) " >&6
2843 else
2844   cat >conftest.make <<\_ACEOF
2845 SHELL = /bin/sh
2846 all:
2847         @echo '@@@%%%=$(MAKE)=@@@%%%'
2848 _ACEOF
2849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2851   *@@@%%%=?*=@@@%%%*)
2852     eval ac_cv_prog_make_${ac_make}_set=yes;;
2853   *)
2854     eval ac_cv_prog_make_${ac_make}_set=no;;
2855 esac
2856 rm -f conftest.make
2857 fi
2858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860 $as_echo "yes" >&6; }
2861   SET_MAKE=
2862 else
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865   SET_MAKE="MAKE=${MAKE-make}"
2866 fi
2867 
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 if test -n "$ac_tool_prefix"; then
2874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_CC+set}" = set; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$CC"; then
2882   ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898 
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909 
2910 
2911 fi
2912 if test -z "$ac_cv_prog_CC"; then
2913   ac_ct_CC=$CC
2914   # Extract the first word of "gcc", so it can be a program name with args.
2915 set dummy gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$ac_ct_CC"; then
2922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     ac_cv_prog_ac_ct_CC="gcc"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938 
2939 fi
2940 fi
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949 
2950   if test "x$ac_ct_CC" = x; then
2951     CC=""
2952   else
2953     case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959     CC=$ac_ct_CC
2960   fi
2961 else
2962   CC="$ac_cv_prog_CC"
2963 fi
2964 
2965 if test -z "$CC"; then
2966           if test -n "$ac_tool_prefix"; then
2967     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_CC="${ac_tool_prefix}cc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991 
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002 
3003 
3004   fi
3005 fi
3006 if test -z "$CC"; then
3007   # Extract the first word of "cc", so it can be a program name with args.
3008 set dummy cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$CC"; then
3015   ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017   ac_prog_rejected=no
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026        ac_prog_rejected=yes
3027        continue
3028      fi
3029     ac_cv_prog_CC="cc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036 
3037 if test $ac_prog_rejected = yes; then
3038   # We found a bogon in the path, so make sure we never use it.
3039   set dummy $ac_cv_prog_CC
3040   shift
3041   if test $# != 0; then
3042     # We chose a different compiler from the bogus one.
3043     # However, it has the same basename, so the bogon will be chosen
3044     # first if we set CC to just the basename; use the full file name.
3045     shift
3046     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047   fi
3048 fi
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059 
3060 
3061 fi
3062 if test -z "$CC"; then
3063   if test -n "$ac_tool_prefix"; then
3064   for ac_prog in cl.exe
3065   do
3066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090 
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101 
3102 
3103     test -n "$CC" && break
3104   done
3105 fi
3106 if test -z "$CC"; then
3107   ac_ct_CC=$CC
3108   for ac_prog in cl.exe
3109 do
3110   # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$ac_ct_CC"; then
3118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     ac_cv_prog_ac_ct_CC="$ac_prog"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134 
3135 fi
3136 fi
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145 
3146 
3147   test -n "$ac_ct_CC" && break
3148 done
3149 
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 fi
3162 
3163 fi
3164 
3165 
3166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error "no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details." "$LINENO" 5; }
3170 
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173 set X $ac_compile
3174 ac_compiler=$2
3175 for ac_option in --version -v -V -qversion; do
3176   { { ac_try="$ac_compiler $ac_option >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184   ac_status=$?
3185   if test -s conftest.err; then
3186     sed '10a\
3187 ... rest of stderr output deleted ...
3188          10q' conftest.err >conftest.er1
3189     cat conftest.er1 >&5
3190   fi
3191   rm -f conftest.er1 conftest.err
3192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193   test $ac_status = 0; }
3194 done
3195 
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198 
3199 int
3200 main ()
3201 {
3202 
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3211 # of exeext.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215 
3216 # The possible output files:
3217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218 
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3221 do
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225   esac
3226 done
3227 rm -f $ac_rmfiles
3228 
3229 if { { ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_link_default") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }; then :
3240   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3243 # so that the user can short-circuit this test for compilers unknown to
3244 # Autoconf.
3245 for ac_file in $ac_files ''
3246 do
3247   test -f "$ac_file" || continue
3248   case $ac_file in
3249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250         ;;
3251     [ab].out )
3252         # We found the default executable, but exeext='' is most
3253         # certainly right.
3254         break;;
3255     *.* )
3256         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257         then :; else
3258            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259         fi
3260         # We set ac_cv_exeext here because the later test for it is not
3261         # safe: cross compilers may not add the suffix if given an `-o'
3262         # argument, so we may need to know it at that point already.
3263         # Even if this section looks crufty: it has the advantage of
3264         # actually working.
3265         break;;
3266     * )
3267         break;;
3268   esac
3269 done
3270 test "$ac_cv_exeext" = no && ac_cv_exeext=
3271 
3272 else
3273   ac_file=''
3274 fi
3275 if test -z "$ac_file"; then :
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280 
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { as_fn_set_status 77
3284 as_fn_error "C compiler cannot create executables
3285 See \`config.log' for more details." "$LINENO" 5; }; }
3286 else
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3291 $as_echo_n "checking for C compiler default output file name... " >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3293 $as_echo "$ac_file" >&6; }
3294 ac_exeext=$ac_cv_exeext
3295 
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3297 ac_clean_files=$ac_clean_files_save
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3299 $as_echo_n "checking for suffix of executables... " >&6; }
3300 if { { ac_try="$ac_link"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307   (eval "$ac_link") 2>&5
3308   ac_status=$?
3309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310   test $ac_status = 0; }; then :
3311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3313 # work properly (i.e., refer to `conftest.exe'), while it won't with
3314 # `rm'.
3315 for ac_file in conftest.exe conftest conftest.*; do
3316   test -f "$ac_file" || continue
3317   case $ac_file in
3318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320           break;;
3321     * ) break;;
3322   esac
3323 done
3324 else
3325   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error "cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." "$LINENO" 5; }
3329 fi
3330 rm -f conftest conftest$ac_cv_exeext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3332 $as_echo "$ac_cv_exeext" >&6; }
3333 
3334 rm -f conftest.$ac_ext
3335 EXEEXT=$ac_cv_exeext
3336 ac_exeext=$EXEEXT
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339 #include <stdio.h>
3340 int
3341 main ()
3342 {
3343 FILE *f = fopen ("conftest.out", "w");
3344  return ferror (f) || fclose (f) != 0;
3345 
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 ac_clean_files="$ac_clean_files conftest.out"
3351 # Check that the compiler produces executables we can run.  If not, either
3352 # the compiler is broken, or we cross compile.
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3354 $as_echo_n "checking whether we are cross compiling... " >&6; }
3355 if test "$cross_compiling" != yes; then
3356   { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363   (eval "$ac_link") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366   test $ac_status = 0; }
3367   if { ac_try='./conftest$ac_cv_exeext'
3368   { { case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374   (eval "$ac_try") 2>&5
3375   ac_status=$?
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }; }; then
3378     cross_compiling=no
3379   else
3380     if test "$cross_compiling" = maybe; then
3381         cross_compiling=yes
3382     else
3383         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error "cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details." "$LINENO" 5; }
3388     fi
3389   fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3392 $as_echo "$cross_compiling" >&6; }
3393 
3394 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3395 ac_clean_files=$ac_clean_files_save
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3397 $as_echo_n "checking for suffix of object files... " >&6; }
3398 if test "${ac_cv_objext+set}" = set; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h.  */
3403 
3404 int
3405 main ()
3406 {
3407 
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.o conftest.obj
3413 if { { ac_try="$ac_compile"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420   (eval "$ac_compile") 2>&5
3421   ac_status=$?
3422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423   test $ac_status = 0; }; then :
3424   for ac_file in conftest.o conftest.obj conftest.*; do
3425   test -f "$ac_file" || continue;
3426   case $ac_file in
3427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3429        break;;
3430   esac
3431 done
3432 else
3433   $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435 
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error "cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details." "$LINENO" 5; }
3440 fi
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3444 $as_echo "$ac_cv_objext" >&6; }
3445 OBJEXT=$ac_cv_objext
3446 ac_objext=$OBJEXT
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454 
3455 int
3456 main ()
3457 {
3458 #ifndef __GNUC__
3459        choke me
3460 #endif
3461 
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467   ac_compiler_gnu=yes
3468 else
3469   ac_compiler_gnu=no
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473 
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3477 if test $ac_compiler_gnu = yes; then
3478   GCC=yes
3479 else
3480   GCC=
3481 fi
3482 ac_test_CFLAGS=${CFLAGS+set}
3483 ac_save_CFLAGS=$CFLAGS
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3486 if test "${ac_cv_prog_cc_g+set}" = set; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   ac_save_c_werror_flag=$ac_c_werror_flag
3490    ac_c_werror_flag=yes
3491    ac_cv_prog_cc_g=no
3492    CFLAGS="-g"
3493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h.  */
3495 
3496 int
3497 main ()
3498 {
3499 
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505   ac_cv_prog_cc_g=yes
3506 else
3507   CFLAGS=""
3508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510 
3511 int
3512 main ()
3513 {
3514 
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 
3521 else
3522   ac_c_werror_flag=$ac_save_c_werror_flag
3523          CFLAGS="-g"
3524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526 
3527 int
3528 main ()
3529 {
3530 
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536   ac_cv_prog_cc_g=yes
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543    ac_c_werror_flag=$ac_save_c_werror_flag
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3546 $as_echo "$ac_cv_prog_cc_g" >&6; }
3547 if test "$ac_test_CFLAGS" = set; then
3548   CFLAGS=$ac_save_CFLAGS
3549 elif test $ac_cv_prog_cc_g = yes; then
3550   if test "$GCC" = yes; then
3551     CFLAGS="-g -O2"
3552   else
3553     CFLAGS="-g"
3554   fi
3555 else
3556   if test "$GCC" = yes; then
3557     CFLAGS="-O2"
3558   else
3559     CFLAGS=
3560   fi
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3564 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   ac_cv_prog_cc_c89=no
3568 ac_save_CC=$CC
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571 #include <stdarg.h>
3572 #include <stdio.h>
3573 #include <sys/types.h>
3574 #include <sys/stat.h>
3575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3576 struct buf { int x; };
3577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3578 static char *e (p, i)
3579      char **p;
3580      int i;
3581 {
3582   return p[i];
3583 }
3584 static char *f (char * (*g) (char **, int), char **p, ...)
3585 {
3586   char *s;
3587   va_list v;
3588   va_start (v,p);
3589   s = g (p, va_arg (v,int));
3590   va_end (v);
3591   return s;
3592 }
3593 
3594 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3595    function prototypes and stuff, but not '\xHH' hex character constants.
3596    These don't provoke an error unfortunately, instead are silently treated
3597    as 'x'.  The following induces an error, until -std is added to get
3598    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3599    array size at least.  It's necessary to write '\x00'==0 to get something
3600    that's true only with -std.  */
3601 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3602 
3603 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3604    inside strings and character constants.  */
3605 #define FOO(x) 'x'
3606 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3607 
3608 int test (int i, double x);
3609 struct s1 {int (*f) (int a);};
3610 struct s2 {int (*f) (double a);};
3611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3612 int argc;
3613 char **argv;
3614 int
3615 main ()
3616 {
3617 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3623         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3624 do
3625   CC="$ac_save_CC $ac_arg"
3626   if ac_fn_c_try_compile "$LINENO"; then :
3627   ac_cv_prog_cc_c89=$ac_arg
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext
3630   test "x$ac_cv_prog_cc_c89" != "xno" && break
3631 done
3632 rm -f conftest.$ac_ext
3633 CC=$ac_save_CC
3634 
3635 fi
3636 # AC_CACHE_VAL
3637 case "x$ac_cv_prog_cc_c89" in
3638   x)
3639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3640 $as_echo "none needed" >&6; } ;;
3641   xno)
3642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3643 $as_echo "unsupported" >&6; } ;;
3644   *)
3645     CC="$CC $ac_cv_prog_cc_c89"
3646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3647 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3648 esac
3649 if test "x$ac_cv_prog_cc_c89" != xno; then :
3650 
3651 fi
3652 
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 
3659 ac_ext=cpp
3660 ac_cpp='$CXXCPP $CPPFLAGS'
3661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3664 if test -z "$CXX"; then
3665   if test -n "$CCC"; then
3666     CXX=$CCC
3667   else
3668     if test -n "$ac_tool_prefix"; then
3669   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3670   do
3671     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if test "${ac_cv_prog_CXX+set}" = set; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678   if test -n "$CXX"; then
3679   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686     for ac_exec_ext in '' $ac_executable_extensions; do
3687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693   done
3694 IFS=$as_save_IFS
3695 
3696 fi
3697 fi
3698 CXX=$ac_cv_prog_CXX
3699 if test -n "$CXX"; then
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3701 $as_echo "$CXX" >&6; }
3702 else
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 fi
3706 
3707 
3708     test -n "$CXX" && break
3709   done
3710 fi
3711 if test -z "$CXX"; then
3712   ac_ct_CXX=$CXX
3713   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3714 do
3715   # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   if test -n "$ac_ct_CXX"; then
3723   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730     for ac_exec_ext in '' $ac_executable_extensions; do
3731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732     ac_cv_prog_ac_ct_CXX="$ac_prog"
3733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734     break 2
3735   fi
3736 done
3737   done
3738 IFS=$as_save_IFS
3739 
3740 fi
3741 fi
3742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3743 if test -n "$ac_ct_CXX"; then
3744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3745 $as_echo "$ac_ct_CXX" >&6; }
3746 else
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 fi
3750 
3751 
3752   test -n "$ac_ct_CXX" && break
3753 done
3754 
3755   if test "x$ac_ct_CXX" = x; then
3756     CXX="g++"
3757   else
3758     case $cross_compiling:$ac_tool_warned in
3759 yes:)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762 ac_tool_warned=yes ;;
3763 esac
3764     CXX=$ac_ct_CXX
3765   fi
3766 fi
3767 
3768   fi
3769 fi
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775   { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783   ac_status=$?
3784   if test -s conftest.err; then
3785     sed '10a\
3786 ... rest of stderr output deleted ...
3787          10q' conftest.err >conftest.er1
3788     cat conftest.er1 >&5
3789   fi
3790   rm -f conftest.er1 conftest.err
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; }
3793 done
3794 
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3796 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3797 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802 
3803 int
3804 main ()
3805 {
3806 #ifndef __GNUC__
3807        choke me
3808 #endif
3809 
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_cxx_try_compile "$LINENO"; then :
3815   ac_compiler_gnu=yes
3816 else
3817   ac_compiler_gnu=no
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3821 
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3824 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3825 if test $ac_compiler_gnu = yes; then
3826   GXX=yes
3827 else
3828   GXX=
3829 fi
3830 ac_test_CXXFLAGS=${CXXFLAGS+set}
3831 ac_save_CXXFLAGS=$CXXFLAGS
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3833 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3834 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3838    ac_cxx_werror_flag=yes
3839    ac_cv_prog_cxx_g=no
3840    CXXFLAGS="-g"
3841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843 
3844 int
3845 main ()
3846 {
3847 
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 if ac_fn_cxx_try_compile "$LINENO"; then :
3853   ac_cv_prog_cxx_g=yes
3854 else
3855   CXXFLAGS=""
3856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858 
3859 int
3860 main ()
3861 {
3862 
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_cxx_try_compile "$LINENO"; then :
3868 
3869 else
3870   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3871          CXXFLAGS="-g"
3872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874 
3875 int
3876 main ()
3877 {
3878 
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_cxx_try_compile "$LINENO"; then :
3884   ac_cv_prog_cxx_g=yes
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3894 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3895 if test "$ac_test_CXXFLAGS" = set; then
3896   CXXFLAGS=$ac_save_CXXFLAGS
3897 elif test $ac_cv_prog_cxx_g = yes; then
3898   if test "$GXX" = yes; then
3899     CXXFLAGS="-g -O2"
3900   else
3901     CXXFLAGS="-g"
3902   fi
3903 else
3904   if test "$GXX" = yes; then
3905     CXXFLAGS="-O2"
3906   else
3907     CXXFLAGS=
3908   fi
3909 fi
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 
3916 if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -n "$CPPBIN"; then
3925   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939   done
3940 IFS=$as_save_IFS
3941 
3942 fi
3943 fi
3944 CPPBIN=$ac_cv_prog_CPPBIN
3945 if test -n "$CPPBIN"; then
3946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3947 $as_echo "$CPPBIN" >&6; }
3948 else
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952 
3953 
3954 fi
3955 if test -z "$ac_cv_prog_CPPBIN"; then
3956   ac_ct_CPPBIN=$CPPBIN
3957   # Extract the first word of "cpp", so it can be a program name with args.
3958 set dummy cpp; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   if test -n "$ac_ct_CPPBIN"; then
3965   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974     ac_cv_prog_ac_ct_CPPBIN="cpp"
3975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979   done
3980 IFS=$as_save_IFS
3981 
3982 fi
3983 fi
3984 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3985 if test -n "$ac_ct_CPPBIN"; then
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3987 $as_echo "$ac_ct_CPPBIN" >&6; }
3988 else
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992 
3993   if test "x$ac_ct_CPPBIN" = x; then
3994     CPPBIN="cpp"
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     CPPBIN=$ac_ct_CPPBIN
4003   fi
4004 else
4005   CPPBIN="$ac_cv_prog_CPPBIN"
4006 fi
4007 
4008 
4009 cat >>confdefs.h <<_ACEOF
4010 #define EXEEXT "$ac_exeext"
4011 _ACEOF
4012 
4013 
4014 case $host in
4015   *-darwin*)
4016     if test "x$enable_win64" = "xyes"
4017     then
4018       CC="$CC -m64"
4019       CXX="$CXX -m64"
4020       LD="${LD:-ld} -arch x86_64"
4021       AS="${AS:-as} -arch x86_64"
4022       host_cpu="x86_64"
4023       notice_platform="64-bit "
4024       TARGETFLAGS="-m64"
4025 
4026     else
4027       CC="$CC -m32"
4028       CXX="$CXX -m32"
4029       LD="${LD:-ld} -arch i386"
4030       AS="${AS:-as} -arch i386"
4031       host_cpu="i386"
4032       notice_platform="32-bit "
4033       TARGETFLAGS="-m32"
4034 
4035       enable_win16=${enable_win16:-yes}
4036     fi
4037     ;;
4038   x86_64*)
4039     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4040     then
4041       CC="$CC -m32"
4042       CXX="$CXX -m32"
4043       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4044 $as_echo_n "checking whether $CC works... " >&6; }
4045 
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 
4049 int
4050 main ()
4051 {
4052 
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_link "$LINENO"; then :
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059 $as_echo "yes" >&6; }
4060 else
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063                       as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext \
4066     conftest$ac_exeext conftest.$ac_ext
4067       LD="${LD:-ld} -m elf_i386"
4068       AS="${AS:-as} --32"
4069       host_cpu="i386"
4070       notice_platform="32-bit "
4071       TARGETFLAGS="-m32"
4072 
4073       enable_win16=${enable_win16:-yes}
4074     else
4075       if test "x${GCC}" = "xyes"
4076       then
4077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4078 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4079         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h.  */
4081 #include <stdarg.h>
4082 int
4083 main ()
4084 {
4085 void func(__builtin_ms_va_list *args);
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093 else
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096                            as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099       fi
4100       TARGETFLAGS="-m64"
4101 
4102     fi
4103     ;;
4104   *-mingw32*|*-cygwin*)
4105     enable_win16=${enable_win16:-no}
4106     ;;
4107   i[3456789]86*)
4108     enable_win16=${enable_win16:-yes}
4109     ;;
4110 esac
4111 
4112 enable_win16=${enable_win16:-no}
4113 
4114 enable_winetest=${enable_winetest:-$enable_tests}
4115 
4116 if test -n "$with_wine64"
4117 then
4118     if test "x$enable_win64" = "xyes"
4119     then
4120         as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4121 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4122     fi
4123     WOW64_DISABLE=\#
4124 
4125     enable_fonts=${enable_fonts:-no}
4126     enable_include=${enable_include:-no}
4127     enable_server=${enable_server:-no}
4128     enable_tools=${enable_tools:-no}
4129     enable_wineboot=${enable_wineboot:-no}
4130     enable_winedbg=${enable_winedbg:-no}
4131     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4132 fi
4133 
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4135 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4136 if test "${wine_cv_toolsdir+set}" = set; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   wine_cv_toolsdir="$with_wine_tools"
4140    if test -z "$with_wine_tools"; then
4141      if test "$cross_compiling" = "yes"; then
4142        as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4143      elif test -n "$with_wine64"; then
4144        wine_cv_toolsdir="$with_wine64"
4145      fi
4146    fi
4147    if test -z "$wine_cv_toolsdir"; then
4148      wine_cv_toolsdir="\$(TOPOBJDIR)"
4149    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4150      case "$wine_cv_toolsdir" in
4151        /*) ;;
4152        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4153      esac
4154    else
4155      as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4156    fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4159 $as_echo "$wine_cv_toolsdir" >&6; }
4160 TOOLSDIR=$wine_cv_toolsdir
4161 
4162 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4163 then
4164     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4165 
4166 fi
4167 
4168 for ac_prog in flex
4169 do
4170   # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if test "${ac_cv_prog_FLEX+set}" = set; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$FLEX"; then
4178   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187     ac_cv_prog_FLEX="$ac_prog"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194 
4195 fi
4196 fi
4197 FLEX=$ac_cv_prog_FLEX
4198 if test -n "$FLEX"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4200 $as_echo "$FLEX" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205 
4206 
4207   test -n "$FLEX" && break
4208 done
4209 test -n "$FLEX" || FLEX="none"
4210 
4211 if test "$FLEX" = "none"
4212 then
4213   as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4216 $as_echo_n "checking whether flex is recent enough... " >&6; }
4217 cat >conftest.l <<EOF
4218 %top{
4219 #include "prediluvian.h"
4220 }
4221 %%
4222 EOF
4223 if $FLEX -t conftest.l >/dev/null 2>&1
4224 then
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4226 $as_echo "yes" >&6; }
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230   as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4231 fi
4232 
4233 for ac_prog in bison
4234 do
4235   # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if test "${ac_cv_prog_BISON+set}" = set; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   if test -n "$BISON"; then
4243   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250     for ac_exec_ext in '' $ac_executable_extensions; do
4251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252     ac_cv_prog_BISON="$ac_prog"
4253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257   done
4258 IFS=$as_save_IFS
4259 
4260 fi
4261 fi
4262 BISON=$ac_cv_prog_BISON
4263 if test -n "$BISON"; then
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4265 $as_echo "$BISON" >&6; }
4266 else
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 fi
4270 
4271 
4272   test -n "$BISON" && break
4273 done
4274 test -n "$BISON" || BISON="none"
4275 
4276 if test "$BISON" = "none"
4277 then
4278   as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4279 fi
4280 
4281 if test -n "$ac_tool_prefix"; then
4282   for ac_prog in ar gar
4283   do
4284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_AR+set}" = set; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   if test -n "$AR"; then
4292   ac_cv_prog_AR="$AR" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299     for ac_exec_ext in '' $ac_executable_extensions; do
4300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306   done
4307 IFS=$as_save_IFS
4308 
4309 fi
4310 fi
4311 AR=$ac_cv_prog_AR
4312 if test -n "$AR"; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4314 $as_echo "$AR" >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319 
4320 
4321     test -n "$AR" && break
4322   done
4323 fi
4324 if test -z "$AR"; then
4325   ac_ct_AR=$AR
4326   for ac_prog in ar gar
4327 do
4328   # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$ac_ct_AR"; then
4336   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345     ac_cv_prog_ac_ct_AR="$ac_prog"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352 
4353 fi
4354 fi
4355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4356 if test -n "$ac_ct_AR"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4358 $as_echo "$ac_ct_AR" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363 
4364 
4365   test -n "$ac_ct_AR" && break
4366 done
4367 
4368   if test "x$ac_ct_AR" = x; then
4369     AR="ar"
4370   else
4371     case $cross_compiling:$ac_tool_warned in
4372 yes:)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned=yes ;;
4376 esac
4377     AR=$ac_ct_AR
4378   fi
4379 fi
4380 
4381 ARFLAGS=rc
4382 
4383 if test -n "$ac_tool_prefix"; then
4384   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   if test -n "$RANLIB"; then
4392   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408 
4409 fi
4410 fi
4411 RANLIB=$ac_cv_prog_RANLIB
4412 if test -n "$RANLIB"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4414 $as_echo "$RANLIB" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419 
4420 
4421 fi
4422 if test -z "$ac_cv_prog_RANLIB"; then
4423   ac_ct_RANLIB=$RANLIB
4424   # Extract the first word of "ranlib", so it can be a program name with args.
4425 set dummy ranlib; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   if test -n "$ac_ct_RANLIB"; then
4432   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_ac_ct_RANLIB="ranlib"
4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448 
4449 fi
4450 fi
4451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4452 if test -n "$ac_ct_RANLIB"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4454 $as_echo "$ac_ct_RANLIB" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459 
4460   if test "x$ac_ct_RANLIB" = x; then
4461     RANLIB=":"
4462   else
4463     case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469     RANLIB=$ac_ct_RANLIB
4470   fi
4471 else
4472   RANLIB="$ac_cv_prog_RANLIB"
4473 fi
4474 
4475 if test -n "$ac_tool_prefix"; then
4476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4477 set dummy ${ac_tool_prefix}strip; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_STRIP+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   if test -n "$STRIP"; then
4484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491     for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498   done
4499 IFS=$as_save_IFS
4500 
4501 fi
4502 fi
4503 STRIP=$ac_cv_prog_STRIP
4504 if test -n "$STRIP"; then
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4506 $as_echo "$STRIP" >&6; }
4507 else
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511 
4512 
4513 fi
4514 if test -z "$ac_cv_prog_STRIP"; then
4515   ac_ct_STRIP=$STRIP
4516   # Extract the first word of "strip", so it can be a program name with args.
4517 set dummy strip; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   if test -n "$ac_ct_STRIP"; then
4524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531     for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_prog_ac_ct_STRIP="strip"
4534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538   done
4539 IFS=$as_save_IFS
4540 
4541 fi
4542 fi
4543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4544 if test -n "$ac_ct_STRIP"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4546 $as_echo "$ac_ct_STRIP" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 
4552   if test "x$ac_ct_STRIP" = x; then
4553     STRIP="strip"
4554   else
4555     case $cross_compiling:$ac_tool_warned in
4556 yes:)
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4559 ac_tool_warned=yes ;;
4560 esac
4561     STRIP=$ac_ct_STRIP
4562   fi
4563 else
4564   STRIP="$ac_cv_prog_STRIP"
4565 fi
4566 
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4568 $as_echo_n "checking whether ln -s works... " >&6; }
4569 LN_S=$as_ln_s
4570 if test "$LN_S" = "ln -s"; then
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572 $as_echo "yes" >&6; }
4573 else
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4575 $as_echo "no, using $LN_S" >&6; }
4576 fi
4577 
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4579 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4580 if test "${ac_cv_path_GREP+set}" = set; then :
4581   $as_echo_n "(cached) " >&6
4582 else
4583   if test -z "$GREP"; then
4584   ac_path_GREP_found=false
4585   # Loop through the user's path and test for each of PROGNAME-LIST
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591     for ac_prog in grep ggrep; do
4592     for ac_exec_ext in '' $ac_executable_extensions; do
4593       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4594       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4595 # Check for GNU ac_path_GREP and select it if it is found.
4596   # Check for GNU $ac_path_GREP
4597 case `"$ac_path_GREP" --version 2>&1` in
4598 *GNU*)
4599   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4600 *)
4601   ac_count=0
4602   $as_echo_n 0123456789 >"conftest.in"
4603   while :
4604   do
4605     cat "conftest.in" "conftest.in" >"conftest.tmp"
4606     mv "conftest.tmp" "conftest.in"
4607     cp "conftest.in" "conftest.nl"
4608     $as_echo 'GREP' >> "conftest.nl"
4609     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611     as_fn_arith $ac_count + 1 && ac_count=$as_val
4612     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4613       # Best one so far, save it but keep looking for a better one
4614       ac_cv_path_GREP="$ac_path_GREP"
4615       ac_path_GREP_max=$ac_count
4616     fi
4617     # 10*(2^10) chars as input seems more than enough
4618     test $ac_count -gt 10 && break
4619   done
4620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4622 
4623       $ac_path_GREP_found && break 3
4624     done
4625   done
4626   done
4627 IFS=$as_save_IFS
4628   if test -z "$ac_cv_path_GREP"; then
4629     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630   fi
4631 else
4632   ac_cv_path_GREP=$GREP
4633 fi
4634 
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4637 $as_echo "$ac_cv_path_GREP" >&6; }
4638  GREP="$ac_cv_path_GREP"
4639 
4640 
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4642 $as_echo_n "checking for egrep... " >&6; }
4643 if test "${ac_cv_path_EGREP+set}" = set; then :
4644   $as_echo_n "(cached) " >&6
4645 else
4646   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4647    then ac_cv_path_EGREP="$GREP -E"
4648    else
4649      if test -z "$EGREP"; then
4650   ac_path_EGREP_found=false
4651   # Loop through the user's path and test for each of PROGNAME-LIST
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_prog in egrep; do
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4660       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4661 # Check for GNU ac_path_EGREP and select it if it is found.
4662   # Check for GNU $ac_path_EGREP
4663 case `"$ac_path_EGREP" --version 2>&1` in
4664 *GNU*)
4665   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4666 *)
4667   ac_count=0
4668   $as_echo_n 0123456789 >"conftest.in"
4669   while :
4670   do
4671     cat "conftest.in" "conftest.in" >"conftest.tmp"
4672     mv "conftest.tmp" "conftest.in"
4673     cp "conftest.in" "conftest.nl"
4674     $as_echo 'EGREP' >> "conftest.nl"
4675     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677     as_fn_arith $ac_count + 1 && ac_count=$as_val
4678     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4679       # Best one so far, save it but keep looking for a better one
4680       ac_cv_path_EGREP="$ac_path_EGREP"
4681       ac_path_EGREP_max=$ac_count
4682     fi
4683     # 10*(2^10) chars as input seems more than enough
4684     test $ac_count -gt 10 && break
4685   done
4686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687 esac
4688 
4689       $ac_path_EGREP_found && break 3
4690     done
4691   done
4692   done
4693 IFS=$as_save_IFS
4694   if test -z "$ac_cv_path_EGREP"; then
4695     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696   fi
4697 else
4698   ac_cv_path_EGREP=$EGREP
4699 fi
4700 
4701    fi
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4704 $as_echo "$ac_cv_path_EGREP" >&6; }
4705  EGREP="$ac_cv_path_EGREP"
4706 
4707 
4708 # Extract the first word of "ldconfig", so it can be a program name with args.
4709 set dummy ldconfig; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   case $LDCONFIG in
4716   [\\/]* | ?:[\\/]*)
4717   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4718   ;;
4719   *)
4720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in /sbin /usr/sbin $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732   done
4733 IFS=$as_save_IFS
4734 
4735   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4736   ;;
4737 esac
4738 fi
4739 LDCONFIG=$ac_cv_path_LDCONFIG
4740 if test -n "$LDCONFIG"; then
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4742 $as_echo "$LDCONFIG" >&6; }
4743 else
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4746 fi
4747 
4748 
4749 # Find a good install program.  We prefer a C program (faster),
4750 # so one script is as good as another.  But avoid the broken or
4751 # incompatible versions:
4752 # SysV /etc/install, /usr/sbin/install
4753 # SunOS /usr/etc/install
4754 # IRIX /sbin/install
4755 # AIX /bin/install
4756 # AmigaOS /C/install, which installs bootblocks on floppy discs
4757 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4758 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4759 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4760 # OS/2's system install, which has a completely different semantic
4761 # ./install, which can be erroneously created by make from ./install.sh.
4762 # Reject install programs that cannot install multiple files.
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4764 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4765 if test -z "$INSTALL"; then
4766 if test "${ac_cv_path_install+set}" = set; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     # Account for people who put trailing slashes in PATH elements.
4775 case $as_dir/ in #((
4776   ./ | .// | /[cC]/* | \
4777   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4778   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4779   /usr/ucb/* ) ;;
4780   *)
4781     # OSF1 and SCO ODT 3.0 have their own names for install.
4782     # Don't use installbsd from OSF since it installs stuff as root
4783     # by default.
4784     for ac_prog in ginstall scoinst install; do
4785       for ac_exec_ext in '' $ac_executable_extensions; do
4786         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4787           if test $ac_prog = install &&
4788             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4789             # AIX install.  It has an incompatible calling convention.
4790             :
4791           elif test $ac_prog = install &&
4792             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4793             # program-specific install script used by HP pwplus--don't use.
4794             :
4795           else
4796             rm -rf conftest.one conftest.two conftest.dir
4797             echo one > conftest.one
4798             echo two > conftest.two
4799             mkdir conftest.dir
4800             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4801               test -s conftest.one && test -s conftest.two &&
4802               test -s conftest.dir/conftest.one &&
4803               test -s conftest.dir/conftest.two
4804             then
4805               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4806               break 3
4807             fi
4808           fi
4809         fi
4810       done
4811     done
4812     ;;
4813 esac
4814 
4815   done
4816 IFS=$as_save_IFS
4817 
4818 rm -rf conftest.one conftest.two conftest.dir
4819 
4820 fi
4821   if test "${ac_cv_path_install+set}" = set; then
4822     INSTALL=$ac_cv_path_install
4823   else
4824     # As a last resort, use the slow shell script.  Don't cache a
4825     # value for INSTALL within a source directory, because that will
4826     # break other packages using the cache if that directory is
4827     # removed, or if the value is a relative name.
4828     INSTALL=$ac_install_sh
4829   fi
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4832 $as_echo "$INSTALL" >&6; }
4833 
4834 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4835 # It thinks the first close brace ends the variable substitution.
4836 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4837 
4838 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4839 
4840 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4841 
4842 case "$INSTALL" in
4843   [\\/$]* | ?:[\\/]* ) ;;
4844   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4845 esac
4846 
4847 for ac_prog in lclint lint
4848 do
4849   # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_LINT+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   if test -n "$LINT"; then
4857   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866     ac_cv_prog_LINT="$ac_prog"
4867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871   done
4872 IFS=$as_save_IFS
4873 
4874 fi
4875 fi
4876 LINT=$ac_cv_prog_LINT
4877 if test -n "$LINT"; then
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4879 $as_echo "$LINT" >&6; }
4880 else
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884 
4885 
4886   test -n "$LINT" && break
4887 done
4888 
4889 if test "$LINT" = "lint"
4890 then
4891   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4892   fi
4893 
4894 
4895 
4896 for ac_prog in fontforge
4897 do
4898   # Extract the first word of "$ac_prog", so it can be a program name with args.
4899 set dummy $ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   if test -n "$FONTFORGE"; then
4906   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913     for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_prog_FONTFORGE="$ac_prog"
4916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920   done
4921 IFS=$as_save_IFS
4922 
4923 fi
4924 fi
4925 FONTFORGE=$ac_cv_prog_FONTFORGE
4926 if test -n "$FONTFORGE"; then
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4928 $as_echo "$FONTFORGE" >&6; }
4929 else
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933 
4934 
4935   test -n "$FONTFORGE" && break
4936 done
4937 test -n "$FONTFORGE" || FONTFORGE="false"
4938 
4939 for ac_prog in pkg-config
4940 do
4941   # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$PKG_CONFIG"; then
4949   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_prog_PKG_CONFIG="$ac_prog"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965 
4966 fi
4967 fi
4968 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4969 if test -n "$PKG_CONFIG"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4971 $as_echo "$PKG_CONFIG" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976 
4977 
4978   test -n "$PKG_CONFIG" && break
4979 done
4980 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4981 
4982 for ac_prog in rsvg
4983 do
4984   # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_RSVG+set}" = set; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -n "$RSVG"; then
4992   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_prog_RSVG="$ac_prog"
5002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006   done
5007 IFS=$as_save_IFS
5008 
5009 fi
5010 fi
5011 RSVG=$ac_cv_prog_RSVG
5012 if test -n "$RSVG"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5014 $as_echo "$RSVG" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019 
5020 
5021   test -n "$RSVG" && break
5022 done
5023 test -n "$RSVG" || RSVG="false"
5024 
5025 for ac_prog in icotool
5026 do
5027   # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   if test -n "$ICOTOOL"; then
5035   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_prog_ICOTOOL="$ac_prog"
5045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049   done
5050 IFS=$as_save_IFS
5051 
5052 fi
5053 fi
5054 ICOTOOL=$ac_cv_prog_ICOTOOL
5055 if test -n "$ICOTOOL"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5057 $as_echo "$ICOTOOL" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062 
5063 
5064   test -n "$ICOTOOL" && break
5065 done
5066 test -n "$ICOTOOL" || ICOTOOL="false"
5067 
5068 
5069 if test "${enable_maintainer_mode+set}" = set
5070 then
5071   if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5072   if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5073   if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5074 fi
5075 
5076 case $host_cpu in
5077   *i[3456789]86*)
5078     # Extract the first word of "prelink", so it can be a program name with args.
5079 set dummy prelink; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_path_PRELINK+set}" = set; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   case $PRELINK in
5086   [\\/]* | ?:[\\/]*)
5087   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5088   ;;
5089   *)
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in /sbin /usr/sbin $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104 
5105   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5106   ;;
5107 esac
5108 fi
5109 PRELINK=$ac_cv_path_PRELINK
5110 if test -n "$PRELINK"; then
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5112 $as_echo "$PRELINK" >&6; }
5113 else
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117 
5118 
5119     ;;
5120 esac
5121 
5122 
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5124 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5125 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5126   $as_echo_n "(cached) " >&6
5127 else
5128   ac_check_lib_save_LIBS=$LIBS
5129 LIBS="-li386  $LIBS"
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h.  */
5132 
5133 /* Override any GCC internal prototype to avoid an error.
5134    Use char because int might match the return type of a GCC
5135    builtin and then its argument prototype would still apply.  */
5136 #ifdef __cplusplus
5137 extern "C"
5138 #endif
5139 char i386_set_ldt ();
5140 int
5141 main ()
5142 {
5143 return i386_set_ldt ();
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_link "$LINENO"; then :
5149   ac_cv_lib_i386_i386_set_ldt=yes
5150 else
5151   ac_cv_lib_i386_i386_set_ldt=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext \
5154     conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5158 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5159 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5160   cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBI386 1
5162 _ACEOF
5163 
5164   LIBS="-li386 $LIBS"
5165 
5166 fi
5167 
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5169 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5170 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   ac_check_lib_save_LIBS=$LIBS
5174 LIBS="-lossaudio  $LIBS"
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177 
5178 /* Override any GCC internal prototype to avoid an error.
5179    Use char because int might match the return type of a GCC
5180    builtin and then its argument prototype would still apply.  */
5181 #ifdef __cplusplus
5182 extern "C"
5183 #endif
5184 char _oss_ioctl ();
5185 int
5186 main ()
5187 {
5188 return _oss_ioctl ();
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"; then :
5194   ac_cv_lib_ossaudio__oss_ioctl=yes
5195 else
5196   ac_cv_lib_ossaudio__oss_ioctl=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext \
5199     conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5203 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5204 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5205   cat >>confdefs.h <<_ACEOF
5206 #define HAVE_LIBOSSAUDIO 1
5207 _ACEOF
5208 
5209   LIBS="-lossaudio $LIBS"
5210 
5211 fi
5212 
5213 
5214 XLIB=""
5215 
5216 OPENGL_LIBS=""
5217 
5218 
5219 
5220 # Check whether --enable-largefile was given.
5221 if test "${enable_largefile+set}" = set; then :
5222   enableval=$enable_largefile;
5223 fi
5224 
5225 if test "$enable_largefile" != no; then
5226 
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5228 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5229 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   ac_cv_sys_largefile_CC=no
5233      if test "$GCC" != yes; then
5234        ac_save_CC=$CC
5235        while :; do
5236          # IRIX 6.2 and later do not support large files by default,
5237          # so use the C compiler's -n32 option if that helps.
5238          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h.  */
5240 #include <sys/types.h>
5241  /* Check that off_t can represent 2**63 - 1 correctly.
5242     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243     since some C++ compilers masquerading as C compilers
5244     incorrectly reject 9223372036854775807.  */
5245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247                        && LARGE_OFF_T % 2147483647 == 1)
5248                       ? 1 : -1];
5249 int
5250 main ()
5251 {
5252 
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257          if ac_fn_c_try_compile "$LINENO"; then :
5258   break
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext
5261          CC="$CC -n32"
5262          if ac_fn_c_try_compile "$LINENO"; then :
5263   ac_cv_sys_largefile_CC=' -n32'; break
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext
5266          break
5267        done
5268        CC=$ac_save_CC
5269        rm -f conftest.$ac_ext
5270     fi
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5273 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5274   if test "$ac_cv_sys_largefile_CC" != no; then
5275     CC=$CC$ac_cv_sys_largefile_CC
5276   fi
5277 
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5279 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5280 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   while :; do
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <sys/types.h>
5287  /* Check that off_t can represent 2**63 - 1 correctly.
5288     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5289     since some C++ compilers masquerading as C compilers
5290     incorrectly reject 9223372036854775807.  */
5291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5292   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5293                        && LARGE_OFF_T % 2147483647 == 1)
5294                       ? 1 : -1];
5295 int
5296 main ()
5297 {
5298 
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304   ac_cv_sys_file_offset_bits=no; break
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309 #define _FILE_OFFSET_BITS 64
5310 #include <sys/types.h>
5311  /* Check that off_t can represent 2**63 - 1 correctly.
5312     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5313     since some C++ compilers masquerading as C compilers
5314     incorrectly reject 9223372036854775807.  */
5315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5316   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5317                        && LARGE_OFF_T % 2147483647 == 1)
5318                       ? 1 : -1];
5319 int
5320 main ()
5321 {
5322 
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328   ac_cv_sys_file_offset_bits=64; break
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331   ac_cv_sys_file_offset_bits=unknown
5332   break
5333 done
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5336 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5337 case $ac_cv_sys_file_offset_bits in #(
5338   no | unknown) ;;
5339   *)
5340 cat >>confdefs.h <<_ACEOF
5341 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5342 _ACEOF
5343 ;;
5344 esac
5345 rm -rf conftest*
5346   if test $ac_cv_sys_file_offset_bits = unknown; then
5347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5348 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5349 if test "${ac_cv_sys_large_files+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   while :; do
5353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h.  */
5355 #include <sys/types.h>
5356  /* Check that off_t can represent 2**63 - 1 correctly.
5357     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5358     since some C++ compilers masquerading as C compilers
5359     incorrectly reject 9223372036854775807.  */
5360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5361   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5362                        && LARGE_OFF_T % 2147483647 == 1)
5363                       ? 1 : -1];
5364 int
5365 main ()
5366 {
5367 
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373   ac_cv_sys_large_files=no; break
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #define _LARGE_FILES 1
5379 #include <sys/types.h>
5380  /* Check that off_t can represent 2**63 - 1 correctly.
5381     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5382     since some C++ compilers masquerading as C compilers
5383     incorrectly reject 9223372036854775807.  */
5384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5385   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5386                        && LARGE_OFF_T % 2147483647 == 1)
5387                       ? 1 : -1];
5388 int
5389 main ()
5390 {
5391 
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397   ac_cv_sys_large_files=1; break
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400   ac_cv_sys_large_files=unknown
5401   break
5402 done
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5405 $as_echo "$ac_cv_sys_large_files" >&6; }
5406 case $ac_cv_sys_large_files in #(
5407   no | unknown) ;;
5408   *)
5409 cat >>confdefs.h <<_ACEOF
5410 #define _LARGE_FILES $ac_cv_sys_large_files
5411 _ACEOF
5412 ;;
5413 esac
5414 rm -rf conftest*
5415   fi
5416 fi
5417 
5418 
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5426 # On Suns, sometimes $CPP names a directory.
5427 if test -n "$CPP" && test -d "$CPP"; then
5428   CPP=
5429 fi
5430 if test -z "$CPP"; then
5431   if test "${ac_cv_prog_CPP+set}" = set; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434       # Double quotes because CPP needs to be expanded
5435     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5436     do
5437       ac_preproc_ok=false
5438 for ac_c_preproc_warn_flag in '' yes
5439 do
5440   # Use a header file that comes with gcc, so configuring glibc
5441   # with a fresh cross-compiler works.
5442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443   # <limits.h> exists even on freestanding compilers.
5444   # On the NeXT, cc -E runs the code through the compiler's parser,
5445   # not just through cpp. "Syntax error" is here to catch this case.
5446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453                      Syntax error
5454 _ACEOF
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5456 
5457 else
5458   # Broken: fails on valid input.
5459 continue
5460 fi
5461 rm -f conftest.err conftest.$ac_ext
5462 
5463   # OK, works on sane cases.  Now check whether nonexistent headers
5464   # can be detected and how.
5465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h.  */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5470   # Broken: success on invalid input.
5471 continue
5472 else
5473   # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478 
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then :
5483   break
5484 fi
5485 
5486     done
5487     ac_cv_prog_CPP=$CPP
5488 
5489 fi
5490   CPP=$ac_cv_prog_CPP
5491 else
5492   ac_cv_prog_CPP=$CPP
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5495 $as_echo "$CPP" >&6; }
5496 ac_preproc_ok=false
5497 for ac_c_preproc_warn_flag in '' yes
5498 do
5499   # Use a header file that comes with gcc, so configuring glibc
5500   # with a fresh cross-compiler works.
5501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5502   # <limits.h> exists even on freestanding compilers.
5503   # On the NeXT, cc -E runs the code through the compiler's parser,
5504   # not just through cpp. "Syntax error" is here to catch this case.
5505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507 #ifdef __STDC__
5508 # include <limits.h>
5509 #else
5510 # include <assert.h>
5511 #endif
5512                      Syntax error
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5515 
5516 else
5517   # Broken: fails on valid input.
5518 continue
5519 fi
5520 rm -f conftest.err conftest.$ac_ext
5521 
5522   # OK, works on sane cases.  Now check whether nonexistent headers
5523   # can be detected and how.
5524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526 #include <ac_nonexistent.h>
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5529   # Broken: success on invalid input.
5530 continue
5531 else
5532   # Passes both tests.
5533 ac_preproc_ok=:
5534 break
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537 
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then :
5542 
5543 else
5544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5547 See \`config.log' for more details." "$LINENO" 5; }
5548 fi
5549 
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 
5556 
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5558 $as_echo_n "checking for ANSI C header files... " >&6; }
5559 if test "${ac_cv_header_stdc+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564 #include <stdlib.h>
5565 #include <stdarg.h>
5566 #include <string.h>
5567 #include <float.h>
5568 
5569 int
5570 main ()
5571 {
5572 
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578   ac_cv_header_stdc=yes
5579 else
5580   ac_cv_header_stdc=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 
5584 if test $ac_cv_header_stdc = yes; then
5585   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h.  */
5588 #include <string.h>
5589 
5590 _ACEOF
5591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5592   $EGREP "memchr" >/dev/null 2>&1; then :
5593 
5594 else
5595   ac_cv_header_stdc=no
5596 fi
5597 rm -f conftest*
5598 
5599 fi
5600 
5601 if test $ac_cv_header_stdc = yes; then
5602   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h.  */
5605 #include <stdlib.h>
5606 
5607 _ACEOF
5608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5609   $EGREP "free" >/dev/null 2>&1; then :
5610 
5611 else
5612   ac_cv_header_stdc=no
5613 fi
5614 rm -f conftest*
5615 
5616 fi
5617 
5618 if test $ac_cv_header_stdc = yes; then
5619   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5620   if test "$cross_compiling" = yes; then :
5621   :
5622 else
5623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h.  */
5625 #include <ctype.h>
5626 #include <stdlib.h>
5627 #if ((' ' & 0x0FF) == 0x020)
5628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5630 #else
5631 # define ISLOWER(c) \
5632                    (('a' <= (c) && (c) <= 'i') \
5633                      || ('j' <= (c) && (c) <= 'r') \
5634                      || ('s' <= (c) && (c) <= 'z'))
5635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5636 #endif
5637 
5638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5639 int
5640 main ()
5641 {
5642   int i;
5643   for (i = 0; i < 256; i++)
5644     if (XOR (islower (i), ISLOWER (i))
5645         || toupper (i) != TOUPPER (i))
5646       return 2;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_run "$LINENO"; then :
5651 
5652 else
5653   ac_cv_header_stdc=no
5654 fi
5655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5656   conftest.$ac_objext conftest.beam conftest.$ac_ext
5657 fi
5658 
5659 fi
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5662 $as_echo "$ac_cv_header_stdc" >&6; }
5663 if test $ac_cv_header_stdc = yes; then
5664 
5665 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5666 
5667 fi
5668 
5669 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5670 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5671                   inttypes.h stdint.h unistd.h
5672 do :
5673   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5674 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5675 "
5676 eval as_val=\$$as_ac_Header
5677    if test "x$as_val" = x""yes; then :
5678   cat >>confdefs.h <<_ACEOF
5679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 _ACEOF
5681 
5682 fi
5683 
5684 done
5685 
5686 
5687 for ac_header in \
5688         AL/al.h \
5689         AudioUnit/AudioUnit.h \
5690         Carbon/Carbon.h \
5691         CoreAudio/CoreAudio.h \
5692         DiskArbitration/DiskArbitration.h \
5693         IOKit/IOKitLib.h \
5694         IOKit/hid/IOHIDLib.h \
5695         OpenAL/al.h \
5696         alias.h \
5697         alsa/asoundlib.h \
5698         arpa/inet.h \
5699         arpa/nameser.h \
5700         asm/types.h \
5701         capi20.h \
5702         curses.h \
5703         direct.h \
5704         dirent.h \
5705         dlfcn.h \
5706         elf.h \
5707         float.h \
5708         fnmatch.h \
5709         fontconfig/fontconfig.h \
5710         getopt.h \
5711         grp.h \
5712         gsm.h \
5713         gsm/gsm.h \
5714         ieeefp.h \
5715         inet/mib2.h \
5716         io.h \
5717         jack/jack.h \
5718         jpeglib.h \
5719         kstat.h \
5720         lber.h \
5721         lcms.h \
5722         lcms/lcms.h \
5723         ldap.h \
5724         libaudioio.h \
5725         link.h \
5726         linux/cdrom.h \
5727         linux/compiler.h \
5728         linux/hdreg.h \
5729         linux/input.h \
5730         linux/ioctl.h \
5731         linux/joystick.h \
5732         linux/major.h \
5733         linux/param.h \
5734         linux/serial.h \
5735         linux/types.h \
5736         linux/ucdrom.h \
5737         mach-o/nlist.h \
5738         mach/mach.h \
5739         mach/machine.h \
5740         machine/cpu.h \
5741         machine/limits.h \
5742         machine/soundcard.h \
5743         mntent.h \
5744         mpg123.h \
5745         ncurses.h \
5746         netdb.h \
5747         netinet/in.h \
5748         netinet/in_systm.h \
5749         netinet/tcp.h \
5750         netinet/tcp_fsm.h \
5751         openssl/err.h \
5752         openssl/ssl.h \
5753         png.h \
5754         poll.h \
5755         port.h \
5756         process.h \
5757         pthread.h \
5758         pwd.h \
5759         regex.h \
5760         sched.h \
5761         scsi/scsi.h \
5762         scsi/scsi_ioctl.h \
5763         scsi/sg.h \
5764         soundcard.h \
5765         stdbool.h \
5766         stdint.h \
5767         strings.h \
5768         stropts.h \
5769         sys/asoundlib.h \
5770         sys/cdio.h \
5771         sys/elf32.h \
5772         sys/epoll.h \
5773         sys/errno.h \
5774         sys/event.h \
5775         sys/exec_elf.h \
5776         sys/filio.h \
5777         sys/inotify.h \
5778         sys/ioctl.h \
5779         sys/ipc.h \
5780         sys/limits.h \
5781         sys/link.h \
5782         sys/mman.h \
5783         sys/modem.h \
5784         sys/msg.h \
5785         sys/mtio.h \
5786         sys/param.h \
5787         sys/poll.h \
5788         sys/prctl.h \
5789         sys/protosw.h \
5790         sys/ptrace.h \
5791         sys/resource.h \
5792         sys/scsiio.h \
5793         sys/shm.h \
5794         sys/signal.h \
5795         sys/socket.h \
5796         sys/socketvar.h \
5797         sys/sockio.h \
5798         sys/soundcard.h \
5799         sys/statvfs.h \
5800         sys/strtio.h \
5801         sys/syscall.h \
5802         sys/tihdr.h \
5803         sys/time.h \
5804         sys/timeout.h \
5805         sys/times.h \
5806         sys/uio.h \
5807         sys/un.h \
5808         sys/utsname.h \
5809         sys/vm86.h \
5810         sys/wait.h \
5811         syscall.h \
5812         termios.h \
5813         unistd.h \
5814         utime.h \
5815         valgrind/memcheck.h \
5816         valgrind/valgrind.h \
5817         zlib.h
5818 
5819 do :
5820   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5822 eval as_val=\$$as_ac_Header
5823    if test "x$as_val" = x""yes; then :
5824   cat >>confdefs.h <<_ACEOF
5825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 _ACEOF
5827 
5828 fi
5829 
5830 done
5831 
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5833 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5834 if test "${ac_cv_header_stat_broken+set}" = set; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h.  */
5839 #include <sys/types.h>
5840 #include <sys/stat.h>
5841 
5842 #if defined S_ISBLK && defined S_IFDIR
5843 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5844 #endif
5845 
5846 #if defined S_ISBLK && defined S_IFCHR
5847 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5848 #endif
5849 
5850 #if defined S_ISLNK && defined S_IFREG
5851 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5852 #endif
5853 
5854 #if defined S_ISSOCK && defined S_IFREG
5855 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5856 #endif
5857 
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860   ac_cv_header_stat_broken=no
5861 else
5862   ac_cv_header_stat_broken=yes
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5867 $as_echo "$ac_cv_header_stat_broken" >&6; }
5868 if test $ac_cv_header_stat_broken = yes; then
5869 
5870 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5871 
5872 fi
5873 
5874 
5875 
5876 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5877 do :
5878   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5880      #ifdef HAVE_SYS_PARAM_H
5881      # include <sys/param.h>
5882      #endif
5883 "
5884 eval as_val=\$$as_ac_Header
5885    if test "x$as_val" = x""yes; then :
5886   cat >>confdefs.h <<_ACEOF
5887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888 _ACEOF
5889 
5890 fi
5891 
5892 done
5893 
5894 
5895 for ac_header in \
5896         netinet/ip.h \
5897         net/if.h \
5898         net/if_arp.h \
5899         net/if_dl.h \
5900         net/if_types.h \
5901         net/route.h \
5902         netinet/if_ether.h \
5903         netinet/if_inarp.h \
5904         netinet/in_pcb.h \
5905         netinet/ip_icmp.h \
5906         netinet/ip_var.h \
5907         netinet/udp.h \
5908         netipx/ipx.h \
5909 
5910 do :
5911   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5913      #ifdef HAVE_SYS_SOCKET_H
5914      # include <sys/socket.h>
5915      #endif
5916      #ifdef HAVE_SYS_SOCKETVAR_H
5917      # include <sys/socketvar.h>
5918      #endif
5919      #ifdef HAVE_NET_ROUTE_H
5920      # include <net/route.h>
5921      #endif
5922      #ifdef HAVE_NETINET_IN_H
5923      # include <netinet/in.h>
5924      #endif
5925      #ifdef HAVE_NETINET_IN_SYSTM_H
5926      # include <netinet/in_systm.h>
5927      #endif
5928      #ifdef HAVE_NET_IF_H
5929      # include <net/if.h>
5930      #endif
5931      #ifdef HAVE_NETINET_IP_H
5932      # include <netinet/ip.h>
5933      #endif
5934 "
5935 eval as_val=\$$as_ac_Header
5936    if test "x$as_val" = x""yes; then :
5937   cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5940 
5941 fi
5942 
5943 done
5944 
5945 
5946 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5947 do :
5948   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5950      #ifdef HAVE_ALIAS_H
5951      # include <alias.h>
5952      #endif
5953      #ifdef HAVE_SYS_SOCKET_H
5954      # include <sys/socket.h>
5955      #endif
5956      #ifdef HAVE_SYS_SOCKETVAR_H
5957      # include <sys/socketvar.h>
5958      #endif
5959      #ifdef HAVE_SYS_TIMEOUT_H
5960      # include <sys/timeout.h>
5961      #endif
5962      #ifdef HAVE_NETINET_IN_H
5963      # include <netinet/in.h>
5964      #endif
5965      #ifdef HAVE_NETINET_IN_SYSTM_H
5966      # include <netinet/in_systm.h>
5967      #endif
5968      #ifdef HAVE_NETINET_IP_H
5969      # include <netinet/ip.h>
5970      #endif
5971      #ifdef HAVE_NETINET_IP_VAR_H
5972      # include <netinet/ip_var.h>
5973      #endif
5974      #ifdef HAVE_NETINET_IP_ICMP_H
5975      # include <netinet/ip_icmp.h>
5976      #endif
5977      #ifdef HAVE_NETINET_UDP_H
5978      # include <netinet/udp.h>
5979      #endif
5980      #ifdef HAVE_NETINET_TCP_H
5981      # include <netinet/tcp.h>
5982      #endif
5983      #ifdef HAVE_NETINET_TCP_TIMER_H
5984      #include <netinet/tcp_timer.h>
5985      #endif
5986 "
5987 eval as_val=\$$as_ac_Header
5988    if test "x$as_val" = x""yes; then :
5989   cat >>confdefs.h <<_ACEOF
5990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5991 _ACEOF
5992 
5993 fi
5994 
5995 done
5996 
5997 
5998 for ac_header in linux/ipx.h linux/irda.h
5999 do :
6000   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6001 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6002      #ifdef HAVE_ASM_TYPES_H
6003      # include <asm/types.h>
6004      #endif
6005      #ifdef HAVE_SYS_SOCKET_H
6006      # include <sys/socket.h>
6007      #endif
6008      #ifdef HAVE_LINUX_TYPES_H
6009      # include <linux/types.h>
6010      #endif
6011 "
6012 eval as_val=\$$as_ac_Header
6013    if test "x$as_val" = x""yes; then :
6014   cat >>confdefs.h <<_ACEOF
6015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 _ACEOF
6017 
6018 fi
6019 
6020 done
6021 
6022 
6023 for ac_header in mach-o/dyld_images.h
6024 do :
6025   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6026      # include <stdbool.h>
6027      #endif
6028      #ifdef HAVE_STDINT_H
6029      # include <stdint.h>
6030      #endif
6031 "
6032 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6033   cat >>confdefs.h <<_ACEOF
6034 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6035 _ACEOF
6036 
6037 fi
6038 
6039 done
6040 
6041 
6042 for ac_header in resolv.h
6043 do :
6044   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6045      #ifdef HAVE_SYS_SOCKET_H
6046      # include <sys/socket.h>
6047      #endif
6048      #ifdef HAVE_NETINET_IN_H
6049      # include <netinet/in.h>
6050      #endif
6051      #ifdef HAVE_ARPA_NAMESER_H
6052      # include <arpa/nameser.h>
6053      #endif
6054 "
6055 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6056   cat >>confdefs.h <<_ACEOF
6057 #define HAVE_RESOLV_H 1
6058 _ACEOF
6059 
6060 fi
6061 
6062 done
6063 
6064 
6065 for ac_header in ucontext.h
6066 do :
6067   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6068 "
6069 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6070   cat >>confdefs.h <<_ACEOF
6071 #define HAVE_UCONTEXT_H 1
6072 _ACEOF
6073 
6074 fi
6075 
6076 done
6077 
6078 
6079 for ac_header in sys/thr.h
6080 do :
6081   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6082 #ifdef HAVE_UCONTEXT_H
6083 #include <ucontext.h>
6084 #endif
6085 "
6086 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6087   cat >>confdefs.h <<_ACEOF
6088 #define HAVE_SYS_THR_H 1
6089 _ACEOF
6090 
6091 fi
6092 
6093 done
6094 
6095 
6096 for ac_header in pthread_np.h
6097 do :
6098   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6099 #include <pthread.h>
6100 #endif
6101 "
6102 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6103   cat >>confdefs.h <<_ACEOF
6104 #define HAVE_PTHREAD_NP_H 1
6105 _ACEOF
6106 
6107 fi
6108 
6109 done
6110 
6111 
6112 for ac_header in linux/videodev.h
6113 do :
6114   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6115 #include <sys/time.h>
6116 #endif
6117 #include <sys/types.h>
6118 #ifdef HAVE_ASM_TYPES_H
6119 #include <asm/types.h>
6120 #endif
6121 "
6122 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6123   cat >>confdefs.h <<_ACEOF
6124 #define HAVE_LINUX_VIDEODEV_H 1
6125 _ACEOF
6126 
6127 fi
6128 
6129 done
6130 
6131 
6132 for ac_header in linux/capi.h
6133 do :
6134   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6135 "
6136 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6137   cat >>confdefs.h <<_ACEOF
6138 #define HAVE_LINUX_CAPI_H 1
6139 _ACEOF
6140 
6141 fi
6142 
6143 done
6144 
6145 
6146 
6147 DLLEXT=""
6148 
6149 DLLFLAGS="-D_REENTRANT"
6150 
6151 LDSHARED=""
6152 
6153 LDDLLFLAGS=""
6154 
6155 LIBEXT="so"
6156 
6157 IMPLIBEXT="def"
6158 
6159 LDRPATH_INSTALL=""
6160 
6161 LDRPATH_LOCAL=""
6162 
6163 STATIC_IMPLIBEXT="def.a"
6164 # Extract the first word of "ldd", so it can be a program name with args.
6165 set dummy ldd; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_path_LDD+set}" = set; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   case $LDD in
6172   [\\/]* | ?:[\\/]*)
6173   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6174   ;;
6175   *)
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 as_dummy="/sbin:/usr/sbin:$PATH"
6178 for as_dir in $as_dummy
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191 
6192   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6193   ;;
6194 esac
6195 fi
6196 LDD=$ac_cv_path_LDD
6197 if test -n "$LDD"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6199 $as_echo "$LDD" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204 
6205 
6206 
6207 case $host_os in
6208   cygwin*|mingw32*)
6209     if test -n "$ac_tool_prefix"; then
6210   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$DLLTOOL"; then
6218   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234 
6235 fi
6236 fi
6237 DLLTOOL=$ac_cv_prog_DLLTOOL
6238 if test -n "$DLLTOOL"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6240 $as_echo "$DLLTOOL" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245 
6246 
6247 fi
6248 if test -z "$ac_cv_prog_DLLTOOL"; then
6249   ac_ct_DLLTOOL=$DLLTOOL
6250   # Extract the first word of "dlltool", so it can be a program name with args.
6251 set dummy dlltool; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$ac_ct_DLLTOOL"; then
6258   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274 
6275 fi
6276 fi
6277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6278 if test -n "$ac_ct_DLLTOOL"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6280 $as_echo "$ac_ct_DLLTOOL" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285 
6286   if test "x$ac_ct_DLLTOOL" = x; then
6287     DLLTOOL="false"
6288   else
6289     case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295     DLLTOOL=$ac_ct_DLLTOOL
6296   fi
6297 else
6298   DLLTOOL="$ac_cv_prog_DLLTOOL"
6299 fi
6300 
6301     if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$DLLWRAP"; then
6310   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326 
6327 fi
6328 fi
6329 DLLWRAP=$ac_cv_prog_DLLWRAP
6330 if test -n "$DLLWRAP"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6332 $as_echo "$DLLWRAP" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337 
6338 
6339 fi
6340 if test -z "$ac_cv_prog_DLLWRAP"; then
6341   ac_ct_DLLWRAP=$DLLWRAP
6342   # Extract the first word of "dllwrap", so it can be a program name with args.
6343 set dummy dllwrap; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$ac_ct_DLLWRAP"; then
6350   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366 
6367 fi
6368 fi
6369 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6370 if test -n "$ac_ct_DLLWRAP"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6372 $as_echo "$ac_ct_DLLWRAP" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377 
6378   if test "x$ac_ct_DLLWRAP" = x; then
6379     DLLWRAP="false"
6380   else
6381     case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387     DLLWRAP=$ac_ct_DLLWRAP
6388   fi
6389 else
6390   DLLWRAP="$ac_cv_prog_DLLWRAP"
6391 fi
6392 
6393     if test "$DLLWRAP" = "false"; then
6394       LIBEXT="a"
6395     else
6396             LIBEXT="dll"
6397     fi
6398     IMPLIBEXT="a"
6399     STATIC_IMPLIBEXT="a"
6400         enable_iphlpapi=${enable_iphlpapi:-no}
6401     enable_kernel32=${enable_kernel32:-no}
6402     enable_msvcrt=${enable_msvcrt:-no}
6403     enable_ntdll=${enable_ntdll:-no}
6404     enable_ws2_32=${enable_ws2_32:-no}
6405     enable_loader=${enable_loader:-no}
6406     enable_server=${enable_server:-no}
6407         with_x=${with_x:-no}
6408     with_pthread=${with_pthread:-no}
6409     ;;
6410   darwin*|macosx*)
6411     DLLEXT=".so"
6412     LIBEXT="dylib"
6413     DLLFLAGS="$DLLFLAGS -fPIC"
6414     LDDLLFLAGS="-bundle -multiply_defined suppress"
6415     LIBWINE_LDFLAGS="-multiply_defined suppress"
6416     LDSHARED="\$(CC) -dynamiclib"
6417     STRIP="$STRIP -x"
6418     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6419         SECURITYLIB="-framework Security -framework CoreFoundation"
6420 
6421     COREFOUNDATIONLIB="-framework CoreFoundation"
6422 
6423     IOKITLIB="-framework IOKit -framework CoreFoundation"
6424 
6425     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6426 
6427     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6428     then
6429                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6430 
6431     fi
6432     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6433     then
6434                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6435 
6436     fi
6437     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6438     then
6439         LIBOPENAL="-framework OpenAL"
6440 
6441         ac_cv_lib_openal_alGetSource3i=yes
6442     fi
6443     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6444     then
6445         ac_save_LIBS="$LIBS"
6446         LIBS="$LIBS $IOKITLIB"
6447         for ac_func in IOHIDManagerCreate
6448 do :
6449   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6450 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6451   cat >>confdefs.h <<_ACEOF
6452 #define HAVE_IOHIDMANAGERCREATE 1
6453 _ACEOF
6454 
6455 fi
6456 done
6457 
6458         LIBS="$ac_save_LIBS"
6459     fi
6460     case $host_cpu in
6461       *powerpc*)
6462         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6463     esac
6464         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6465     then
6466         CARBONLIB="-framework Carbon"
6467 
6468         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6469     fi
6470         if test "x$enable_win16" = "xyes"
6471     then
6472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6473 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6474         if test "$cross_compiling" = yes; then :
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6476 $as_echo "cross-compiling, assuming yes" >&6; }
6477 else
6478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h.  */
6480 asm(".text\n"
6481                                             "bad:\tnop;nop\n"
6482                                             "good:\tnop;nop\n\t"
6483                                             ".globl _testfunc\n"
6484                                             "_testfunc:\tcallw good");
6485                                         extern void testfunc();
6486 int
6487 main ()
6488 {
6489 unsigned short *p = (unsigned short *)testfunc;
6490                                         return p[0] != 0xe866 || p[1] != 0xfffa
6491   ;
6492   return 0;
6493 }
6494 _ACEOF
6495 if ac_fn_c_try_run "$LINENO"; then :
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501                                        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
6502 fi
6503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6504   conftest.$ac_objext conftest.beam conftest.$ac_ext
6505 fi
6506 
6507     fi
6508     ;;
6509   *)
6510     DLLFLAGS="$DLLFLAGS -fPIC"
6511     DLLEXT=".so"
6512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6513 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6514 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   ac_wine_try_cflags_saved=$CFLAGS
6518 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h.  */
6521 void myfunc() {}
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"; then :
6524   ac_cv_c_dll_gnuelf="yes"
6525 else
6526   ac_cv_c_dll_gnuelf="no"
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext \
6529     conftest$ac_exeext conftest.$ac_ext
6530 CFLAGS=$ac_wine_try_cflags_saved
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6533 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6534     if test "$ac_cv_c_dll_gnuelf" = "yes"
6535     then
6536       LDSHARED="\$(CC) -shared"
6537       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6538       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6539 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6540 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6541   $as_echo_n "(cached) " >&6
6542 else
6543   ac_wine_try_cflags_saved=$CFLAGS
6544 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h.  */
6547 int main(int argc, char *argv) { return 0; }
6548 _ACEOF
6549 if ac_fn_c_try_link "$LINENO"; then :
6550   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6551 else
6552   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext \
6555     conftest$ac_exeext conftest.$ac_ext
6556 CFLAGS=$ac_wine_try_cflags_saved
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6559 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6560 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6561   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6564 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6565 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   ac_wine_try_cflags_saved=$CFLAGS
6569 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h.  */
6572 int main(int argc, char *argv) { return 0; }
6573 _ACEOF
6574 if ac_fn_c_try_link "$LINENO"; then :
6575   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6576 else
6577   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext \
6580     conftest$ac_exeext conftest.$ac_ext
6581 CFLAGS=$ac_wine_try_cflags_saved
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6584 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6585 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6586   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6587 fi
6588 fi
6589 
6590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6591 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6592 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   ac_wine_try_cflags_saved=$CFLAGS
6596 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h.  */
6599 int main(int argc, char *argv) { return 0; }
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6603 else
6604   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext \
6607     conftest$ac_exeext conftest.$ac_ext
6608 CFLAGS=$ac_wine_try_cflags_saved
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6611 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6612 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6613   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6614 fi
6615 
6616       { $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
6617 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6618 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   ac_wine_try_cflags_saved=$CFLAGS
6622 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625 int main(int argc, char *argv) { return 0; }
6626 _ACEOF
6627 if ac_fn_c_try_link "$LINENO"; then :
6628   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6629 else
6630   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext \
6633     conftest$ac_exeext conftest.$ac_ext
6634 CFLAGS=$ac_wine_try_cflags_saved
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6637 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6638 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6639   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6640 fi
6641 
6642       echo '{ global: *; };' >conftest.map
6643       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6644 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6645 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   ac_wine_try_cflags_saved=$CFLAGS
6649 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h.  */
6652 int main(int argc, char *argv) { return 0; }
6653 _ACEOF
6654 if ac_fn_c_try_link "$LINENO"; then :
6655   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6656 else
6657   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6658 fi
6659 rm -f core conftest.err conftest.$ac_objext \
6660     conftest$ac_exeext conftest.$ac_ext
6661 CFLAGS=$ac_wine_try_cflags_saved
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6664 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6665 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6666   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6667 fi
6668       rm -f conftest.map
6669 
6670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6671 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6672 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   ac_wine_try_cflags_saved=$CFLAGS
6676 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h.  */
6679 int main(int argc, char *argv) { return 0; }
6680 _ACEOF
6681 if ac_fn_c_try_link "$LINENO"; then :
6682   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6683 else
6684   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext \
6687     conftest$ac_exeext conftest.$ac_ext
6688 CFLAGS=$ac_wine_try_cflags_saved
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6691 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6692 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6693   LDEXECFLAGS="-Wl,--export-dynamic"
6694 
6695 fi
6696 
6697       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6699 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   ac_wine_try_cflags_saved=$CFLAGS
6704 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h.  */
6707 int main(int argc, char *argv) { return 0; }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710   eval "$as_ac_var=yes"
6711 else
6712   eval "$as_ac_var=no"
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715     conftest$ac_exeext conftest.$ac_ext
6716 CFLAGS=$ac_wine_try_cflags_saved
6717 fi
6718 eval ac_res=\$$as_ac_var
6719                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6720 $as_echo "$ac_res" >&6; }
6721 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6722   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6723                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6724 else
6725   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6727 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   ac_wine_try_cflags_saved=$CFLAGS
6732 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h.  */
6735 int main(int argc, char *argv) { return 0; }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738   eval "$as_ac_var=yes"
6739 else
6740   eval "$as_ac_var=no"
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743     conftest$ac_exeext conftest.$ac_ext
6744 CFLAGS=$ac_wine_try_cflags_saved
6745 fi
6746 eval ac_res=\$$as_ac_var
6747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6748 $as_echo "$ac_res" >&6; }
6749 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6750   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6751                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6752 fi
6753 fi
6754 
6755       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6756 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6757 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   ac_wine_try_cflags_saved=$CFLAGS
6761 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h.  */
6764 int main(int argc, char *argv) { return 0; }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767   ac_cv_cflags__Wl___enable_new_dtags=yes
6768 else
6769   ac_cv_cflags__Wl___enable_new_dtags=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext \
6772     conftest$ac_exeext conftest.$ac_ext
6773 CFLAGS=$ac_wine_try_cflags_saved
6774 fi
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6776 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6777 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6778   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6779 fi
6780 
6781       case $host_cpu in
6782         *i[3456789]86* | x86_64)
6783           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6784 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6785 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   ac_wine_try_cflags_saved=$CFLAGS
6789 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h.  */
6792 int main(int argc, char *argv) { return 0; }
6793 _ACEOF
6794 if ac_fn_c_try_link "$LINENO"; then :
6795   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6796 else
6797   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext \
6800     conftest$ac_exeext conftest.$ac_ext
6801 CFLAGS=$ac_wine_try_cflags_saved
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6804 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6805 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6806   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6807 fi
6808           ;;
6809       esac
6810 
6811     else
6812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6813 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6814 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   ac_wine_try_cflags_saved=$CFLAGS
6818 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h.  */
6821 void myfunc() {}
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824   ac_cv_c_dll_unixware="yes"
6825 else
6826   ac_cv_c_dll_unixware="no"
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext \
6829     conftest$ac_exeext conftest.$ac_ext
6830 CFLAGS=$ac_wine_try_cflags_saved
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6833 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6834       if test "$ac_cv_c_dll_unixware" = "yes"
6835       then
6836         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6837         LDDLLFLAGS="-Wl,-G,-B,symbolic"
6838 
6839       else
6840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6841 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6842 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   ac_wine_try_cflags_saved=$CFLAGS
6846 CFLAGS="$CFLAGS -shared"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849 void myfunc() {}
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852   ac_cv_c_dll_hpux="yes"
6853 else
6854   ac_cv_c_dll_hpux="no"
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857     conftest$ac_exeext conftest.$ac_ext
6858 CFLAGS=$ac_wine_try_cflags_saved
6859 fi
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6861 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6862         if test "$ac_cv_c_dll_hpux" = "yes"
6863         then
6864           LIBEXT="sl"
6865           DLLEXT=".sl"
6866           LDDLLFLAGS="-shared -fPIC"
6867           LDSHARED="\$(CC) -shared"
6868         fi
6869       fi
6870     fi
6871     ;;
6872 esac
6873 
6874 enable_winequartz_drv=${enable_winequartz_drv:-no}
6875 
6876 if test "$LIBEXT" = "a"; then
6877   as_fn_error "could not find a way to build shared libraries.
6878 It is currently not possible to build Wine without shared library
6879 (.so) support to allow transparent switch between .so and .dll files.
6880 If you are using Linux, you will need a newer binutils.
6881 " "$LINENO" 5
6882 fi
6883 
6884 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6885 then
6886     case "$host_cpu" in
6887   i[3456789]86*)
6888     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 " ;;
6889   x86_64)
6890     ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6891   *)
6892     ac_prefix_list="" ;;
6893 esac
6894 for ac_prog in $ac_prefix_list
6895 do
6896   # Extract the first word of "$ac_prog", so it can be a program name with args.
6897 set dummy $ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$CROSSCC"; then
6904   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_prog_CROSSCC="$ac_prog"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920 
6921 fi
6922 fi
6923 CROSSCC=$ac_cv_prog_CROSSCC
6924 if test -n "$CROSSCC"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6926 $as_echo "$CROSSCC" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931 
6932 
6933   test -n "$CROSSCC" && break
6934 done
6935 test -n "$CROSSCC" || CROSSCC="false"
6936 
6937     if test "$CROSSCC" != "false"
6938     then
6939         CROSSTEST="\$(CROSSTEST)"
6940 
6941         set x $CROSSCC
6942         shift
6943         target=""
6944         while test $# -ge 1
6945         do
6946             case "$1" in
6947               *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6948             esac
6949             shift
6950         done
6951         if test -n "$target"
6952         then
6953             CROSSTARGET="$target"
6954 
6955         fi
6956     fi
6957 fi
6958 
6959 
6960 if test "$ac_cv_header_pthread_h" = "yes"
6961 then
6962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6963 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6964 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   ac_check_lib_save_LIBS=$LIBS
6968 LIBS="-lpthread  $LIBS"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 
6972 /* Override any GCC internal prototype to avoid an error.
6973    Use char because int might match the return type of a GCC
6974    builtin and then its argument prototype would still apply.  */
6975 #ifdef __cplusplus
6976 extern "C"
6977 #endif
6978 char pthread_create ();
6979 int
6980 main ()
6981 {
6982 return pthread_create ();
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 if ac_fn_c_try_link "$LINENO"; then :
6988   ac_cv_lib_pthread_pthread_create=yes
6989 else
6990   ac_cv_lib_pthread_pthread_create=no
6991 fi
6992 rm -f core conftest.err conftest.$ac_objext \
6993     conftest$ac_exeext conftest.$ac_ext
6994 LIBS=$ac_check_lib_save_LIBS
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6997 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6998 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6999   LIBPTHREAD="-lpthread"
7000 
7001 fi
7002 
7003 fi
7004 if test "x$LIBPTHREAD" = "x"; then :
7005   case "x$with_pthread" in
7006   xno) ;;
7007   *)   as_fn_error "pthread ${notice_platform}development files not found.
7008 Wine cannot support threads without libpthread.
7009 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7010 esac
7011 fi
7012 
7013 
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7015 $as_echo_n "checking for X... " >&6; }
7016 
7017 
7018 # Check whether --with-x was given.
7019 if test "${with_x+set}" = set; then :
7020   withval=$with_x;
7021 fi
7022 
7023 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7024 if test "x$with_x" = xno; then
7025   # The user explicitly disabled X.
7026   have_x=disabled
7027 else
7028   case $x_includes,$x_libraries in #(
7029     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7030     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   # One or both of the vars are not set, and there is no cached value.
7034 ac_x_includes=no ac_x_libraries=no
7035 rm -f -r conftest.dir
7036 if mkdir conftest.dir; then
7037   cd conftest.dir
7038   cat >Imakefile <<'_ACEOF'
7039 incroot:
7040         @echo incroot='${INCROOT}'
7041 usrlibdir:
7042         @echo usrlibdir='${USRLIBDIR}'
7043 libdir:
7044         @echo libdir='${LIBDIR}'
7045 _ACEOF
7046   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7047     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7048     for ac_var in incroot usrlibdir libdir; do
7049       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7050     done
7051     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7052     for ac_extension in a so sl dylib la dll; do
7053       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7054          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7055         ac_im_usrlibdir=$ac_im_libdir; break
7056       fi
7057     done
7058     # Screen out bogus values from the imake configuration.  They are
7059     # bogus both because they are the default anyway, and because
7060     # using them would break gcc on systems where it needs fixed includes.
7061     case $ac_im_incroot in
7062         /usr/include) ac_x_includes= ;;
7063         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7064     esac
7065     case $ac_im_usrlibdir in
7066         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7067         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7068     esac
7069   fi
7070   cd ..
7071   rm -f -r conftest.dir
7072 fi
7073 
7074 # Standard set of common directories for X headers.
7075 # Check X11 before X11Rn because it is often a symlink to the current release.
7076 ac_x_header_dirs='
7077 /usr/X11/include
7078 /usr/X11R7/include
7079 /usr/X11R6/include
7080 /usr/X11R5/include
7081 /usr/X11R4/include
7082 
7083 /usr/include/X11
7084 /usr/include/X11R7
7085 /usr/include/X11R6
7086 /usr/include/X11R5
7087 /usr/include/X11R4
7088 
7089 /usr/local/X11/include
7090 /usr/local/X11R7/include
7091 /usr/local/X11R6/include
7092 /usr/local/X11R5/include
7093 /usr/local/X11R4/include
7094 
7095 /usr/local/include/X11
7096 /usr/local/include/X11R7
7097 /usr/local/include/X11R6
7098 /usr/local/include/X11R5
7099 /usr/local/include/X11R4
7100 
7101 /usr/X386/include
7102 /usr/x386/include
7103 /usr/XFree86/include/X11
7104 
7105 /usr/include
7106 /usr/local/include
7107 /usr/unsupported/include
7108 /usr/athena/include
7109 /usr/local/x11r5/include
7110 /usr/lpp/Xamples/include
7111 
7112 /usr/openwin/include
7113 /usr/openwin/share/include'
7114 
7115 if test "$ac_x_includes" = no; then
7116   # Guess where to find include files, by looking for Xlib.h.
7117   # First, try using that file with no special directory specified.
7118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120 #include <X11/Xlib.h>
7121 _ACEOF
7122 if ac_fn_c_try_cpp "$LINENO"; then :
7123   # We can compile using X headers with no special include directory.
7124 ac_x_includes=
7125 else
7126   for ac_dir in $ac_x_header_dirs; do
7127   if test -r "$ac_dir/X11/Xlib.h"; then
7128     ac_x_includes=$ac_dir
7129     break
7130   fi
7131 done
7132 fi
7133 rm -f conftest.err conftest.$ac_ext
7134 fi # $ac_x_includes = no
7135 
7136 if test "$ac_x_libraries" = no; then
7137   # Check for the libraries.
7138   # See if we find them without any special options.
7139   # Don't add to $LIBS permanently.
7140   ac_save_LIBS=$LIBS
7141   LIBS="-lX11 $LIBS"
7142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h.  */
7144 #include <X11/Xlib.h>
7145 int
7146 main ()
7147 {
7148 XrmInitialize ()
7149   ;
7150   return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_link "$LINENO"; then :
7154   LIBS=$ac_save_LIBS
7155 # We can link X programs with no special library path.
7156 ac_x_libraries=
7157 else
7158   LIBS=$ac_save_LIBS
7159 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7160 do
7161   # Don't even attempt the hair of trying to link an X program!
7162   for ac_extension in a so sl dylib la dll; do
7163     if test -r "$ac_dir/libX11.$ac_extension"; then
7164       ac_x_libraries=$ac_dir
7165       break 2
7166     fi
7167   done
7168 done
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171     conftest$ac_exeext conftest.$ac_ext
7172 fi # $ac_x_libraries = no
7173 
7174 case $ac_x_includes,$ac_x_libraries in #(
7175   no,* | *,no | *\'*)
7176     # Didn't find X, or a directory has "'" in its name.
7177     ac_cv_have_x="have_x=no";; #(
7178   *)
7179     # Record where we found X for the cache.
7180     ac_cv_have_x="have_x=yes\
7181         ac_x_includes='$ac_x_includes'\
7182         ac_x_libraries='$ac_x_libraries'"
7183 esac
7184 fi
7185 ;; #(
7186     *) have_x=yes;;
7187   esac
7188   eval "$ac_cv_have_x"
7189 fi # $with_x != no
7190 
7191 if test "$have_x" != yes; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7193 $as_echo "$have_x" >&6; }
7194   no_x=yes
7195 else
7196   # If each of the values was on the command line, it overrides each guess.
7197   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7198   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7199   # Update the cache value to reflect the command line values.
7200   ac_cv_have_x="have_x=yes\
7201         ac_x_includes='$x_includes'\
7202         ac_x_libraries='$x_libraries'"
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7204 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7205 fi
7206 
7207 if test "$no_x" = yes; then
7208   # Not all programs may use this symbol, but it does not hurt to define it.
7209 
7210 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7211 
7212   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7213 else
7214   if test -n "$x_includes"; then
7215     X_CFLAGS="$X_CFLAGS -I$x_includes"
7216   fi
7217 
7218   # It would also be nice to do this for all -L options, not just this one.
7219   if test -n "$x_libraries"; then
7220     X_LIBS="$X_LIBS -L$x_libraries"
7221     # For Solaris; some versions of Sun CC require a space after -R and
7222     # others require no space.  Words are not sufficient . . . .
7223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7224 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7225     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7226     ac_xsave_c_werror_flag=$ac_c_werror_flag
7227     ac_c_werror_flag=yes
7228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230 
7231 int
7232 main ()
7233 {
7234 
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_link "$LINENO"; then :
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242        X_LIBS="$X_LIBS -R$x_libraries"
7243 else
7244   LIBS="$ac_xsave_LIBS -R $x_libraries"
7245        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h.  */
7247 
7248 int
7249 main ()
7250 {
7251 
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_link "$LINENO"; then :
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7258 $as_echo "yes" >&6; }
7259           X_LIBS="$X_LIBS -R $x_libraries"
7260 else
7261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7262 $as_echo "neither works" >&6; }
7263 fi
7264 rm -f core conftest.err conftest.$ac_objext \
7265     conftest$ac_exeext conftest.$ac_ext
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext \
7268     conftest$ac_exeext conftest.$ac_ext
7269     ac_c_werror_flag=$ac_xsave_c_werror_flag
7270     LIBS=$ac_xsave_LIBS
7271   fi
7272 
7273   # Check for system-dependent libraries X programs must link with.
7274   # Do this before checking for the system-independent R6 libraries
7275   # (-lICE), since we may need -lsocket or whatever for X linking.
7276 
7277   if test "$ISC" = yes; then
7278     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7279   else
7280     # Martyn Johnson says this is needed for Ultrix, if the X
7281     # libraries were built with DECnet support.  And Karl Berry says
7282     # the Alpha needs dnet_stub (dnet does not exist).
7283     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 
7287 /* Override any GCC internal prototype to avoid an error.
7288    Use char because int might match the return type of a GCC
7289    builtin and then its argument prototype would still apply.  */
7290 #ifdef __cplusplus
7291 extern "C"
7292 #endif
7293 char XOpenDisplay ();
7294 int
7295 main ()
7296 {
7297 return XOpenDisplay ();
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 if ac_fn_c_try_link "$LINENO"; then :
7303 
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7306 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7307 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   ac_check_lib_save_LIBS=$LIBS
7311 LIBS="-ldnet  $LIBS"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314 
7315 /* Override any GCC internal prototype to avoid an error.
7316    Use char because int might match the return type of a GCC
7317    builtin and then its argument prototype would still apply.  */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char dnet_ntoa ();
7322 int
7323 main ()
7324 {
7325 return dnet_ntoa ();
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"; then :
7331   ac_cv_lib_dnet_dnet_ntoa=yes
7332 else
7333   ac_cv_lib_dnet_dnet_ntoa=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext \
7336     conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7340 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7341 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7342   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7343 fi
7344 
7345     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7346       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7347 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7348 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   ac_check_lib_save_LIBS=$LIBS
7352 LIBS="-ldnet_stub  $LIBS"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355 
7356 /* Override any GCC internal prototype to avoid an error.
7357    Use char because int might match the return type of a GCC
7358    builtin and then its argument prototype would still apply.  */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char dnet_ntoa ();
7363 int
7364 main ()
7365 {
7366 return dnet_ntoa ();
7367   ;
7368   return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"; then :
7372   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7373 else
7374   ac_cv_lib_dnet_stub_dnet_ntoa=no
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext \
7377     conftest$ac_exeext conftest.$ac_ext
7378 LIBS=$ac_check_lib_save_LIBS
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7381 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7382 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7383   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7384 fi
7385 
7386     fi
7387 fi
7388 rm -f core conftest.err conftest.$ac_objext \
7389     conftest$ac_exeext conftest.$ac_ext
7390     LIBS="$ac_xsave_LIBS"
7391 
7392     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7393     # to get the SysV transport functions.
7394     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7395     # needs -lnsl.
7396     # The nsl library prevents programs from opening the X display
7397     # on Irix 5.2, according to T.E. Dickey.
7398     # The functions gethostbyname, getservbyname, and inet_addr are
7399     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7400     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7401 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7402 
7403 fi
7404 
7405     if test $ac_cv_func_gethostbyname = no; then
7406       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7407 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411   ac_check_lib_save_LIBS=$LIBS
7412 LIBS="-lnsl  $LIBS"
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h.  */
7415 
7416 /* Override any GCC internal prototype to avoid an error.
7417    Use char because int might match the return type of a GCC
7418    builtin and then its argument prototype would still apply.  */
7419 #ifdef __cplusplus
7420 extern "C"
7421 #endif
7422 char gethostbyname ();
7423 int
7424 main ()
7425 {
7426 return gethostbyname ();
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 if ac_fn_c_try_link "$LINENO"; then :
7432   ac_cv_lib_nsl_gethostbyname=yes
7433 else
7434   ac_cv_lib_nsl_gethostbyname=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext \
7437     conftest$ac_exeext conftest.$ac_ext
7438 LIBS=$ac_check_lib_save_LIBS
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7441 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7442 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7443   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7444 fi
7445 
7446       if test $ac_cv_lib_nsl_gethostbyname = no; then
7447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7448 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7449 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-lbsd  $LIBS"
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h.  */
7456 
7457 /* Override any GCC internal prototype to avoid an error.
7458    Use char because int might match the return type of a GCC
7459    builtin and then its argument prototype would still apply.  */
7460 #ifdef __cplusplus
7461 extern "C"
7462 #endif
7463 char gethostbyname ();
7464 int
7465 main ()
7466 {
7467 return gethostbyname ();
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473   ac_cv_lib_bsd_gethostbyname=yes
7474 else
7475   ac_cv_lib_bsd_gethostbyname=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478     conftest$ac_exeext conftest.$ac_ext
7479 LIBS=$ac_check_lib_save_LIBS
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7482 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7483 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7484   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7485 fi
7486 
7487       fi
7488     fi
7489 
7490     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7491     # socket/setsockopt and other routines are undefined under SCO ODT
7492     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7493     # on later versions), says Simon Leinen: it contains gethostby*
7494     # variants that don't use the name server (or something).  -lsocket
7495     # must be given before -lnsl if both are needed.  We assume that
7496     # if connect needs -lnsl, so does gethostbyname.
7497     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7498 if test "x$ac_cv_func_connect" = x""yes; then :
7499 
7500 fi
7501 
7502     if test $ac_cv_func_connect = no; then
7503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7504 $as_echo_n "checking for connect in -lsocket... " >&6; }
7505 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   ac_check_lib_save_LIBS=$LIBS
7509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h.  */
7512 
7513 /* Override any GCC internal prototype to avoid an error.
7514    Use char because int might match the return type of a GCC
7515    builtin and then its argument prototype would still apply.  */
7516 #ifdef __cplusplus
7517 extern "C"
7518 #endif
7519 char connect ();
7520 int
7521 main ()
7522 {
7523 return connect ();
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_link "$LINENO"; then :
7529   ac_cv_lib_socket_connect=yes
7530 else
7531   ac_cv_lib_socket_connect=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext \
7534     conftest$ac_exeext conftest.$ac_ext
7535 LIBS=$ac_check_lib_save_LIBS
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7538 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7539 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7540   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7541 fi
7542 
7543     fi
7544 
7545     # Guillermo Gomez says -lposix is necessary on A/UX.
7546     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7547 if test "x$ac_cv_func_remove" = x""yes; then :
7548 
7549 fi
7550 
7551     if test $ac_cv_func_remove = no; then
7552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7553 $as_echo_n "checking for remove in -lposix... " >&6; }
7554 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   ac_check_lib_save_LIBS=$LIBS
7558 LIBS="-lposix  $LIBS"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561 
7562 /* Override any GCC internal prototype to avoid an error.
7563    Use char because int might match the return type of a GCC
7564    builtin and then its argument prototype would still apply.  */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 char remove ();
7569 int
7570 main ()
7571 {
7572 return remove ();
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 if ac_fn_c_try_link "$LINENO"; then :
7578   ac_cv_lib_posix_remove=yes
7579 else
7580   ac_cv_lib_posix_remove=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext \
7583     conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7587 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7588 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7589   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7590 fi
7591 
7592     fi
7593 
7594     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7595     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7596 if test "x$ac_cv_func_shmat" = x""yes; then :
7597 
7598 fi
7599 
7600     if test $ac_cv_func_shmat = no; then
7601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7602 $as_echo_n "checking for shmat in -lipc... " >&6; }
7603 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   ac_check_lib_save_LIBS=$LIBS
7607 LIBS="-lipc  $LIBS"
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h.  */
7610 
7611 /* Override any GCC internal prototype to avoid an error.
7612    Use char because int might match the return type of a GCC
7613    builtin and then its argument prototype would still apply.  */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char shmat ();
7618 int
7619 main ()
7620 {
7621 return shmat ();
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"; then :
7627   ac_cv_lib_ipc_shmat=yes
7628 else
7629   ac_cv_lib_ipc_shmat=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632     conftest$ac_exeext conftest.$ac_ext
7633 LIBS=$ac_check_lib_save_LIBS
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7636 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7637 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7638   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7639 fi
7640 
7641     fi
7642   fi
7643 
7644   # Check for libraries that X11R6 Xt/Xaw programs need.
7645   ac_save_LDFLAGS=$LDFLAGS
7646   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7647   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7648   # check for ICE first), but we must link in the order -lSM -lICE or
7649   # we get undefined symbols.  So assume we have SM if we have ICE.
7650   # These have to be linked with before -lX11, unlike the other
7651   # libraries we check for below, so use a different variable.
7652   # John Interrante, Karl Berry
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7654 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7655 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   ac_check_lib_save_LIBS=$LIBS
7659 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662 
7663 /* Override any GCC internal prototype to avoid an error.
7664    Use char because int might match the return type of a GCC
7665    builtin and then its argument prototype would still apply.  */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char IceConnectionNumber ();
7670 int
7671 main ()
7672 {
7673 return IceConnectionNumber ();
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_link "$LINENO"; then :
7679   ac_cv_lib_ICE_IceConnectionNumber=yes
7680 else
7681   ac_cv_lib_ICE_IceConnectionNumber=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext \
7684     conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7688 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7689 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7690   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7691 fi
7692 
7693   LDFLAGS=$ac_save_LDFLAGS
7694 
7695 fi
7696 
7697 
7698 if test "$have_x" = "yes"
7699 then
7700     XLIB="-lX11"
7701     ac_save_CPPFLAGS="$CPPFLAGS"
7702     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7703 
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7705 $as_echo_n "checking for -lX11... " >&6; }
7706 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   ac_check_soname_save_LIBS=$LIBS
7710 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h.  */
7713 
7714 /* Override any GCC internal prototype to avoid an error.
7715    Use char because int might match the return type of a GCC
7716    builtin and then its argument prototype would still apply.  */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 char XCreateWindow ();
7721 int
7722 main ()
7723 {
7724 return XCreateWindow ();
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"; then :
7730   case "$LIBEXT" in
7731     dll) ;;
7732     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'` ;;
7733     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7734   esac
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext \
7737     conftest$ac_exeext conftest.$ac_ext
7738   LIBS=$ac_check_soname_save_LIBS
7739 fi
7740 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7742 $as_echo "not found" >&6; }
7743 
7744 else
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7746 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7747 
7748 cat >>confdefs.h <<_ACEOF
7749 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7750 _ACEOF
7751 
7752 
7753 fi
7754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7755 $as_echo_n "checking for -lXext... " >&6; }
7756 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   ac_check_soname_save_LIBS=$LIBS
7760 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h.  */
7763 
7764 /* Override any GCC internal prototype to avoid an error.
7765    Use char because int might match the return type of a GCC
7766    builtin and then its argument prototype would still apply.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 char XextCreateExtension ();
7771 int
7772 main ()
7773 {
7774 return XextCreateExtension ();
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 if ac_fn_c_try_link "$LINENO"; then :
7780   case "$LIBEXT" in
7781     dll) ;;
7782     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'` ;;
7783     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7784   esac
7785 fi
7786 rm -f core conftest.err conftest.$ac_objext \
7787     conftest$ac_exeext conftest.$ac_ext
7788   LIBS=$ac_check_soname_save_LIBS
7789 fi
7790 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7792 $as_echo "not found" >&6; }
7793 
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7796 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7797 
7798 cat >>confdefs.h <<_ACEOF
7799 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7800 _ACEOF
7801 
7802        XLIB="-lXext $XLIB"
7803 fi
7804 
7805         for ac_header in X11/Xlib.h \
7806                       X11/XKBlib.h \
7807                       X11/Xutil.h \
7808                       X11/Xcursor/Xcursor.h \
7809                       X11/extensions/shape.h \
7810                       X11/extensions/XInput.h \
7811                       X11/extensions/XShm.h \
7812                       X11/extensions/Xcomposite.h \
7813                       X11/extensions/Xinerama.h \
7814                       X11/extensions/Xrandr.h \
7815                       X11/extensions/Xrender.h \
7816                       X11/extensions/xf86vmode.h \
7817                       X11/extensions/xf86vmproto.h
7818 do :
7819   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7821 # include <X11/Xlib.h>
7822 #endif
7823 #ifdef HAVE_X11_XUTIL_H
7824 # include <X11/Xutil.h>
7825 #endif
7826 "
7827 eval as_val=\$$as_ac_Header
7828    if test "x$as_val" = x""yes; then :
7829   cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7831 _ACEOF
7832 
7833 fi
7834 
7835 done
7836 
7837 
7838                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7839         then
7840               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7841 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7842 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849 
7850 /* Override any GCC internal prototype to avoid an error.
7851    Use char because int might match the return type of a GCC
7852    builtin and then its argument prototype would still apply.  */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 char XkbQueryExtension ();
7857 int
7858 main ()
7859 {
7860 return XkbQueryExtension ();
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866   ac_cv_lib_X11_XkbQueryExtension=yes
7867 else
7868   ac_cv_lib_X11_XkbQueryExtension=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871     conftest$ac_exeext conftest.$ac_ext
7872 LIBS=$ac_check_lib_save_LIBS
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7875 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7876 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7877 
7878 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7879 
7880 fi
7881 
7882         fi
7883 
7884                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7885         then
7886             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7887 $as_echo_n "checking for -lXcursor... " >&6; }
7888 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   ac_check_soname_save_LIBS=$LIBS
7892 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h.  */
7895 
7896 /* Override any GCC internal prototype to avoid an error.
7897    Use char because int might match the return type of a GCC
7898    builtin and then its argument prototype would still apply.  */
7899 #ifdef __cplusplus
7900 extern "C"
7901 #endif
7902 char XcursorImageLoadCursor ();
7903 int
7904 main ()
7905 {
7906 return XcursorImageLoadCursor ();
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"; then :
7912   case "$LIBEXT" in
7913     dll) ;;
7914     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'` ;;
7915     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
7916   esac
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext \
7919     conftest$ac_exeext conftest.$ac_ext
7920   LIBS=$ac_check_soname_save_LIBS
7921 fi
7922 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7924 $as_echo "not found" >&6; }
7925 
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7928 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7929 
7930 cat >>confdefs.h <<_ACEOF
7931 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7932 _ACEOF
7933 
7934 
7935 fi
7936         fi
7937         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7938   case "x$with_xcursor" in
7939   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7940   xno) ;;
7941   *)   as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7942 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7943 esac
7944 fi
7945 
7946                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7947         then
7948             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7949 $as_echo_n "checking for -lXi... " >&6; }
7950 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   ac_check_soname_save_LIBS=$LIBS
7954 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 
7958 /* Override any GCC internal prototype to avoid an error.
7959    Use char because int might match the return type of a GCC
7960    builtin and then its argument prototype would still apply.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 char XOpenDevice ();
7965 int
7966 main ()
7967 {
7968 return XOpenDevice ();
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_link "$LINENO"; then :
7974   case "$LIBEXT" in
7975     dll) ;;
7976     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'` ;;
7977     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
7978   esac
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext \
7981     conftest$ac_exeext conftest.$ac_ext
7982   LIBS=$ac_check_soname_save_LIBS
7983 fi
7984 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7986 $as_echo "not found" >&6; }
7987 
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
7990 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
7991 
7992 cat >>confdefs.h <<_ACEOF
7993 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
7994 _ACEOF
7995 
7996 
7997 fi
7998         fi
7999         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8000   case "x$with_xinput" in
8001   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8002   xno) ;;
8003   *)   as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8004 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8005 esac
8006 fi
8007 
8008                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8009         then
8010               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8011 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8012 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h.  */
8019 
8020 /* Override any GCC internal prototype to avoid an error.
8021    Use char because int might match the return type of a GCC
8022    builtin and then its argument prototype would still apply.  */
8023 #ifdef __cplusplus
8024 extern "C"
8025 #endif
8026 char XShmQueryExtension ();
8027 int
8028 main ()
8029 {
8030 return XShmQueryExtension ();
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then :
8036   ac_cv_lib_Xext_XShmQueryExtension=yes
8037 else
8038   ac_cv_lib_Xext_XShmQueryExtension=no
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext \
8041     conftest$ac_exeext conftest.$ac_ext
8042 LIBS=$ac_check_lib_save_LIBS
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8045 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8046 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8047 
8048 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8049 
8050 fi
8051 
8052         fi
8053         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8054   case "x$with_xshm" in
8055   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8056   xno) ;;
8057   *)   as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8058 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8059 esac
8060 fi
8061 
8062                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8063         then
8064               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8065 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8066 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   ac_check_lib_save_LIBS=$LIBS
8070 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h.  */
8073 
8074 /* Override any GCC internal prototype to avoid an error.
8075    Use char because int might match the return type of a GCC
8076    builtin and then its argument prototype would still apply.  */
8077 #ifdef __cplusplus
8078 extern "C"
8079 #endif
8080 char XShapeQueryExtension ();
8081 int
8082 main ()
8083 {
8084 return XShapeQueryExtension ();
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_link "$LINENO"; then :
8090   ac_cv_lib_Xext_XShapeQueryExtension=yes
8091 else
8092   ac_cv_lib_Xext_XShapeQueryExtension=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext \
8095     conftest$ac_exeext conftest.$ac_ext
8096 LIBS=$ac_check_lib_save_LIBS
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8099 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8100 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8101 
8102 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8103 
8104 fi
8105 
8106         fi
8107         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8108   case "x$with_xshape" in
8109   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8110   xno) ;;
8111   *)   as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8112 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8113 esac
8114 fi
8115 
8116                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8117         then
8118             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8119 $as_echo_n "checking for -lXxf86vm... " >&6; }
8120 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   ac_check_soname_save_LIBS=$LIBS
8124 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 
8128 /* Override any GCC internal prototype to avoid an error.
8129    Use char because int might match the return type of a GCC
8130    builtin and then its argument prototype would still apply.  */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 char XF86VidModeQueryExtension ();
8135 int
8136 main ()
8137 {
8138 return XF86VidModeQueryExtension ();
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_link "$LINENO"; then :
8144   case "$LIBEXT" in
8145     dll) ;;
8146     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'` ;;
8147     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8148   esac
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext \
8151     conftest$ac_exeext conftest.$ac_ext
8152   LIBS=$ac_check_soname_save_LIBS
8153 fi
8154 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8156 $as_echo "not found" >&6; }
8157 
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8160 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8161 
8162 cat >>confdefs.h <<_ACEOF
8163 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8164 _ACEOF
8165 
8166 
8167 fi
8168         fi
8169         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8170   case "x$with_xxf86vm" in
8171   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8172   xno) ;;
8173   *)   as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8174 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8175 esac
8176 fi
8177 
8178                 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"
8179         then
8180             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8181 $as_echo_n "checking for -lXrender... " >&6; }
8182 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   ac_check_soname_save_LIBS=$LIBS
8186 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h.  */
8189 
8190 /* Override any GCC internal prototype to avoid an error.
8191    Use char because int might match the return type of a GCC
8192    builtin and then its argument prototype would still apply.  */
8193 #ifdef __cplusplus
8194 extern "C"
8195 #endif
8196 char XRenderQueryExtension ();
8197 int
8198 main ()
8199 {
8200 return XRenderQueryExtension ();
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206   case "$LIBEXT" in
8207     dll) ;;
8208     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'` ;;
8209     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8210   esac
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext \
8213     conftest$ac_exeext conftest.$ac_ext
8214   LIBS=$ac_check_soname_save_LIBS
8215 fi
8216 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8218 $as_echo "not found" >&6; }
8219 
8220 else
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8222 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8223 
8224 cat >>confdefs.h <<_ACEOF
8225 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8226 _ACEOF
8227 
8228        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8229 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8230 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h.  */
8237 
8238 /* Override any GCC internal prototype to avoid an error.
8239    Use char because int might match the return type of a GCC
8240    builtin and then its argument prototype would still apply.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 char XRenderSetPictureTransform ();
8245 int
8246 main ()
8247 {
8248 return XRenderSetPictureTransform ();
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8255 else
8256   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259     conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8263 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8264 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8265 
8266 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8267 
8268 fi
8269 
8270 fi
8271 
8272         fi
8273         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8274   case "x$with_xrender" in
8275   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8276   xno) ;;
8277   *)   as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8278 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8279 esac
8280 fi
8281 
8282                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8283         then
8284                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h.  */
8286 #include <X11/Xlib.h>
8287 #include <X11/extensions/Xrandr.h>
8288 int
8289 main ()
8290 {
8291 static typeof(XRRSetScreenConfigAndRate) * func;
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8298 $as_echo_n "checking for -lXrandr... " >&6; }
8299 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   ac_check_soname_save_LIBS=$LIBS
8303 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306 
8307 /* Override any GCC internal prototype to avoid an error.
8308    Use char because int might match the return type of a GCC
8309    builtin and then its argument prototype would still apply.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 char XRRQueryExtension ();
8314 int
8315 main ()
8316 {
8317 return XRRQueryExtension ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323   case "$LIBEXT" in
8324     dll) ;;
8325     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'` ;;
8326     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8327   esac
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext \
8330     conftest$ac_exeext conftest.$ac_ext
8331   LIBS=$ac_check_soname_save_LIBS
8332 fi
8333 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8335 $as_echo "not found" >&6; }
8336 
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8339 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8340 
8341 cat >>confdefs.h <<_ACEOF
8342 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8343 _ACEOF
8344 
8345 
8346 fi
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349         fi
8350         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8351   case "x$with_xrandr" in
8352   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8353   xno) ;;
8354   *)   as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8355 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8356 esac
8357 fi
8358 
8359                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8360         then
8361                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363 #include <X11/Xlib.h>
8364 #include <X11/extensions/Xinerama.h>
8365 int
8366 main ()
8367 {
8368 static typeof(XineramaQueryScreens) * func;
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8375 $as_echo_n "checking for -lXinerama... " >&6; }
8376 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   ac_check_soname_save_LIBS=$LIBS
8380 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h.  */
8383 
8384 /* Override any GCC internal prototype to avoid an error.
8385    Use char because int might match the return type of a GCC
8386    builtin and then its argument prototype would still apply.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 char XineramaQueryScreens ();
8391 int
8392 main ()
8393 {
8394 return XineramaQueryScreens ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_link "$LINENO"; then :
8400   case "$LIBEXT" in
8401     dll) ;;
8402     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'` ;;
8403     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8404   esac
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407     conftest$ac_exeext conftest.$ac_ext
8408   LIBS=$ac_check_soname_save_LIBS
8409 fi
8410 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8412 $as_echo "not found" >&6; }
8413 
8414 else
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8416 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8417 
8418 cat >>confdefs.h <<_ACEOF
8419 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8420 _ACEOF
8421 
8422 
8423 fi
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426         fi
8427         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8428   case "x$with_xinerama" in
8429   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8430   xno) ;;
8431   *)   as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8432 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8433 esac
8434 fi
8435 
8436                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8437         then
8438             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8439 $as_echo_n "checking for -lXcomposite... " >&6; }
8440 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   ac_check_soname_save_LIBS=$LIBS
8444 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447 
8448 /* Override any GCC internal prototype to avoid an error.
8449    Use char because int might match the return type of a GCC
8450    builtin and then its argument prototype would still apply.  */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char XCompositeRedirectWindow ();
8455 int
8456 main ()
8457 {
8458 return XCompositeRedirectWindow ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464   case "$LIBEXT" in
8465     dll) ;;
8466     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'` ;;
8467     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8468   esac
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext \
8471     conftest$ac_exeext conftest.$ac_ext
8472   LIBS=$ac_check_soname_save_LIBS
8473 fi
8474 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8476 $as_echo "not found" >&6; }
8477 
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8480 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8481 
8482 cat >>confdefs.h <<_ACEOF
8483 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8484 _ACEOF
8485 
8486 
8487 fi
8488         fi
8489         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8490   case "x$with_xcomposite" in
8491   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8492   xno) ;;
8493   *)   as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8494 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8495 esac
8496 fi
8497 
8498                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8499 #include <X11/Xlib.h>
8500 #endif
8501 "
8502 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8503 
8504 cat >>confdefs.h <<_ACEOF
8505 #define HAVE_XICCALLBACK_CALLBACK 1
8506 _ACEOF
8507 
8508 
8509 fi
8510 
8511 
8512 
8513         opengl_msg=""
8514     if test "x$with_opengl" != "xno"
8515     then
8516         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8517 do :
8518   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8520 # include <GL/glx.h>
8521 #endif
8522 "
8523 eval as_val=\$$as_ac_Header
8524    if test "x$as_val" = x""yes; then :
8525   cat >>confdefs.h <<_ACEOF
8526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 _ACEOF
8528 
8529 fi
8530 
8531 done
8532 
8533         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8534         then
8535                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8536 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8537 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8538   $as_echo_n "(cached) " >&6
8539 else
8540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h.  */
8542 #include <GL/gl.h>
8543 int
8544 main ()
8545 {
8546 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_compile "$LINENO"; then :
8552   wine_cv_opengl_header_version_OK="yes"
8553 else
8554   wine_cv_opengl_header_version_OK="no"
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8559 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8560 
8561             if test "$wine_cv_opengl_header_version_OK" = "yes"
8562             then
8563                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8564 $as_echo_n "checking for -lGL... " >&6; }
8565 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   ac_check_soname_save_LIBS=$LIBS
8569 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h.  */
8572 
8573 /* Override any GCC internal prototype to avoid an error.
8574    Use char because int might match the return type of a GCC
8575    builtin and then its argument prototype would still apply.  */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 char glXCreateContext ();
8580 int
8581 main ()
8582 {
8583 return glXCreateContext ();
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_link "$LINENO"; then :
8589   case "$LIBEXT" in
8590     dll) ;;
8591     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'` ;;
8592     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8593   esac
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext \
8596     conftest$ac_exeext conftest.$ac_ext
8597   LIBS=$ac_check_soname_save_LIBS
8598 fi
8599 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8601 $as_echo "not found" >&6; }
8602        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8603 $as_echo_n "checking for -lGL... " >&6; }
8604 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   ac_check_soname_save_LIBS=$LIBS
8608 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
8609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h.  */
8611 
8612 /* Override any GCC internal prototype to avoid an error.
8613    Use char because int might match the return type of a GCC
8614    builtin and then its argument prototype would still apply.  */
8615 #ifdef __cplusplus
8616 extern "C"
8617 #endif
8618 char glXCreateContext ();
8619 int
8620 main ()
8621 {
8622 return glXCreateContext ();
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"; then :
8628   case "$LIBEXT" in
8629     dll) ;;
8630     dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8631     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8632   esac
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635     conftest$ac_exeext conftest.$ac_ext
8636   LIBS=$ac_check_soname_save_LIBS
8637 fi
8638 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8640 $as_echo "not found" >&6; }
8641        if test -f /usr/X11R6/lib/libGL.a
8642                                     then
8643                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8644 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8645                                     else
8646                                         opengl_msg="No OpenGL library found on this system."
8647                                     fi
8648 else
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8650 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8651 
8652 cat >>confdefs.h <<_ACEOF
8653 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8654 _ACEOF
8655 
8656        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"
8657 
8658 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8659 
8660 fi
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8663 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8664 
8665 cat >>confdefs.h <<_ACEOF
8666 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8667 _ACEOF
8668 
8669        OPENGL_LIBS="-lGL"
8670 
8671 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8672 
8673 fi
8674                  if test "$ac_cv_header_GL_glu_h" = "yes"
8675                  then
8676                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8677 $as_echo_n "checking for -lGLU... " >&6; }
8678 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   ac_check_soname_save_LIBS=$LIBS
8682 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685 
8686 /* Override any GCC internal prototype to avoid an error.
8687    Use char because int might match the return type of a GCC
8688    builtin and then its argument prototype would still apply.  */
8689 #ifdef __cplusplus
8690 extern "C"
8691 #endif
8692 char gluLookAt ();
8693 int
8694 main ()
8695 {
8696 return gluLookAt ();
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"; then :
8702   case "$LIBEXT" in
8703     dll) ;;
8704     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'` ;;
8705     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8706   esac
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext conftest.$ac_ext
8710   LIBS=$ac_check_soname_save_LIBS
8711 fi
8712 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8714 $as_echo "not found" >&6; }
8715 
8716 else
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8718 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8719 
8720 cat >>confdefs.h <<_ACEOF
8721 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8722 _ACEOF
8723 
8724 
8725 fi
8726                  fi
8727                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8728   case "x$with_glu" in
8729   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8730   xno) ;;
8731   *)   as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8732 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8733 esac
8734 fi
8735              else
8736                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8737              fi
8738          else
8739              opengl_msg="OpenGL development headers not found."
8740          fi
8741          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8742          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8743     else
8744          enable_opengl32=${enable_opengl32:-no}
8745          enable_glu32=${enable_glu32:-no}
8746     fi
8747     if test -n "$opengl_msg"; then :
8748   case "x$with_opengl" in
8749   x)   as_fn_append wine_warnings "|$opengl_msg
8750 OpenGL and Direct3D won't be supported." ;;
8751   xno) ;;
8752   *)   as_fn_error "$opengl_msg
8753 OpenGL and Direct3D won't be supported.
8754 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8755 esac
8756 fi
8757 
8758         NASLIBS=""
8759 
8760     for ac_header in audio/audiolib.h
8761 do :
8762   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8763 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8764   cat >>confdefs.h <<_ACEOF
8765 #define HAVE_AUDIO_AUDIOLIB_H 1
8766 _ACEOF
8767  for ac_header in audio/soundlib.h
8768 do :
8769   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8770 "
8771 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8772   cat >>confdefs.h <<_ACEOF
8773 #define HAVE_AUDIO_SOUNDLIB_H 1
8774 _ACEOF
8775 
8776 fi
8777 
8778 done
8779 
8780           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8781 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8782 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   ac_check_lib_save_LIBS=$LIBS
8786 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h.  */
8789 
8790 /* Override any GCC internal prototype to avoid an error.
8791    Use char because int might match the return type of a GCC
8792    builtin and then its argument prototype would still apply.  */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char AuCreateFlow ();
8797 int
8798 main ()
8799 {
8800 return AuCreateFlow ();
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806   ac_cv_lib_audio_AuCreateFlow=yes
8807 else
8808   ac_cv_lib_audio_AuCreateFlow=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext \
8811     conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8815 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8816 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8817 
8818 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8819 
8820                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8821 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8822 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-lXau $X_LIBS $LIBS"
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h.  */
8829 
8830 /* Override any GCC internal prototype to avoid an error.
8831    Use char because int might match the return type of a GCC
8832    builtin and then its argument prototype would still apply.  */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char XauGetBestAuthByAddr ();
8837 int
8838 main ()
8839 {
8840 return XauGetBestAuthByAddr ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8846   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8847 else
8848   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8849 fi
8850 rm -f core conftest.err conftest.$ac_objext \
8851     conftest$ac_exeext conftest.$ac_ext
8852 LIBS=$ac_check_lib_save_LIBS
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8855 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8856 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8857   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8858 else
8859   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8860 fi
8861 
8862 
8863 fi
8864 
8865 fi
8866 
8867 done
8868 
8869 
8870     CPPFLAGS="$ac_save_CPPFLAGS"
8871 else
8872     XLIB=""
8873     X_CFLAGS=""
8874     X_LIBS=""
8875     enable_winex11_drv=${enable_winex11_drv:-no}
8876     enable_opengl32=${enable_opengl32:-no}
8877     enable_glu32=${enable_glu32:-no}
8878 fi
8879 if test "x$XLIB" = "x"; then :
8880   case "x$with_x" in
8881   xno) ;;
8882   *)   as_fn_error "X ${notice_platform}development files not found. Wine will be built
8883 without X support, which probably isn't what you want. You will need to install
8884 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8885 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8886 esac
8887 fi
8888 
8889 
8890 XML2LIBS=""
8891 
8892 XML2INCL=""
8893 
8894 XSLTINCL=""
8895 
8896 if test "x$with_xml" != "xno"
8897 then
8898     ac_save_CPPFLAGS="$CPPFLAGS"
8899     if test "$PKG_CONFIG" != "false"
8900     then
8901         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8902         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8903     else
8904         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8905         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
8906     fi
8907     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8908     for ac_header in libxml/parser.h
8909 do :
8910   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8911 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8912   cat >>confdefs.h <<_ACEOF
8913 #define HAVE_LIBXML_PARSER_H 1
8914 _ACEOF
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8916 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8917 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-lxml2 $ac_xml_libs $LIBS"
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h.  */
8924 
8925 /* Override any GCC internal prototype to avoid an error.
8926    Use char because int might match the return type of a GCC
8927    builtin and then its argument prototype would still apply.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 char xmlParseMemory ();
8932 int
8933 main ()
8934 {
8935 return xmlParseMemory ();
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941   ac_cv_lib_xml2_xmlParseMemory=yes
8942 else
8943   ac_cv_lib_xml2_xmlParseMemory=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946     conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8950 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8951 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8952 
8953 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8954 
8955                  XML2LIBS="$ac_xml_libs"
8956                  XML2INCL="$ac_xml_cflags"
8957 fi
8958 
8959              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
8960 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
8961 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   ac_check_lib_save_LIBS=$LIBS
8965 LIBS="-lxml2 $ac_xml_libs $LIBS"
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h.  */
8968 
8969 /* Override any GCC internal prototype to avoid an error.
8970    Use char because int might match the return type of a GCC
8971    builtin and then its argument prototype would still apply.  */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 char xmlReadMemory ();
8976 int
8977 main ()
8978 {
8979 return xmlReadMemory ();
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_c_try_link "$LINENO"; then :
8985   ac_cv_lib_xml2_xmlReadMemory=yes
8986 else
8987   ac_cv_lib_xml2_xmlReadMemory=no
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext \
8990     conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
8994 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
8995 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
8996 
8997 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
8998 
8999 fi
9000 
9001              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9002 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9003 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   ac_check_lib_save_LIBS=$LIBS
9007 LIBS="-lxml2 $ac_xml_libs $LIBS"
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h.  */
9010 
9011 /* Override any GCC internal prototype to avoid an error.
9012    Use char because int might match the return type of a GCC
9013    builtin and then its argument prototype would still apply.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 #endif
9017 char xmlNewDocPI ();
9018 int
9019 main ()
9020 {
9021 return xmlNewDocPI ();
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 if ac_fn_c_try_link "$LINENO"; then :
9027   ac_cv_lib_xml2_xmlNewDocPI=yes
9028 else
9029   ac_cv_lib_xml2_xmlNewDocPI=no
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext \
9032     conftest$ac_exeext conftest.$ac_ext
9033 LIBS=$ac_check_lib_save_LIBS
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9036 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9037 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9038 
9039 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9040 
9041 fi
9042 
9043 
9044 fi
9045 
9046 done
9047 
9048     CPPFLAGS="$ac_save_CPPFLAGS"
9049 fi
9050 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9051   case "x$with_xml" in
9052   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9053   xno) ;;
9054   *)   as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9055 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9056 esac
9057 fi
9058 
9059 if test "x$with_xslt" != "xno"
9060 then
9061     if test "$PKG_CONFIG" != "false"
9062     then
9063         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9064         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9065     else
9066         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9067         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9068     fi
9069     ac_save_CPPFLAGS="$CPPFLAGS"
9070     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9071     for ac_header in libxslt/pattern.h libxslt/transform.h
9072 do :
9073   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9074 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9075 # include <libxslt/pattern.h>
9076 #endif
9077 "
9078 eval as_val=\$$as_ac_Header
9079    if test "x$as_val" = x""yes; then :
9080   cat >>confdefs.h <<_ACEOF
9081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9082 _ACEOF
9083 
9084 fi
9085 
9086 done
9087 
9088     CPPFLAGS="$ac_save_CPPFLAGS"
9089     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9090     then
9091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9092 $as_echo_n "checking for -lxslt... " >&6; }
9093 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9094   $as_echo_n "(cached) " >&6
9095 else
9096   ac_check_soname_save_LIBS=$LIBS
9097 LIBS="-lxslt $ac_xslt_libs $LIBS"
9098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h.  */
9100 
9101 /* Override any GCC internal prototype to avoid an error.
9102    Use char because int might match the return type of a GCC
9103    builtin and then its argument prototype would still apply.  */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char xsltCompilePattern ();
9108 int
9109 main ()
9110 {
9111 return xsltCompilePattern ();
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117   case "$LIBEXT" in
9118     dll) ;;
9119     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'` ;;
9120     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9121   esac
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext \
9124     conftest$ac_exeext conftest.$ac_ext
9125   LIBS=$ac_check_soname_save_LIBS
9126 fi
9127 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9129 $as_echo "not found" >&6; }
9130 
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9133 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9134 
9135 cat >>confdefs.h <<_ACEOF
9136 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9137 _ACEOF
9138 
9139        XSLTINCL="$ac_xslt_cflags"
9140 fi
9141     fi
9142 fi
9143 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9144   case "x$with_xslt" in
9145   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9146   xno) ;;
9147   *)   as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9148 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9149 esac
9150 fi
9151 
9152 HALINCL=""
9153 
9154 if test "x$with_hal" != "xno"
9155 then
9156     ac_save_CPPFLAGS="$CPPFLAGS"
9157     if test "$PKG_CONFIG" != "false"
9158     then
9159         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9160         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9161         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9162     fi
9163     for ac_header in dbus/dbus.h hal/libhal.h
9164 do :
9165   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9167 eval as_val=\$$as_ac_Header
9168    if test "x$as_val" = x""yes; then :
9169   cat >>confdefs.h <<_ACEOF
9170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 _ACEOF
9172 
9173 fi
9174 
9175 done
9176 
9177     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9178     then
9179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9180 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9181 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h.  */
9188 
9189 /* Override any GCC internal prototype to avoid an error.
9190    Use char because int might match the return type of a GCC
9191    builtin and then its argument prototype would still apply.  */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char dbus_connection_close ();
9196 int
9197 main ()
9198 {
9199 return dbus_connection_close ();
9200   ;
9201   return 0;
9202 }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205   ac_cv_lib_dbus_1_dbus_connection_close=yes
9206 else
9207   ac_cv_lib_dbus_1_dbus_connection_close=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210     conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9214 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9215 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9217 $as_echo_n "checking for -lhal... " >&6; }
9218 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9219   $as_echo_n "(cached) " >&6
9220 else
9221   ac_check_soname_save_LIBS=$LIBS
9222 LIBS="-lhal $ac_hal_libs $LIBS"
9223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h.  */
9225 
9226 /* Override any GCC internal prototype to avoid an error.
9227    Use char because int might match the return type of a GCC
9228    builtin and then its argument prototype would still apply.  */
9229 #ifdef __cplusplus
9230 extern "C"
9231 #endif
9232 char libhal_ctx_new ();
9233 int
9234 main ()
9235 {
9236 return libhal_ctx_new ();
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242   case "$LIBEXT" in
9243     dll) ;;
9244     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'` ;;
9245     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9246   esac
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249     conftest$ac_exeext conftest.$ac_ext
9250   LIBS=$ac_check_soname_save_LIBS
9251 fi
9252 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9254 $as_echo "not found" >&6; }
9255 
9256 else
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9258 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9259 
9260 cat >>confdefs.h <<_ACEOF
9261 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9262 _ACEOF
9263 
9264        HALINCL="$ac_hal_cflags"
9265 fi
9266 fi
9267 
9268     fi
9269     CPPFLAGS="$ac_save_CPPFLAGS"
9270 fi
9271 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9272   case "x$with_hal" in
9273   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9274   xno) ;;
9275   *)   as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9276 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9277 esac
9278 fi
9279 
9280 if test "x$with_gnutls" != "xno"
9281 then
9282     ac_save_CPPFLAGS="$CPPFLAGS"
9283     if test "$PKG_CONFIG" != "false"
9284     then
9285         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9286         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9287         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9288     fi
9289     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9290 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h.  */
9293 #include <gnutls/gnutls.h>
9294 int
9295 main ()
9296 {
9297 typeof(gnutls_mac_get_key_size) *pfunc;
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9304 $as_echo_n "checking for -lgnutls... " >&6; }
9305 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   ac_check_soname_save_LIBS=$LIBS
9309 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h.  */
9312 
9313 /* Override any GCC internal prototype to avoid an error.
9314    Use char because int might match the return type of a GCC
9315    builtin and then its argument prototype would still apply.  */
9316 #ifdef __cplusplus
9317 extern "C"
9318 #endif
9319 char gnutls_global_init ();
9320 int
9321 main ()
9322 {
9323 return gnutls_global_init ();
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328 if ac_fn_c_try_link "$LINENO"; then :
9329   case "$LIBEXT" in
9330     dll) ;;
9331     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'` ;;
9332     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9333   esac
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext \
9336     conftest$ac_exeext conftest.$ac_ext
9337   LIBS=$ac_check_soname_save_LIBS
9338 fi
9339 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9341 $as_echo "not found" >&6; }
9342 
9343 else
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9345 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9346 
9347 cat >>confdefs.h <<_ACEOF
9348 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9349 _ACEOF
9350 
9351        GNUTLSINCL="$ac_gnutls_cflags"
9352 
9353 fi
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 
9358 
9359     CPPFLAGS="$ac_save_CPPFLAGS"
9360 fi
9361 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9362   case "x$with_gnutls" in
9363   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9364   xno) ;;
9365   *)   as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9366 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9367 esac
9368 fi
9369 
9370 CURSESLIBS=""
9371 if test "$ac_cv_header_ncurses_h" = "yes"
9372 then
9373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9374 $as_echo_n "checking for -lncurses... " >&6; }
9375 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   ac_check_soname_save_LIBS=$LIBS
9379 LIBS="-lncurses  $LIBS"
9380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h.  */
9382 
9383 /* Override any GCC internal prototype to avoid an error.
9384    Use char because int might match the return type of a GCC
9385    builtin and then its argument prototype would still apply.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char waddch ();
9390 int
9391 main ()
9392 {
9393 return waddch ();
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399   case "$LIBEXT" in
9400     dll) ;;
9401     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'` ;;
9402     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9403   esac
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext \
9406     conftest$ac_exeext conftest.$ac_ext
9407   LIBS=$ac_check_soname_save_LIBS
9408 fi
9409 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9411 $as_echo "not found" >&6; }
9412 
9413 else
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9415 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9416 
9417 cat >>confdefs.h <<_ACEOF
9418 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9419 _ACEOF
9420 
9421        CURSESLIBS="-lncurses"
9422 fi
9423 elif test "$ac_cv_header_curses_h" = "yes"
9424 then
9425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9426 $as_echo_n "checking for -lcurses... " >&6; }
9427 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430   ac_check_soname_save_LIBS=$LIBS
9431 LIBS="-lcurses  $LIBS"
9432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h.  */
9434 
9435 /* Override any GCC internal prototype to avoid an error.
9436    Use char because int might match the return type of a GCC
9437    builtin and then its argument prototype would still apply.  */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char waddch ();
9442 int
9443 main ()
9444 {
9445 return waddch ();
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"; then :
9451   case "$LIBEXT" in
9452     dll) ;;
9453     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'` ;;
9454     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9455   esac
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext \
9458     conftest$ac_exeext conftest.$ac_ext
9459   LIBS=$ac_check_soname_save_LIBS
9460 fi
9461 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9463 $as_echo "not found" >&6; }
9464 
9465 else
9466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9467 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9468 
9469 cat >>confdefs.h <<_ACEOF
9470 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9471 _ACEOF
9472 
9473        CURSESLIBS="-lcurses"
9474 fi
9475 fi
9476 ac_save_LIBS="$LIBS"
9477 LIBS="$LIBS $CURSESLIBS"
9478 for ac_func in mousemask
9479 do :
9480   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9481 if test "x$ac_cv_func_mousemask" = x""yes; then :
9482   cat >>confdefs.h <<_ACEOF
9483 #define HAVE_MOUSEMASK 1
9484 _ACEOF
9485 
9486 fi
9487 done
9488 
9489 LIBS="$ac_save_LIBS"
9490 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9491   case "x$with_curses" in
9492   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9493   xno) ;;
9494   *)   as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9495 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9496 esac
9497 fi
9498 
9499 if test "x$with_sane" != "xno"
9500 then
9501     ac_save_CPPFLAGS="$CPPFLAGS"
9502     # Extract the first word of "sane-config", so it can be a program name with args.
9503 set dummy sane-config; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   if test -n "$sane_devel"; then
9510   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9511 else
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9514 do
9515   IFS=$as_save_IFS
9516   test -z "$as_dir" && as_dir=.
9517     for ac_exec_ext in '' $ac_executable_extensions; do
9518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9519     ac_cv_prog_sane_devel="sane-config"
9520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521     break 2
9522   fi
9523 done
9524   done
9525 IFS=$as_save_IFS
9526 
9527   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9528 fi
9529 fi
9530 sane_devel=$ac_cv_prog_sane_devel
9531 if test -n "$sane_devel"; then
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9533 $as_echo "$sane_devel" >&6; }
9534 else
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 fi
9538 
9539 
9540     if test "$sane_devel" != "no"
9541     then
9542         ac_sane_incl="`$sane_devel --cflags`"
9543         ac_sane_libs="`$sane_devel --ldflags`"
9544         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9545     fi
9546     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9547 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9549 $as_echo_n "checking for -lsane... " >&6; }
9550 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   ac_check_soname_save_LIBS=$LIBS
9554 LIBS="-lsane $ac_sane_libs $LIBS"
9555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h.  */
9557 
9558 /* Override any GCC internal prototype to avoid an error.
9559    Use char because int might match the return type of a GCC
9560    builtin and then its argument prototype would still apply.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char sane_init ();
9565 int
9566 main ()
9567 {
9568 return sane_init ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574   case "$LIBEXT" in
9575     dll) ;;
9576     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'` ;;
9577     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9578   esac
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext \
9581     conftest$ac_exeext conftest.$ac_ext
9582   LIBS=$ac_check_soname_save_LIBS
9583 fi
9584 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9586 $as_echo "not found" >&6; }
9587 
9588 else
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9590 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9591 
9592 cat >>confdefs.h <<_ACEOF
9593 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9594 _ACEOF
9595 
9596        SANEINCL="$ac_sane_incl"
9597 
9598 fi
9599 fi
9600 
9601 
9602     CPPFLAGS="$ac_save_CPPFLAGS"
9603 fi
9604 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9605   case "x$with_sane" in
9606   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9607   xno) ;;
9608   *)   as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9609 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9610 esac
9611 fi
9612 
9613 if test "x$with_v4l" != "xno"
9614 then
9615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9616 $as_echo_n "checking for -lv4l1... " >&6; }
9617 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   ac_check_soname_save_LIBS=$LIBS
9621 LIBS="-lv4l1  $LIBS"
9622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h.  */
9624 
9625 /* Override any GCC internal prototype to avoid an error.
9626    Use char because int might match the return type of a GCC
9627    builtin and then its argument prototype would still apply.  */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char v4l1_open ();
9632 int
9633 main ()
9634 {
9635 return v4l1_open ();
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_link "$LINENO"; then :
9641   case "$LIBEXT" in
9642     dll) ;;
9643     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'` ;;
9644     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9645   esac
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648     conftest$ac_exeext conftest.$ac_ext
9649   LIBS=$ac_check_soname_save_LIBS
9650 fi
9651 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9653 $as_echo "not found" >&6; }
9654 
9655 else
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9657 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9658 
9659 cat >>confdefs.h <<_ACEOF
9660 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9661 _ACEOF
9662 
9663 
9664 fi
9665 fi
9666 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9667   case "x$with_v4l" in
9668   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9669   xno) ;;
9670   *)   as_fn_error "libv4l ${notice_platform}development files not found.
9671 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9672 esac
9673 fi
9674 
9675 if test "x$with_gphoto" != "xno"
9676 then
9677     ac_save_CPPFLAGS="$CPPFLAGS"
9678     # Extract the first word of "gphoto2-config", so it can be a program name with args.
9679 set dummy gphoto2-config; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9683   $as_echo_n "(cached) " >&6
9684 else
9685   if test -n "$gphoto2_devel"; then
9686   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691   IFS=$as_save_IFS
9692   test -z "$as_dir" && as_dir=.
9693     for ac_exec_ext in '' $ac_executable_extensions; do
9694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695     ac_cv_prog_gphoto2_devel="gphoto2-config"
9696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697     break 2
9698   fi
9699 done
9700   done
9701 IFS=$as_save_IFS
9702 
9703   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9704 fi
9705 fi
9706 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9707 if test -n "$gphoto2_devel"; then
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9709 $as_echo "$gphoto2_devel" >&6; }
9710 else
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714 
9715 
9716     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9717 set dummy gphoto2-port-config; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   if test -n "$gphoto2port_devel"; then
9724   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9725 else
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9728 do
9729   IFS=$as_save_IFS
9730   test -z "$as_dir" && as_dir=.
9731     for ac_exec_ext in '' $ac_executable_extensions; do
9732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735     break 2
9736   fi
9737 done
9738   done
9739 IFS=$as_save_IFS
9740 
9741   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9742 fi
9743 fi
9744 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9745 if test -n "$gphoto2port_devel"; then
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9747 $as_echo "$gphoto2port_devel" >&6; }
9748 else
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9751 fi
9752 
9753 
9754     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9755     then
9756         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9757         ac_gphoto2_libs=""
9758         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9759         do
9760             case "$i" in
9761             -L/usr/lib|-L/usr/lib64) ;;
9762             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9763             esac
9764         done
9765         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9766     fi
9767     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9768     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9769 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9771 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9772 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9773   $as_echo_n "(cached) " >&6
9774 else
9775   ac_check_lib_save_LIBS=$LIBS
9776 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h.  */
9779 
9780 /* Override any GCC internal prototype to avoid an error.
9781    Use char because int might match the return type of a GCC
9782    builtin and then its argument prototype would still apply.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 char gp_camera_new ();
9787 int
9788 main ()
9789 {
9790 return gp_camera_new ();
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_link "$LINENO"; then :
9796   ac_cv_lib_gphoto2_gp_camera_new=yes
9797 else
9798   ac_cv_lib_gphoto2_gp_camera_new=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801     conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9805 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9806 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9807 
9808 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9809 
9810                                    GPHOTO2LIBS="$ac_gphoto2_libs"
9811 
9812                                    GPHOTO2INCL="$ac_gphoto2_incl"
9813 
9814 fi
9815 
9816 fi
9817 
9818 
9819     CPPFLAGS="$ac_save_CPPFLAGS"
9820 fi
9821 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9822   case "x$with_gphoto" in
9823   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9824   xno) ;;
9825   *)   as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9826 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9827 esac
9828 fi
9829 
9830 
9831 RESOLVLIBS=""
9832 
9833 if test "$ac_cv_header_resolv_h" = "yes"
9834 then
9835     ac_save_LIBS="$LIBS"
9836     LIBS="$LIBS -lresolv"
9837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h.  */
9839 #ifdef HAVE_NETINET_IN_H
9840 #include <netinet/in.h>
9841 #endif
9842 #include <resolv.h>
9843 int
9844 main ()
9845 {
9846 res_init();
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 if ac_fn_c_try_link "$LINENO"; then :
9852 
9853 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9854 
9855          RESOLVLIBS="-lresolv"
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext \
9858     conftest$ac_exeext conftest.$ac_ext
9859     LIBS="$ac_save_LIBS"
9860 fi
9861 
9862 LCMSLIBS=""
9863 
9864 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9865 then
9866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9867 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9868 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9869   $as_echo_n "(cached) " >&6
9870 else
9871   ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-llcms  $LIBS"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h.  */
9875 
9876 /* Override any GCC internal prototype to avoid an error.
9877    Use char because int might match the return type of a GCC
9878    builtin and then its argument prototype would still apply.  */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char cmsOpenProfileFromFile ();
9883 int
9884 main ()
9885 {
9886 return cmsOpenProfileFromFile ();
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9892   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9893 else
9894   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext \
9897     conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9901 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9902 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9903 
9904 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9905 
9906          LCMSLIBS="-llcms"
9907 fi
9908 
9909 fi
9910 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9911   case "x$with_cms" in
9912   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9913   xno) ;;
9914   *)   as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9915 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9916 esac
9917 fi
9918 
9919 if test "x$with_freetype" != "xno"
9920 then
9921     for ac_prog in freetype-config freetype2-config
9922 do
9923   # Extract the first word of "$ac_prog", so it can be a program name with args.
9924 set dummy $ac_prog; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   if test -n "$ft_devel"; then
9931   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9932 else
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9935 do
9936   IFS=$as_save_IFS
9937   test -z "$as_dir" && as_dir=.
9938     for ac_exec_ext in '' $ac_executable_extensions; do
9939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940     ac_cv_prog_ft_devel="$ac_prog"
9941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942     break 2
9943   fi
9944 done
9945   done
9946 IFS=$as_save_IFS
9947 
9948 fi
9949 fi
9950 ft_devel=$ac_cv_prog_ft_devel
9951 if test -n "$ft_devel"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9953 $as_echo "$ft_devel" >&6; }
9954 else
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958 
9959 
9960   test -n "$ft_devel" && break
9961 done
9962 test -n "$ft_devel" || ft_devel="no"
9963 
9964     if test "$ft_devel" != "no"
9965     then
9966         ac_freetype_incl=`$ft_devel --cflags`
9967         ac_freetype_libs=`$ft_devel --libs`
9968     fi
9969     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
9970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
9971 $as_echo_n "checking for -lfreetype... " >&6; }
9972 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   ac_check_soname_save_LIBS=$LIBS
9976 LIBS="-lfreetype $ac_freetype_libs $LIBS"
9977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h.  */
9979 
9980 /* Override any GCC internal prototype to avoid an error.
9981    Use char because int might match the return type of a GCC
9982    builtin and then its argument prototype would still apply.  */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 char FT_Init_FreeType ();
9987 int
9988 main ()
9989 {
9990 return FT_Init_FreeType ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 if ac_fn_c_try_link "$LINENO"; then :
9996   case "$LIBEXT" in
9997     dll) ;;
9998     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'` ;;
9999     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10000   esac
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext \
10003     conftest$ac_exeext conftest.$ac_ext
10004   LIBS=$ac_check_soname_save_LIBS
10005 fi
10006 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10008 $as_echo "not found" >&6; }
10009        ft_lib=no
10010 else
10011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10012 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10013 
10014 cat >>confdefs.h <<_ACEOF
10015 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10016 _ACEOF
10017 
10018        ft_lib=yes
10019 fi
10020     if test "$ft_lib" = "yes"
10021     then
10022         ac_save_CPPFLAGS="$CPPFLAGS"
10023         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10024         for ac_header in ft2build.h \
10025                          freetype/freetype.h \
10026                          freetype/ftglyph.h \
10027                          freetype/fttypes.h \
10028                          freetype/tttables.h \
10029                          freetype/ftsnames.h \
10030                          freetype/ttnameid.h \
10031                          freetype/ftoutln.h \
10032                          freetype/ftwinfnt.h \
10033                          freetype/ftmodapi.h \
10034                          freetype/ftlcdfil.h \
10035                          freetype/internal/sfnt.h
10036 do :
10037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10039                           # include <ft2build.h>
10040                           #endif
10041 "
10042 eval as_val=\$$as_ac_Header
10043    if test "x$as_val" = x""yes; then :
10044   cat >>confdefs.h <<_ACEOF
10045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10046 _ACEOF
10047 
10048 fi
10049 
10050 done
10051 
10052         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h.  */
10054 #include <ft2build.h>
10055                     #include <freetype/fttrigon.h>
10056 _ACEOF
10057 if ac_fn_c_try_cpp "$LINENO"; then :
10058 
10059 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10060 
10061                     wine_cv_fttrigon=yes
10062 else
10063   wine_cv_fttrigon=no
10064 fi
10065 rm -f conftest.err conftest.$ac_ext
10066         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10067 "
10068 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10069 
10070 cat >>confdefs.h <<_ACEOF
10071 #define HAVE_FT_TRUETYPEENGINETYPE 1
10072 _ACEOF
10073 
10074 
10075 fi
10076 
10077         ac_save_CFLAGS="$CFLAGS"
10078         CFLAGS="$CFLAGS $ac_freetype_libs"
10079         for ac_func in FT_Load_Sfnt_Table
10080 do :
10081   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10082 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10083   cat >>confdefs.h <<_ACEOF
10084 #define HAVE_FT_LOAD_SFNT_TABLE 1
10085 _ACEOF
10086 
10087 fi
10088 done
10089 
10090         CFLAGS="$ac_save_CFLAGS"
10091         CPPFLAGS="$ac_save_CPPFLAGS"
10092                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10093         then
10094 
10095 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10096 
10097             FREETYPELIBS="$ac_freetype_libs"
10098 
10099             FREETYPEINCL="$ac_freetype_incl"
10100 
10101         fi
10102     fi
10103 fi
10104 if test "x$FREETYPELIBS" = "x"; then :
10105   case "x$with_freetype" in
10106   xno) ;;
10107   *)   as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10108 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10109 esac
10110 fi
10111 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10112 
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10114 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10115 if test "${ac_cv_c_ppdev+set}" = set; then :
10116   $as_echo_n "(cached) " >&6
10117 else
10118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h.  */
10120 #include <linux/ppdev.h>
10121 int
10122 main ()
10123 {
10124 ioctl (1,PPCLAIM,0)
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_compile "$LINENO"; then :
10130   ac_cv_c_ppdev="yes"
10131 else
10132   ac_cv_c_ppdev="no"
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10137 $as_echo "$ac_cv_c_ppdev" >&6; }
10138 if test "$ac_cv_c_ppdev" = "yes"
10139 then
10140 
10141 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10142 
10143 fi
10144 
10145 ac_wine_check_funcs_save_LIBS="$LIBS"
10146 LIBS="$LIBS $LIBPTHREAD"
10147 for ac_func in \
10148         pthread_attr_get_np \
10149         pthread_getattr_np \
10150         pthread_get_stackaddr_np \
10151         pthread_get_stacksize_np
10152 do :
10153   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10155 eval as_val=\$$as_ac_var
10156    if test "x$as_val" = x""yes; then :
10157   cat >>confdefs.h <<_ACEOF
10158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10159 _ACEOF
10160 
10161 fi
10162 done
10163 
10164 LIBS="$ac_wine_check_funcs_save_LIBS"
10165 
10166 if test "$ac_cv_header_zlib_h" = "yes"
10167 then
10168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10169 $as_echo_n "checking for inflate in -lz... " >&6; }
10170 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10171   $as_echo_n "(cached) " >&6
10172 else
10173   ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-lz  $LIBS"
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h.  */
10177 
10178 /* Override any GCC internal prototype to avoid an error.
10179    Use char because int might match the return type of a GCC
10180    builtin and then its argument prototype would still apply.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char inflate ();
10185 int
10186 main ()
10187 {
10188 return inflate ();
10189   ;
10190   return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194   ac_cv_lib_z_inflate=yes
10195 else
10196   ac_cv_lib_z_inflate=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199     conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10203 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10204 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10205 
10206 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10207 
10208                             ZLIB="-lz"
10209 
10210 fi
10211 
10212 fi
10213 
10214 if test "x$with_esd" != xno
10215 then
10216     save_CFLAGS="$CFLAGS"
10217     # Extract the first word of "esd-config", so it can be a program name with args.
10218 set dummy esd-config; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10222   $as_echo_n "(cached) " >&6
10223 else
10224   case $ESDCONFIG in
10225   [\\/]* | ?:[\\/]*)
10226   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10227   ;;
10228   *)
10229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232   IFS=$as_save_IFS
10233   test -z "$as_dir" && as_dir=.
10234     for ac_exec_ext in '' $ac_executable_extensions; do
10235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10236     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238     break 2
10239   fi
10240 done
10241   done
10242 IFS=$as_save_IFS
10243 
10244   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10245   ;;
10246 esac
10247 fi
10248 ESDCONFIG=$ac_cv_path_ESDCONFIG
10249 if test -n "$ESDCONFIG"; then
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10251 $as_echo "$ESDCONFIG" >&6; }
10252 else
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256 
10257 
10258     if test "x$ESDCONFIG" != "xno"
10259     then
10260         ac_esd_incl=""
10261         for i in `$ESDCONFIG --cflags`
10262         do
10263             case "$i" in
10264                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10265             esac
10266         done
10267         ac_esd_libs=`$ESDCONFIG --libs`
10268         CFLAGS="$CFLAGS $ac_esd_incl"
10269     fi
10270     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10271     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10272 if test "x$ac_cv_header_esd_h" = x""yes; then :
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10274 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10275 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10276   $as_echo_n "(cached) " >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lesd $ac_esd_libs $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h.  */
10282 
10283 /* Override any GCC internal prototype to avoid an error.
10284    Use char because int might match the return type of a GCC
10285    builtin and then its argument prototype would still apply.  */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char esd_open_sound ();
10290 int
10291 main ()
10292 {
10293 return esd_open_sound ();
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299   ac_cv_lib_esd_esd_open_sound=yes
10300 else
10301   ac_cv_lib_esd_esd_open_sound=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304     conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10308 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10309 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10310   ESDINCL="$ac_esd_incl"
10311 
10312              ESDLIBS="$ac_esd_libs"
10313 
10314 
10315 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10316 
10317 fi
10318 
10319 fi
10320 
10321 
10322     CFLAGS="$save_CFLAGS"
10323 fi
10324 
10325 ALSALIBS=""
10326 
10327 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10328 then
10329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10330 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10331 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10332   $as_echo_n "(cached) " >&6
10333 else
10334   ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-lasound  $LIBS"
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h.  */
10338 
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char snd_pcm_hw_params_get_access ();
10346 int
10347 main ()
10348 {
10349 return snd_pcm_hw_params_get_access ();
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10356 else
10357   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360     conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10364 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10365 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h.  */
10368 #ifdef HAVE_ALSA_ASOUNDLIB_H
10369 #include <alsa/asoundlib.h>
10370 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10371 #include <sys/asoundlib.h>
10372 #endif
10373 int
10374 main ()
10375 {
10376 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_compile "$LINENO"; then :
10382 
10383 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10384 
10385                          ALSALIBS="-lasound"
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 fi
10389 
10390 fi
10391 
10392 AUDIOIOLIBS=""
10393 
10394 if test "$ac_cv_header_libaudioio_h" = "yes"
10395 then
10396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10397 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10398 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10399   $as_echo_n "(cached) " >&6
10400 else
10401   ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-laudioio  $LIBS"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405 
10406 /* Override any GCC internal prototype to avoid an error.
10407    Use char because int might match the return type of a GCC
10408    builtin and then its argument prototype would still apply.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char AudioIOGetVersion ();
10413 int
10414 main ()
10415 {
10416 return AudioIOGetVersion ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   ac_cv_lib_audioio_AudioIOGetVersion=yes
10423 else
10424   ac_cv_lib_audioio_AudioIOGetVersion=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10431 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10432 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10433   AUDIOIOLIBS="-laudioio"
10434 
10435 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10436 
10437 fi
10438 
10439 fi
10440 
10441 
10442 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10443 then
10444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10445 $as_echo_n "checking for -lcapi20... " >&6; }
10446 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10447   $as_echo_n "(cached) " >&6
10448 else
10449   ac_check_soname_save_LIBS=$LIBS
10450 LIBS="-lcapi20  $LIBS"
10451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h.  */
10453 
10454 /* Override any GCC internal prototype to avoid an error.
10455    Use char because int might match the return type of a GCC
10456    builtin and then its argument prototype would still apply.  */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 char capi20_register ();
10461 int
10462 main ()
10463 {
10464 return capi20_register ();
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470   case "$LIBEXT" in
10471     dll) ;;
10472     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'` ;;
10473     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10474   esac
10475 fi
10476 rm -f core conftest.err conftest.$ac_objext \
10477     conftest$ac_exeext conftest.$ac_ext
10478   LIBS=$ac_check_soname_save_LIBS
10479 fi
10480 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10482 $as_echo "not found" >&6; }
10483 
10484 else
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10486 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10487 
10488 cat >>confdefs.h <<_ACEOF
10489 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10490 _ACEOF
10491 
10492 
10493 fi
10494 fi
10495 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10496   case "x$with_capi" in
10497   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10498   xno) ;;
10499   *)   as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10500 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10501 esac
10502 fi
10503 
10504 CUPSINCL=""
10505 
10506 if test "x$with_cups" != "xno"
10507 then
10508     ac_save_CPPFLAGS="$CPPFLAGS"
10509     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10510     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10511     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10512     for ac_header in cups/cups.h
10513 do :
10514   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10515 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10516   cat >>confdefs.h <<_ACEOF
10517 #define HAVE_CUPS_CUPS_H 1
10518 _ACEOF
10519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10520 $as_echo_n "checking for -lcups... " >&6; }
10521 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10522   $as_echo_n "(cached) " >&6
10523 else
10524   ac_check_soname_save_LIBS=$LIBS
10525 LIBS="-lcups $ac_cups_libs $LIBS"
10526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h.  */
10528 
10529 /* Override any GCC internal prototype to avoid an error.
10530    Use char because int might match the return type of a GCC
10531    builtin and then its argument prototype would still apply.  */
10532 #ifdef __cplusplus
10533 extern "C"
10534 #endif
10535 char cupsGetDefault ();
10536 int
10537 main ()
10538 {
10539 return cupsGetDefault ();
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_link "$LINENO"; then :
10545   case "$LIBEXT" in
10546     dll) ;;
10547     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'` ;;
10548     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10549   esac
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext \
10552     conftest$ac_exeext conftest.$ac_ext
10553   LIBS=$ac_check_soname_save_LIBS
10554 fi
10555 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10557 $as_echo "not found" >&6; }
10558 
10559 else
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10561 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10562 
10563 cat >>confdefs.h <<_ACEOF
10564 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10565 _ACEOF
10566 
10567        CUPSINCL="$ac_cups_cflags"
10568 fi
10569 fi
10570 
10571 done
10572 
10573     CPPFLAGS="$ac_save_CPPFLAGS"
10574 fi
10575 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10576   case "x$with_cups" in
10577   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10578   xno) ;;
10579   *)   as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10580 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10581 esac
10582 fi
10583 
10584 if test "$ac_cv_header_jack_jack_h" = "yes"
10585 then
10586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10587 $as_echo_n "checking for -ljack... " >&6; }
10588 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591   ac_check_soname_save_LIBS=$LIBS
10592 LIBS="-ljack  $LIBS"
10593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h.  */
10595 
10596 /* Override any GCC internal prototype to avoid an error.
10597    Use char because int might match the return type of a GCC